/* Account Pages Layout */
.account-page {
    background: linear-gradient(135deg, #f9f7fb 0%, #f5f2f8 100%);
    padding: 40px 0 60px;
    min-height: calc(100vh - var(--wd-header-h, 160px));
}

.account-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.account-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
    margin-top: 30px;
}

.account-card {
    background: linear-gradient(135deg, #fff 0%, #fdf2f7 100%);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(242, 106, 48, 0.12);
    border: 1px solid rgba(242, 106, 48, 0.08);
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f26a30 0%, #ffb07b 100%);
}

.auth-card {
    background: #fff;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 24px 60px rgba(15, 47, 54, 0.08);
    border: 1px solid rgba(15, 47, 54, 0.08);
}

.auth-card::before {
    display: none;
}

.auth-card-header {
    margin-bottom: 24px;
}

.auth-card-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: #0f2f36;
}

.auth-card-header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.auth-hero-panel {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 45%), linear-gradient(145deg, #0f2f36 0%, #0b1c26 85%);
    color: #fff;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 20px 70px rgba(3, 11, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.auth-hero-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(242, 106, 48, 0.35), transparent 45%);
    pointer-events: none;
}

.auth-hero-panel > * {
    position: relative;
    z-index: 1;
}

.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.auth-hero-panel h1 {
    font-size: 32px;
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 800;
}

.auth-hero-panel p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 24px;
    line-height: 1.8;
}

.auth-perks-list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-perks-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.auth-perks-list i {
    color: #facc15;
}

.auth-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.auth-stat {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

.auth-support-card {
    background: rgba(15, 15, 20, 0.45);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-support-card strong {
    font-size: 16px;
    color: #fff;
}

.auth-support-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.75);
}

.support-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(242, 106, 48, 0.12);
    border: 1px solid rgba(242, 106, 48, 0.35);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.support-phone i {
    color: #facc15;
}

.account-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: #f9f7fb;
    padding: 6px;
    border-radius: 12px;
}

.account-tabs button {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6a6a6a;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.account-tabs button:hover {
    color: #1e1e1e;
}

.account-tabs button.active {
    background: #fff;
    color: #f26a30;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form {
    background: #fff;
    border: 1px solid rgba(15, 47, 54, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auth-form + .auth-form {
    margin-top: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #434343;
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #f26a3033;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f26a30;
    outline: none;
    box-shadow: 0 0 0 4px #f26a302e;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field input {
    padding-right: 44px;
}

.input-icon {
    position: absolute;
    right: 16px;
    color: #a0aec0;
    font-size: 14px;
    pointer-events: none;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forgot-pass-btn {
    border: none;
    background: none;
    color: #f26a30;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.forgot-pass-btn:hover {
    color: #0f2f36;
}

.form-note {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
}

.form-note a {
    color: #f26a30;
    text-decoration: underline;
}

.required {
    color: #f26a30;
}

.auth-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.auth-message.success {
    background: #0f2f3620;
    color: #0f2f36;
    border: 1px solid #0f2f3640;
}

.auth-message.error {
    background: #f26a3020;
    color: #f26a30;
    border: 1px solid #f26a3040;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f26a3014;
    border-top-color: #f26a30;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: #6a6a6a;
    font-size: 15px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #f26a30;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #1e1e1e;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.empty-state p {
    color: #6a6a6a;
    font-size: 16px;
    margin: 0;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
    align-items: start;
}

/* Account Sidebar */
.account-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    z-index: 10;
}

.account-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-avatar i {
    font-size: 20px;
    color: #6a6a6a;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-info h3 {
    color: #1e1e1e;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info p {
    color: #6a6a6a;
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Services */
.sidebar-services {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.service-item {
    margin-bottom: 16px;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-label {
    color: #6a6a6a;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.service-value {
    color: #1e1e1e;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f26a30;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.service-link:hover {
    color: #ffb07b;
    gap: 6px;
    text-decoration: none;
}

.service-link i {
    font-size: 9px;
}

/* Sidebar Navigation */
.account-sidebar-nav {
    padding: 12px 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #434343;
    text-decoration: none;
    transition: all 0.2s;
    border-right: 3px solid transparent;
    cursor: pointer;
    background: none;
    border-top: none;
    border-bottom: none;
    border-left: none;
    width: 100%;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
}

.sidebar-nav-item button {
    all: unset;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-nav-item:hover {
    background: #fafafa;
    color: #f26a30;
}

.sidebar-nav-item.active {
    background: #fafafa;
    color: #f26a30;
    border-right-color: #f26a30;
    font-weight: 600;
}

.nav-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-nav-item:hover .nav-icon,
.sidebar-nav-item.active .nav-icon {
    background: rgba(242, 106, 48, 0.1);
    color: #f26a30;
}

.nav-icon i {
    font-size: 16px;
    color: #6a6a6a;
}

.sidebar-nav-item:hover .nav-icon i,
.sidebar-nav-item.active .nav-icon i {
    color: #f26a30;
}

.sidebar-nav-item span {
    flex: 1;
}

.nav-arrow {
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s;
}

.sidebar-nav-item:hover .nav-arrow,
.sidebar-nav-item.active .nav-arrow {
    opacity: 1;
    transform: translateX(-4px);
}

.logout-btn {
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.sidebar-shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f26a30;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
}

.sidebar-shop-btn:hover {
    background: #ffb07b;
    text-decoration: none;
    color: #fff;
}

/* Account Main Content */
.account-main {
    background: transparent;
    padding: 0;
    scroll-margin-top: 0;
    min-width: 0; /* Prevent grid overflow */
    width: 100%;
}

/* Ensure page starts at top */
.account-page {
    scroll-behavior: smooth;
}

.account-container {
    scroll-margin-top: 0;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    color: #1e1e1e;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f26a30 0%, #ffb07b 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(242, 106, 48, 0.3);
}

.page-header-icon i {
    font-size: 28px;
    color: #fff;
}

.page-header p {
    color: #6a6a6a;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* Welcome Header (Dashboard) */
.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-avatar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f26a30 0%, #ffb07b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(242, 106, 48, 0.3);
}

.avatar-circle i {
    font-size: 36px;
    color: #fff;
}

.welcome-text h1 {
    color: #1e1e1e;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.welcome-text h1 span {
    background: linear-gradient(135deg, #f26a30 0%, #ffb07b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text p {
    color: #6a6a6a;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.welcome-stats {
    display: flex;
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(242, 106, 48, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(242, 106, 48, 0.15);
}

.stat-icon {
    font-size: 28px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-info span {
    font-size: 20px;
    font-weight: 800;
    color: #1e1e1e;
    line-height: 1;
}

.stat-info label {
    font-size: 12px;
    color: #6a6a6a;
    font-weight: 600;
}

/* Quick Info Cards */
.quick-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #f26a30 0%, #ffb07b 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(242, 106, 48, 0.15);
    border-color: rgba(242, 106, 48, 0.2);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
}

.info-label {
    display: block;
    color: #6a6a6a;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.info-value {
    color: #1e1e1e;
    font-size: 16px;
    font-weight: 700;
    word-break: break-all;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f26a30 0%, #ffb07b 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(242, 106, 48, 0.18);
    border-color: rgba(242, 106, 48, 0.3);
    text-decoration: none;
}

.action-card:hover::before {
    opacity: 1;
}

.action-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    color: #1e1e1e;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.action-content p {
    color: #6a6a6a;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.action-arrow {
    color: #f26a30;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s;
}

.action-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1200px) {
    .account-auth-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .auth-card,
    .auth-hero-panel {
        padding: 32px;
        border-radius: 28px;
    }

    .account-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .account-sidebar {
        position: static;
        order: -1; /* Show sidebar first on mobile */
    }
    
    .account-main {
        width: 100%;
        max-width: 100%;
    }
    
    .quick-info-cards {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .welcome-stats {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .auth-stats-row {
        grid-template-columns: 1fr;
    }

    .auth-form {
        padding: 22px;
    }

    .account-main {
        padding: 24px;
    }
    
    .page-header h1 {
        font-size: 24px;
        flex-direction: column;
        gap: 12px;
    }
    
    .sidebar-user {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar-nav-item {
        padding: 14px 20px;
    }
}

@media (max-width: 576px) {
    .auth-card,
    .auth-hero-panel {
        padding: 22px 18px;
    }

    .auth-form {
        padding: 18px;
        border-radius: 16px;
    }

    .account-page {
        padding: 20px 0 40px;
    }
    
    .account-container {
        padding: 0 16px;
    }
    
    .account-main {
        padding: 20px;
    }
}

