:root {
    --bg-dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary: #00A3FF;
    --primary-glow: rgba(0, 163, 255, 0.3);
    --secondary: #6B7280;
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --accent: #00FFD1;
    --gradient: linear-gradient(135deg, #00A3FF 0%, #00FFD1 100%);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Glow */
.glow-bg {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo .accent {
    color: var(--primary);
}

.badge {
    font-size: 0.6rem;
    background: var(--card-border);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 4px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid var(--card-border);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--card-bg);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 100px);
    padding-bottom: 100px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
}

.main-preview {
    height: 450px;
    width: 100%;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
    overflow: hidden;
}

.analysis-image-container {
    height: 100%;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.hero-chart-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

.main-preview:hover .hero-chart-img {
    transform: scale(1.05);
}

.card-header {
    display: flex;
    gap: 6px;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #27C93F;
}

.mock-chart {
    height: 200px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 163, 255, 0.1) 50%, transparent 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
}

.mock-chart::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.mock-report .line {
    height: 8px;
    background: var(--card-border);
    border-radius: 4px;
    margin-bottom: 12px;
}

.line.sm {
    width: 40%;
}

.line.md {
    width: 70%;
}

.line.lg {
    width: 90%;
}

/* Features */
.features {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-family: 'Outfit', sans-serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.pro {
    border: 1px solid var(--primary);
    background: rgba(0, 163, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 163, 255, 0.1);
}

.pricing-card.pro::after {
    content: 'RECOMMENDED';
    position: absolute;
    top: -15px;
    background: var(--gradient);
    color: #000;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.tier-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.tier-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.price-sub {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.tier-features {
    list-style: none;
    margin-bottom: 3rem;
    width: 100%;
}

.tier-features li {
    padding: 0.8rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--card-border);
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 800;
}

.pricing-card.free li::before {
    color: var(--secondary);
}

.pricing-card .btn {
    width: 100%;
}

/* Auth Section */
.auth-section {
    padding: 100px 0;
}

.login-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 0.5rem;
}

.login-container p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-buttons {
    margin-bottom: 1.5rem;
}

.btn-auth {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: #FFF;
    color: #000;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-auth img {
    width: 20px;
}

/* Premium Auth Styling */
.auth-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.1) 0%, rgba(0, 255, 209, 0.1) 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 163, 255, 0.15);
}

.auth-icon {
    font-size: 2.5rem;
}

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Google Sign-In Button - Override Google's default styles */
#google-login {
    width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

#google-login>div {
    display: block !important;
}

.divider {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.divider span {
    padding: 0 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

input {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--text-muted);
}

/* Profile State */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    font-size: 4rem;
    background: var(--card-bg);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

/* Extension Status Toast */
.extension-status-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(45, 45, 60, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.5s ease;
}

.extension-status-toast.linked {
    border-color: var(--success-glow);
    background: rgba(16, 185, 129, 0.1);
}

.extension-status-toast.hidden {
    display: none;
}

.extension-status-toast.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.status-icon {
    font-size: 1.2rem;
}

.status-message {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accuracy Guide Section */
.accuracy-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 163, 255, 0.02) 50%, transparent 100%);
}

.accuracy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.accuracy-card {
    padding: 2.5rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.accuracy-card:hover {
    transform: translateY(-5px);
}

/* Success Theme (Green) */
.success-theme {
    border-top: 4px solid #27C93F;
    background: linear-gradient(180deg, rgba(39, 201, 63, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.success-theme .accuracy-icon {
    background: rgba(39, 201, 63, 0.1);
    color: #27C93F;
}

/* Warning Theme (Yellow) */
.warning-theme {
    border-top: 4px solid #FFBD2E;
    background: linear-gradient(180deg, rgba(255, 189, 46, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.warning-theme .accuracy-icon {
    background: rgba(255, 189, 46, 0.1);
    color: #FFBD2E;
}

.accuracy-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accuracy-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.accuracy-header h3 {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

.accuracy-list {
    list-style: none;
}

.accuracy-list li {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
}

.accuracy-list li:hover {
    border-left-color: var(--primary);
}

.accuracy-list li strong {
    display: block;
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: 'Outfit', sans-serif;
}

.accuracy-list li p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .accuracy-grid {
        grid-template-columns: 1fr;
    }
}