/* ============================================
   ACCOUNT PAGE STYLES
   ============================================ */

/* Auth Panel */
.account-section {
    min-height: 100vh;
    background: var(--cream);
}

.auth-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, var(--black) 0%, var(--charcoal) 100%);
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(184, 149, 90, 0.1), transparent);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 6px;
}

.auth-tagline {
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 28px;
    letter-spacing: 0.06em;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.auth-tab.active {
    color: var(--black);
    border-bottom-color: var(--gold);
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form.hidden {
    display: none;
}

.auth-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.auth-forgot {
    font-size: 0.78rem;
    color: var(--gold);
    transition: color 0.2s;
}

.auth-forgot:hover {
    color: var(--gold-light);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    font-size: 0.72rem;
    color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    background: var(--white);
    transition: all 0.2s;
}

.social-auth-btn:hover {
    background: var(--off-white);
    border-color: rgba(0, 0, 0, 0.2);
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--charcoal);
    margin-top: 4px;
}

.auth-checkbox input {
    margin-top: 2px;
    accent-color: var(--gold);
    flex-shrink: 0;
}

.auth-checkbox a {
    color: var(--gold);
}

/* Profile Panel */
.profile-panel {
    padding: 100px 0 80px;
    min-height: 100vh;
    background: var(--cream);
}

.profile-panel.hidden {
    display: none;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.profile-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.avatar-ring {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold), var(--gold-pale));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    flex-shrink: 0;
}

.profile-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.profile-email {
    font-size: 0.75rem;
    color: var(--muted);
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--charcoal);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    transition: all 0.2s;
}

.profile-nav-btn svg {
    color: var(--muted);
    flex-shrink: 0;
}

.profile-nav-btn:hover,
.profile-nav-btn.active {
    background: var(--off-white);
    color: var(--black);
}

.profile-nav-btn.active svg {
    color: var(--gold);
}

.profile-nav-btn.logout-btn {
    margin-top: 12px;
    color: var(--muted);
}

.profile-nav-btn.logout-btn:hover {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.06);
}

.profile-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

/* Orders */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--off-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.order-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
}

.order-date {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
}

.order-status {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.order-status.delivered {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.order-status.processing {
    background: rgba(184, 149, 90, 0.12);
    color: var(--gold);
}

.order-items {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
}

.order-items img {
    width: 60px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.order-total {
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

/* Addresses */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.address-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--charcoal);
}

.address-card.default {
    border-color: var(--gold);
}

.address-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.address-default-badge {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.address-edit-btn {
    font-size: 0.72rem;
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: none;
}

.address-name {
    font-weight: 600;
    color: var(--black);
}

.address-card.add-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: var(--muted);
    border-style: dashed;
    font-size: 0.82rem;
    transition: all 0.2s;
    min-height: 120px;
}

.address-card.add-address:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.profile-form .btn {
    padding: 13px 32px;
}