/* ═══════════════════════════════════════════════════════
   EURO KING SPORTS — Customer Account Portal
   ═══════════════════════════════════════════════════════ */

/* ─── AUTH PAGES (Login/Register) ─── */
.auth-page {
    min-height: 70vh;
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-light), #fff);
    display: flex;
    align-items: center;
}
.auth-card {
    background: #fff;
    border-radius: 22px;
    padding: 44px 40px;
    max-width: 460px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(26,60,143,0.10);
    border: 1px solid var(--border-light);
}
.auth-card.wide { max-width: 640px; }
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 10px 28px rgba(26,60,143,0.30);
}
.auth-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}
.auth-error {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid rgba(214,48,49,0.2);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}
.auth-success {
    background: #E8F8EE;
    color: #27ae60;
    border: 1px solid rgba(39,174,96,0.2);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}
.auth-form .form-group { margin-bottom: 16px; }
.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.auth-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.auth-form input,
.auth-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-light);
    transition: border-color 0.25s, background 0.25s;
    outline: none;
}
.auth-form input:focus, .auth-form select:focus {
    border-color: var(--blue);
    background: #fff;
}
.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.25s, box-shadow 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,60,143,0.30);
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--blue);
    font-weight: 700;
}
.auth-footer a:hover { text-decoration: underline; }

/* ─── ACCOUNT LAYOUT ─── */
.account-section {
    padding: 50px 0 70px;
    background: var(--bg-light);
    min-height: 60vh;
}
.account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* SIDEBAR */
.account-sidebar {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
}
.account-user {
    padding: 28px 24px 22px;
    text-align: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    position: relative;
    overflow: hidden;
}
.account-user::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: rgba(212,168,67,0.15);
    border-radius: 50%;
}
.account-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--blue-darker);
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,0.18);
    position: relative;
    z-index: 1;
}
.account-user strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.account-user span {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    position: relative;
    z-index: 1;
}
.account-menu { padding: 14px 0; }
.account-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.account-menu a svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}
.account-menu a:hover {
    background: var(--blue-50);
    color: var(--blue);
}
.account-menu a:hover svg { color: var(--blue); }
.account-menu a.active {
    background: var(--blue-50);
    color: var(--blue);
    border-left-color: var(--blue);
    font-weight: 600;
}
.account-menu a.active svg { color: var(--blue); }
.account-menu a.danger { color: var(--red); }
.account-menu a.danger:hover { background: var(--red-light); }
.account-menu a .badge {
    margin-left: auto;
    background: var(--blue);
    color: #fff;
    padding: 2px 9px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 700;
}

/* MAIN AREA */
.account-main {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 32px 36px;
}
.account-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--border-light);
}
.account-page-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.account-page-header p {
    color: var(--text-muted);
    font-size: 13px;
}

/* WELCOME CARDS (dashboard) */
.welcome-card {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.welcome-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(212,168,67,0.12);
    border-radius: 50%;
}
.welcome-card h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    margin-bottom: 6px;
    position: relative;
}
.welcome-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    position: relative;
}
.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.acc-stat {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 22px 20px;
    text-align: left;
    transition: transform 0.25s, box-shadow 0.25s;
}
.acc-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26,60,143,0.06);
}
.acc-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.acc-stat-icon.blue { background: var(--blue-light); color: var(--blue); }
.acc-stat-icon.gold { background: var(--gold-light); color: var(--gold-dark); }
.acc-stat-icon.green { background: #E8F8EE; color: #27ae60; }
.acc-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 3px;
}
.acc-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ORDER LIST */
.order-list { display: flex; flex-direction: column; gap: 14px; }
.order-card {
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    padding: 20px 24px;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.order-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 20px rgba(26,60,143,0.06);
}
.order-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}
.order-num {
    font-weight: 800;
    color: var(--blue);
    font-size: 14px;
}
.order-num small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}
.order-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.os-pending { background: var(--orange-light); color: var(--orange); }
.os-processing { background: var(--blue-light); color: var(--blue); }
.os-shipped { background: #F3E8F8; color: #8E44AD; }
.os-delivered { background: #E8F8EE; color: #27ae60; }
.os-cancelled { background: var(--red-light); color: var(--red); }
.order-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.order-thumbs {
    display: flex;
    gap: 6px;
}
.order-thumbs img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.order-info {
    flex: 1;
}
.order-info-item {
    font-size: 12px;
    color: var(--text-muted);
}
.order-info-item strong {
    color: var(--text-dark);
    font-weight: 700;
}
.order-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--blue);
}
.btn-view-order {
    padding: 9px 18px;
    background: var(--blue);
    color: #fff;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-view-order:hover { background: var(--blue-dark); color: #fff; }

/* ORDER DETAIL — STATUS TIMELINE */
.status-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 40px;
    position: relative;
    padding: 0 20px;
}
.status-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: var(--border);
    z-index: 0;
}
.status-step {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}
.status-step-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin: 0 auto 12px;
    transition: all 0.3s;
}
.status-step.active .status-step-icon {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,60,143,0.30);
}
.status-step.completed .status-step-icon {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}
.status-step.cancelled .status-step-icon {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.status-step strong {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.status-step.active strong, .status-step.completed strong {
    color: var(--text-dark);
}
.status-step small {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}
.status-step.active::before, .status-step.completed::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -50%;
    right: 50%;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, var(--blue));
    z-index: 0;
}
.status-step:first-child::before { display: none; }

.order-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}
.order-section {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 18px;
}
.order-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}
.order-items-list .order-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.order-items-list .order-item-row:last-child { border-bottom: none; }
.order-items-list img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.order-items-list .item-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}
.order-items-list .item-qty {
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 14px;
}
.order-items-list .item-total {
    font-weight: 700;
    color: var(--blue);
    font-size: 14px;
}
.order-totals {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--border-light);
}
.order-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-body);
    margin-bottom: 8px;
}
.order-totals-row strong { color: var(--text-dark); }
.order-totals-row.grand {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 700;
}
.order-totals-row.grand strong {
    color: var(--blue);
    font-size: 20px;
    font-weight: 800;
}

.order-info-block {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.7;
}
.order-info-block strong {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 13px;
}

.tracking-box {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: 12px;
    padding: 18px 20px;
    color: #fff;
    margin-bottom: 18px;
}
.tracking-box small {
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}
.tracking-box strong {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 1px;
}

/* PROFILE FORM */
.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.profile-form .form-group {
    margin-bottom: 16px;
}
.profile-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.profile-form input,
.profile-form select,
.profile-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-light);
    outline: none;
    transition: border-color 0.25s, background 0.25s;
}
.profile-form input:focus, .profile-form select:focus, .profile-form textarea:focus {
    border-color: var(--blue);
    background: #fff;
}
.btn-save {
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,60,143,0.30);
}

/* WISHLIST */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.wishlist-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.wishlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(26,60,143,0.10);
}
.wishlist-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.wishlist-card-body {
    padding: 14px 16px;
}
.wishlist-card-body h4 {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}
.wishlist-card-body .price {
    color: var(--blue);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
}
.wishlist-card-actions {
    display: flex;
    gap: 6px;
}
.wishlist-card-actions a {
    flex: 1;
    padding: 8px;
    text-align: center;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.wishlist-card-actions .btn-add {
    background: var(--blue);
    color: #fff;
}
.wishlist-card-actions .btn-add:hover { background: var(--blue-dark); color: #fff; }
.wishlist-card-actions .btn-remove {
    background: var(--red-light);
    color: var(--red);
}
.wishlist-card-actions .btn-remove:hover { background: var(--red); color: #fff; }

.empty-state-acc {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state-acc svg {
    margin: 0 auto 16px;
    color: var(--text-muted);
    opacity: 0.4;
}
.empty-state-acc h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 8px;
}
.empty-state-acc p { margin-bottom: 18px; font-size: 14px; }
.empty-state-acc a {
    display: inline-block;
    padding: 12px 28px;
    background: var(--blue);
    color: #fff;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}
.empty-state-acc a:hover { background: var(--blue-dark); color: #fff; }

/* PAYMENT METHODS — Checkout */
.payment-method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.payment-method-list .payment-option {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s;
    align-items: center;
}
.payment-method-list .payment-option .method-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.payment-method-list .payment-option:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue-50);
}
.payment-method-list .payment-option:has(input:checked) .method-icon {
    background: var(--blue);
    color: #fff;
}

/* PayPal special option */
.payment-option-paypal {
    align-items: flex-start !important;
}
.payment-option-paypal .paypal-info {
    flex: 1;
}
.payment-option-paypal:has(input:checked) {
    border-color: #003087 !important;
    background: linear-gradient(135deg, rgba(0,48,135,0.04), rgba(0,156,222,0.04)) !important;
}
.payment-option-paypal:has(input:checked) .method-icon {
    background: linear-gradient(135deg,#003087,#009cde) !important;
}
.card-icons {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.card-chip {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff !important;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.card-chip.card-visa {
    background: linear-gradient(135deg, #1a1f71, #0f4c9d);
}
.card-chip.card-mc {
    background: linear-gradient(135deg, #cc0000, #d4760e);
}
.card-chip.card-amex {
    background: linear-gradient(135deg, #006fcf, #1788e0);
}
.card-chip.card-paypal {
    background: linear-gradient(135deg, #003087, #009cde);
}

@media (max-width: 1024px) {
    .account-grid { grid-template-columns: 240px 1fr; gap: 20px; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
    .account-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
    .account-grid { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .account-main { padding: 24px 20px; }
    .auth-form .form-row { grid-template-columns: 1fr; }
    .profile-form .form-row { grid-template-columns: 1fr; }
    .wishlist-grid { grid-template-columns: 1fr; }
    .account-stats { grid-template-columns: 1fr; }
    .order-card-body { flex-direction: column; align-items: flex-start; gap: 14px; }
    .status-timeline { padding: 0; flex-wrap: wrap; gap: 18px; }
    .status-timeline::before { display: none; }
    .status-step { flex: 1 1 30%; }
    .status-step-icon { width: 44px; height: 44px; }
}
