:root {
    --bg-dark: #070913;
    --card-bg: rgba(15, 23, 42, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(53, 183, 255, 0.4);
    --primary-color: #35b7ff;
    --primary-gradient: linear-gradient(135deg, #35b7ff 0%, #0284c7 100%);
    --accent-glow: rgba(53, 183, 255, 0.35);
    --correct-bg: rgba(16, 185, 129, 0.12);
    --correct-border: rgba(16, 185, 129, 0.35);
    --correct-text: #34d399;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Glow Effects */
.background-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(53, 183, 255, 0.2) 0%, rgba(2, 132, 199, 0.08) 50%, transparent 80%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Dedicated Top Navigation Site Header */
.site-header {
    width: 100%;
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--card-border);
    background: rgba(7, 9, 19, 0.6);
    backdrop-filter: blur(12px);
}

.site-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(53, 183, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(53, 183, 255, 0.2);
    overflow: hidden;
    padding: 3px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-icon:hover {
    border-color: #35b7ff;
    box-shadow: 0 4px 20px rgba(53, 183, 255, 0.4);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-title .highlight {
    color: var(--primary-color);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: rgba(53, 183, 255, 0.15);
    border-color: rgba(53, 183, 255, 0.4);
    color: #fff;
}

/* Main App Container for Page Content */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    word-break: break-word;
}

.gradient-text {
    background: linear-gradient(135deg, #7dd3fc 0%, #35b7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

/* Input Form Box */
.search-box-container {
    display: flex;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 10px;
    border-radius: 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    max-width: 820px;
    margin: 0 auto;
    transition: border-color 0.3s ease;
}

.search-box-container:focus-within {
    border-color: rgba(53, 183, 255, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
    padding-left: 12px;
    min-width: 0;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    min-width: 0;
}

.input-wrapper input::placeholder {
    color: #6b7280;
}

.paste-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    touch-action: manipulation;
}

.paste-btn:hover {
    background: rgba(53, 183, 255, 0.15);
    border-color: rgba(53, 183, 255, 0.4);
    color: #fff;
}

.submit-btn {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px var(--accent-glow);
    flex-shrink: 0;
    touch-action: manipulation;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(53, 183, 255, 0.5);
}

.submit-btn.full-width {
    width: 100%;
}

.error-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 18px;
    border-radius: 12px;
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 0.9rem;
    word-break: break-word;
}

/* Loader */
.loader-container {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Results Section */
.results-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
}

.quiz-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.quiz-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    word-break: break-word;
}

.count-badge {
    background: rgba(53, 183, 255, 0.15);
    border: 1px solid rgba(53, 183, 255, 0.35);
    color: #bae6fd;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.filter-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 8px 14px;
    border-radius: 10px;
    min-width: 280px;
}

.filter-box:focus-within {
    border-color: rgba(53, 183, 255, 0.5);
}

.filter-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.filter-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.88rem;
    width: 100%;
    min-width: 0;
}

/* Question Grid */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
}

/* Question Card */
.question-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.question-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.q-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(53, 183, 255, 0.12);
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.q-text {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
    flex: 1;
    word-break: break-word;
}

/* Correct Answer Highlight Box */
.correct-answer-box {
    background: var(--correct-bg);
    border: 1px solid var(--correct-border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.correct-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #6ee7b7;
    margin-bottom: 2px;
}

.correct-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--correct-text);
    word-break: break-word;
}

.copy-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.copy-btn:hover {
    background: rgba(16, 185, 129, 0.35);
    color: #fff;
}

/* Options List */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.option-item {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
}

.option-item.is-correct {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-weight: 600;
}

.check-icon {
    width: 16px;
    height: 16px;
    color: #10b981;
    flex-shrink: 0;
}

/* SEO Content & Below Items Container */
.seo-info-section,
.page-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    word-break: break-word;
}

.page-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

.seo-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 26px;
    backdrop-filter: blur(12px);
    word-break: break-word;
}

.seo-card h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.seo-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    word-break: break-word;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #f3f4f6;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.seo-feature {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px;
    word-break: break-word;
}

.seo-feature h3 {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    margin-bottom: 8px;
    color: #f3f4f6;
}

.seo-feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.styled-list {
    margin-top: 12px;
    padding-left: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.styled-list li strong {
    color: #e0e7ff;
}

/* Accordion FAQ Section */
.seo-faq {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.seo-faq h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.accordion-item:hover {
    border-color: rgba(53, 183, 255, 0.3);
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    outline: none;
    color: #e0e7ff;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: color 0.2s ease;
    touch-action: manipulation;
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    flex-shrink: 0;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 20px;
}

.accordion-content p {
    color: var(--text-muted);
    font-size: 0.91rem;
    line-height: 1.6;
    padding-bottom: 18px;
    word-break: break-word;
}

.accordion-content code {
    background: rgba(53, 183, 255, 0.15);
    color: #bae6fd;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    word-break: break-all;
}

/* Contact Form Styling */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e7ff;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(53, 183, 255, 0.25);
}

.margin-top-lg {
    margin-top: 32px;
}

.margin-top-md {
    margin-top: 20px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #10b981;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    z-index: 999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.footer {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet & Mobile Screens (< 768px) */
@media (max-width: 768px) {
    .site-header-container {
        padding: 12px 12px;
    }

    .app-container {
        padding: 24px 14px 40px;
        max-width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.96);
        border: 1px solid rgba(53, 183, 255, 0.25);
        border-radius: 16px;
        padding: 14px;
        margin-top: 10px;
        backdrop-filter: blur(20px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
        animation: slideDown 0.25s ease-out forwards;
    }

    .nav-links a {
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-main);
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.04);
        transition: all 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(53, 183, 255, 0.15);
        border-color: rgba(53, 183, 255, 0.35);
        color: #35b7ff;
        font-weight: 600;
        padding-left: 20px;
    }

    .questions-grid {
        grid-template-columns: 1fr;
    }

    .seo-info-section,
    .page-content {
        gap: 20px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Phones (< 640px) */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .search-box-container {
        flex-direction: column;
        padding: 12px;
        gap: 20px;
        border-radius: 16px;
        width: 100%;
    }

    .input-wrapper {
        padding-left: 6px;
        width: 100%;
    }

    .input-wrapper input {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .paste-btn {
        align-self: flex-end;
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .submit-btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .quiz-info {
        justify-content: space-between;
        width: 100%;
    }

    .quiz-title {
        font-size: 1.25rem;
    }

    .filter-box {
        min-width: 100%;
        width: 100%;
        padding: 10px 14px;
    }

    .question-card {
        padding: 16px;
        border-radius: 14px;
        gap: 12px;
    }

    .card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .q-text {
        font-size: 0.98rem;
    }

    .correct-answer-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px;
    }

    .copy-btn {
        width: 100%;
        text-align: center;
        padding: 8px;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .page-lead {
        font-size: 0.95rem;
    }

    .seo-card,
    .seo-feature,
    .seo-faq,
    .contact-card {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .accordion-header {
        padding: 14px;
        font-size: 0.92rem;
    }

    .accordion-content {
        padding: 0 14px;
    }

    .accordion-content p {
        font-size: 0.88rem;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
    }
}