body.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 70% 50% at 0% 50%, rgba(224, 90, 43, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(30, 58, 95, 0.1), transparent 50%),
        var(--bg-surface);
}

.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 960px;
    width: 100%;
}

.auth-info {
    color: var(--text-main);
    animation: slideRight 0.45s ease;
}

.auth-info h1 {
    font-size: 2.4rem;
    margin-bottom: 14px;
    line-height: 1.15;
}

.auth-info > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.65;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.auth-feature:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.auth-feature-icon {
    background: var(--primary-light);
    color: var(--primary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-icon .material-icons-round {
    font-size: 1.25rem;
}

.auth-feature-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-feature-text strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.auth-form {
    background: var(--bg-main);
    padding: 36px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: slideLeft 0.4s ease;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-md);
}

.auth-tab-btn {
    flex: 1;
    padding: 11px 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.925rem;
}

.auth-tab-btn .material-icons-round {
    font-size: 1.1rem;
}

.auth-tab-btn.active {
    background: var(--bg-main);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.auth-form-content {
    display: none;
}

.auth-form-content.active {
    display: block;
    animation: slideUp 0.3s ease;
}

.auth-form .form-group label,
.reset-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.auth-form .form-group input,
.reset-modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    background: var(--bg-main);
    color: var(--text-main);
}

.auth-form .form-group input:focus,
.reset-modal .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-checkbox input {
    width: auto;
    accent-color: var(--primary);
}

.form-checkbox label {
    margin: 0 !important;
    font-weight: 500 !important;
}

.form-link {
    color: var(--primary);
    cursor: pointer;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 4px;
}

.auth-footer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 20px;
}

.auth-footer-text a {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

.auth-header .header-inner {
    justify-content: center;
}

.main-footer.footer-minimal {
    margin-top: auto;
    padding: 24px 0;
}

.main-footer.footer-minimal .footer-content {
    display: none;
}

.main-footer.footer-minimal::before {
    height: 2px;
}

@media (max-width: 1023px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-info {
        display: none;
    }

    .auth-form {
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 639px) {
    .auth-form {
        padding: 24px;
    }
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    margin: 24px 0 56px;
}

.cart-items {
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.cart-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-header h2 .material-icons-round {
    color: var(--primary);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 18px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background var(--transition-base);
}

.cart-item:hover {
    background: var(--bg-surface);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 96px;
    height: 96px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.cart-item-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-main);
}

.cart-item-quantity button {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: background var(--transition-base);
}

.cart-item-quantity button:hover {
    background: var(--bg-light);
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text-main);
}

.cart-item-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    padding: 8px;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    transition: color var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-summary {
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    height: fit-content;
    top: 96px;
    position: sticky;
}

.cart-summary h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.925rem;
    color: var(--text-muted);
}

.summary-item.total {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-display);
}

.promo-code {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.promo-code input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--bg-main);
    color: var(--text-main);
}

.promo-code input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.promo-code button {
    padding: 10px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: background var(--transition-base);
}

.promo-code button:hover {
    background: var(--primary-hover);
}

.cart-secure-note {
    background: var(--bg-surface);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-secure-note strong {
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.cart-secure-note p {
    margin: 0;
    line-height: 1.45;
}

.cart-upsell {
    background: transparent;
    padding: 48px 0 16px;
}

.cart-upsell h2 {
    text-align: center;
    margin-bottom: 28px;
}

.page-title {
    margin: 8px 0 24px;
    font-size: 1.85rem;
}

@media (max-width: 1023px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 639px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 16px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-controls {
        grid-column: 1 / -1;
        justify-content: space-between;
    }
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    margin: 32px 0 56px;
    min-height: 60vh;
}

.profile-sidebar {
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    height: fit-content;
    top: 96px;
    position: sticky;
}

.profile-user-card {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.profile-sidebar .profile-avatar {
    width: 88px;
    height: 88px;
    font-size: 2rem;
    margin-bottom: 14px;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-main);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
}

.profile-nav a:hover {
    background: var(--bg-surface);
    color: var(--primary);
    border-left-color: var(--primary);
}

.profile-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.profile-nav a .material-icons-round {
    font-size: 1.2rem;
}

.profile-content {
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.info-item {
    background: var(--bg-surface);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: border-color var(--transition-base), background var(--transition-base);
}

.info-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.info-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item .val {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.profile-actions {
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

@media (max-width: 1023px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .profile-content {
        padding: 24px;
    }

    .profile-actions .btn {
        width: 100%;
    }
}

.orders-empty {
    text-align: center;
    padding: 72px 24px;
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    margin: 24px 0 56px;
}

.orders-empty .material-icons-round {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.orders-empty h2 {
    margin-bottom: 8px;
}

.orders-empty p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.checkout-panel {
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    height: fit-content;
    position: sticky;
    top: 96px;
}

.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.custom-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.custom-dropdown a:hover {
    background: var(--bg-surface);
}

.checkout-summary {
    margin: 24px 0;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.secure-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-surface);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.secure-badge .material-icons-round {
    color: var(--text-main);
}

.secure-badge strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.secure-badge p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.delivery-methods {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hidden-radio {
    display: none;
}

.delivery-card {
    flex: 1;
    cursor: pointer;
}

.delivery-card-inner {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    background: var(--bg-main);
    transition: all var(--transition-base);
    height: 100%;
    box-sizing: border-box;
}

.delivery-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.delivery-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    line-height: 1.3;
}

.delivery-card .check-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: none;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-main);
    box-shadow: var(--shadow-sm);
}

.delivery-card .check-icon .material-icons-round {
    font-size: 14px;
    font-weight: bold;
}

.delivery-card.active .delivery-card-inner {
    border-color: var(--primary);
    background: var(--primary-light);
}

.delivery-card.active .check-icon {
    display: flex;
}

.reset-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 24, 32, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.reset-modal {
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-step {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.25s ease;
}
.modal-step.active { display: flex; }

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.modal-icon .material-icons-round { font-size: 30px; color: var(--primary); }
.modal-icon--green { background: rgba(13, 159, 110, 0.1); }
.modal-icon--green .material-icons-round { color: var(--success); }

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}
.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}
.modal-subtitle strong { color: var(--text-main); display: block; margin-top: 4px; }

.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}
.otp-digit {
    width: 48px;
    height: 56px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
    background: var(--bg-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    outline: none;
    caret-color: var(--primary);
}
.otp-digit:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
    background: var(--bg-main);
    transform: scale(1.05);
}
.otp-digit:not(:placeholder-shown) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.otp-timer {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.otp-timer strong { color: var(--text-main); }

.reset-modal .auth-submit-btn { width: 100%; margin-bottom: 16px; }

.modal-footer-text { font-size: 13px; color: var(--text-muted); }
.modal-footer-text a { color: var(--primary); font-weight: 500; text-decoration: none; }
.modal-footer-text a:hover { text-decoration: underline; }

.reset-modal .form-group { width: 100%; text-align: left; }

@media (max-width: 480px) {
    .reset-modal { padding: 30px 20px; }
    .otp-digit { width: 40px; height: 50px; font-size: 18px; }
    .otp-inputs { gap: 6px; }
}