/* ============================================================
   SEO GENERATOR — COMPLETE CSS
   ============================================================ */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a1628;
    --secondary: #e8491d;
    --bg-light: #f8fafc;
    --text-dark: #0a1628;
    --text-gray: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 60px rgba(232, 73, 29, 0.12);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   HERO SECTION
============================================================ */
.seo-hero {
    background: linear-gradient(165deg, #0a1628 0%, #1a2a4a 50%, #0a1628 100%);
    padding: 60px 0 50px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.seo-hero::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 73, 29, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.seo-hero .container {
    position: relative;
    z-index: 2;
}

.seo-hero .badge {
    display: inline-block;
    background: rgba(232, 73, 29, 0.15);
    color: #e8491d;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.seo-hero h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.15;
}

.seo-hero h1 span {
    color: #e8491d;
}

.seo-hero .sub {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 10px auto 0;
    font-size: 17px;
    line-height: 1.7;
}

.seo-hero .trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.seo-hero .trust-badges .badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-hero .trust-badges .badge-item i {
    color: #22c55e;
    font-size: 14px;
}

/* ============================================================
   MAIN CONTAINER
============================================================ */
.seo-container {
    max-width: 820px;
    margin: -30px auto 0;
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.seo-card {
    background: #fff;
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f6;
}

/* ============================================================
   PREMIUM TOP BAR
============================================================ */
.premium-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eef2f6;
}

.premium-top-bar .text {
    font-weight: 600;
    font-size: 14px;
    color: #0a1628;
}

.premium-top-bar .btn-activate {
    padding: 8px 20px;
    background: #0a1628;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.premium-top-bar .btn-activate:hover {
    background: #e8491d;
}

/* ============================================================
   USAGE COUNTER
============================================================ */
.usage-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 10px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eef2f6;
    flex-wrap: wrap;
    gap: 10px;
}

.usage-counter .count {
    font-weight: 600;
    font-size: 14px;
    color: #0a1628;
}

.usage-counter .count span {
    color: #e8491d;
}

.usage-counter .status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
}

.usage-counter .status.free {
    background: #dcfce7;
    color: #16a34a;
}

.usage-counter .status.exhausted {
    background: #fee2e2;
    color: #dc2626;
}

.usage-counter .status.premium {
    background: #fef3c7;
    color: #d97706;
}

/* ============================================================
   PREMIUM ACTIVATION BOX
============================================================ */
.premium-activation-box {
    display: none;
    margin-top: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eef2f6;
}

.premium-activation-box.show {
    display: block;
}

.premium-activation-box .input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.premium-activation-box .input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fff;
}

.premium-activation-box .input-group .btn-verify {
    padding: 12px;
    background: #e8491d;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.premium-activation-box .input-group .btn-verify:hover {
    background: #0a1628;
}

.premium-activation-box .input-group .btn-verify:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.premium-activation-box .input-group .btn-cancel {
    padding: 8px;
    background: transparent;
    color: #94a3b8;
    border: none;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.premium-activation-box .message {
    font-size: 13px;
    text-align: center;
    display: none;
}

.premium-activation-box .message.error {
    color: #ef4444;
    display: block;
}

.premium-activation-box .message.success {
    color: #22c55e;
    display: block;
}

.premium-activation-box .note {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-top: 4px;
}

/* ============================================================
   FORM
============================================================ */
.seo-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.seo-form .form-group {
    margin-bottom: 14px;
}

.seo-form .form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #0a1628;
    margin-bottom: 4px;
}

.seo-form .form-group label .optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 12px;
}

.seo-form .form-group input,
.seo-form .form-group select {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fafbfc;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.seo-form .form-group input:focus,
.seo-form .form-group select:focus {
    border-color: #e8491d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232, 73, 29, 0.06);
}

/* ============================================================
   GENERATE BUTTON
============================================================ */
.btn-generate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e8491d, #f97316);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin-top: 4px;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(232, 73, 29, 0.35);
}

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-generate .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

.btn-generate.loading .spinner {
    display: block;
}

.btn-generate.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   RESULTS
============================================================ */
.seo-results {
    display: none;
    margin-top: 28px;
    animation: fadeUp 0.5s ease;
}

.seo-results.show {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.result-card {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 20px 18px;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: #e8491d;
    box-shadow: 0 8px 30px rgba(232, 73, 29, 0.06);
}

.result-card .card-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-card .card-label .score {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 50px;
}

.result-card .card-label .score.good {
    background: #dcfce7;
    color: #16a34a;
}

.result-card .card-label .score.warning {
    background: #fef3c7;
    color: #d97706;
}

.result-card .card-label .score.bad {
    background: #fee2e2;
    color: #dc2626;
}

.result-card .card-value {
    font-size: 15px;
    font-weight: 600;
    color: #0a1628;
    margin: 6px 0 2px;
    line-height: 1.4;
    word-break: break-word;
}

.result-card .card-value.desc {
    font-size: 14px;
    font-weight: 400;
    color: #4a5568;
}

.result-card .card-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.result-card .card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.result-card .card-actions button {
    padding: 5px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: #eef2f6;
    color: #0a1628;
}

.result-card .card-actions button:hover {
    background: #e8491d;
    color: #fff;
}

.result-card .card-actions button.copied {
    background: #22c55e;
    color: #fff;
}

.result-card.full {
    grid-column: 1 / -1;
}

/* ============================================================
   INTENT BADGE
============================================================ */
.intent-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.intent-badge.informational {
    background: #dbeafe;
    color: #2563eb;
}

.intent-badge.navigational {
    background: #d1fae5;
    color: #059669;
}

.intent-badge.commercial {
    background: #fef3c7;
    color: #d97706;
}

.intent-badge.transactional {
    background: #fee2e2;
    color: #dc2626;
}

/* ============================================================
   SEO SCORE CARD
============================================================ */
.seo-score-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0a1628, #1a2a4a);
    color: #fff;
    border: none;
}

.seo-score-card .card-label {
    color: rgba(255, 255, 255, 0.5);
}

.seo-score-card .score-number {
    font-size: 44px;
    font-weight: 900;
    color: #22c55e;
    text-align: center;
    margin: 6px 0;
}

.seo-score-card .score-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.seo-score-card .score-bars .bar-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.seo-score-card .score-bars .bar-item .bar-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.seo-score-card .score-bars .bar-track {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.seo-score-card .score-bars .bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
    background: linear-gradient(90deg, #e8491d, #f97316, #22c55e);
}

/* ============================================================
   UPGRADE SCREEN
============================================================ */
.upgrade-screen {
    display: none;
    text-align: center;
    padding: 35px 20px;
    background: linear-gradient(135deg, #0a1628, #1a2a4a);
    border-radius: 24px;
    color: #fff;
    margin-top: 28px;
}

.upgrade-screen.show {
    display: block;
}

.upgrade-screen .icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.upgrade-screen h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.upgrade-screen h2 span {
    color: #e8491d;
}

.upgrade-screen .sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-bottom: 20px;
}

.upgrade-screen .benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 20px;
    text-align: left;
}

.upgrade-screen .benefits .item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.upgrade-screen .benefits .item i {
    color: #22c55e;
}

.upgrade-screen .pricing-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    max-width: 350px;
    margin: 0 auto 20px;
}

.upgrade-screen .pricing-box .price {
    font-size: 32px;
    font-weight: 900;
}

.upgrade-screen .pricing-box .price .old {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 6px;
}

.upgrade-screen .pricing-box .price .offer {
    font-size: 13px;
    color: #22c55e;
    font-weight: 600;
}

.upgrade-screen .pricing-box .sub-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.upgrade-screen .btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.upgrade-screen .btn-upgrade {
    background: #e8491d;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.upgrade-screen .btn-upgrade:hover {
    background: #f97316;
}

.upgrade-screen .btn-premium {
    background: #0a1628;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upgrade-screen .btn-premium:hover {
    background: #1a2a4a;
}

/* ============================================================
   EDUCATIONAL SECTION
============================================================ */
.edu-section {
    padding: 50px 0;
    background: #fff;
}

.edu-section .edu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.edu-section .edu-item {
    text-align: center;
    padding: 20px 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
}

.edu-section .edu-item:hover {
    border-color: #e8491d;
    transform: translateY(-4px);
}

.edu-section .edu-item .icon {
    font-size: 28px;
    color: #e8491d;
    display: block;
    margin-bottom: 6px;
}

.edu-section .edu-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0a1628;
}

.edu-section .edu-item p {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
    margin-top: 4px;
}

/* ============================================================
   TRUST SECTION
============================================================ */
.trust-section {
    padding: 40px 0;
    background: #fafbfc;
}

.trust-section .trust-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.trust-section .trust-item {
    text-align: center;
    padding: 14px 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
}

.trust-section .trust-item i {
    font-size: 24px;
    color: #e8491d;
}

.trust-section .trust-item p {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    color: #0a1628;
}

/* ============================================================
   FOOTER CTA
============================================================ */
.footer-cta {
    padding: 50px 0;
    text-align: center;
    background: linear-gradient(165deg, #0a1628, #1a2a4a);
    color: #fff;
}

.footer-cta h2 {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
}

.footer-cta h2 span {
    color: #e8491d;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 10px auto 20px;
    font-size: 16px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .result-grid { grid-template-columns: 1fr 1fr; }
    .edu-section .edu-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-section .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .upgrade-screen .benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .seo-hero h1 { font-size: 30px; }
    .seo-hero .sub { font-size: 15px; }
    .seo-card { padding: 20px 14px; }
    .seo-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .result-grid { grid-template-columns: 1fr; }
    .result-card.full { grid-column: 1; }
    .seo-score-card .score-bars { grid-template-columns: 1fr; }
    .edu-section .edu-grid { grid-template-columns: 1fr; }
    .trust-section .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .usage-counter { flex-direction: column; text-align: center; }
    .upgrade-screen .benefits { grid-template-columns: 1fr; }
    .upgrade-screen h2 { font-size: 22px; }
    .upgrade-screen .pricing-box .price { font-size: 28px; }
    .footer-cta h2 { font-size: 24px; }
}

@media (max-width: 480px) {
    .seo-hero h1 { font-size: 24px; }
    .seo-hero .trust-badges .badge-item { font-size: 11px; padding: 4px 10px; }
    .seo-card { padding: 16px 10px; border-radius: 16px; }
    .result-card { padding: 14px 12px; }
    .result-card .card-value { font-size: 14px; }
    .trust-section .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .seo-score-card .score-number { font-size: 34px; }
    .premium-top-bar { flex-direction: column; text-align: center; }
}