:root {
    --primary: #8C53FE;
    --secondary: #FB641B;
    --accent: #FF9F00;
    --dark: #172337;
    --light: #F8F8F8;
    --white: #FFFFFF;
    --text: #212121;
    --gray: #878787;
    --success: #388E3C;
    --shadow: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--text);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Account Dashboard */
.account-dashboard {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--white);
    border-radius: 20px;
    padding: 20px 0;
    box-shadow: 0 8px 20px var(--shadow);
    transition: all .3s ease;
}

.sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px var(--shadow);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
    background: #fafafa;
    border-radius: 20px 20px 0 0;
}

.user-info {
    flex: 1;
    min-width: 0;
    display: block !important;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 12px rgba(140, 83, 254, 0.4);
}

.user-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
    display: block;
    margin-top: 0px !important;
}

.user-info p {
    font-size: 13px;
    color: var(--gray);
}

/* Navigation Menu */
.profile-nav-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all .3s;
    border-left: 4px solid transparent;
}

.nav-item i {
    font-size: 20px;
    margin-right: 15px;
    color: var(--primary);
    opacity: 0.7;
    width: 25px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(140, 83, 254, 0.08);
    color: var(--primary);
}

.nav-item.active {
    background: rgba(140, 83, 254, 0.15);
    border-left: 4px solid var(--primary);
    color: var(--primary);
}

.nav-item.active i {
    color: var(--primary);
}

/* Main Content */
.main-content {
    flex: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px var(--shadow);
    animation: fadeIn .4s ease-in-out;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

/* Section Title */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.edit-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: .3s;
}

.edit-btn:hover {
    background: #6f3ce4;
}

/* Info Grid & Cards */
/* GRID CONTAINER */
.wishlist-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

/* ROW CARD */
.wishlist-row {
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    width: calc(50% - 9px);
    transition: all 0.3s ease;
    position: relative;
}

.wishlist-row:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
}

/* PRODUCT IMAGE */
.wishlist-thumb {
    width: 90px;
    height: 115px;
    object-fit: cover;
    border-radius: 8px;
}

/* PRODUCT INFO */
.wishlist-info {
    flex: 1;
}

.wishlist-info h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* PRICE */
.price {
    font-size: 15px;
    font-weight: 700;
    color: rgb(25, 135, 84);
}

.mrp {
    font-size: 13px;
    text-decoration: line-through;
    margin-left: 6px;
    color: #888 !important;
}

.discount {
    font-size: 10px;
    margin-left: 6px;
    color: rgb(25 135 84) !important;
    background-color: #d1e7dd;
    padding: 5px;
    border-radius: 5px;
    font-weight: 600;
}

/* BUTTON */
.primary {
    background: #8C53FE;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
}

.primary:hover {
    background: #7437f4;
}

/* REMOVE ICON */
.wishlist-remove {
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
}

.wishlist-remove:hover {
    color: #ff3f3f;
}

.user-avatar i {
    margin-right: 0px !important;
}

/* ===== MOBILE MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .account-dashboard {
        margin-top: 20px;
        gap: 15px;
        padding: 0 5px;
    }

    .sidebar {
        border-radius: 15px;
        overflow: hidden;
        padding: 0px !important;
    }

    .main-content {
        display: none;
        padding: 15px;
        border-radius: 15px;
    }

    .section-title h2 {
        font-size: 18px;
    }

    /* Wishlist Mobile */
    .wishlist-grid {
        gap: 12px;
    }

    /* Wishlist Mobile Modern Row */
    .wishlist-row {
        width: 100%;
        padding: 12px;
        gap: 12px;
        border-radius: 12px;
        align-items: stretch;
    }

    .wishlist-thumb {
        width: 90px;
        height: 110px;
        border-radius: 8px;
        object-fit: cover;
    }

    .wishlist-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-right: 25px;
        /* Space for trash icon */
    }

    .wishlist-info h5 {
        font-size: 14px;
        line-height: 1.4;
        font-weight: 600;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #333;
    }

    .price {
        font-size: 16px;
        margin-bottom: 8px !important;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .mrp {
        font-size: 13px;
    }

    .discount {
        font-size: 10px;
        padding: 2px 6px;
    }

    .primary.btn-sm {
        padding: 8px 15px;
        font-size: 14px;
        width: fit-content;
        border-radius: 8px;
    }

    .primary.btn-sm i {
        margin-right: 5px !important;
    }

    .wishlist-remove {
        position: absolute;
        top: 12px;
        right: 12px;
        background: #f8f8f8;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #888;
    }

    .user-profile {
        padding: 15px;
        background: #fff;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
        box-shadow: 0 4px 10px rgba(140, 83, 254, 0.2);
    }

    .user-avatar img {
        width: 50px !important;
        height: 50px !important;
        margin-right: 0 !important;
    }

    .user-info {
        display: block !important;
        margin-bottom: 0px !important;
    }

    .user-info i {
        margin-left: 0px !important;
    }

    /* Drill-down visibility */
    .account-dashboard.section-active .sidebar {
        display: none;
    }

    .account-dashboard.section-active .main-content {
        display: block;
        width: 100%;
    }

    .mobile-back-link {
        display: flex !important;
        align-items: center;
        gap: 8px;
        color: var(--primary);
        font-size: 16px;
        font-weight: 500;
        /* margin-bottom: 15px; */
        text-decoration: none;
    }

    .mobile-back-link i {
        font-size: 18px;
    }

    .user-info h3 {
        font-size: 17px;
        color: #111;
        margin-bottom: 1px;
        font-weight: 700;
        display: block !important;
    }

    .user-info p {
        font-size: 12px;
        color: #777 !important;
        display: flex;
        align-items: center;
        gap: 4px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(140, 83, 254, 0.3);
    outline: none;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eaeaea;
    font-size: 14px;
}

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

.info-label {
    color: var(--gray);
}

.info-value {
    font-weight: 600;
    color: var(--dark);
}

/* FAQ Section */
.faq-section {
    margin-top: 30px;
}

.faq-title {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
}

.faq-item {
    margin-bottom: 18px;
}

.faq-question {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.faq-answer {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .account-dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .btn-add-new {
        padding: 6px 10px !important;
        border-radius: 6px !important;
    }
}

.coupon-left {
    max-width: 70%;
}

.coupon-discount {
    color: #008000;
    font-weight: bold;
    margin: 0 0 4px;
}

.coupon-condition {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.coupon-right {
    text-align: right;
}

.coupon-valid {
    font-size: 13px;
    color: #666;
    margin: 0 0 6px;
}

.coupon-link {
    font-size: 13px;
    color: #8C53FE;
    text-decoration: none;
}

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

.save-btn {
    background: #8C53FE;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: opacity 0.5s ease;
}

.alert-success {
    background-color: #d1fae5;
    /* Modern soft green */
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    /* Modern soft red */
    color: #991b1b;
    border: 1px solid #fecaca;
}

.file-input-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Premium Profile Image UI */
.profile-image-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #f8fafc;
    position: relative;
}

.profile-image-wrapper img,
.profile-image-wrapper .placeholder-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-wrapper img#image-preview {
    display: none;
}

.profile-image-wrapper .placeholder-icon {
    font-size: 60px;
    color: #cbd5e1;
    background: #f1f5f9;
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(140, 83, 254, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.profile-image-container:hover .profile-image-overlay {
    opacity: 1;
}

.profile-image-overlay i {
    font-size: 24px;
    margin-bottom: 5px;
}

.profile-image-overlay span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.upload-spinner i {
    color: var(--primary);
    font-size: 30px;
    animation: spin-loader 1s linear infinite;
}

@keyframes spin-loader {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.edit-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transition: all 0.3s ease;
}

.profile-image-container:hover .edit-indicator {
    transform: scale(1.1);
    background: #7a3dfc;
}


/* Payment Methods Styles */
.payment-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.payment-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.payment-tab.active {
    background: var(--primary);
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(140, 83, 254, 0.3);
}

.payment-tab:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

.payment-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.payment-content.active {
    display: block;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.add-payment-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.add-payment-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.payment-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.payment-card {
    width: 350px;
    height: 200px;
    position: relative;
    perspective: 1000px;
    margin: 0 auto;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-back {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    transform: rotateY(180deg);
}

.card-front.visa {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
}

.card-front.mastercard {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.card-front.rupay {
    background: linear-gradient(135deg, #00a651 0%, #00d4aa 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-logo {
    width: 50px;
    height: 30px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.card-type {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.card-number {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 20px 0;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder {
    font-size: 14px;
    font-weight: 500;
}

.card-expiry {
    font-size: 14px;
    font-weight: 500;
}

.card-back .cvv-section {
    background: #333;
    height: 40px;
    margin: 20px -20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    color: #333;
    background: white;
    font-weight: bold;
}

.upi-item,
.wallet-item,
.bank-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upi-item:hover,
.wallet-item:hover,
.bank-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(140, 83, 254, 0.1);
    transform: translateY(-2px);
}

.upi-item.default,
.wallet-item.default,
.bank-item.default {
    border-color: #28a745;
    background: #f8fff9;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 12px;
}

.gpay {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.phonepe {
    background: linear-gradient(135deg, #5f259f, #873fb7);
}

.paytm {
    background: linear-gradient(135deg, #00baf2, #0082c6);
}

.cred {
    background: linear-gradient(135deg, #000, #333);
}

.mobikwik {
    background: linear-gradient(135deg, #d32f2f, #f44336);
}

.payment-details h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.payment-details p {
    color: #6c757d;
    font-size: 14px;
}

.payment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.default-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.verified-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    /* display: flex; */
    align-items: center;
    gap: 4px;
}

.action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #6f3ce4;
}

/* Address Section Styles - Updated UI */
.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 991px) {
    .address-grid {
        grid-template-columns: 1fr;
    }
}

.address-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    padding-bottom: 80px;
    /* Space for absolute positioned buttons */
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
    /* Ensure a reasonable minimum height */
}

.address-card:hover {
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.address-card.default-address {
    border: 1.5px solid var(--primary);
    background: linear-gradient(to bottom right, #fbf7ff, #ffffff);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.address-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1f2c;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.address-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-type {
    background: #f1f5f9;
    color: #64748b;
}

.badge-default {
    background: rgba(140, 83, 254, 0.1);
    color: var(--primary);
}

.address-body {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Ensure body takes up available space */
}

.address-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.address-row:last-child {
    margin-bottom: 0;
}

.address-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 14px;
}

.address-text {
    padding-top: 4px;
    font-weight: 500;
}

.address-actions {
    display: flex;
    gap: 12px;
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
}

.btn-address {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-address:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.btn-edit:hover {
    background: rgba(140, 83, 254, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-delete:hover {
    background: #fff1f2;
    border-color: #ffcccb;
    color: #e11d48;
}

.address-empty-state {
    text-align: center;
    padding: 48px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    width: 100%;
    margin: 0 auto;
}

/* Add Button Styling */
.add-address-btn-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-end;
}

.btn-add-new {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(140, 83, 254, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(140, 83, 254, 0.3);
    background: #7a3dfc;
}

/* Modal/Form Styling enhancements */
.address-form {
    border: none !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1) !important;
}

.action-btn.secondary {
    background: #6c757d;
}

.action-btn.secondary:hover {
    background: #545b62;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group select {
    width: 100%;
    padding: 12px;
    padding-right: 30px;
    /* Space for the arrow */
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    appearance: none;
    /* Often needed to style custom arrows, but helps with padding too */
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 10px center;
    background-size: 16px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    vertical-align: text-top;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 7px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #6f3ce4;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

@media (max-width: 768px) {
    .payment-tabs {
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        white-space: nowrap;
        /* padding-bottom: 12px; */
        margin-bottom: 0px !important;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar for cleaner look */
    }

    .payment-tabs::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for Chrome/Safari */
    }

    .payment-tab {
        flex: 0 0 auto;
        padding: 8px 16px !important;
        font-size: 12px !important;
        border-radius: 50px !important;
    }

    .payment-cards-grid {
        grid-template-columns: 1fr;
    }

    .payment-card {
        width: 100%;
        max-width: 350px;
    }

    .payment-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .profile-nav-menu {
        padding: 0px !important;
    }

    .nav-item {
        padding: 13px !important;
        font-size: 16px !important;
    }

    .nav-item i {
        font-size: 21px !important;
        margin-right: 12px !important;
    }

    .user-avatar i {
        font-size: 23px !important;
    }

    .section-title {
        margin-bottom: 7px !important;
        padding-bottom: 7px !important;
    }

    .info-card {
        padding: 20px 0px !important;
    }

    .info-card .wishlist-lock-icon {
        font-size: 40px !important;
    }

    .info-grid,
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0px !important;
    }

    .payment-header h2 {
        font-size: 20px !important;
        margin-top: 14px !important;
        margin-bottom: 0px 9 !important;
    }

    .payment-header div {
        display: flex;
        justify-content: center;
    }
    
    .add-payment-btn {
        padding: 7px;
    }
}