/* ================================================
   ZodiacPulse - Professional Mobile-First Website
   Well Maintained | Clean Code | AdSense Ready
   Free Libraries: Font Awesome (CDN)
================================================ */

/* ========== CSS Variables ========== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #fbbf24;
    --dark: #1e1b4b;
    --light: #f8fafc;
    --background: #f1e7ff;
    --text: #1e293b;
    --text-light: #64748b;
    --card-bg: #ffffff;
    --border: #e0e7ff;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-size: 16px;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Night Mode Variables */
body.night-mode {
    --background: #0f172a;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --card-bg: #1e293b;
    --border: #334155;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4);
}

/* ========== Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    font-size: var(--font-size);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Header ========== */
header {
    background: linear-gradient(135deg, var(--dark), #312e81);
    color: white;
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.55rem;
    font-weight: 700;
    color: white;
}

.logo svg {
    width: 34px;
    height: 34px;
}
.logo i {
    font-size: 1.45rem;
    width: 34px;
    text-align: center;
}

/* Mobile Menu Button */
.nav-toggle {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.25);
}

/* Slide Navigation */
.nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    padding: 2rem 1.25rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    box-shadow: -8px 0 20px rgba(0,0,0,0.25);
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #c7d2fe;
    padding: 0.9rem 1rem;
    margin-bottom: 0.35rem;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: rgba(99, 102, 241, 0.25);
    color: white;
    transform: translateX(6px);
}

/* ========== Main Content ========== */
main {
    flex: 1;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* Page Title */
.page-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.2;
}

/* ========== Zodiac Cards ========== */
.zodiac-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}

@media (min-width: 640px) {
    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.zodiac-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.zodiac-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.zodiac-image {
    height: 195px;
    background: linear-gradient(135deg, #f0e7ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.zodiac-image img {
    max-height: 160px;
    width: auto;
    transition: transform 0.4s ease;
}

.zodiac-card:hover .zodiac-image img {
    transform: scale(1.06);
}

.zodiac-info {
    padding: 1.35rem 1.25rem;
}

.zodiac-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.zodiac-dates {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.85rem;
}

.zodiac-description {
    font-size: 0.95rem;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ========== Horoscope Action Buttons ========== */
.buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 1.5rem 0 2rem;
}

.horoscope-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.05rem 1.35rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgb(99 102 241 / 0.35);
    transition: var(--transition);
}

.horoscope-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(99 102 241 / 0.4);
}

.horoscope-btn i {
    font-size: 1.35rem;
    opacity: 0.9;
}

/* ========== Reading Page ========== */
.reading-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

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

.reading-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
}

.reading-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.night-mode .control-btn {
    background: #1e293b;
    border-color: #6366f1;
    color: #6366f1;
}

.control-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.reading-content {
    font-size: var(--font-size);
    line-height: 1.85;
    color: var(--text);
    min-height: 180px;
}

.reading-content p {
    margin-bottom: 1rem;
}

/* Continue Button */
.continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--secondary), #db2777);
    color: white;
    padding: 0.9rem 2.1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1.25rem;
    box-shadow: 0 4px 6px -1px rgb(236 72 153 / 0.3);
    transition: var(--transition);
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgb(236 72 153 / 0.35);
}

/* ========== Share Section ========== */
.share-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.75rem 0;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.share-content {
    background: #3b82f6;
}

.share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

/* ========== Advertisement Container (AdSense Ready) ========== */
.ad-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    color: #64748b;
    font-size: 0.95rem;
    text-align: center;
    padding: 1.5rem;
}

.night-mode .ad-container {
    background: #1e293b;
    border-color: #475569;
}

/* ========== Footer ========== */
footer {
    background: var(--dark);
    color: #c7d2fe;
    padding: 2.25rem 1rem 1.75rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.policy-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem 1.6rem;
    margin-bottom: 1.1rem;
}

.policy-link {
    color: #c7d2fe;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.policy-link:hover {
    color: white;
}

/* ========== Responsive Enhancements ========== */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }
    
    .reading-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .horoscope-btn {
        font-size: 1rem;
        padding: 0.95rem 1.2rem;
    }
}

/* ========== Utility ========== */
.text-center {
    text-align: center;
}

/* ========== Love Compatibility ========== */
.compat-lead {
    text-align: center;
    color: var(--text-light);
    margin: -0.75rem auto 1.5rem;
    max-width: 36rem;
}

.compat-picker {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.15rem 1.5rem;
    margin-bottom: 1.5rem;
}

.compat-fieldset {
    border: 0;
    margin: 0 0 1.35rem;
    padding: 0;
}

.compat-legend {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    display: block;
}

.sign-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

@media (min-width: 640px) {
    .sign-chip-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sign-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.65rem 0.3rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--card-bg);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    min-height: 76px;
}

.sign-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sign-chip .chip-symbol {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--primary);
}

.sign-chip .chip-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.sign-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.sign-chip:has(input:checked) {
    border-color: var(--secondary);
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.12), rgba(99, 102, 241, 0.08));
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.compat-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--secondary), #db2777);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 6px -1px rgb(236 72 153 / 0.3);
    transition: var(--transition);
}

.compat-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgb(236 72 153 / 0.35);
}

.compat-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.9rem;
}

.compat-result {
    margin-bottom: 1.5rem;
}

.compat-pair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.compat-person {
    flex: 1;
    text-align: center;
}

.compat-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0e7ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--card-bg);
    box-shadow: var(--shadow);
}

.night-mode .compat-avatar {
    background: linear-gradient(135deg, #312e81, #1e1b4b);
}

.compat-avatar img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.compat-avatar .chip-symbol {
    font-size: 2.2rem;
    color: var(--primary);
}

.compat-person h3 {
    font-size: 1.05rem;
    color: var(--primary);
}

.compat-person p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.compat-heart {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #db2777);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(236, 72, 153, 0.35);
}

.score-hero {
    text-align: center;
    margin: 0.5rem 0 1.4rem;
}

.score-ring {
    --score: 0;
    width: 148px;
    height: 148px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: conic-gradient(var(--secondary) calc(var(--score) * 1%), var(--border) 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-ring-inner {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.score-caption {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.score-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.compat-bars {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 1.25rem 0 0.5rem;
}

.compat-bar-row span {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.28rem;
}

.compat-bar-row strong {
    color: var(--primary);
}

.compat-bar-track {
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.compat-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.compat-section {
    margin-top: 1.4rem;
}

.compat-section h3 {
    font-size: 1.12rem;
    color: var(--primary);
    margin-bottom: 0.55rem;
}

.compat-section p {
    margin-bottom: 0.85rem;
}

.compat-list {
    margin: 0.4rem 0 0 1.1rem;
    color: var(--text);
}

.compat-list li {
    margin-bottom: 0.45rem;
}

.date-ideas {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.date-idea {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.date-idea i {
    color: var(--secondary);
    margin-top: 0.2rem;
}

.popular-pairs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.popular-pair {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 0.7rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.popular-pair:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
}

.compat-disclaimer {
    font-size: 0.82rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1.5rem;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #111827; }
.share-btn.sms { background: #0ea5e9; }
.share-btn.copy { background: #6366f1; }

.try-another {
    display: inline-flex;
    margin: 0.5rem auto 0;
}

/* ========== AI Personality ========== */
.ai-intro {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.ai-bot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
}

.ai-bubble {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px 16px 16px 6px;
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow);
    flex: 1;
}

.ai-bubble strong {
    color: var(--primary);
}

.ai-field {
    margin-bottom: 1.15rem;
}

.ai-field label,
.ai-label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.ai-input,
.ai-select {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text);
    font: inherit;
    appearance: none;
}

.ai-input:focus,
.ai-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.date-row {
    display: grid;
    grid-template-columns: 1.3fr 0.75fr 0.95fr;
    gap: 0.5rem;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.choice-chip {
    display: block;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.65rem;
    cursor: pointer;
    background: var(--card-bg);
    transition: var(--transition);
    min-height: 72px;
}

.choice-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-chip strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
}

.choice-chip small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: var(--text-light);
    font-weight: 500;
}

.choice-chip:hover {
    border-color: var(--primary);
}

.choice-chip:has(input:checked) {
    border-color: var(--secondary);
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.12), rgba(99, 102, 241, 0.08));
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.ai-or {
    text-align: center;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0.35rem 0 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ai-analyzing {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.4rem 1.4rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.ai-orb {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: conic-gradient(from 90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    animation: ai-spin 1.2s linear infinite;
    position: relative;
}

.ai-orb::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--card-bg);
}

@keyframes ai-spin {
    to { transform: rotate(360deg); }
}

.ai-analyzing p {
    font-weight: 700;
    color: var(--primary);
    min-height: 1.5em;
}

.ai-steps {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.ai-steps span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.ai-steps span.on {
    background: var(--secondary);
}

.archetype-kicker {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.35rem;
}

.archetype-title {
    text-align: center;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.archetype-tagline {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.85rem 0 1.1rem;
}

.tag {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 99px;
}

.insight-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-top: 0.65rem;
}

.insight-card h4 {
    color: var(--secondary);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.ai-meta {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

/* ========== Save / Install App ========== */
.share-btn.install {
    background: #312e81 !important;
    color: #ffffff !important;
    border: 0;
}
.share-btn.install:hover {
    background: #4338ca !important;
    color: #ffffff !important;
    filter: none;
}

.install-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    z-index: 400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.install-modal[hidden] {
    display: none !important;
}

.install-card {
    background: var(--card-bg);
    color: var(--text);
    border-radius: 20px 20px 16px 16px;
    padding: 1.5rem 1.25rem 1.35rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    margin-bottom: 0.5rem;
}

.install-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.85rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--dark), #312e81);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.install-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
}

.install-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
}

.install-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.install-yes,
.install-no {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.9rem 1rem;
    border-radius: 50px;
}

.install-yes {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.install-no {
    background: transparent;
    color: var(--text-light);
}

@media (min-width: 640px) {
    .install-modal {
        align-items: center;
    }
    .install-card {
        border-radius: 20px;
    }
}

.legal-card {
    background: var(--card-bg);
    padding: 2rem 1.4rem;
    border-radius: var(--radius);
    line-height: 1.7;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.legal-card h3 {
    margin-top: 1.5rem;
    color: var(--primary);
}
.legal-card ul {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
}
.legal-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 0.8rem 0 1rem;
    display: block;
    overflow-x: auto;
}
.legal-card th,
.legal-card td {
    border: 1px solid var(--border);
    padding: 0.45rem 0.5rem;
    text-align: left;
    vertical-align: top;
}
.ad-video {
    margin: 1.5rem 0;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}
.home-lead {
    text-align: center;
    color: var(--text-light);
    margin: -0.9rem auto 1.5rem;
    max-width: 36rem;
}

.home-copy {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 1.2rem 1.7rem;
    margin: 1.5rem 0 0;
    line-height: 1.75;
}

.home-copy h2 {
    color: var(--primary);
    font-size: 1.25rem;
    margin: 1.35rem 0 0.55rem;
}

.home-copy h2:first-child {
    margin-top: 0;
}

.home-copy p {
    margin-bottom: 0.85rem;
}

.home-copy ul {
    margin: 0 0 1rem 1.15rem;
}

.feature-grid {
    display: grid;
    gap: 0.85rem;
    margin: 1rem 0 1.25rem;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-card {
    display: block;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.05rem 1rem 1.15rem;
    color: inherit;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
}

.feature-card i {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.feature-card h3 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin: 0;
}

.feature-card .feature-go {
    display: inline-block;
    margin-top: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
}

.home-disclaimer {
    font-size: 0.86rem;
    color: var(--text-light);
    margin-top: 1.1rem;
}

.ios-steps {
    text-align: left;
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--text);
}

.ios-steps li {
    margin-bottom: 0.45rem;
}

.ad-video video,
.ad-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}