: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: 0 20px 20px;
    border-bottom: 1px solid #eee;
    gap: 25px;
}

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

.user-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    display: contents;
}

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

/* Navigation Menu */
.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: 18px;
    margin-right: 15px;
    color: var(--gray);
}

.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: 30px;
    box-shadow: 0 8px 20px var(--shadow);
    animation: fadeIn .4s ease-in-out;
    padding-top: 20px !important;
}

/* 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;
    flex-wrap: wrap;
    gap: 18px;
}

/* ROW CARD */
.wishlist-row{
    background:#fff;
    display:flex;
    align-items:center;
    gap:15px;
    padding:15px;

    border-radius:12px;
    border:1px solid #eee;

    width: calc(50% - 9px);

    transition:.25s ease;
}

.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;
}

/* ===== MOBILE 1 COLUMN ===== */
@media(max-width:768px){
    .wishlist-row{
        width:100%;
    }
}

.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%;
        margin-bottom: 20px;
    }

    .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;
    }
}

.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;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.preview-image {
    width: 120px;
    height: 120px;
    margin-top: 10px;
    border-radius: 50%;
    display: none;
    background:#f4f4f4;
    display:flex;
    align-items:center;
    justify-content:center; 
    margin:auto; 
    margin-bottom:15px;
    border:3px solid #eee;
}

/* 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;
    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: 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;
}

.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;
}

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

@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, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.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: column;
        gap: 5px;
    }
    .payment-cards-grid {
        grid-template-columns: 1fr;
    }
    .payment-card {
        width: 100%;
        max-width: 350px;
    }
    .payment-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}
