#ahk-fg-app,
#ahk-fg-app * {
    box-sizing: border-box;
}

#ahk-fg-app {
    --ahk-blue: #497AE4;
    --ahk-blue-light: #6d97ff;
    --ahk-card: rgba(16, 22, 34, 0.78);
    --ahk-card-strong: rgba(18, 27, 43, 0.94);
    --ahk-border: rgba(73, 122, 228, 0.42);
    --ahk-text: #ffffff;
    --ahk-muted: rgba(255, 255, 255, 0.72);

    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 18px 36px;
    background: transparent !important;
    color: var(--ahk-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ahk-fg-screen {
    display: none;
    background: transparent !important;
}

.ahk-fg-screen.ahk-fg-active {
    display: block;
}

.ahk-fg-intro-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 34px 0 20px;
    text-align: center;
}

.ahk-fg-intro-headline {
    text-align: center !important;
    margin: 0 auto 38px;
    padding-bottom: 28px;
    position: relative;
}

.ahk-fg-intro-headline:after {
    content: "";
    display: block;
    width: 220px;
    height: 1px;
    margin: 25px auto 0;
    background: linear-gradient(90deg, transparent, rgba(73, 122, 228, 0.9), transparent);
}

.ahk-fg-title-main {
    margin: 0 auto 18px !important;
    font-family: Orbitron, Inter, sans-serif !important;
    font-size: clamp(3.6rem, 17vw, 5.8rem) !important;
    line-height: 0.9 !important;
    font-weight: 900 !important;
    letter-spacing: 0.045em !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    text-align: center !important;
    text-shadow: 0 0 18px rgba(73,122,228,0.28), 0 2px 0 rgba(255,255,255,0.12) !important;
}

.ahk-fg-title-powered {
    margin: 0 auto 8px !important;
    font-family: Orbitron, Inter, sans-serif !important;
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.48) !important;
    text-align: center !important;
}

.ahk-fg-title-brand {
    margin: 0 auto !important;
    font-family: Orbitron, Inter, sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.ahk-fg-brand-white {
    color: #ffffff !important;
}

.ahk-fg-brand-blue {
    color: var(--ahk-blue-light) !important;
}

.ahk-fg-intro-text {
    max-width: 430px !important;
    margin: 0 auto 32px !important;
    text-align: center !important;
    color: #ffffff !important;
    font-size: 1.04rem !important;
    line-height: 1.68 !important;
    font-weight: 500 !important;
}

.ahk-fg-intro-text strong {
    color: #ffffff !important;
    font-weight: 850 !important;
}

.ahk-fg-btn-primary,
#ahk-fg-start-btn,
#ahk-fg-submit-btn {
    appearance: none !important;
    border: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 58px !important;
    padding: 15px 22px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--ahk-blue), #6e9cff) !important;
    color: #ffffff !important;
    font-family: Orbitron, Inter, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 18px 40px rgba(73,122,228,0.30) !important;
}

.ahk-fg-btn-primary:hover,
#ahk-fg-start-btn:hover,
#ahk-fg-submit-btn:hover {
    filter: brightness(1.08);
}

.ahk-fg-privacy-note {
    margin: 14px 0 0 !important;
    color: rgba(120,145,190,0.75) !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

.ahk-fg-progress-wrap {
    margin: 28px 0 28px;
}

.ahk-fg-progress-bar {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
}

.ahk-fg-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ahk-blue), #7aa0ff);
    transition: width 0.25s ease;
}

.ahk-fg-progress-text {
    display: block;
    margin-top: 10px;
    color: var(--ahk-muted);
    font-size: 0.82rem;
    text-align: center;
}

.ahk-fg-question-wrap {
    background: var(--ahk-card);
    border: 1px solid rgba(73,122,228,0.24);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

.ahk-fg-question-text {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.35;
    text-align: center;
    font-weight: 800;
}

.ahk-fg-answers {
    display: grid;
    gap: 12px;
}

.ahk-fg-answer-btn {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(73,122,228,0.28);
    border-radius: 14px;
    background: rgba(255,255,255,0.045);
    color: #fff;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
}

.ahk-fg-answer-btn:hover {
    border-color: rgba(73,122,228,0.75);
    background: rgba(73,122,228,0.12);
}

.ahk-fg-answer-key {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(73,122,228,0.18);
    color: var(--ahk-blue-light);
    font-family: Orbitron, Inter, sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
}

.ahk-fg-answer-label {
    font-size: 0.96rem;
    line-height: 1.35;
    color: rgba(255,255,255,0.88);
}

.ahk-fg-quiz-nav {
    margin-top: 18px;
    text-align: center;
}

.ahk-fg-btn-back,
.ahk-fg-btn-ghost {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.82);
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
}

.ahk-fg-result-header {
    text-align: left;
    margin: 24px 0 22px;
}

.ahk-fg-headline {
    margin: 0 0 12px;
    font-family: Orbitron, Inter, sans-serif;
    color: #fff;
    font-size: 2rem;
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ahk-fg-headline span {
    color: var(--ahk-blue-light);
}

.ahk-fg-subline {
    color: var(--ahk-muted);
    margin: 0;
    max-width: 360px;
    line-height: 1.5;
}

.ahk-fg-cards {
    display: grid;
    gap: 18px;
}

.ahk-fg-card {
    position: relative;
    background: var(--ahk-card-strong);
    border: 1px solid rgba(73,122,228,0.35);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.25);
    overflow: hidden;
}

.ahk-fg-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.ahk-fg-card-title {
    margin: 0;
    font-family: Orbitron, Inter, sans-serif;
    font-size: 1.05rem;
    line-height: 1.2;
    color: #fff;
}

.ahk-fg-card-rank {
    flex: 0 0 auto;
    color: #ffcc4d;
    font-family: Orbitron, Inter, sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ahk-fg-card-fuel {
    margin-top: 10px;
    color: var(--ahk-blue-light);
    font-size: 0.85rem;
}

.ahk-fg-match-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
}

.ahk-fg-match-bar {
    flex: 1;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
}

.ahk-fg-match-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ahk-blue), #83a7ff);
}

.ahk-fg-match-pct {
    color: var(--ahk-blue-light);
    font-family: Orbitron, Inter, sans-serif;
    font-size: 0.78rem;
}

.ahk-fg-card-text {
    margin: 0;
    color: rgba(210,222,255,0.78);
    font-size: 0.94rem;
    line-height: 1.58;
}

.ahk-fg-stock-tile {
    margin-top: 20px !important;
    padding: 15px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(73,122,228,0.58) !important;
    background: linear-gradient(180deg, rgba(73,122,228,0.18), rgba(9,14,24,0.92)) !important;
    box-shadow: 0 16px 38px rgba(0,0,0,0.30) !important;
}

.ahk-fg-stock-kicker {
    color: #6d97ff !important;
    font-family: Orbitron, Inter, sans-serif !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    margin: 0 0 12px !important;
    letter-spacing: 0.02em !important;
}

.ahk-fg-stock-img-link {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.06) !important;
}

.ahk-fg-stock-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 170px !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 14px !important;
    margin: 0 !important;
    background: rgba(255,255,255,0.06) !important;
    image-rendering: auto !important;
}

.ahk-fg-stock-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 0 0 14px !important;
}

.ahk-fg-stock-meta span {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 9px !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,0.09) !important;
    color: rgba(255,255,255,0.88) !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
}

.ahk-fg-stock-btns {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    margin-top: 12px !important;
}

.ahk-fg-stock-btn {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 11px !important;
    text-decoration: none !important;
    font-family: Orbitron, Inter, sans-serif !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.045em !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18) !important;
}

.ahk-fg-stock-btn-detail,
.ahk-fg-stock-btn--detail {
    background: linear-gradient(135deg, #497AE4, #6e9cff) !important;
    color: #ffffff !important;
}

.ahk-fg-stock-btn-wa,
.ahk-fg-stock-btn--wa {
    background: linear-gradient(135deg, #17b85c, #25D366) !important;
    color: #ffffff !important;
}

.ahk-fg-stock-btn:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-1px);
}

.ahk-fg-wa-section {
    margin-top: 28px;
    padding: 22px;
    border-radius: 20px;
    background: rgba(16, 22, 34, 0.82);
    border: 1px solid rgba(73,122,228,0.22);
}

.ahk-fg-wa-title {
    margin: 0 0 8px;
    color: #fff;
    font-family: Orbitron, Inter, sans-serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.ahk-fg-wa-desc {
    margin: 0 0 24px;
    color: rgba(210,222,255,0.78);
    line-height: 1.58;
    font-size: 0.95rem;
}

.ahk-fg-wa-fields {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 17px !important;
}

.ahk-fg-field-group {
    width: 100% !important;
}

.ahk-fg-field-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-family: Orbitron, Inter, sans-serif !important;
    color: rgba(255,255,255,0.86) !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.ahk-fg-field-group input {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(73,122,228,0.45) !important;
    background: rgba(255,255,255,0.07) !important;
    color: #ffffff !important;
    padding: 13px 14px !important;
    font-size: 1rem !important;
    outline: none !important;
}

.ahk-fg-field-group input:focus {
    border-color: #6d97ff !important;
    box-shadow: 0 0 0 3px rgba(73,122,228,0.18) !important;
}

.ahk-fg-req {
    color: #6d97ff;
}

.ahk-fg-privacy-row {
    margin: 16px 0 18px !important;
}

.ahk-fg-privacy-label {
    display: grid !important;
    grid-template-columns: 24px 1fr !important;
    gap: 11px !important;
    align-items: start !important;
    cursor: pointer !important;
}

.ahk-fg-privacy-label input[type="checkbox"] {
    display: block !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 3px 0 0 !important;
    opacity: 1 !important;
    position: static !important;
}

.ahk-fg-privacy-text {
    color: rgba(255,255,255,0.78);
    font-size: 0.84rem;
    line-height: 1.48;
}

.ahk-fg-privacy-text a {
    color: #6d97ff !important;
}

.ahk-fg-form-error {
    color: #ff6b6b !important;
    background: rgba(255, 70, 70, 0.14) !important;
    border: 1px solid rgba(255, 70, 70, 0.35) !important;
    border-radius: 10px !important;
    padding: 11px 12px !important;
    margin: 0 0 14px !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
}

.ahk-fg-result-footer,
.ahk-fg-success-inner {
    text-align: center;
    margin-top: 24px;
}

.ahk-fg-success-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.ahk-fg-loading {
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 24px;
}

@media (max-width: 420px) {
    #ahk-fg-app {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ahk-fg-title-main {
        font-size: clamp(3.35rem, 18vw, 5rem) !important;
    }

    .ahk-fg-title-brand {
        font-size: 0.82rem !important;
        letter-spacing: 0.06em !important;
    }

    .ahk-fg-intro-text {
        font-size: 1.02rem !important;
        line-height: 1.66 !important;
    }
}

@media (min-width: 520px) {
    #ahk-fg-app {
        max-width: 560px;
    }

    .ahk-fg-stock-btns {
        grid-template-columns: 1fr 1fr !important;
    }
}