:root {
    --bg-base: #06080c;
    --bg-surface: #0e131f;
    --bg-card: rgba(18, 26, 44, 0.4);
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.15);
    --accent: #39f367;
    --text-main: #f3f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.06);
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --credit-gradient: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    --danger: #ff3366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    background-color: var(--bg-base);
    color: var(--text-main);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(6, 8, 12, 0.7);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo-accent { color: var(--primary); }
.logo-dot { color: var(--accent); }

.nav-menu { display: flex; gap: 32px; }
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-cta-wrapper { display: flex; align-items: center; gap: 16px; }

/* =========================================================
   DYNAMIC NAVBAR COMPONENTS (EXACT MATCH TO DESIGN SPEC)
   ========================================================= */

/* Credit Points Badge Element */
.credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(254, 240, 138, 0.04);
    border: 1px solid rgba(234, 179, 8, 0.35);
    padding: 8px 14px;
    border-radius: 8px;
    height: 38px;
    transition: var(--transition);
}

.credit-badge:hover {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.6);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}

.credit-icon {
    width: 14px;
    height: 14px;
    color: #facc15;
    animation: pulseHourglass 3s infinite ease-in-out;
}

.credit-count {
    font-size: 13px;
    font-weight: 600;
    color: #fef08a;
    letter-spacing: -0.1px;
}

/* CORRECTED AUTH BUTTON: True Three-Dimensional Transparent Multi-Gradient Border */
.btn-auth {
    position: relative;
    background: transparent;
    color: #ffffff;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    height: 38px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    outline: none;
}

/* Underlying Layer to safely draw the multi-color active border gap matrix */
.btn-auth::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1.5px; /* Precision thick border scale */
    background: linear-gradient(135deg, #00f0ff 0%, #ec4899 50%, #a855f7 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: var(--transition);
}

/* Internal smooth backdrop card layer to accurately mimic the dark container depth */
.btn-auth::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    border-radius: 6.5px;
    background: #090d16; /* True dark fill context */
    z-index: -1;
    transition: var(--transition);
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.2);
}

.btn-auth:hover::before {
    background: linear-gradient(135deg, #a855f7 0%, #00f0ff 100%);
}

.btn-auth:active {
    transform: translateY(1px);
}

@keyframes pulseHourglass {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* ========================================================= */

.user-auth-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: var(--transition);
}
.avatar-circle:hover { transform: scale(1.05); }

.main-wrapper {
    flex: 1 0 auto;
    margin-top: var(--nav-height);
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-section { max-width: 850px; text-align: center; padding: 100px 40px 60px 40px; }
.hero-badge {
    display: inline-block;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title { font-size: 56px; font-weight: 700; line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 24px; }
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 18px; color: var(--text-muted); line-height: 1.6; }

.tools-grid-section { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; width: 100%; max-width: 1120px; padding: 0 40px; }
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}
.tool-card:hover:not(.disabled-card) {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px var(--primary-glow);
}

.tool-icon-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tool-icon-wrapper {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; }
.status-active { background: rgba(57, 243, 103, 0.06); border: 1px solid rgba(57, 243, 103, 0.15); color: var(--accent); }

.tool-title { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.tool-description { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 24px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn-primary { background-color: var(--text-main); color: var(--bg-base); width: 100%; }
.btn-primary:hover { background-color: var(--primary); box-shadow: 0 0 20px rgba(0, 240, 255, 0.4); }
.arrow-icon { transition: transform 0.2s ease; }
.btn-primary:hover .arrow-icon { transform: translateX(4px); }
.btn-secondary { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--text-muted); }
.text-xs { font-size: 12px; padding: 8px 16px; }
.card-action { margin-top: auto; width: 100%; }

.pricing-section { width: 100%; max-width: 1120px; padding: 100px 40px 40px 40px; text-align: center; }
.pricing-header { margin-bottom: 50px; }
.pricing-main-title { font-size: 36px; font-weight: 700; margin-top: 16px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 45px; display: flex; flex-direction: column; text-align: left; position: relative; }
.featured-plan { border-color: var(--primary); background: linear-gradient(180deg, rgba(0, 240, 255, 0.03) 0%, rgba(14, 19, 31, 0.4) 100%); }
.plan-badge { position: absolute; top: 24px; right: 24px; background: var(--credit-gradient); color: var(--bg-base); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; }
.plan-name { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.plan-price { font-size: 42px; font-weight: 700; margin-bottom: 18px; }
.plan-duration { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.plan-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }
.plan-features { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.plan-features li { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.plan-btn { margin-top: auto; width: 100%; }

.out-of-credits { background: rgba(255, 255, 255, 0.02) !important; border: 1px solid var(--border-color) !important; color: rgba(255, 255, 255, 0.15) !important; cursor: not-allowed !important; pointer-events: none !important; }
.disabled-card { opacity: 0.45; background: rgba(255, 255, 255, 0.01); pointer-events: none; }

.site-footer {
    flex-shrink: 0;
    background-color: #030508;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    width: 100%;
}

.footer-top-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: inline-block;
}

.footer-brand-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 340px;
}

.footer-social-icons-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.social-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon-badge:hover {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.1);
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-item-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-item-link:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.inline-icon-link {
    gap: 10px;
}

.link-svg-icon {
    transition: var(--transition);
}

.inline-icon-link:hover .link-svg-icon {
    color: var(--primary);
}

.compliance-highlight:hover {
    color: var(--accent);
}

.compliance-highlight:hover svg {
    color: var(--accent);
}

.footer-bottom-wrapper {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.footer-bottom-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weight-600 {
    font-weight: 600;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.legal-badge-node {
    display: flex;
    align-items: center;
    gap: 12px;
}

.secure-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.secure-badge-divider {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
    .footer-top-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand-column {
        grid-column: span 2;
        max-width: 100%;
    }
    .footer-brand-desc {
        max-width: 100%;
    }
}

@media (max-width: 868px) {
    .nav-menu { display: none; }
    .hero-title { font-size: 38px; }
    .tools-grid-section, .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .footer-top-wrapper {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-brand-column {
        grid-column: span 1;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-top-wrapper, .footer-bottom-container {
        padding: 0 24px;
    }
}

/* ==========================================
   ABOUT PAGE EXCLUSIVE STYLES
   ========================================== */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.2);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================
   LEGAL DOCUMENT LAYOUT STYLES PRIVACY POLICY
   ========================================== */
.privacy-content-wrapper {
    width: 100%;
    max-width: 850px;
    padding: 0 40px 60px 40px;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    text-align: left;
}

.legal-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 32px;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.legal-section-title:first-of-type {
    margin-top: 0;
}

.legal-paragraph {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.legal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-left: 4px;
}

.legal-list li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.legal-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 576px) {
    .legal-card {
        padding: 30px 24px;
    }
}

/* ==========================================
   CONTACT PAGE STRUCTURAL LAYOUT
   ========================================== */
.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    padding: 0 40px 80px 40px;
    align-items: start;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-title {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.info-link {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.info-link:hover {
    color: var(--primary);
}

.info-desc {
    font-size: 15px;
    color: var(--text-main);
    font-weight: 600;
}

.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.form-input, .form-textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    width: 100%;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.form-textarea {
    resize: vertical;
}

.form-status-msg {
    display: none;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.margin-top-sm { margin-top: 16px; }
.margin-top-md { margin-top: 24px; }
.width-full { width: 100%; }

@media (max-width: 850px) {
    .contact-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 24px 60px 24px;
    }
}

@media (max-width: 550px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-form-box {
        padding: 24px;
    }
}