/* ============================================
   LEAD FINDER PRO - MODERN UI STYLES
   Based on professional design guidelines
   ============================================ */

/* === ROOT VARIABLES === */
:root {
    /* Primary Colors */
    --primary: #007AFF;
    --primary-hover: #0062CC;
    --primary-light: rgba(0, 122, 255, 0.1);
    
    /* Dark Theme */
    --dark: #000823;
    --dark-card: #0A0F2C;
    --dark-lighter: #1C1C1E;
    
    /* Accent Colors */
    --accent: #00CFFF;
    --accent-glow: rgba(0, 207, 255, 0.3);
    
    /* Status Colors */
    --success: #34C759;
    --warning: #FF9500;
    --error: #FF3B30;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-light: #F5F5F7;
    --gray: #8E8E93;
    --gray-dark: #48484A;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
    --glow: 0 0 20px var(--accent-glow);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0A0E27;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 122, 255, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 207, 255, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 122, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 207, 255, 0.04) 0px, transparent 50%);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Animated background orbs */
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-100px, 100px) scale(1.1);
    }
    66% {
        transform: translate(100px, -50px) scale(0.9);
    }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--dark-lighter);
    color: var(--white);
    border: 1px solid var(--gray-dark);
}

.btn-secondary:hover {
    background: var(--gray-dark);
    border-color: var(--gray);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #28A745;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === CARDS === */
.card {
    background: rgba(10, 15, 44, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.1);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 207, 255, 0.4), 
        transparent
    );
}

.card:hover {
    box-shadow: 
        0 12px 48px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 207, 255, 0.3);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.card-body {
    color: var(--gray-light);
}

/* === FORMS === */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--white);
    font-size: 0.9375rem;
}

.label-icon {
    font-size: 1.25rem;
}

.form-input-large {
    padding: 1.125rem 1.25rem;
    font-size: 1.0625rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px var(--primary-light),
        0 4px 12px rgba(0, 122, 255, 0.2);
}

.form-input::placeholder {
    color: var(--gray);
}

/* === AUTH PAGE - 2 COLUMNS === */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--dark);
}

/* Left Side - Branding */
.auth-branding {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--dark) 0%, #001845 100%);
    overflow: hidden;
}

.branding-content {
    max-width: 500px;
    z-index: 2;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.brand-logo .logo-icon {
    font-size: 3rem;
}

.brand-logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.brand-tagline {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: var(--spacing-xl);
}

.features-list {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 207, 255, 0.2);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
}

.feature-text h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.feature-text p {
    font-size: 0.9375rem;
    color: var(--gray);
    margin: 0;
}

.tech-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    display: flex;
    gap: 40px;
    align-items: flex-end;
    justify-content: center;
    opacity: 0.1;
    pointer-events: none;
}

.circuit-line {
    width: 2px;
    background: linear-gradient(to top, var(--accent), transparent);
    animation: pulse 3s ease-in-out infinite;
}

.circuit-line:nth-child(1) {
    height: 60%;
    animation-delay: 0s;
}

.circuit-line:nth-child(2) {
    height: 100%;
    animation-delay: 0.5s;
}

.circuit-line:nth-child(3) {
    height: 80%;
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Right Side - Auth Forms */
.auth-forms {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: rgba(10, 15, 44, 0.95);
    backdrop-filter: blur(20px);
}

.forms-container {
    width: 100%;
    max-width: 480px;
    position: relative;
}

.auth-form-card {
    background: rgba(10, 15, 44, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid rgba(0, 122, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: none;
    animation: fadeInUp 0.4s ease;
}

.auth-form-card.active {
    display: block;
}

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

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--gray);
    font-size: 0.9375rem;
    margin: 0;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon .form-input {
    padding-left: 3rem;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    color: var(--gray);
    font-size: 0.875rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.875rem;
}

/* === PASSWORD VALIDATION STYLES === */
.password-strength {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.strength-bar-fill.weak {
    width: 33%;
    background: var(--error);
}

.strength-bar-fill.medium {
    width: 66%;
    background: var(--warning);
}

.strength-bar-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 0.8125rem;
    font-weight: 500;
}

.strength-text.weak {
    color: var(--error);
}

.strength-text.medium {
    color: var(--warning);
}

.strength-text.strong {
    color: var(--success);
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.requirement {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--gray);
    transition: color 0.2s ease;
}

.requirement.valid {
    color: var(--success);
}

.requirement.invalid {
    color: var(--error);
}

.requirement::before {
    content: '○';
    margin-right: 0.5rem;
    font-size: 0.625rem;
}

.requirement.valid::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.requirement.invalid::before {
    content: '✗';
    color: var(--error);
    font-weight: bold;
}

.btn-block {
    width: 100%;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-badge {
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin-left: auto;
}

/* === QUICK FILTERS === */
.quick-filters {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
    display: grid;
    gap: var(--spacing-sm);
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.filter-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--gray-light);
}

.filter-option:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
}

.filter-option.active {
    background: linear-gradient(135deg, 
        rgba(0, 122, 255, 0.2) 0%, 
        rgba(0, 207, 255, 0.1) 100%
    );
    border-color: var(--primary);
    color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2);
}

.option-number {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.option-label {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.8;
}

.rating-filter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.rating-btn {
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--gray-light);
    font-size: 0.9375rem;
    font-weight: 600;
}

.rating-btn:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

.rating-btn.active {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.2) 0%, 
        rgba(255, 152, 0, 0.1) 100%
    );
    border-color: #FFC107;
    color: #FFC107;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

/* === SEARCH INFO === */
.search-info {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
}

.info-text {
    font-size: 0.9375rem;
    color: var(--gray-light);
    margin: 0 0 var(--spacing-xs) 0;
}

.info-text strong {
    color: var(--accent);
}

.info-subtext {
    font-size: 0.8125rem;
    color: var(--gray);
    margin: 0;
    opacity: 0.8;
}

/* === DASHBOARD === */
.dashboard {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.dashboard-header {
    background: rgba(10, 15, 44, 0.8);
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 122, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, 
        rgba(0, 207, 255, 0.15) 0%, 
        rgba(0, 122, 255, 0.1) 100%
    );
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(0, 207, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 207, 255, 0.15);
}

/* === MAIN CONTENT === */
.dashboard-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.section {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 1.75rem;
}

/* === SEARCH FORM === */
.search-form {
    display: grid;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* === RESULTS === */
.results-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 122, 255, 0.1);
}

.results-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.results-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.5rem 1rem;
    background: rgba(0, 207, 255, 0.1);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 207, 255, 0.2);
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-left: 0.5rem;
}

.results-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.result-card {
    background: rgba(10, 15, 44, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid rgba(0, 122, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    position: relative;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 207, 255, 0.4), 
        transparent
    );
}

.result-card:hover {
    border-color: rgba(0, 207, 255, 0.3);
    box-shadow: 
        0 12px 48px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-main-info {
    flex: 1;
}

.result-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.result-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.2) 0%, 
        rgba(255, 152, 0, 0.1) 100%
    );
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.result-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #FFC107;
    font-weight: 700;
    font-size: 1.125rem;
}

.result-reviews {
    color: var(--gray);
    font-size: 0.875rem;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.result-detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.result-detail-content {
    flex: 1;
    min-width: 0;
}

.result-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.result-detail-value {
    color: var(--white);
    font-size: 0.9375rem;
    word-break: break-word;
}

.result-detail-value a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.result-detail-value a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.result-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

.result-action-btn {
    padding: 0.625rem 1.25rem;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.result-action-btn:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: rgba(0, 207, 255, 0.5);
    transform: translateY(-2px);
}

/* === HISTORY === */
.history-grid {
    display: grid;
    gap: var(--spacing-md);
}

.history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--dark-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.history-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.history-info {
    flex: 1;
}

.history-query {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--gray);
    font-size: 0.875rem;
}

/* === LOADING & TOAST === */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 8, 35, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 207, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    padding: 1rem 1.5rem;
    background: var(--dark-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    color: var(--white);
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === UTILITIES === */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray);
}

.text-accent {
    color: var(--accent);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .auth-page {
        grid-template-columns: 1fr;
    }
    
    .auth-branding {
        display: none;
    }
    
    .auth-forms {
        background: linear-gradient(135deg, var(--dark) 0%, #001845 100%);
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .history-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .auth-forms {
        padding: var(--spacing-md);
    }
    
    .forms-container {
        max-width: 100%;
    }
    
    .auth-form-card {
        padding: var(--spacing-lg);
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* === TECH ACCENTS === */
.tech-border {
    position: relative;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
}

.tech-border-inner {
    background: var(--dark-card);
    border-radius: calc(var(--radius-lg) - 2px);
    padding: var(--spacing-lg);
}

/* ============================================
   UX OPTIMIZATION - NEW STYLES
   ============================================ */

/* === Microcopy === */
.field-microcopy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    line-height: 1.4;
}

/* === Promise Box (Cadastro) === */
.post-cta-promise {
    background: rgba(0, 207, 255, 0.05);
    border: 2px solid rgba(0, 207, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.promise-title {
    color: #00CFFF;
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.promise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.promise-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === Preview Box (Dashboard) === */
.result-preview {
    background: rgba(0, 122, 255, 0.05);
    border: 2px solid rgba(0, 122, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.result-preview h4 {
    color: #00CFFF;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.result-preview ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.result-preview li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .result-preview ul {
        grid-template-columns: 1fr;
    }
}

/* === Headlines Principais === */
.card-title-main {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #007AFF 0%, #00CFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.card-subtitle-main {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* === Info ROI (Dashboard) === */
.info-roi {
    font-size: 0.875rem;
    color: #34C759;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* === Recommended Badge (Filtros) === */
.recommended-badge {
    margin-left: 0.25rem;
    font-size: 0.875rem;
}

/* === Melhorar Form Header Headlines === */
.form-header h2 {
    font-size: 1.875rem;
    font-weight: 800;
    background: linear-gradient(135deg, #007AFF 0%, #00CFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.form-header p {
    line-height: 1.6;
}

.form-header p strong {
    font-weight: 700;
}

/* === Botões Secundários Corrigidos === */
.btn-secondary-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.5rem !important;
    line-height: 1.4;
}

.btn-secondary-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-secondary-highlight {
    font-size: 1rem;
    font-weight: 700;
    color: #00CFFF;
}

/* === POST Signature === */
.post-signature {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(0, 207, 255, 0.05);
    border: 2px solid rgba(0, 207, 255, 0.15);
    border-radius: 12px;
    text-align: center;
    animation: fadeInUp 1.2s ease 0.8s backwards;
}

.post-logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00CFFF 0%, #007AFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
}

.post-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* === Animações Melhoradas === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animar Logo */
.brand-logo {
    animation: fadeInDown 0.8s ease backwards;
}

.brand-logo .logo-icon {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Animar Tagline */
.brand-tagline {
    animation: fadeIn 1s ease 0.3s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animar Features - Uma por vez */
.feature-item:nth-child(1) {
    animation: slideInLeft 0.6s ease 0.4s backwards;
}

.feature-item:nth-child(2) {
    animation: slideInLeft 0.6s ease 0.6s backwards;
}

.feature-item:nth-child(3) {
    animation: slideInLeft 0.6s ease 0.8s backwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulsar ícones das features */
.feature-icon {
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
}

.feature-item:nth-child(1) .feature-icon {
    animation-delay: 0s;
}

.feature-item:nth-child(2) .feature-icon {
    animation-delay: 1s;
}

.feature-item:nth-child(3) .feature-icon {
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Animar linhas de decoração */
.circuit-line {
    animation: glow 2s ease-in-out infinite;
}

.circuit-line:nth-child(1) {
    animation-delay: 0s;
}

.circuit-line:nth-child(2) {
    animation-delay: 0.7s;
}

.circuit-line:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 207, 255, 0.5);
    }
}

/* Animação suave no hover dos botões */
.btn-secondary-auth:hover .btn-secondary-highlight {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
