/**
 * TruthForge Nuclear: MY ACCOUNT DASHBOARD RECONSTRUCTION (V3)
 * High-Fidelity Identity Strip, Sidebar Nav + Stats, and Order Card Grid
 */

:root {
    --tf-acc-bg: #000000;
    --tf-acc-surface: #111111;
    --tf-acc-accent: #7c3aed; /* Nuclear Violet */
    --tf-acc-border: rgba(255, 255, 255, 0.1);
    --tf-acc-text: #FFFFFF;
    --tf-acc-muted: #888888;
    --tf-acc-radius: 8px;
    --tf-acc-transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 1. Global Reset for Account Page */
.woocommerce-account .site-content,
.woocommerce-account .content-area,
.woocommerce-account #primary,
.woocommerce-account article {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--tf-acc-bg);
}

/* LOGGED-OUT STATE: Full-Bleed container override */
.woocommerce-account:not(.logged-in) .site-main.container,
.woocommerce-account:not(.logged-in) #primary,
.woocommerce-account:not(.logged-in) article,
.woocommerce-account:not(.logged-in) .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide site header + footer on logged-out My Account for full-screen auth experience */
.woocommerce-account:not(.logged-in) .site-header,
.woocommerce-account:not(.logged-in) #masthead,
.woocommerce-account:not(.logged-in) .tf-site-footer,
.woocommerce-account:not(.logged-in) footer,
.woocommerce-account:not(.logged-in) #colophon {
    display: none !important;
}

.tf-account-v3-root {
    background-color: var(--tf-acc-bg);
    color: var(--tf-acc-text);
    min-height: 100vh;
    padding: 60px 20px;
    font-family: 'Inter', -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tf-account-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 2. Identity Strip - The Professional Header */
.tf-account-identity-strip {
    width: 100%;
    box-sizing: border-box;
    background: var(--tf-acc-surface);
    border: 1px solid var(--tf-acc-border);
    padding: 30px 40px;
    border-radius: var(--tf-acc-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
}

.tf-identity-left, .tf-identity-right {
    flex-shrink: 0;
}

.tf-identity-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.tf-user-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--tf-acc-accent), #4c1d95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFF;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.tf-user-meta {
    display: flex;
    flex-direction: column;
}

.tf-user-welcome {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--tf-acc-accent);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.tf-user-name {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
}

.tf-identity-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tf-user-location {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tf-acc-muted);
}

.tf-user-location span.city {
    color: #FFF;
}

.tf-logout-link {
    color: var(--tf-acc-muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    transition: var(--tf-acc-transition);
}

.tf-logout-link:hover {
    color: var(--tf-acc-accent);
}

.tf-badge-elite {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 900;
    color: var(--tf-acc-accent);
    letter-spacing: 0.1em;
    margin-top: 8px;
    text-transform: uppercase;
}

/* 3. Main Interior Grid */
.tf-account-main-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* 4. Sidebar Cards */
.tf-account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tf-sidebar-card {
    background: rgba(17, 17, 17, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--tf-acc-radius);
    padding: 0;
    overflow: hidden;
    transition: var(--tf-acc-transition);
}

.tf-sidebar-card:hover {
    border-color: rgba(124, 58, 237, 0.3) !important;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.1);
}

/* Navigation Card */
.tf-account-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-account-nav-list li {
    border-bottom: 1px solid var(--tf-acc-border);
}

.tf-account-nav-list li:last-child {
    border-bottom: none;
}

.tf-account-nav-list a {
    display: block;
    padding: 20px 25px;
    color: var(--tf-acc-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    transition: var(--tf-acc-transition);
    border-left: 3px solid transparent;
}

.tf-nav-item-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tf-nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: var(--tf-acc-transition);
}

.tf-account-nav-list li.is-active a,
.tf-account-nav-list a:hover {
    color: #FFF;
    background: rgba(255,255,255,0.03);
    border-left-color: var(--tf-acc-accent);
}

.tf-account-nav-list li.is-active .tf-nav-icon,
.tf-account-nav-list a:hover .tf-nav-icon {
    opacity: 1;
    color: var(--tf-acc-accent);
}

/* Stats Card */
.tf-stats-card {
    padding: 30px 25px;
}

.tf-stats-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--tf-acc-muted);
    margin-bottom: 25px;
    display: block;
    border-bottom: 1px solid var(--tf-acc-border);
    padding-bottom: 15px;
}

.tf-stats-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tf-stat-item {
    display: flex;
    flex-direction: column;
}

.tf-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFF;
}

.tf-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--tf-acc-muted);
    letter-spacing: 0.05em;
}

/* 5. Main Content Area */
.tf-account-content-shell {
    min-height: 400px;
}

.tf-account-content-card {
    background: var(--tf-acc-surface);
    border: 1px solid var(--tf-acc-border);
    border-radius: var(--tf-acc-radius);
    padding: 40px;
}

.tf-card-header {
    margin-bottom: 35px;
    border-bottom: 1px solid var(--tf-acc-border);
    padding-bottom: 25px;
}

.tf-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: #FFF;
}

.tf-card-subtitle {
    font-size: 13px;
    color: var(--tf-acc-muted);
    line-height: 1.5;
}

/* Form Layouts within Account */
.tf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.tf-account-fieldset {
    margin: 40px 0;
    padding: 30px;
    border: 1px solid var(--tf-acc-border);
    border-radius: var(--tf-acc-radius);
    background: rgba(0,0,0,0.2);
}

.tf-account-fieldset legend {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0 15px;
    color: var(--tf-acc-accent);
}

.tf-field-hint {
    display: block;
    font-size: 12px;
    color: var(--tf-acc-muted);
    margin: -15px 0 20px 0;
}

/* Real WooCommerce input fields (Profile / Edit Account form) */
.tf-account-content-card input.woocommerce-Input,
.tf-account-content-card input.input-text {
    display: block;
    width: 100%;
    min-height: 44px;
    height: 52px;
    padding: 0 18px;
    background: #000;
    border: 1px solid var(--tf-acc-border);
    border-radius: 6px;
    color: var(--tf-acc-text);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    box-sizing: border-box;
    transition: var(--tf-acc-transition);
}

.tf-account-content-card input.woocommerce-Input:focus,
.tf-account-content-card input.input-text:focus {
    outline: none;
    border-color: var(--tf-acc-accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Prevent browser autofill from rendering white text invisible on black inputs */
.tf-account-content-card input:-webkit-autofill,
.tf-account-content-card input:-webkit-autofill:hover,
.tf-account-content-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: #FFFFFF;
    -webkit-box-shadow: 0 0 0px 1000px #000000 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* The WooCommerce password-visibility toggle button has no icon font loaded
   here and renders as a stray line next to empty password fields — the same
   issue already fixed for the login page a few hundred lines up. The extra
   `.password-input` ancestor qualifier (matching this button's real wrapper,
   confirmed via the rendered DOM) gives this equal-!important selector
   strictly higher specificity than nuclear-global-mobile.css's
   `button:not(.toggle-btn):not(.qty-btn)` touch-target rule, which otherwise
   wins the tie on mobile viewports regardless of source order. */
.tf-account-content-card .password-input button.show-password-input {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.tf-form-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--tf-acc-border);
}

/* Switch Toggle System */
.tf-settings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tf-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--tf-acc-border);
    border-radius: var(--tf-acc-radius);
    transition: var(--tf-acc-transition);
}

.tf-setting-item:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
}

.tf-setting-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tf-setting-label {
    font-size: 14px;
    font-weight: 700;
    color: #FFF;
}

.tf-setting-desc {
    font-size: 12px;
    color: var(--tf-acc-muted);
}

/* The Switch */
.tf-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.tf-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.tf-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: .4s;
  border-radius: 24px;
}

.tf-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .tf-slider {
  background-color: var(--tf-acc-accent);
}

input:focus + .tf-slider {
  box-shadow: 0 0 1px var(--tf-acc-accent);
}

input:checked + .tf-slider:before {
  transform: translateX(20px);
}

/* Order Cards Grid */
.tf-orders-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tf-order-card {
    background: var(--tf-acc-surface);
    border: 1px solid var(--tf-acc-border);
    border-radius: var(--tf-acc-radius);
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 30px;
    transition: var(--tf-acc-transition);
}

.tf-order-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.tf-order-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tf-order-number {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.tf-order-date {
    font-size: 12px;
    color: var(--tf-acc-muted);
}

.tf-order-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tf-status-completed { background: #065f46; color: #34d399; }
.tf-status-processing { background: #1e3a8a; color: #93c5fd; }
.tf-status-pending { background: #7c2d12; color: #fb923c; }
.tf-status-on-hold { background: #451a03; color: #fbbf24; }
.tf-status-cancelled { background: #450a0a; color: #f87171; }

.tf-order-actions {
    display: flex;
    gap: 10px;
}

.tf-btn-view-order {
    background: transparent;
    border: 1px solid var(--tf-acc-border);
    color: #FFF;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--tf-acc-transition);
}

.tf-btn-view-order:hover {
    background: #FFF;
    color: #000;
}

.tf-btn-whatsapp-confirm {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #FFF !important;
    flex-grow: 1;
}

.tf-btn-whatsapp-confirm:hover {
    background: #128C7E !important;
    border-color: #128C7E !important;
    color: #FFF !important;
}

/* Header Shields */
.tf-content-header-shield {
    margin-bottom: 25px;
    border-left: 3px solid var(--tf-acc-accent);
    padding-left: 20px;
}

.tf-content-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Empty States */
.tf-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--tf-acc-surface);
    border-radius: var(--tf-acc-radius);
    border: 1px dashed var(--tf-acc-border);
}

.tf-empty-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.tf-empty-text {
    color: var(--tf-acc-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Responsive Lock */
@media (max-width: 992px) {
    .tf-account-main-grid {
        grid-template-columns: 1fr;
    }
    .tf-account-sidebar {
        order: 2;
    }
    .tf-account-content-shell {
        order: 1;
    }
    .tf-identity-strip {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .tf-identity-left {
        flex-direction: column;
    }
    .tf-identity-right {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .tf-order-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tf-order-actions {
        width: 100%;
    }
    .tf-btn-view-order {
        width: 100%;
        text-align: center;
    }
}

/* 6. LOGIN / REGISTER FLOW (CLEAN EXECUTION) */
.tf-account-login-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
}

.lost-password-wrapper {
    max-width: 900px;
}

.tf-account-grid.centered-single-col {
    display: flex;
    justify-content: center;
}

.tf-account-grid.centered-single-col .tf-login-column {
    flex: 0 1 500px;
    border-right: none;
}

.tf-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

/* NEW AUTH PAGE OVERHAUL (STEP 2-4) */
.tf-auth-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Grid rows stretch to match the tallest column — the right panel */
    align-items: stretch;
    min-height: 100vh;
    background: #000;
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
}

@media (min-width: 901px) {
    .tf-auth-page-wrapper {
        /* Break out of the .container and .content-area constraints only on desktop */
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 50%;
        right: 50%;
        transform: translateX(-50%);
    }
}

/* LEFT BRAND PANEL (STEP 3) */
.tf-auth-left-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 60px;
    /* Grid stretch handles the height — image fills via absolute positioning */
    align-self: stretch;
    min-height: 100vh;
}

.brand-panel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.brand-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 1;
    /* No blend mode — show the warm lifestyle colours */
}

.brand-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Transparent at top to show model clearly, darkens toward bottom for text legibility */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.1) 30%,
        rgba(0,0,0,0.55) 65%,
        rgba(0,0,0,0.88) 100%
    );
    z-index: 2;
}

.brand-panel-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    /* Issue 7 fix: push logo to top, statement+benefits to bottom */
    justify-content: space-between;
    height: 100%;
    flex: 1;
}

.inner-circle-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #FFFFFF !important;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.inner-circle-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #FFFFFF !important;
}

.brand-main-statement {
    font-family: 'Oswald', sans-serif !important;
    /* Issue 7 fix: Reduced from 72px — matches reference proportions */
    font-size: 56px;
    font-weight: 900;
    font-style: italic;
    line-height: 0.9;
    /* Issue 3 fix: Force white + text-shadow for legibility against lighter lifestyle image */
    color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 4px 32px rgba(0,0,0,0.4);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-top: 16px;
}

/* Highlight "Defines" in brand purple */
.brand-main-statement .accent-word {
    color: #7C3AED;
}

.brand-logo-wrap .logo-text-parity {
    font-family: 'Oswald', sans-serif !important;
    font-size: 32px;
    font-weight: 900;
    color: #FFF;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.brand-logo-wrap .logo-text-parity span {
    color: var(--tf-acc-accent);
}

.brand-panel-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.brand-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.benefit-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.benefit-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--tf-acc-accent);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7C3AED;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 22px;
    height: 22px;
    stroke: #7C3AED;
}

.benefit-info {
    display: flex;
    flex-direction: column;
}

.benefit-title {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 0.05em;
}

.benefit-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

/* RIGHT AUTH PANEL (STEP 4) */
.tf-auth-right-panel {
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 120px;
}

.auth-panel-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.back-to-store-wrap {
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: all 0.2s;
}

.back-link:hover {
    color: #FFF;
}

.auth-tabs-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #1a1a1a;
    padding: 4px;
    border-radius: 8px;
    /* Issue 1 fix: was 60px — reduced to tighten the gap */
    margin-bottom: 24px;
}

.auth-tab {
    background: transparent;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.auth-tab.active {
    background: var(--tf-acc-accent);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.premium-heading {
    font-family: 'Oswald', sans-serif !important;
    font-size: 52px;
    font-weight: 900;
    font-style: italic;
    /* Issue 2 fix: one line — no wrapping */
    line-height: 1;
    color: #FFF;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.premium-heading span {
    color: #7C3AED;
    font-style: italic;
}

.state-support {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

/* Tab Content Logic */
.auth-panel-state {
    display: none;
}

.auth-panel-state.active {
    display: block;
    animation: authStateIn 0.5s ease-out;
}

@keyframes authStateIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Inputs Overhaul (STEP 8 Foundations) */
.auth-forms-container .form-row {
    margin-bottom: 24px !important;
}

.auth-forms-container input.input-text {
    background: #141414 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    height: 64px !important;
    padding: 0 24px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    color: #FFF !important;
    width: 100% !important;
    transition: all 0.3s !important;
}

.auth-forms-container input.input-text:focus {
    border-color: var(--tf-acc-accent) !important;
    background: #1a1a1a !important;
}

.auth-forms-container label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
}

.form-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Inline password label: label on left, forgot on right */
.password-label-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.lost-pass-link {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: rgba(255,255,255,0.4) !important;
    text-decoration: none !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition: color 0.2s !important;
}

.lost-pass-link:hover {
    color: #7C3AED !important;
}

/* 'No account?' link below Sign In CTA */
.no-account-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.no-account-link a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.no-account-link a:hover {
    opacity: 0.8;
}

.tf-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.6) !important;
    text-transform: none !important;
    margin-top: 30px !important;
    line-height: 1.5 !important;
}

.tf-checkbox-label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    accent-color: var(--tf-acc-accent) !important;
    margin-top: 2px !important;
    flex-shrink: 0;
}

.tf-checkbox-label a {
    color: var(--tf-acc-accent);
    text-decoration: underline;
}

.form-footer-actions label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
    cursor: pointer;
}

.form-footer-actions input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--tf-acc-accent) !important;
}

/* PRIMARY CTA — White/Black (Moment of Truth reference) */
/* High-specificity selector to override WooCommerce .button purple styles */
.woocommerce-account:not(.logged-in) .tf-auth-right-panel .woocommerce-button,
.woocommerce-account:not(.logged-in) .tf-auth-right-panel button[type="submit"],
.tf-auth-page-wrapper .tf-btn-premium,
.tf-auth-page-wrapper .woocommerce-button {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: none !important;
}

.tf-auth-page-wrapper .tf-btn-premium:hover,
.tf-auth-page-wrapper .woocommerce-button:hover {
    background: #7C3AED !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35) !important;
}

.tf-btn-premium {
    /* Issue 6 fix: ensure truly full-width with block display */
    width: 100% !important;
    display: flex !important;
    height: 64px;
    background: #FFFFFF;
    color: #000000;
    border: none;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    margin-top: 16px;
    box-sizing: border-box;
}

.tf-btn-premium:hover {
    background: #7C3AED;
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.switch-to-login {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.switch-to-login a {
    color: var(--tf-acc-accent);
    font-weight: 700;
    text-decoration: none;
}

/* ===================================================================
   WooCommerce Privacy Policy text — force white on the dark auth panel.
   WooCommerce outputs this via do_action('woocommerce_register_form')
   with no colour awareness of the surrounding background.
   =================================================================== */
.tf-auth-page-wrapper .woocommerce-privacy-policy-text,
.tf-auth-page-wrapper .woocommerce-privacy-policy-text p,
.tf-auth-page-wrapper .woocommerce-form-register .woocommerce-privacy-policy-text,
.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text,
.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text p,
.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text a {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text a {
    color: #7C3AED !important;
    text-decoration: underline !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text a:hover {
    color: #fff !important;
}


/* Indicators */
.auth-panel-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===================================================================
   Issue 5 fix: Suppress the stray "—" dash from WooCommerce password
   strength output on the login form. The woocommerce_login_form action
   can fire a password hint / strength span that renders as a dash.
   =================================================================== */
#password-strength,
.woocommerce-password-strength,
.woocommerce-password-hint,
.woocommerce-password-strength-meter,
span#password-strength {
    display: none !important;
}

/* Also suppress any orphaned <p> output from do_action('woocommerce_login_form') */
.auth-forms-container .woocommerce-form-login > p:empty,
.auth-forms-container .woocommerce-form-login > span:empty {
    display: none !important;
}

/* Issue 5 EXACT fix: The dash is button.show-password-input — a WooCommerce
   password visibility toggle that has no icon, renders as a 12x2px white line */
.tf-auth-page-wrapper button.show-password-input,
.tf-auth-page-wrapper .password-input button.show-password-input,
.woocommerce-account:not(.logged-in) button.show-password-input {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}


.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.trust-item svg {
    stroke: #7C3AED;
    opacity: 0.9;
}

.column-inner {
    padding: 60px;
    background: var(--tf-acc-surface);
    border: 1px solid var(--tf-acc-border);
    border-radius: var(--tf-acc-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.column-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #FFFFFF !important; /* Force visibility */
}

.column-divider {
    width: 60px;
    height: 4px;
    background: var(--tf-acc-accent);
    margin-bottom: 48px;
}

/* Form Fields - STEP 5: ROBUST FIX */
.woocommerce-form-row {
    margin-bottom: 24px;
}

.woocommerce-form-row label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 12px !important;
    color: #FFFFFF !important; /* Raised contrast for accessibility */
}

.woocommerce-account .tf-account-login-wrapper input[type="text"],
.woocommerce-account .tf-account-login-wrapper input[type="email"],
.woocommerce-account .tf-account-login-wrapper input[type="password"] {
    width: 100% !important;
    background: #000 !important;
    border: 1px solid var(--tf-acc-border) !important;
    border-radius: 6px !important;
    padding: 0 32px !important; /* Robust Padding */
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    height: 64px !important; /* ROBUST HEIGHT (STEP 5) */
    transition: var(--tf-acc-transition) !important;
    box-shadow: none !important;
}

.woocommerce-account .tf-account-login-wrapper input:focus {
    border-color: var(--tf-acc-accent) !important;
    outline: none !important;
}

/* FIX: Prevent Browser Autofill from making text invisible (Black on Black) */
.woocommerce-account .tf-account-login-wrapper input:-webkit-autofill,
.woocommerce-account .tf-account-login-wrapper input:-webkit-autofill:hover,
.woocommerce-account .tf-account-login-wrapper input:-webkit-autofill:focus,
.woocommerce-account .tf-account-login-wrapper input:-webkit-autofill:active {
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-box-shadow: 0 0 0px 1000px #000000 inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    color: #FFFFFF !important;
}

/* Actions & Buttons */
.form-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tf-btn-solid,
.tf-btn-outline {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--tf-acc-transition);
    border-radius: 6px;
    width: 100%;
}

.tf-btn-solid {
    background: var(--tf-acc-accent);
    color: #FFF;
    border: none;
}

.tf-btn-solid:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

.tf-btn-outline {
    background: transparent;
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tf-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #FFF;
}

.woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #FFFFFF !important; /* Force visible white */
    cursor: pointer !important;
}

.rememberme input {
    accent-color: var(--tf-acc-accent);
    width: 18px;
    height: 18px;
}

.lost_password {
    margin-top: 15px;
}

.lost_password a {
    color: #FFFFFF !important; /* Force visibility */
    opacity: 0.8;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.2s;
}

.lost_password a:hover {
    color: var(--tf-acc-accent) !important;
    opacity: 1;
}

/* Privacy Policy and Helper Text Visibility */
.woocommerce-privacy-policy-text,
.woocommerce-registration-privacy-policy-text,
.woocommerce-form-register p,
.woocommerce-form-login p {
    color: #FFFFFF !important;
    opacity: 0.7;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 20px;
}

/* Validation Messaging */
.woocommerce-error, 
.woocommerce-info, 
.woocommerce-message {
    background: var(--tf-acc-surface) !important;
    border: 1px solid var(--tf-acc-border) !important;
    border-left: 4px solid var(--tf-acc-accent) !important;
    color: #FFF !important;
    padding: 25px 35px !important;
    margin-bottom: 40px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    list-style: none !important;
}


@media (max-width: 992px) {
    .tf-account-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .column-inner {
        padding: 40px 30px;
    }
    .tf-account-login-wrapper {
        padding: 0 20px;
        margin: 40px auto;
    }
}

/* 7. Wishlist Plugin Grid Overrides (Force TI Wishlist into Nuclear Grid) */
.tf-wishlist-integration .tinv-wishlist .tinvwl-table-manage-list {
    display: block !important;
}

.tf-wishlist-integration .tinv-wishlist table thead {
    display: none !important; /* Hide table headers */
}

.tf-wishlist-integration .tinv-wishlist table tbody {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 20px !important;
}

.tf-wishlist-integration .tinv-wishlist table tr {
    display: flex !important;
    flex-direction: column !important;
    background: var(--tf-acc-surface) !important;
    border: 1px solid var(--tf-acc-border) !important;
    border-radius: var(--tf-acc-radius) !important;
    padding: 20px !important;
    height: 100% !important;
    position: relative !important;
}

.tf-wishlist-integration .tinv-wishlist td {
    border: none !important;
    padding: 0 !important;
    display: block !important;
    text-align: left !important;
}

.tf-wishlist-integration .tinv-wishlist td.product-thumbnail {
    margin-bottom: 15px !important;
}

.tf-wishlist-integration .tinv-wishlist td.product-thumbnail img {
    border-radius: 4px !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
}

.tf-wishlist-integration .tinv-wishlist td.product-name a {
    font-family: 'Oswald', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #FFF !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 5px !important;
}

.tf-wishlist-integration .tinv-wishlist td.product-price {
    font-size: 14px !important;
    color: var(--tf-acc-accent) !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.tf-wishlist-integration .tinv-wishlist td.product-action {
    margin-top: auto !important;
}

.tf-wishlist-integration .tinv-wishlist .button {
    width: 100% !important;
    background: #FFF !important;
    color: #000 !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 12px !important;
    border-radius: 4px !important;
    text-align: center !important;
}

/* Hide bulk actions etc for cleaner account view */
.tf-wishlist-integration .tinvwl-after-wishlist-table,
.tf-wishlist-integration .tinv-wishlist td.product-cb,
.tf-wishlist-integration .tinv-wishlist .product-remove {
    display: none !important;
}

/* Ensure responsiveness for wishlist grid */
@media (max-width: 640px) {
    .tf-wishlist-integration .tinv-wishlist table tbody {
        grid-template-columns: 1fr !important;
    }
}

/* NUCLEAR AUTH RESPONSIVE (STEP 10) */
@media (max-width: 1100px) {
    .tf-auth-right-panel {
        padding: 80px 60px;
    }
    .brand-main-statement {
        font-size: 54px;
    }
}


@media (max-width: 900px) {
    /* MOBILE AUTH OVERHAUL: Divine Specificity Reset */
    html body .tf-auth-page-wrapper {
        display: block !important;
        position: relative !important;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
        min-height: auto !important;
        overflow-x: hidden !important;
    }
    
    html body .tf-auth-left-brand {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    html body .tf-auth-right-panel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        padding: 60px 20px !important;
        margin: 0 !important;
        background: #000 !important;
        box-sizing: border-box !important;
    }
    
    .auth-panel-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .form-row-grid {
        grid-template-columns: 1fr !important;
    }
    

    /* Branding text clipping fix for mobile */
    .brand-logo-wrap {
        text-align: center !important;
        margin-bottom: 30px !important;
    }

    /* NUCLEAR MOBILE AUTH HARDENING (320px - 900px) */
    .tf-auth-left-brand {
        padding: 40px 20px !important;
        min-height: auto !important;
        height: auto !important;
    }

    .tf-auth-left-brand h1 {
        font-size: 32px !important;
        line-height: 1.1 !important;
        margin-top: 10px !important;
    }

    .brand-statement {
        font-size: 14px !important;
        letter-spacing: 0.1em !important;
        margin-top: 0 !important;
    }

    .brand-logo-wrap img {
        max-width: 140px !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .tf-auth-right-panel {
        padding: 40px 15px !important;
    }
    .auth-panel-inner h2 {
        font-size: 32px !important;
    }
}

/* NUCLEAR DASHBOARD RESPONSIVE */
@media (max-width: 768px) {
    .tf-account-v3-root {
        padding: 30px 15px;
    }
    
    .tf-account-identity-strip {
        flex-direction: column !important;
        text-align: center !important;
        padding: 40px 20px !important;
        gap: 25px !important;
        background-image: none !important; /* Killer of mobile clipping */
        background-color: var(--tf-acc-surface) !important;
    }
    
    .tf-identity-left {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
    
    .tf-user-meta {
        align-items: center !important;
    }
    
    .tf-user-name {
        font-size: 28px !important;
    }
    
    .tf-identity-right {
        text-align: center !important;
        align-items: center !important;
    }
    
    .tf-account-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tf-account-content-card {
        padding: 25px 20px;
    }

    .tf-form-grid {
        grid-template-columns: 1fr;
    }

    .tf-setting-item {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* High-Fidelity Fixes (Match 100%) */
.premium-heading {
    white-space: nowrap !important;
}

.woocommerce-privacy-policy-text,
.woocommerce-privacy-policy-text p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

.woocommerce-privacy-policy-text a {
    color: #fff !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

/* Ensure Inner Circle also stays consistent */
.inner-circle-label {
    white-space: nowrap !important;
}
