:root {
    --primary: rgb(252, 144, 3);
    --primary-dark: rgb(220, 120, 0);
    --background: #f5f5f5;
    --white: #ffffff;
    --text: #222222;
    --muted: #777777;
    --border: #e2e2e2;
}

* {
    box-sizing: border-box;
}


.logo {
    min-width: 210px;
}

.logo-image {
    display: block;
    max-width: 300px;
    max-height: 90px;
    width: auto;
    height: auto;
}


body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.container {
    width: 92%;
    max-width: 1400px;
    margin: auto;
}


/* =========================
   HEADER
========================= */

.main-header {
    background: var(--primary);
    color: white;
}

.header-top {
    padding: 18px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo {
    min-width: 210px;
    font-size: 27px;
    font-weight: 900;
}

.logo-main {
    color: white;
}

.logo-things {
    color: #222;
}

.search-container {
    display: flex;
    flex: 1;
    max-width: 700px;
}

    .search-container input {
        width: 100%;
        padding: 14px 18px;
        border: none;
        outline: none;
        font-size: 15px;
        font-weight: 600;
        border-radius: 5px 0 0 5px;
    }

    .search-container button {
        background: #222;
        color: white;
        padding: 0 28px;
        border-radius: 0 5px 5px 0;
    }

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-link {
    font-size: 14px;
    white-space: nowrap;
}

    .header-link span:first-child {
        margin-right: 5px;
    }

.cart-count {
    background: #222;
    color: white;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 11px;
}

.category-nav {
    background: var(--primary-dark);
}

.category-container {
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 48px;
}

    .category-container a {
        font-size: 14px;
    }

.sell-button {
    margin-left: auto;
    background: white;
    color: #222;
    padding: 9px 18px;
    border-radius: 5px;
}


/* =========================
   HERO
========================= */

.hero {
    background: white;
    overflow: hidden;
}

.hero-content {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    max-width: 600px;
}

    .hero-text h1 {
        font-size: 45px;
        line-height: 1.1;
        margin-bottom: 18px;
    }

    .hero-text p {
        font-size: 18px;
        color: var(--muted);
        margin-bottom: 30px;
    }

.hero-button {
    background: var(--primary);
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
}

.hero-visual {
    position: relative;
    width: 450px;
    height: 300px;
}

.hero-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
}

.card-one {
    top: 20px;
    left: 40px;
}

.card-two {
    top: 100px;
    right: 20px;
}

.card-three {
    bottom: 0;
    left: 120px;
}

.card-four {
    top: 0;
    right: 120px;
}


/* =========================
   SECTIONS
========================= */

.categories-section,
.products-section {
    padding: 45px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .section-header h2 {
        margin: 0 0 5px;
        font-size: 28px;
    }

    .section-header p {
        margin: 0;
        color: var(--muted);
    }

    .section-header a {
        color: var(--primary-dark);
    }


/* =========================
   CATEGORIES
========================= */

.categories {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.category-card {
    background: white;
    padding: 20px 10px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: .2s;
}

    .category-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }

.category-icon {
    font-size: 35px;
    margin-bottom: 10px;
}

.category-card strong {
    font-size: 13px;
}


/* =========================
   PRODUCTS
========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: white;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: .2s;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,.12);
    }

.product-image {
    height: 220px;
    background: #eeeeee;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-placeholder {
    font-size: 90px;
}

.condition {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
}

.wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 22px;
}

.product-info {
    padding: 17px;
}

    .product-info h3 {
        margin: 0 0 10px;
        font-size: 16px;
    }

.location {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 15px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 20px;
    font-weight: 900;
}

.view-button {
    background: var(--primary);
    padding: 8px 15px;
    border-radius: 5px;
}


/* =========================
   SELL SECTION
========================= */

.sell-section {
    background: #222;
    color: white;
    padding: 40px 0;
}

.sell-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .sell-content h2 {
        margin: 0 0 8px;
        font-size: 28px;
    }

    .sell-content p {
        margin: 0;
        color: #ccc;
    }

.sell-large-button {
    background: var(--primary);
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
}


/* =========================
   FOOTER
========================= */

.main-footer {
    background: var(--primary);
    color: white;
    padding-top: 45px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-company h2 {
    margin-top: 0;
    font-size: 27px;
}

.footer-company p {
    max-width: 300px;
    line-height: 1.6;
}

.footer-grid h3 {
    margin-top: 0;
}

.footer-grid a {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-bottom {
    background: var(--primary-dark);
    padding: 18px 0;
    font-size: 13px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .header-content {
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .category-container {
        overflow-x: auto;
    }

    .categories {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 600px) {

    .header-actions {
        display: none;
    }

    .logo {
        min-width: auto;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .sell-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-text h1 {
        font-size: 34px;
    }
}

/* =========================================
   HOW IT WORKS
   ========================================= */

.how-it-works-page {
    background: var(--background);
}


/* Hero */

.how-hero {
    background: var(--primary);
    color: white;
    padding: 55px 20px;
    text-align: center;
}

    .how-hero h1 {
        margin: 0 0 12px;
        font-size: 42px;
        font-weight: 800;
    }

    .how-hero p {
        margin: 0;
        font-size: 19px;
        font-weight: 600;
    }


/* Introduction */

.how-intro {
    background: white;
    padding: 45px 20px;
    text-align: center;
}

    .how-intro h2 {
        margin-top: 0;
        font-size: 30px;
        font-weight: 800;
    }

    .how-intro p {
        max-width: 850px;
        margin: 12px auto;
        line-height: 1.7;
    }


/* Seller / Buyer */

.how-section {
    padding: 50px 20px;
}

.how-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.how-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border-top: 6px solid var(--primary);
}

.how-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.how-card h2 {
    margin-top: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
}


/* Steps */

.how-step {
    display: flex;
    gap: 18px;
    margin: 25px 0;
}

    .how-step > span {
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        background: var(--primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
    }

    .how-step h3 {
        margin: 0 0 5px;
        font-size: 18px;
    }

    .how-step p {
        margin: 0;
        line-height: 1.5;
        color: var(--muted);
    }


/* Transaction */

.transaction-section {
    background: white;
    padding: 55px 20px;
    text-align: center;
}

    .transaction-section h2 {
        font-size: 32px;
        margin-top: 0;
        font-weight: 800;
    }

.section-intro {
    color: var(--muted);
    margin-bottom: 40px;
}

.transaction-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
}

.transaction-step {
    flex: 1;
    max-width: 190px;
}

.transaction-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.transaction-step h3 {
    font-size: 17px;
    margin: 10px 0;
}

.transaction-step p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
}


/* Security */

.security-section {
    padding: 50px 20px;
    background: #fff7ed;
}

.security-box {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: white;
    border-left: 7px solid var(--primary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.security-icon {
    font-size: 45px;
}

.security-box h2 {
    margin-top: 0;
    font-size: 25px;
    font-weight: 800;
}

.security-box p {
    line-height: 1.6;
}


/* Fees */

.fee-section {
    padding: 50px 20px;
    background: var(--background);
}

.fee-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--primary);
    color: white;
    padding: 35px;
    border-radius: 12px;
}

.fee-percent {
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
}

.fee-card h2 {
    margin-top: 0;
    font-size: 27px;
}

.fee-card p {
    line-height: 1.6;
}


/* CTA */

.how-cta {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 55px 20px;
}

    .how-cta h2 {
        font-size: 32px;
        margin-top: 0;
    }

    .how-cta p {
        font-size: 18px;
    }

.cta-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-primary,
.cta-secondary {
    padding: 13px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
}

.cta-primary {
    background: white;
    color: var(--primary-dark);
}

.cta-secondary {
    background: var(--primary);
    color: white;
}


/* Mobile */

@media (max-width: 900px) {

    .how-columns {
        grid-template-columns: 1fr;
    }

    .transaction-flow {
        flex-direction: column;
        align-items: center;
    }

    .transaction-step {
        max-width: 400px;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .security-box {
        flex-direction: column;
    }

    .fee-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {

    .how-hero h1 {
        font-size: 32px;
    }

    .how-card {
        padding: 25px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}
/* =========================================
   SELL AN ITEM
   ========================================= */

.sell-page {
    background: var(--background);
    min-height: 100vh;
}


/* Hero */

.sell-hero {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 45px 20px;
}

    .sell-hero h1 {
        margin: 0 0 10px;
        font-size: 40px;
        font-weight: 900;
    }

    .sell-hero p {
        margin: 0;
        font-size: 18px;
    }


/* Container */

.sell-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 60px;
}


/* Cards */

.sell-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
    border-top: 4px solid var(--primary);
}

.sell-section-header {
    margin-bottom: 25px;
}

    .sell-section-header h2 {
        margin: 0 0 7px;
        font-size: 25px;
        font-weight: 800;
    }

    .sell-section-header p {
        margin: 0;
        color: var(--muted);
    }


/* Photo Upload */

.photo-upload-area {
    border: 2px dashed var(--primary);
    border-radius: 10px;
    background: #fffaf3;
    padding: 35px;
    text-align: center;
}

.photo-upload {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 45px;
}

.photo-upload strong {
    font-size: 18px;
    color: var(--primary-dark);
}

.photo-upload span {
    color: var(--muted);
}

.photo-upload small {
    color: #999;
}

#itemPhotos {
    display: none;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

    .photo-preview img {
        width: 110px;
        height: 110px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid var(--border);
    }


/* Form */

.form-group {
    margin-bottom: 22px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 800;
    }

        .form-group label span {
            color: var(--primary-dark);
        }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 13px;
        border: 1px solid var(--border);
        border-radius: 6px;
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(252, 144, 3, 0.15);
        }

    .form-group textarea {
        resize: vertical;
    }

    .form-group small {
        display: block;
        margin-top: 7px;
        color: var(--muted);
    }


/* Form Rows */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* Price */

.price-input {
    display: flex;
    align-items: center;
    max-width: 350px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

    .price-input span {
        background: var(--primary);
        color: white;
        padding: 13px 17px;
        font-weight: 900;
        font-size: 18px;
    }

    .price-input input {
        border: none;
        outline: none;
        padding: 13px;
        width: 100%;
        font-size: 18px;
        font-weight: 700;
    }

.fee-information {
    margin-top: 20px;
    background: #fff7ed;
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 5px;
}

    .fee-information p {
        margin: 7px 0 0;
        color: var(--muted);
    }


/* Location */

.location-notice {
    background: #f5f5f5;
    padding: 14px;
    border-radius: 6px;
    font-size: 14px;
}


/* Checkboxes */

.checkbox-option {
    display: flex;
    gap: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
}

    .checkbox-option input {
        width: 20px;
        height: 20px;
        accent-color: var(--primary);
    }

    .checkbox-option label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

        .checkbox-option label span {
            color: var(--muted);
            font-size: 14px;
        }


/* Security */

.seller-security {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff7ed;
    border: 1px solid #ffd8a8;
    border-left: 6px solid var(--primary);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.security-icon {
    font-size: 40px;
}

.seller-security h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.seller-security p {
    line-height: 1.6;
}


/* Submit */

.sell-submit {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.list-item-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 7px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

    .list-item-button:hover {
        background: var(--primary-dark);
    }

.cancel-button {
    padding: 14px 25px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
    font-weight: 800;
}


/* Mobile */

@media (max-width: 700px) {

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sell-card {
        padding: 22px;
    }

    .seller-security {
        flex-direction: column;
    }

    .sell-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .list-item-button,
    .cancel-button {
        text-align: center;
    }
}
.payout-calculation {
    margin-top: 25px;
    padding: 20px;
    background: #fff7ed;
    border: 1px solid #ffd8a8;
    border-radius: 8px;
    max-width: 500px;
}

.payout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 16px;
}

    .payout-row strong {
        font-weight: 800;
    }

.payout-divider {
    height: 1px;
    background: #ffd8a8;
    margin: 15px 0;
}

.payout-total {
    font-size: 20px;
    font-weight: 800;
}

.payout-total strong {
    color: var(--primary-dark);
    font-size: 23px;
}
/* =========================
   REGISTER PAGE
   ========================= */

.register-page {
    background: #f7f7f7;
    padding: 50px 20px 70px;
    min-height: 700px;
}

.register-container {
    max-width: 800px;
    margin: 0 auto;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

    .register-header h1 {
        font-size: 34px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .register-header p {
        color: #666;
        font-size: 16px;
    }

.register-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.register-section {
    margin-bottom: 30px;
}

    .register-section h2 {
        font-size: 21px;
        font-weight: 800;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f1f1f1;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .form-group input {
        width: 100%;
        padding: 13px 14px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 15px;
        box-sizing: border-box;
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(252, 144, 3, 0.15);
        }

    .form-group small {
        display: block;
        margin-top: 6px;
        color: #777;
        font-size: 13px;
    }

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .terms-check input {
        margin-top: 4px;
        width: 17px;
        height: 17px;
        accent-color: var(--primary);
    }

    .terms-check label {
        font-size: 14px;
        line-height: 1.5;
    }

    .terms-check a {
        color: var(--primary-dark);
        font-weight: 700;
        text-decoration: none;
    }

        .terms-check a:hover {
            text-decoration: underline;
        }

.register-button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

    .register-button:hover {
        background: var(--primary-dark);
    }

.register-login {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

    .register-login p {
        margin: 0;
        color: #666;
    }

    .register-login a {
        color: var(--primary-dark);
        font-weight: 800;
        text-decoration: none;
    }

        .register-login a:hover {
            text-decoration: underline;
        }


/* =========================
   REGISTER PAGE
   ========================= */

.register-page {
    background: #f7f7f7;
    padding: 50px 20px 70px;
    min-height: 700px;
}

.register-container {
    max-width: 800px;
    margin: 0 auto;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

    .register-header h1 {
        font-size: 34px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .register-header p {
        color: #666;
        font-size: 16px;
    }

.register-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.register-section {
    margin-bottom: 30px;
}

    .register-section h2 {
        font-size: 21px;
        font-weight: 800;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f1f1f1;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .form-group input {
        width: 100%;
        padding: 13px 14px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 15px;
        box-sizing: border-box;
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(252, 144, 3, 0.15);
        }

    .form-group small {
        display: block;
        margin-top: 6px;
        color: #777;
        font-size: 13px;
    }

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .terms-check input {
        margin-top: 4px;
        width: 17px;
        height: 17px;
        accent-color: var(--primary);
    }

    .terms-check label {
        font-size: 14px;
        line-height: 1.5;
    }

    .terms-check a {
        color: var(--primary-dark);
        font-weight: 700;
        text-decoration: none;
    }

        .terms-check a:hover {
            text-decoration: underline;
        }

.register-button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

    .register-button:hover {
        background: var(--primary-dark);
    }

.register-login {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

    .register-login p {
        margin: 0;
        color: #666;
    }

    .register-login a {
        color: var(--primary-dark);
        font-weight: 800;
        text-decoration: none;
    }

        .register-login a:hover {
            text-decoration: underline;
        }


/* Mobile */

@media (max-width: 700px) {

    .register-page {
        padding: 30px 15px 50px;
    }

    .register-card {
        padding: 25px 20px;
    }

    .register-header h1 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* =========================
   ACCOUNT DROPDOWN
   ========================= */

.account-menu {
    position: relative;
}

.account-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    padding: 10px;
}

    .account-button strong {
        font-weight: 800;
    }

.account-arrow {
    font-size: 12px;
    margin-left: 2px;
}

.account-button:hover {
    opacity: 0.9;
}

.account-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 170px;
    background: #ffffff;
    border-radius: 7px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 1000;
}

/* Show dropdown when hovering over Account */
.account-menu:hover .account-dropdown {
    display: block;
}

.account-dropdown a {
    display: block;
    padding: 13px 18px;
    color: #333333;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.account-dropdown a:hover {
    background: #fff3e3;
    color: var(--primary-dark);
}
.account-dropdown form {
    margin: 0;
    padding: 0;
}

.account-dropdown form button {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border: none;
    background: #ffffff;
    color: #333333;
    text-align: left;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.account-dropdown form button:hover {
    background: #fff3e3;
    color: var(--primary-dark);
}
/* =========================
   LOGIN PAGE
   ========================= */
.login-page {
    background: #f7f7f7;
    padding: 60px 20px 80px;
    min-height: 650px;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h1 {
        font-size: 34px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .login-header p {
        color: #666;
        font-size: 16px;
    }

.login-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

    .login-card .form-group {
        margin-bottom: 22px;
    }

        .login-card .form-group label {
            display: block;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .login-card .form-group input {
            width: 100%;
            padding: 13px 14px;
            border: 1px solid #ccc;
            border-radius: 6px;
            font-size: 15px;
            box-sizing: border-box;
        }

            .login-card .form-group input:focus {
                outline: none;
                border-color: var(--primary);
                box-shadow: 0 0 0 2px rgba(252, 144, 3, 0.15);
            }


/* Login options */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

    .remember-me input {
        width: 16px;
        height: 16px;
        accent-color: var(--primary);
    }

.login-options a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

    .login-options a:hover {
        text-decoration: underline;
    }


/* Login button */

.login-button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

    .login-button:hover {
        background: var(--primary-dark);
    }


/* Register link */

.login-register {
    text-align: center;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #eee;
}

    .login-register p {
        margin: 0 0 8px;
        color: #666;
    }

.register-link {
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

    .register-link:hover {
        text-decoration: underline;
    }


/* Mobile */

@media (max-width: 600px) {

    .login-page {
        padding: 35px 15px 60px;
    }

    .login-card {
        padding: 25px 20px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.section-description {
    color: #666;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 20px;
}

.form-group select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background: #ffffff;
    box-sizing: border-box;
}

    .form-group select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(252, 144, 3, 0.15);
    }

.profile-notice,
.banking-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
    padding: 15px;
    background: #fff7ed;
    border: 1px solid #ffd8a8;
    border-radius: 7px;
    font-size: 14px;
}

    .profile-notice p,
    .banking-notice p {
        margin: 5px 0 0;
        color: #666;
        line-height: 1.5;
    }

.notice-icon {
    font-size: 20px;
}

/* =========================
   PRICE / PRICING METHOD
   ========================= */

.pricing-method {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 30px;
}

.pricing-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 2px solid #e2e2e2;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

    .pricing-option:hover {
        border-color: #ffd8a8;
        background: #fffaf4;
    }

    .pricing-option:has(input:checked) {
        border-color: var(--primary);
        background: #fff7ed;
    }

    .pricing-option input {
        margin-top: 3px;
        width: 18px;
        height: 18px;
        accent-color: var(--primary);
        flex-shrink: 0;
    }

.pricing-option-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .pricing-option-content strong {
        font-size: 16px;
        font-weight: 800;
    }

    .pricing-option-content span {
        color: #666;
        font-size: 14px;
        line-height: 1.4;
    }


/* Price input */

.price-input-section {
    max-width: 500px;
}

    .price-input-section > label {
        display: block;
        font-weight: 700;
        margin-bottom: 8px;
    }

.price-input {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

    .price-input:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(252, 144, 3, 0.15);
    }

    .price-input > span {
        padding-left: 14px;
        font-size: 18px;
        font-weight: 800;
        color: #555;
    }

    .price-input input[type="text"] {
        flex: 1;
        width: 100%;
        padding: 14px 12px;
        border: none;
        outline: none;
        font-size: 18px;
        font-weight: 700;
    }


/* Calculation */

.payout-calculation {
    margin-top: 25px;
    padding: 20px;
    background: #fff7ed;
    border: 1px solid #ffd8a8;
    border-radius: 8px;
    max-width: 500px;
}

.payout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 16px;
}

    .payout-row strong {
        font-weight: 800;
    }

.payout-divider {
    height: 1px;
    background: #ffd8a8;
    margin: 15px 0;
}

.payout-total {
    font-size: 20px;
    font-weight: 800;
}

    .payout-total strong {
        color: var(--primary-dark);
        font-size: 23px;
    }


/* Explanation */

.pricing-notice {
    margin-top: 20px;
    padding: 15px;
    max-width: 500px;
    background: #f7f7f7;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}

    .pricing-notice strong {
        font-weight: 800;
    }

    .pricing-notice p {
        margin: 5px 0 0;
        color: #666;
        font-size: 14px;
        line-height: 1.5;
    }


/* Mobile */

@media (max-width: 600px) {

    .pricing-option {
        padding: 15px;
    }

    .payout-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .payout-total {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* =========================================================
   LISTING DETAILS PAGE
   ========================================================= */

.listing-page {
    background: #f7f7f7;
    padding: 30px 20px 80px;
    min-height: 700px;
}

.listing-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================
   BREADCRUMB
   ========================= */

.listing-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #777;
}

    .listing-breadcrumb a {
        color: var(--primary-dark);
        text-decoration: none;
        font-weight: 700;
    }

        .listing-breadcrumb a:hover {
            text-decoration: underline;
        }


/* =========================
   MAIN CARD
   ========================= */

.listing-card {
    display: grid;
    grid-template-columns: 55% 45%;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}


/* =========================
   IMAGES
   ========================= */

.listing-images {
    padding: 25px;
    background: #ffffff;
}

.listing-main-image {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
}

    .listing-main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


.listing-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.listing-thumbnail {
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
}

    .listing-thumbnail:hover {
        border-color: var(--primary);
    }

    .listing-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* =========================
   DETAILS
   ========================= */

.listing-details {
    padding: 40px;
    border-left: 1px solid #eee;
}

.listing-category {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.listing-details h1 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 15px;
    font-weight: 800;
}

.listing-condition {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

    .listing-condition strong {
        color: #333;
    }


/* =========================
   PRICE
   ========================= */

.listing-price {
    font-size: 36px;
    font-weight: 900;
    color: #222;
    margin-bottom: 10px;
}

    .listing-price span {
        font-size: 24px;
        margin-right: 2px;
    }

.listing-negotiable {
    display: inline-block;
    background: #fff3e3;
    color: var(--primary-dark);
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 25px;
}


/* =========================
   SELLER
   ========================= */

.seller-box {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 25px;
}

    .seller-box h3 {
        margin: 0 0 12px;
        font-size: 17px;
        font-weight: 800;
    }

.seller-name {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.seller-location {
    color: #555;
    font-size: 14px;
}

.seller-box p {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0 0;
}


/* =========================
   ACTION BUTTONS
   ========================= */

.listing-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buy-button,
.offer-button {
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.buy-button {
    border: none;
    background: var(--primary);
    color: #ffffff;
}

    .buy-button:hover {
        background: var(--primary-dark);
    }

.offer-button {
    background: #ffffff;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

    .offer-button:hover {
        background: #fff7ed;
    }


/* =========================
   SECURITY
   ========================= */

.listing-security {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 7px;
}

    .listing-security > span {
        font-size: 20px;
    }

    .listing-security strong {
        font-weight: 800;
    }

    .listing-security p {
        margin: 5px 0 0;
        color: #666;
        font-size: 13px;
        line-height: 1.5;
    }


/* =========================
   INFORMATION
   ========================= */

.listing-information {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.listing-information-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .listing-information-card h2 {
        margin: 0 0 18px;
        font-size: 22px;
        font-weight: 800;
    }

    .listing-information-card > p {
        color: #555;
        line-height: 1.7;
        margin: 0;
    }


/* =========================
   COLLECTION
   ========================= */

.collection-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.collection-icon {
    font-size: 25px;
}

.collection-info strong {
    font-size: 16px;
}

.collection-info p {
    margin: 6px 0 0;
    color: #666;
    line-height: 1.5;
}


/* =========================
   COLLECTION STEPS
   ========================= */

.collection-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.collection-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

    .collection-step > span {
        width: 32px;
        height: 32px;
        min-width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        color: #ffffff;
        border-radius: 50%;
        font-weight: 800;
    }

    .collection-step strong {
        font-weight: 800;
    }

    .collection-step p {
        margin: 4px 0 0;
        color: #666;
        line-height: 1.5;
    }


/* =========================
   MOBILE
   ========================= */

@media (max-width: 850px) {

    .listing-card {
        grid-template-columns: 1fr;
    }

    .listing-details {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 30px;
    }

    .listing-main-image {
        height: 400px;
    }
}


@media (max-width: 600px) {

    .listing-page {
        padding: 20px 15px 60px;
    }

    .listing-images {
        padding: 15px;
    }

    .listing-details {
        padding: 25px 20px;
    }

        .listing-details h1 {
            font-size: 26px;
        }

    .listing-price {
        font-size: 30px;
    }

    .listing-main-image {
        height: 300px;
    }

    .listing-information-card {
        padding: 22px 18px;
    }

    .listing-breadcrumb {
        font-size: 12px;
    }
}
/* ================================
   Profile Page
   ================================ */
.profile-page {
    padding: 40px 20px 60px;
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

    .profile-header h1 {
        margin-bottom: 8px;
        font-size: 32px;
        font-weight: 800;
        color: #222222;
    }

    .profile-header p {
        margin: 0;
        color: #666666;
        font-size: 15px;
    }

.profile-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    padding: 30px;
}

.profile-section {
    margin-bottom: 30px;
}

    .profile-section:last-of-type {
        margin-bottom: 10px;
    }

    .profile-section h2 {
        margin: 0 0 18px;
        padding-bottom: 10px;
        border-bottom: 2px solid #fff3e3;
        color: var(--primary-dark);
        font-size: 20px;
        font-weight: 800;
    }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 25px;
}

.profile-field {
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 7px;
}

    .profile-field label {
        display: block;
        margin-bottom: 6px;
        color: #777777;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .profile-field div {
        color: #333333;
        font-size: 15px;
        font-weight: 600;
        word-break: break-word;
    }

.profile-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.profile-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 7px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
}

    .profile-button:hover {
        background: var(--primary-dark);
        color: #ffffff;
    }

/* ================================
   Profile Mobile Layout
   ================================ */

@media (max-width: 700px) {

    .profile-page {
        padding: 25px 15px 40px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-header h1 {
        font-size: 27px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fff3e3;
}

.profile-section-header h2 {
    margin: 0;
    padding: 0;
    border: none;
}

.profile-edit-button {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.profile-edit-button:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

.profile-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.profile-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(252, 144, 3, 0.15);
}

.text-danger {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 12px;
    font-weight: 600;
}

.profile-cancel-button {
    background: #777777;
    margin-right: 10px;
}

.profile-cancel-button:hover {
    background: #555555;
}
.profile-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.profile-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(252, 144, 3, 0.15);
}


.banking-delete-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.banking-delete-warning h3 {
    margin: 0 0 6px;
    color: #444444;
    font-size: 16px;
    font-weight: 800;
}

.banking-delete-warning p {
    margin: 0;
    color: #777777;
    font-size: 13px;
}

.banking-delete-button {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: #dc3545;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

    .banking-delete-button:hover {
        background: #b02a37;
    }

.profile-field small {
    display: block;
    margin-top: 6px;
    color: #888888;
    font-size: 11px;
}

@media (max-width: 700px) {

    .banking-delete-section {
        flex-direction: column;
        align-items: stretch;
    }

    .banking-delete-button {
        width: 100%;
    }
}


/* ================================
   Legal Pages
   ================================ */
.legal-page {
    padding: 40px 20px 60px;
}

.legal-container {
    max-width: 950px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 30px;
}

    .legal-header h1 {
        margin-bottom: 8px;
        font-size: 32px;
        font-weight: 800;
        color: #222222;
    }

    .legal-header p {
        margin: 0 0 5px;
        color: var(--primary-dark);
        font-size: 16px;
        font-weight: 700;
    }

    .legal-header small {
        color: #777777;
        font-size: 12px;
    }

.legal-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    padding: 35px 40px;
}

    .legal-card h2 {
        margin: 30px 0 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid #fff3e3;
        color: var(--primary-dark);
        font-size: 19px;
        font-weight: 800;
    }

        .legal-card h2:first-of-type {
            margin-top: 25px;
        }

    .legal-card p {
        margin: 0 0 14px;
        color: #444444;
        font-size: 14px;
        line-height: 1.7;
    }

    .legal-card ul {
        margin: 0 0 18px;
        padding-left: 25px;
    }

    .legal-card li {
        margin-bottom: 7px;
        color: #444444;
        font-size: 14px;
        line-height: 1.6;
    }

.legal-contact {
    margin-top: 20px;
    padding: 18px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 7px;
    color: #444444;
    font-size: 14px;
    line-height: 1.7;
}

.legal-actions {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eeeeee;
}

@media (max-width: 700px) {

    .legal-page {
        padding: 25px 15px 40px;
    }

    .legal-card {
        padding: 25px 20px;
    }

    .legal-header h1 {
        font-size: 27px;
    }

    .legal-card h2 {
        font-size: 18px;
    }

    .legal-card p,
    .legal-card li {
        font-size: 13px;
    }
}


/* ================================
   Registration Legal Modal
   ================================ */
.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.65);
    padding: 30px 20px;
    overflow-y: auto;
}

.legal-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-modal-content {
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    border-bottom: 1px solid #eeeeee;
}

    .legal-modal-header h2 {
        margin: 0;
        color: var(--primary-dark);
        font-size: 21px;
        font-weight: 800;
    }

.legal-modal-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555555;
    font-size: 25px;
    line-height: 36px;
    cursor: pointer;
}

    .legal-modal-close:hover {
        background: #eeeeee;
        color: #222222;
    }

.legal-modal-tabs {
    display: flex;
    border-bottom: 1px solid #eeeeee;
    background: #fafafa;
}

.legal-tab {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #666666;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

    .legal-tab:hover {
        background: #fff3e3;
        color: var(--primary-dark);
    }

    .legal-tab.active {
        border-bottom-color: var(--primary);
        background: #ffffff;
        color: var(--primary-dark);
    }

.legal-modal-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.legal-tab-content {
    display: none;
    height: 100%;
    padding: 20px 25px;
}

    .legal-tab-content.active {
        display: flex;
        flex-direction: column;
    }

    .legal-tab-content h1 {
        margin: 0 0 5px;
        color: #222222;
        font-size: 22px;
        font-weight: 800;
    }

    .legal-tab-content p {
        margin: 0 0 12px;
        color: #666666;
        font-size: 13px;
    }

.legal-modal-frame {
    flex: 1;
    width: 100%;
    min-height: 400px;
    border: 1px solid #eeeeee;
    border-radius: 7px;
    background: #ffffff;
}

.legal-modal-footer {
    padding: 18px 25px;
    border-top: 1px solid #eeeeee;
    background: #ffffff;
}

.legal-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

    .legal-agreement input {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        flex-shrink: 0;
        accent-color: var(--primary);
        cursor: pointer;
    }

    .legal-agreement a {
        color: var(--primary-dark);
        font-weight: 700;
        text-decoration: underline;
    }

        .legal-agreement a:hover {
            color: var(--primary);
        }

.legal-agreement-error {
    display: none;
    margin-top: 8px;
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
}

    .legal-agreement-error.show {
        display: block;
    }

.legal-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.legal-modal-cancel,
.legal-modal-accept {
    padding: 11px 20px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.legal-modal-cancel {
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #555555;
}

    .legal-modal-cancel:hover {
        background: #f5f5f5;
    }

.legal-modal-accept {
    border: none;
    background: var(--primary);
    color: #ffffff;
}

    .legal-modal-accept:hover {
        background: var(--primary-dark);
    }

@media (max-width: 700px) {

    .legal-modal {
        padding: 10px;
    }

    .legal-modal-content {
        max-height: 95vh;
    }

    .legal-modal-header {
        padding: 15px 18px;
    }

    .legal-modal-tabs {
        flex-direction: row;
    }

    .legal-tab {
        padding: 12px 8px;
        font-size: 12px;
    }

    .legal-tab-content {
        padding: 15px;
    }

    .legal-modal-frame {
        min-height: 350px;
    }

    .legal-modal-footer {
        padding: 15px;
    }

    .legal-modal-actions {
        flex-direction: column-reverse;
    }

    .legal-modal-cancel,
    .legal-modal-accept {
        width: 100%;
    }
}