/* ============================================
   TG:ON Landing Page Styles
   Dark cyberpunk theme with neon accents
   ============================================ */

:root {
    --neon-blue: #00f2ff;
    --neon-purple: #bd00ff;
    --neon-green: #0aff00;
    --neon-red: #ff003c;
    --bg-dark: #030305;
    --bg-card: rgba(10, 10, 12, 0.8);
    --text: #fff;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent { color: var(--neon-blue); }
.gradient-text {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: white; }

.btn-nav {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)) !important;
    color: black !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700 !important;
    font-size: 12px !important;
}

/* HERO */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 242, 255, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(0, 242, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--neon-blue);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    color: black;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.5);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.btn-ghost:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--neon-blue);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* SECTIONS */
.section {
    padding: 100px 0;
}

.section-dark {
    background: rgba(10, 10, 12, 0.5);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
}

.section-sub {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 48px;
}

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: rgba(0, 242, 255, 0.2);
    transform: translateY(-4px);
}

.step-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(0, 242, 255, 0.1);
    line-height: 1;
    margin-bottom: 8px;
}

.step-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-muted); }

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(0, 242, 255, 0.2);
}

.feature-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* PRICING */
.billing-toggle-wrap {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.billing-btn {
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.billing-btn.active {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: black;
}

.save-badge {
    font-size: 10px;
    color: var(--neon-green);
    font-weight: 800;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s;
}

.pricing-card:hover {
    border-color: rgba(0, 242, 255, 0.2);
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: black;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.pricing-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.pricing-name { font-size: 20px; font-weight: 800; margin-bottom: 12px; }

.pricing-price {
    margin-bottom: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-period {
    font-size: 14px;
    color: var(--text-muted);
}

.price-equiv {
    font-size: 11px;
    color: var(--neon-green);
    margin-bottom: 20px;
    min-height: 16px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 6px 0;
    font-size: 13px;
}

.feature-yes { color: var(--text); }
.feature-yes::before { color: var(--neon-green); }
.feature-no { color: rgba(255, 255, 255, 0.3); }

.btn-pricing {
    display: block;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: black;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    text-decoration: none;
    transition: all 0.3s;
}

.btn-pricing:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

/* DOWNLOAD */
.download-section {
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.download-btn:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
    transform: translateY(-2px);
}

.dl-label { font-size: 11px; color: var(--text-muted); }
.dl-platform { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.dl-note { font-size: 11px; color: var(--text-muted); }

.platform-logo {
    opacity: 0.5;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px auto 20px;
    max-width: 400px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.section-divider span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Terminal Install */
.terminal-install {
    text-align: center;
}

.term-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.term-prompt {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 17px;
    font-weight: 800;
    color: #000;
    line-height: 1;
}

.download-btn.terminal {
    cursor: pointer;
    color: #000;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    padding: 18px 36px;
    gap: 14px;
}

.download-btn.terminal .dl-label {
    color: rgba(0, 0, 0, 0.55);
    font-size: 12px;
    font-weight: 600;
}

.download-btn.terminal .dl-platform {
    color: #000;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.download-btn.terminal .platform-logo {
    opacity: 0.6;
    width: 16px;
    height: 16px;
}

.download-btn.terminal:hover {
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.4);
    transform: translateY(-2px);
}

.terminal-install .dl-note {
    color: var(--neon-blue);
    font-weight: 600;
    font-size: 13px;
    margin-top: 12px;
}

/* ===== NEON ICON SYSTEM ===== */

/* Glassmorphism card overlay */
.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: glass-shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glass-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Neon icon wrapper */
.neon-icon-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.neon-icon-wrap svg {
    width: 28px;
    height: 28px;
    color: white;
    position: relative;
    z-index: 2;
}

/* Neon aura glow */
.neon-aura {
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    filter: blur(16px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    animation: pulse-aura 3s ease-in-out infinite alternate;
}

@keyframes pulse-aura {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.3); opacity: 0.7; }
}

/* Float animations */
@keyframes neon-float-1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes neon-float-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes neon-float-3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.float-1 { animation: neon-float-1 3s ease-in-out infinite; }
.float-2 { animation: neon-float-2 4s ease-in-out infinite 0.5s; }
.float-3 { animation: neon-float-3 3.5s ease-in-out infinite 1s; }

/* ===== ICON COLOR VARIANTS ===== */

/* Cyan (download, starter) */
.neon-icon-wrap.icon-cyan {
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}
.icon-cyan > .neon-aura { background: #22d3ee; }

/* Purple (smartphone, pro) */
.neon-icon-wrap.icon-purple {
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
}
.icon-purple > .neon-aura { background: #c084fc; }

/* Orange/Fire (rocket, agency) */
.neon-icon-wrap.icon-orange {
    background: linear-gradient(135deg, #fb923c, #dc2626);
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.4);
}
.icon-orange > .neon-aura { background: #fb923c; }

/* Blue (send) */
.neon-icon-wrap.icon-blue {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}
.icon-blue > .neon-aura { background: #60a5fa; }

/* Teal (satellite-dish) */
.neon-icon-wrap.icon-teal {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}
.icon-teal > .neon-aura { background: #2dd4bf; }

/* Fuchsia (bot) */
.neon-icon-wrap.icon-fuchsia {
    background: linear-gradient(135deg, #e879f9, #9333ea);
    box-shadow: 0 0 20px rgba(232, 121, 249, 0.4);
}
.icon-fuchsia > .neon-aura { background: #e879f9; }

/* Pink (users) */
.neon-icon-wrap.icon-pink {
    background: linear-gradient(135deg, #f472b6, #f97316);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.4);
}
.icon-pink > .neon-aura { background: #f472b6; }

/* Emerald (lock-keyhole) */
.neon-icon-wrap.icon-emerald {
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}
.icon-emerald > .neon-aura { background: #34d399; }

/* Lime (shield-check) */
.neon-icon-wrap.icon-lime {
    background: linear-gradient(135deg, #a3e635, #16a34a);
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.4);
}
.icon-lime > .neon-aura { background: #a3e635; }

/* Per-card hover glow matching icon color */
.glass-card:has(.icon-cyan):hover  { border-color: rgba(34, 211, 238, 0.3) !important; box-shadow: 0 0 30px rgba(34, 211, 238, 0.08); }
.glass-card:has(.icon-purple):hover { border-color: rgba(192, 132, 252, 0.3) !important; box-shadow: 0 0 30px rgba(192, 132, 252, 0.08); }
.glass-card:has(.icon-orange):hover { border-color: rgba(251, 146, 60, 0.3) !important; box-shadow: 0 0 30px rgba(251, 146, 60, 0.08); }
.glass-card:has(.icon-blue):hover   { border-color: rgba(96, 165, 250, 0.3) !important; box-shadow: 0 0 30px rgba(96, 165, 250, 0.08); }
.glass-card:has(.icon-teal):hover   { border-color: rgba(45, 212, 191, 0.3) !important; box-shadow: 0 0 30px rgba(45, 212, 191, 0.08); }
.glass-card:has(.icon-fuchsia):hover { border-color: rgba(232, 121, 249, 0.3) !important; box-shadow: 0 0 30px rgba(232, 121, 249, 0.08); }
.glass-card:has(.icon-pink):hover   { border-color: rgba(244, 114, 182, 0.3) !important; box-shadow: 0 0 30px rgba(244, 114, 182, 0.08); }
.glass-card:has(.icon-emerald):hover { border-color: rgba(52, 211, 153, 0.3) !important; box-shadow: 0 0 30px rgba(52, 211, 153, 0.08); }
.glass-card:has(.icon-lime):hover   { border-color: rgba(163, 230, 53, 0.3) !important; box-shadow: 0 0 30px rgba(163, 230, 53, 0.08); }

/* Inline Lucide icons in pricing feature lists */
.inline-icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.icon-color-teal { color: #2dd4bf; }
.icon-color-emerald { color: #34d399; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .float-1, .float-2, .float-3 { animation: none; }
    .neon-aura { animation: none; }
    .glass-card::before { animation: none; }
}

/* FAQ */
.faq-container { max-width: 700px; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover { border-color: rgba(255, 255, 255, 0.15); }

.faq-q {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-arrow {
    transition: transform 0.3s;
    color: var(--text-muted);
}

.faq-item.open .faq-arrow { transform: rotate(90deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0 20px;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 20px 16px;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.logo-text { font-size: 18px; font-weight: 800; }
.footer-brand p { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

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

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

.footer-links a:hover { color: white; }
.footer-copy { font-size: 11px; color: rgba(255, 255, 255, 0.55); }

/* BURGER — hidden, not used */
.burger { display: none; }

/* RESPONSIVE — Tablet (≤768px) */
@media (max-width: 768px) {
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 12px; }
    .btn-nav { padding: 7px 14px; font-size: 11px !important; }

    .steps-grid,
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 16px; }
    .stat-divider { height: 24px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* RESPONSIVE — Phone (≤480px): compact nav */
@media (max-width: 480px) {
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 11px; }
    .btn-nav { padding: 6px 10px; font-size: 10px !important; }
}

@media (max-width: 480px) {
    .hero { padding: 120px 0 60px; }
    .section { padding: 60px 0; }
    .download-buttons { flex-direction: column; align-items: center; }
}

/* ============================================
   Payment Modal Styles
   ============================================ */
#payment-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.pm-modal {
    background: #12121a;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pm-spinner {
    width: 48px; height: 48px;
    border: 3px solid #222;
    border-top: 3px solid #00e5ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.pm-key-box {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.pm-key {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 18px;
    color: #00e5ff;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 12px;
    word-break: break-all;
}

.pm-copy-btn {
    background: #252540;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 16px;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.pm-copy-btn:hover {
    background: #333;
    color: #fff;
}

.pm-email-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

@media (max-width: 480px) {
    .pm-modal { padding: 28px 20px; }
    .pm-key { font-size: 14px; }
}

/* ============================================
   macOS Install Modal
   ============================================ */

.mi-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mi-overlay.mi-visible {
    opacity: 1;
}

.mi-modal {
    background: #0d0d14;
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 0 60px rgba(0, 242, 255, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}
.mi-visible .mi-modal {
    transform: translateY(0) scale(1);
}

.mi-modal::-webkit-scrollbar { width: 4px; }
.mi-modal::-webkit-scrollbar-track { background: transparent; }
.mi-modal::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 255, 0.2);
    border-radius: 2px;
}

/* Close */
.mi-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: #555;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}
.mi-close:hover { color: #fff; }

/* Header */
.mi-header {
    text-align: center;
    margin-bottom: 24px;
}
.mi-header-icon {
    width: 48px; height: 48px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f2ff;
}
.mi-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}
.mi-subtitle {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* Why link */
.mi-why-link {
    background: none;
    border: none;
    color: #00f2ff;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
}
.mi-why-info {
    background: rgba(0, 242, 255, 0.04);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.mi-why-info p {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* Method cards */
.mi-method {
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 12px;
    position: relative;
}
.mi-method-primary {
    background: rgba(0, 242, 255, 0.04);
    border: 1px solid rgba(0, 242, 255, 0.2);
}
.mi-method-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}
.mi-method-secondary:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}
.mi-method-secondary .mi-method-header {
    margin-bottom: 0;
    justify-content: space-between;
}

/* RECOMMENDED badge */
.mi-method-badge {
    position: absolute;
    top: -10px; left: 20px;
    background: linear-gradient(135deg, #00f2ff, #bd00ff);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 10px;
    letter-spacing: 1.5px;
}

.mi-method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.mi-method-icon {
    font-size: 20px;
}
.mi-method-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.mi-method-meta {
    font-size: 11px;
    color: #666;
    display: block;
}
.mi-method-desc {
    font-size: 13px;
    color: #888;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Code block */
.mi-code-block {
    background: #000;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    color: #00f2ff;
    overflow-x: auto;
    margin-bottom: 14px;
    word-break: break-all;
    line-height: 1.5;
}
.mi-code-block::before {
    content: '$ ';
    color: #555;
}
.mi-code-block code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

/* Action buttons */
.mi-method-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.mi-btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00f2ff, #bd00ff);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.mi-btn-copy:hover {
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.35);
    transform: translateY(-1px);
}
.mi-btn-copy.mi-copied {
    background: linear-gradient(135deg, #34d399, #059669);
}
.mi-btn-copy svg {
    flex-shrink: 0;
}

.mi-btn-hint {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}
.mi-btn-hint:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Terminal hint */
.mi-terminal-hint {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    counter-reset: hint-step;
}
.mi-hint-step {
    font-size: 13px;
    color: #888;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    counter-increment: hint-step;
}
.mi-hint-step::before {
    content: counter(hint-step);
    font-size: 10px;
    font-weight: 700;
    color: #00f2ff;
    background: rgba(0, 242, 255, 0.1);
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mi-hint-step kbd {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: inherit;
    color: #fff;
}

/* Arrow */
.mi-arrow {
    font-size: 24px;
    color: #666;
    transition: transform 0.2s;
}
.mi-method-secondary:hover .mi-arrow {
    transform: translateX(3px);
    color: #fff;
}

/* === Phase 2: Manual Steps === */

.mi-back {
    background: none;
    border: none;
    color: #00f2ff;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.mi-back:hover { color: #fff; }

.mi-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
}
.mi-step {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s;
}
.mi-step:hover {
    border-color: rgba(255, 255, 255, 0.1);
}
.mi-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.1);
    color: #00f2ff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.mi-step-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.mi-step-content p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin: 0;
}
.mi-step-note {
    color: #fbbf24 !important;
    font-size: 12px !important;
    margin-top: 6px !important;
}

/* Download button */
.mi-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00f2ff, #bd00ff);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
}
.mi-btn-download:hover {
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.35);
    transform: translateY(-1px);
}

/* Drag visual illustration */
.mi-drag-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.mi-drag-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #00f2ff;
}
.mi-drag-icon span {
    font-size: 11px;
    color: #888;
    font-weight: 600;
}
.mi-drag-folder {
    color: #bd00ff;
}
.mi-drag-folder span {
    color: #bd00ff;
}
.mi-drag-arrow {
    color: #555;
    animation: mi-pulse-arrow 1.5s ease-in-out infinite;
}
@keyframes mi-pulse-arrow {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}

/* Settings button */
.mi-btn-settings {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #00f2ff;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}
.mi-btn-settings:hover {
    background: rgba(0, 242, 255, 0.15);
}

/* Fallback hint */
.mi-fallback-hint {
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 242, 255, 0.04);
    border: 1px solid rgba(0, 242, 255, 0.1);
    text-align: center;
}
.mi-fallback-hint p {
    font-size: 13px;
    color: #888;
    margin: 0 0 10px;
}
.mi-btn-ghost {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 20px;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.mi-btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile variant */
.mi-modal.mi-mobile {
    max-width: 400px;
    text-align: center;
}
.mi-mobile-support {
    margin-top: 24px;
    font-size: 13px;
    color: #888;
}
.mi-mobile-support a {
    color: #00f2ff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 480px) {
    .mi-modal {
        padding: 24px 18px;
        border-radius: 16px;
        max-height: 90vh;
    }
    .mi-method-actions {
        flex-direction: column;
    }
    .mi-code-block {
        font-size: 11px;
    }
    .mi-title {
        font-size: 18px;
    }
}
