/* My Account Dashboard — Premium Design */

:root {
    --dashboard-bg: radial-gradient(circle at top, #fff8fb 0%, #f5f7ff 45%, #ffffff 100%);
    --card-bg: #ffffff;
    --card-border: rgba(23, 23, 37, 0.08);
    --text-dark: #1f1f2b;
    --text-soft: #6b6b83;
    --text-muted: #9da2b9;
    --primary: #f26a30;
    --primary-soft: rgba(242, 106, 48, 0.12);
    --radius-large: 28px;
}

.account-main {
    background: transparent;
    padding: 0;
    border: none;
    position: relative;
    overflow: visible;
}

.account-main::after {
    display: none;
}

.dashboard-content-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0; /* Prevent overflow */
}

.dashboard-shell {
    display: flex;
    gap: 32px;
    flex-direction: row-reverse;
    align-items: flex-start;
}

.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dashboard-section {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.dashboard-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-menu {
    display: none; /* Hide since we use account-sidebar */
}

/* Wallet section at top of overview - always visible */
.wallet-section-top {
    margin-bottom: 30px;
    display: block !important;
}

.wallet-section-top .dashboard-card {
    margin-bottom: 0;
}

/* Ensure wallet section is visible when inside overview */
#dashboard-section-overview #dashboard-section-wallet,
#dashboard-section-overview .wallet-section-top {
    display: block !important;
}

.dashboard-content-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.account-page .menu-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.account-page .menu-header strong {
    display: block;
    font-size: 20px;
    margin: 6px 0;
    color: var(--text-dark);
}

.account-page .menu-header p {
    font-size: 13px;
    color: var(--text-soft);
    margin: 0;
}

.account-page .menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.account-page .menu-item {
    width: 100%;
    border: 1px solid rgba(23, 23, 37, 0.08);
    border-radius: 20px;
    padding: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.account-page .menu-item.active {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(242, 106, 48, 0.08), rgba(242, 106, 48, 0.18));
    box-shadow: 0 18px 40px rgba(242, 106, 48, 0.25);
}

.account-page .menu-item-text span {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
}

.account-page .menu-item-text small {
    color: var(--text-soft);
    font-size: 12px;
}

.account-page .menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(242, 106, 48, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.account-page .menu-item.active .menu-icon {
    background: #fff;
    color: var(--primary);
}

.account-page .menu-arrow {
    margin-right: auto;
    color: var(--text-muted);
}

.account-page .menu-item.active .menu-arrow {
    color: var(--primary);
}

.account-page .menu-footer {
    padding: 16px;
    border-radius: 18px;
    background: rgba(23, 23, 37, 0.04);
    text-align: center;
}

.account-page .menu-footer p {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.account-page .menu-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.dashboard-welcome {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    border-radius: 32px;
    padding: 36px;
    background: linear-gradient(120deg, #1b1d4b 0%, #45226d 50%, #f26a30 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='400' height='400'%3E%3Ccircle cx='200' cy='200' r='170' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3Ccircle cx='200' cy='200' r='120' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.7;
}

.welcome-content,
.welcome-glance {
    position: relative;
    z-index: 2;
}

.welcome-tagline {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 12px;
}

.welcome-content h1 {
    font-size: 34px;
    margin: 0 0 12px;
    font-weight: 800;
}

.welcome-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.welcome-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
    padding: 12px 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fff;
    color: #1b1d4b;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-primary.btn-small,
.btn-ghost.small {
    padding: 10px 20px;
    border-radius: 16px;
    font-size: 13px;
}

.btn-ghost.small {
    border: 1px solid rgba(23, 23, 37, 0.12);
    color: var(--text-dark);
    background: #fff;
}

.btn-ghost.small.primary {
    color: var(--primary);
    border-color: rgba(242, 106, 48, 0.4);
}

.welcome-glance {
    display: grid;
    gap: 16px;
}

.glance-card {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 18px 22px;
    backdrop-filter: blur(6px);
}

.glance-card span {
    font-size: 13px;
    opacity: 0.9;
}

.glance-card strong {
    display: block;
    font-size: 24px;
    margin-top: 6px;
}

.glance-card.accent {
    background: rgba(255, 255, 255, 0.25);
}

.glance-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Dashboard cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 26px;
    border: 1px solid var(--card-border);
    padding: 24px 28px;
    box-shadow: 0 25px 50px rgba(30, 30, 60, 0.08);
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.section-caption {
    font-size: 13px;
    color: var(--text-soft);
}

.view-all-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Quick actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.quick-action-item {
    border: 1px solid rgba(23, 23, 37, 0.08);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.quick-action-item:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(242, 106, 48, 0.1);
}

/* Wallet Styles */
.wallet-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wallet-balance-card {
    background: linear-gradient(135deg, #f26a30 0%, #f2844a 100%);
    border-radius: 24px;
    padding: 32px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(242, 106, 48, 0.3);
}

.wallet-balance-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.wallet-balance-header i {
    font-size: 48px;
    opacity: 0.9;
}

.wallet-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.wallet-amount {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.wallet-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wallet-actions .btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wallet-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.wallet-actions .btn-primary {
    background: #fff;
    color: #f26a30;
    border-color: #fff;
}

.wallet-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.wallet-bank-details {
    margin-top: 20px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.wallet-bank-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wallet-bank-details-header span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.wallet-bank-details-header p {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.wallet-bank-details-header i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.wallet-bank-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.wallet-bank-detail {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wallet-bank-detail span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.wallet-bank-detail strong {
    font-size: 15px;
    letter-spacing: 1px;
    color: #fff;
    direction: ltr;
    display: block;
}

.wallet-transactions h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px 0;
}

/* Points Summary */
.points-summary {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.points-summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.points-summary-item span {
    font-size: 0.85rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

.points-summary-item strong {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

/* Points card styling - align with primary brand colors (no strong yellow) */
.wallet-content .wallet-balance-card:has(#points-balance-display) {
    background: linear-gradient(135deg, #f26a30 0%, #f2844a 100%);
    box-shadow: 0 20px 60px rgba(242, 106, 48, 0.3);
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(23, 23, 37, 0.08);
    border-radius: 16px;
    transition: all 0.3s;
}

.transaction-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(242, 106, 48, 0.1);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.transaction-item.credit .transaction-icon {
    background: rgba(63, 89, 94, 0.1);
    color: #3f595e;
}

.transaction-item.debit .transaction-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-type {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.transaction-description {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.transaction-order {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount {
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.transaction-amount.credit {
    color: #3f595e;
}

.transaction-amount.debit {
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-soft);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.action-icon.profile { background: linear-gradient(135deg, #6f7dff, #9a7bff); }
.action-icon.address { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.action-icon.orders { background: linear-gradient(135deg, #ff8e53, #fe6b8b); }
.action-icon.shop { background: linear-gradient(135deg, #fddb92, #d1fdff); color: #1f1f2b; }

.quick-action-item p {
    margin: 0 0 4px 0;
    font-weight: 700;
    color: var(--text-dark);
}

.quick-action-item span {
    font-size: 12px;
    color: var(--text-soft);
}

.action-arrow {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.quick-action-item:hover .action-arrow {
    transform: translateX(-4px);
    color: var(--primary);
}

/* Orders status */
.orders-status-grid {
    display: grid;
    gap: 16px;
}

.status-card {
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(23, 23, 37, 0.08);
}

.status-card.current { background: linear-gradient(135deg, rgba(52, 172, 224, 0.15), rgba(52, 172, 224, 0.05)); }
.status-card.delivered { background: linear-gradient(135deg, rgba(63, 89, 94, 0.15), rgba(63, 89, 94, 0.05)); }
.status-card.returned { background: linear-gradient(135deg, rgba(255, 152, 0, 0.18), rgba(255, 152, 0, 0.05)); }

.status-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1f1f2b;
}

.status-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.status-card strong {
    font-size: 26px;
    color: var(--text-dark);
    display: block;
}

/* Orders area */
.orders-area {
    margin-top: 32px;
    padding: 28px 32px;
    border-radius: 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 25px 60px rgba(23, 23, 37, 0.06);
}

.orders-area .empty-state {
    display: none;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(242, 106, 48, 0.25);
    border-radius: 32px;
    padding: 60px 30px;
    background: linear-gradient(180deg, rgba(255, 250, 247, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.orders-area .empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.orders-area .empty-state-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.orders-area .empty-state .empty-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: rgba(242, 106, 48, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #f26a30;
    box-shadow: inset 0 0 0 1px rgba(242, 106, 48, 0.08);
}

.orders-area .empty-state h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}

.orders-area .empty-state p {
    font-size: 15px;
    color: var(--text-soft);
    margin: 0;
}

.orders-area .empty-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 14px 36px;
    border-radius: 999px;
    background: #f26a30;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(242, 106, 48, 0.25);
    text-decoration: none;
}

.orders-area .empty-cta-btn:hover {
    transform: translateY(-2px);
}

.orders-area.orders-expanded {
    margin-top: 0;
}

.orders-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.orders-body {
    margin-top: 8px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.order-card {
    border-radius: 22px;
    border: 1px solid rgba(23, 23, 37, 0.08);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: var(--primary);
    box-shadow: 0 18px 30px rgba(242, 106, 48, 0.1);
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.order-number {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.order-status-badge {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.order-status-badge.registered { background: #fff3cd; color: #856404; }
.order-status-badge.paid { background: #9facaf; color: #0f2f36; }
.order-status-badge.awaiting_confirmation { background: #ffe0b2; color: #e65100; }
.order-status-badge.preparing { background: #bbdefb; color: #0d47a1; }
.order-status-badge.shipped { background: #b2ebf2; color: #006064; }
.order-status-badge.delivered { background: #9facaf; color: #0f2f36; }
.order-status-badge.returned { background: #ffe0e3; color: #c62828; }
.order-status-badge.cancelled { background: #eceff1; color: #546e7a; }

.order-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.order-side {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.empty-state.secondary {
    background: rgba(23, 23, 37, 0.02);
    border-radius: 24px;
}

.addresses-card #address-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.address-loading {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(23, 23, 37, 0.03);
    color: var(--text-soft);
    font-size: 14px;
}

.loading-spinner.small {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.address-summary-card {
    border-radius: 22px;
    border: 1px dashed rgba(23, 23, 37, 0.2);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(23, 23, 37, 0.02);
}

.address-summary-card .address-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.address-summary-card .address-title-row p {
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
}

.address-summary-card .address-title-row a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.address-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.address-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.address-meta div {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

.address-empty {
    text-align: center;
    padding: 40px 20px;
    border-radius: 22px;
    border: 1px dashed rgba(23, 23, 37, 0.2);
    background: rgba(255, 255, 255, 0.6);
}

.address-empty i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}

.address-empty p {
    color: var(--text-soft);
}

.address-tips {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(23, 23, 37, 0.04);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.address-tips strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.address-tips p {
    color: var(--text-soft);
    margin: 0;
    font-size: 13px;
}

.address-tips-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.support-card .support-body {
    display: grid;
    gap: 16px;
}

.support-highlight {
    border: 1px solid rgba(23, 23, 37, 0.08);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(23, 23, 37, 0.02);
}

.support-highlight i {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(242, 106, 48, 0.08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.support-highlight p {
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
}

.support-highlight small {
    color: var(--text-soft);
}

.support-highlight a {
    margin-right: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.support-help {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(242, 106, 48, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.support-help strong {
    color: var(--text-dark);
}

.support-help p {
    color: var(--text-soft);
    margin: 4px 0 0;
}

.order-total-label {
    font-size: 12px;
    color: var(--text-muted);
}

.order-total-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.order-action-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.order-card:hover .order-action-btn {
    background: var(--primary);
    color: #fff;
}

/* Empty / loading / error */
.empty-state,
.loading-state,
.error-state {
    text-align: center;
    padding: 70px 20px;
}

.empty-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-state h3,
.error-state h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.empty-state p,
.error-state p,
.loading-state p {
    font-size: 14px;
    color: var(--text-soft);
    margin: 0 0 20px;
    line-height: 1.7;
}

.empty-cta-btn {
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(242, 106, 48, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tickets */
.tickets-card {
    margin-top: 24px;
}

.tickets-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tickets-actions .btn-primary,
.tickets-actions .btn-ghost {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tickets-actions .btn-ghost {
    background: transparent;
    border: 1px dashed rgba(15, 15, 20, 0.2);
    color: var(--text-dark);
}

#ticket-form-wrapper {
    animation: fadeInUp 0.3s ease;
}

.ticket-form-card {
    border: 1px dashed rgba(242, 106, 48, 0.3);
    border-radius: 24px;
    padding: 20px;
    background: rgba(242, 106, 48, 0.04);
    margin-bottom: 18px;
}

.ticket-form-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket-form-card label span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
    display: inline-block;
}

.ticket-form-card input,
.ticket-form-card select,
.ticket-form-card textarea {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(23, 23, 37, 0.15);
    font-size: 14px;
    font-family: inherit;
}

.ticket-form-card .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ticket-form-card .form-row.two-cols > label {
    flex: 1;
}

.ticket-form-card .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket-card {
    border: 1px solid rgba(23, 23, 37, 0.08);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    transition: all 0.2s;
}

.ticket-card:hover {
    border-color: rgba(242, 106, 48, 0.6);
    box-shadow: 0 15px 30px rgba(23, 23, 37, 0.08);
}

.ticket-card-header {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.ticket-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.ticket-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-soft);
}

.ticket-status-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ticket-status-pill.open { background: rgba(96, 165, 250, 0.15); color: #1d4ed8; }
.ticket-status-pill.awaiting_admin { background: rgba(251, 146, 60, 0.15); color: #c2410c; }
.ticket-status-pill.awaiting_user { background: rgba(52, 211, 153, 0.15); color: #047857; }
.ticket-status-pill.closed { background: rgba(148, 163, 184, 0.2); color: #334155; }

.ticket-priority {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
}

.ticket-priority.high { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.ticket-priority.normal { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.ticket-priority.low { background: rgba(16, 185, 129, 0.12); color: #047857; }

.ticket-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-card-actions button {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
}

.ticket-card-actions .btn-outline {
    border: 1px solid rgba(23, 23, 37, 0.15);
    background: transparent;
    color: var(--text-dark);
}

.tickets-empty-state {
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed rgba(242, 106, 48, 0.25);
    border-radius: 28px;
    background: rgba(242, 106, 48, 0.03);
}

.ticket-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.ticket-modal.show {
    display: flex;
}

.ticket-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ticket-modal-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    width: min(920px, 95%);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 70px rgba(15, 47, 54, 0.2);
}

.ticket-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.ticket-modal-body {
    padding: 28px 32px;
    overflow-y: auto;
}

.ticket-modal-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 47, 54, 0.08);
}

.ticket-modal-header-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-status-chip,
.ticket-priority-chip {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
}

.ticket-status-chip.open { background: rgba(96, 165, 250, 0.15); color: #1d4ed8; }
.ticket-status-chip.awaiting_admin { background: rgba(251, 146, 60, 0.18); color: #b45309; }
.ticket-status-chip.awaiting_user { background: rgba(52, 211, 153, 0.18); color: #047857; }
.ticket-status-chip.closed { background: rgba(148, 163, 184, 0.2); color: #334155; }

.ticket-priority-chip.low { background: rgba(190, 242, 100, 0.25); color: #4d7c0f; }
.ticket-priority-chip.normal { background: rgba(59, 130, 246, 0.18); color: #1d4ed8; }
.ticket-priority-chip.high { background: rgba(248, 113, 113, 0.2); color: #b91c1c; }

.ticket-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}

.ticket-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--text-soft);
}

.ticket-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 47, 54, 0.04);
    padding: 6px 12px;
    border-radius: 12px;
}

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 4px;
}

.ticket-message-row {
    display: flex;
}

.ticket-message-row.align-right {
    justify-content: flex-end;
}

.ticket-message-row.align-left {
    justify-content: flex-start;
}

.ticket-message-bubble {
    max-width: min(440px, 85%);
    border-radius: 20px;
    padding: 14px 16px;
    box-shadow: 0 12px 28px rgba(15, 47, 54, 0.08);
}

.ticket-message-bubble.from-user {
    background: #fff4ec;
    border: 1px solid rgba(242, 106, 48, 0.25);
}

.ticket-message-bubble.from-admin {
    background: #f2f4ff;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.ticket-message-author {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.ticket-message-bubble p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.7;
}

.ticket-reply-form {
    border-top: 1px solid rgba(15, 47, 54, 0.08);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-reply-form textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(15, 47, 54, 0.15);
    padding: 12px;
    font-family: inherit;
    resize: vertical;
}

.ticket-reply-form button {
    align-self: flex-end;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    background: linear-gradient(120deg, #f97316, #f26a30);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-shell {
        flex-direction: column;
    }

    .dashboard-menu {
        width: 100%;
        position: relative;
    }
    
    .dashboard-content-wrapper {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .account-main {
        padding: 0;
    }

    .dashboard-welcome {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .dashboard-content-wrapper {
        gap: 24px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .account-page .menu-items {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .account-page .menu-item {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .account-main {
        padding: 0;
    }

    .dashboard-welcome {
        padding: 20px;
        border-radius: 24px;
    }

    .welcome-content h1 {
        font-size: 28px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }

    .welcome-actions {
        flex-direction: column;
    }

    .welcome-actions .btn-primary,
    .welcome-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .dashboard-card,
    .orders-area {
        padding: 16px;
        border-radius: 20px;
    }

    .dashboard-grid {
        gap: 16px;
        margin-top: 24px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-action-item {
        padding: 16px;
    }

    .order-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .order-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .order-side {
        align-items: flex-start;
        text-align: right;
    }

    .glance-card {
        padding: 14px 18px;
    }

    .glance-card strong {
        font-size: 20px;
    }

    .account-page .menu-items {
        flex-direction: column;
    }

    .account-page .menu-item {
        flex: 1 1 100%;
    }

    .ticket-form-card .form-row {
        flex-direction: column;
    }

    .tickets-actions {
        flex-direction: column;
        align-items: stretch;
    }
}


