/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { color-scheme: dark; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
    color: #e5e7eb;
    min-height: 100vh;
    padding: 2rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
}
.page { max-width: 1200px; margin: 0 auto; width: 100%; flex: 1; }
.site-footer {
    margin-top: auto;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}
.footer-nav a:hover { color: #38bdf8; }

/* ===== Header ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.logo-link { display: inline-block; text-decoration: none; }
.logo-link img { height: 48px; width: auto; display: block; }
.main-nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}
.nav-link:hover { background: rgba(56, 189, 248, 0.2); }
.nav-link.active { background: rgba(56, 189, 248, 0.3); font-weight: 500; }
.nav-link.disabled { color: #6b7280; cursor: not-allowed; opacity: 0.5; }

/* ===== Typography ===== */
.page-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; color: #f9fafb; }
.page-subtitle { font-size: 1.1rem; color: #9ca3af; margin-bottom: 3rem; }
.section-title { font-size: 1.3rem; font-weight: 600; color: #f9fafb; margin-bottom: 1.5rem; }
.title-block h1 { font-size: 1.8rem; font-weight: 600; color: #f9fafb; margin-bottom: 0.5rem; }
.user-info { font-size: 0.9rem; color: #9ca3af; }
.user-info strong { color: #e5e7eb; }

/* ===== Buttons & Links ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.btn:hover { background: rgba(30, 64, 175, 0.9); border-color: rgba(96, 165, 250, 0.8); transform: translateY(-1px); }
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 999px;
    font-size: 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: 1px solid rgba(22, 163, 74, 0.5);
    color: #022c22;
    font-weight: 600;
    box-shadow: 0 12px 35px rgba(22, 163, 74, 0.4);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary:hover { background: linear-gradient(135deg, #16a34a, #15803d); border-color: rgba(22, 163, 74, 0.8); transform: translateY(-2px); box-shadow: 0 18px 45px rgba(22, 163, 74, 0.6); }
.btn-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 35px rgba(22, 163, 74, 0.55);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.1s ease;
}
.btn-pay:hover { transform: translateY(-1px); box-shadow: 0 18px 45px rgba(22, 163, 74, 0.7); filter: brightness(1.05); }
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #fff;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
}
.btn-google:hover { background: #e2e8f0; }
.btn-google svg { width: 20px; height: 20px; }
a { color: #7f9cf5; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Cards ===== */
.card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), rgba(15,23,42,0.95));
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: rgba(56, 189, 248, 0.6); }
.card-name { font-size: 1.1rem; font-weight: 600; color: #f9fafb; }
.card-description { font-size: 0.9rem; color: #9ca3af; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: #cbd5f5; }
.meta-pill { padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(96, 165, 250, 0.6); }
.meta-pill-muted { border-color: rgba(148, 163, 184, 0.6); }
.price-main { font-size: 1.2rem; font-weight: 600; color: #facc15; }
.price-label { font-size: 0.8rem; color: #9ca3af; }
.card-footer { margin-top: 0.8rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.price { display: flex; flex-direction: column; gap: 0.1rem; }

/* ===== Message / Status cards (light on dark) ===== */
.message-page { display: flex; justify-content: center; padding: 2rem 0; }
.message-card {
    background: rgba(255,255,255,0.95);
    color: #333;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    text-align: center;
}
.message-card .icon { font-size: 64px; margin-bottom: 20px; }
.message-card h1 { color: #333; margin-bottom: 10px; font-size: 24px; }
.message-card p { color: #666; margin-bottom: 20px; line-height: 1.6; }
.message-card .back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
}
.message-card .back-link:hover { background: #5568d3; }
.message-card .status-code { color: #ef4444; font-size: 14px; font-weight: 600; margin-top: 20px; }
.message-card .error-icon { font-size: 64px; margin-bottom: 20px; }
.message-card .message { color: #6b7280; font-size: 16px; margin-bottom: 30px; line-height: 1.6; }

/* ===== Flash messages ===== */
.flash-list { margin-bottom: 1rem; }
.flash-success { padding: 0.75rem; background: rgba(34, 197, 94, 0.2); color: #86efac; border-radius: 8px; margin-bottom: 0.5rem; }
.flash-error {
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

/* ===== Profile ===== */
.profile-page-header { margin-bottom: 1.5rem; }
.profile-page-header.header { margin-bottom: 1.5rem; }
.nav-badge { background: #ef4444; color: #fff; padding: 0.15rem 0.4rem; border-radius: 999px; font-size: 0.75rem; margin-left: 0.25rem; }
.profile-nav { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(148, 163, 184, 0.3); }
.profile-nav .btn { margin: 0; }
.empty-state { text-align: center; padding: 3rem 1.5rem; color: #9ca3af; }
.empty-state h3 { font-size: 1.2rem; color: #e5e7eb; margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* ===== Home: Hero, Features, CTA ===== */
.hero { text-align: center; margin-bottom: 4rem; padding: 3rem 0; }
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.25rem; color: #9ca3af; max-width: 800px; margin: 0 auto 2rem; line-height: 1.6; }
.hero-image { margin: 2rem 0; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.hero-image img { width: 100%; height: auto; display: block; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.feature-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), rgba(15,23,42,0.95));
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.75rem; color: #f9fafb; }
.feature-card p { color: #9ca3af; line-height: 1.6; }
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), rgba(15,23,42,0.95));
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 3rem;
}
.cta-section h2 { font-size: 2rem; font-weight: 600; margin-bottom: 1rem; color: #f9fafb; }
.cta-section p { font-size: 1.1rem; color: #9ca3af; margin-bottom: 2rem; }
.games-preview { margin-top: 4rem; }
.games-preview h2 { font-size: 2rem; font-weight: 600; margin-bottom: 1.5rem; color: #f9fafb; }
.games-preview-subtitle { font-size: 1.1rem; color: #9ca3af; margin-bottom: 2rem; }
.games-preview-subtitle a { color: #60a5fa; text-decoration: none; }
.games-preview-subtitle a:hover { text-decoration: underline; }
.games-grid-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.game-preview-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.game-preview-card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.5); }
.game-preview-card img { width: 100%; height: 200px; object-fit: cover; }
.game-preview-card .game-name { padding: 1rem; font-weight: 600; color: #f9fafb; font-size: 0.95rem; }

/* ===== Games list ===== */
.category { margin-bottom: 4rem; }
.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #f9fafb;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.game-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), rgba(15,23,42,0.95));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.6); box-shadow: 0 12px 40px rgba(15, 23, 42, 0.8); }
.game-screenshot { width: 100%; height: 200px; object-fit: cover; display: block; }
.game-content { padding: 1.5rem; }
.game-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.game-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.game-info { flex: 1; }
.game-name { font-size: 1.2rem; font-weight: 600; color: #f9fafb; margin-bottom: 0.5rem; }
.game-description { font-size: 0.9rem; color: #9ca3af; line-height: 1.5; }

/* ===== Instruction ===== */
.instruction-page h1 { font-size: 1.8rem; font-weight: 600; color: #f9fafb; margin-bottom: 0.5rem; }
.instruction-page .subtitle { font-size: 0.95rem; color: #9ca3af; margin-bottom: 2rem; }
.instruction-page h2 { font-size: 1.25rem; color: #e5e7eb; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(148, 163, 184, 0.3); }
.instruction-page h3 { font-size: 1.05rem; color: #cbd5e1; margin: 1.25rem 0 0.5rem; }
.instruction-page p { font-size: 0.95rem; line-height: 1.6; color: #9ca3af; margin-bottom: 0.75rem; }
.instruction-page ol, .instruction-page ul { margin: 0.5rem 0 1rem 1.5rem; color: #9ca3af; }
.instruction-page li { margin-bottom: 0.4rem; line-height: 1.5; }
.instruction-page a { color: #7f9cf5; text-decoration: none; }
.instruction-page a:hover { text-decoration: underline; }
.instruction-page .step-num {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    background: rgba(127, 156, 245, 0.3);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}
.instruction-page .note {
    background: rgba(127, 156, 245, 0.1);
    border-left: 4px solid #7f9cf5;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
}
.instruction-page code { background: rgba(15, 23, 42, 0.8); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em; }

/* ===== Login ===== */
.login-wrapper { display: flex; align-items: flex-start; justify-content: center; width: 100%; margin-top: 2rem; }
.login-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.login-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: #5eead4;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.login-card .badge-dot { width: 6px; height: 6px; border-radius: 999px; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.25); }
.login-card h1 { font-size: 1.6rem; font-weight: 600; color: #f9fafb; margin-bottom: 0.5rem; }
.login-card p { font-size: 0.95rem; line-height: 1.5; color: #9ca3af; margin-bottom: 1.75rem; }
.login-card .highlight { color: #e5e7eb; font-weight: 500; }
.login-card .footer-note { margin-top: 1.5rem; font-size: 0.8rem; color: #6b7280; }
.login-card .footer-note a { color: #38bdf8; text-decoration: none; }
.login-card .footer-note a:hover { text-decoration: underline; }

/* ===== Pricing ===== */
.pricing-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.pricing-header .subtitle { font-size: 0.95rem; color: #9ca3af; max-width: 440px; }
.auth-block { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; text-align: right; }
.auth-status { font-size: 0.8rem; color: #9ca3af; }
.auth-status span { color: #a5b4fc; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.pricing-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), rgba(15,23,42,0.95));
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 18px;
    padding: 1.6rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.9);
}
.pricing-card .card-description { min-height: 2.5rem; }
.pricing-note { margin-top: 1.6rem; font-size: 0.8rem; color: #6b7280; }
.pricing-note strong { color: #e5e7eb; }

/* ===== Payment ===== */
.payment-page-wrap {
    margin: 0 -1.5rem -3rem;
    padding: 2rem 1.5rem 3rem;
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.payment-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    margin: 2rem auto;
}
.payment-card h1 { color: #333; margin-bottom: 10px; font-size: 24px; }
.payment-card .package-name { color: #667eea; font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.payment-card .package-description { color: #666; margin-bottom: 30px; line-height: 1.6; }
.payment-card .amount { font-size: 36px; font-weight: bold; color: #333; margin-bottom: 30px; text-align: center; }
.payment-card .amount-label { font-size: 14px; color: #999; text-align: center; margin-bottom: 10px; }
.payment-card .back-link { display: block; text-align: center; margin-top: 20px; color: #667eea; text-decoration: none; font-size: 14px; }
.payment-card .back-link:hover { text-decoration: underline; }
#cp-widget { margin-top: 30px; }

/* ===== WireGuard ===== */
.wg-login-wrap { display: flex; justify-content: center; padding: 2rem 0; }
.wg-login-card {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}
.wg-login-card h1 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
.wg-login-card .sub { color: #94a3b8; font-size: 0.95rem; margin-bottom: 2rem; }
.wg-login-card .back { margin-top: 1.5rem; }
.wg-login-card .back a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; }
.wg-login-card .back a:hover { color: #7f9cf5; }
.wg-dashboard .user { margin-bottom: 2rem; color: #94a3b8; }
.wg-dashboard .nav a { color: #7f9cf5; text-decoration: none; margin-right: 1rem; }
.wg-dashboard .nav a:hover { text-decoration: underline; }
.wg-dashboard .nav { margin-bottom: 2rem; }
.wg-dashboard .section {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.wg-dashboard .section h2 { font-size: 1.1rem; margin-bottom: 1rem; color: #fff; }
.wg-dashboard .pkg {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.wg-dashboard .pkg:last-child { border-bottom: none; }
.wg-dashboard .pkg .name { font-weight: 500; color: #e5e7eb; }
.wg-dashboard .pkg .state { font-size: 0.85rem; color: #94a3b8; }
.wg-dashboard .pkg .btn { padding: 0.4rem 0.8rem; background: #7f9cf5; color: #fff; text-decoration: none; border-radius: 6px; font-size: 0.9rem; }
.wg-dashboard .pkg .btn:hover { background: #6366f1; }
.wg-tariffs h1 { margin-bottom: 1.5rem; font-size: 2rem; color: #f9fafb; }
.wg-tariffs .auth-links { margin-bottom: 2rem; }
.wg-tariffs .auth-links a { color: #7f9cf5; text-decoration: none; margin-right: 1rem; }
.wg-tariffs .auth-links a:hover { text-decoration: underline; }
.wg-tariffs .packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.wg-tariffs .card { padding: 1.5rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.08); }
.wg-tariffs .card h3 { margin-bottom: 0.5rem; color: #fff; }
.wg-tariffs .card .desc { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1rem; }
.wg-tariffs .card .price { font-size: 1.5rem; font-weight: bold; color: #7f9cf5; margin-bottom: 1rem; }
.wg-tariffs .card .btn { display: inline-block; padding: 0.6rem 1.2rem; background: #7f9cf5; color: #fff; text-decoration: none; border-radius: 8px; font-weight: 500; }
.wg-tariffs .card .btn:hover { background: #6366f1; }

/* ===== Subscription browser ===== */
.sub-browser-wrap { display: flex; justify-content: center; padding: 2rem 0; }
.sub-browser-card {
    background: rgba(255,255,255,0.95);
    color: #333;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}
.sub-browser-card h1 { color: #333; margin-bottom: 10px; font-size: 28px; }
.sub-browser-card .status { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 30px; }
.sub-browser-card .status.active { background: #10b981; color: white; }
.sub-browser-card .status.inactive { background: #ef4444; color: white; }
.sub-browser-card .info-section { margin-bottom: 30px; }
.sub-browser-card .info-section h2 { color: #555; font-size: 18px; margin-bottom: 15px; border-bottom: 2px solid #e5e7eb; padding-bottom: 8px; }
.sub-browser-card .info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.sub-browser-card .info-row:last-child { border-bottom: none; }
.sub-browser-card .info-label { color: #6b7280; font-weight: 500; }
.sub-browser-card .info-value { color: #111827; font-weight: 600; }
.sub-browser-card .subscription-link-section { background: #f9fafb; border-radius: 12px; padding: 20px; margin-top: 30px; }
.sub-browser-card .subscription-link-section h2 { color: #555; font-size: 18px; margin-bottom: 15px; }
.sub-browser-card .link-input-group { display: flex; gap: 10px; margin-bottom: 15px; }
.sub-browser-card .link-input { flex: 1; padding: 12px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-family: monospace; }
.sub-browser-card .link-input:focus { outline: none; border-color: #667eea; }
.sub-browser-card .btn { padding: 12px 24px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.sub-browser-card .btn-primary { background: #667eea; color: white; }
.sub-browser-card .btn-primary:hover { background: #5568d3; }
.sub-browser-card .clients-list { margin-top: 20px; }
.sub-browser-card .clients-list h3 { color: #555; font-size: 16px; margin-bottom: 12px; }
.sub-browser-card .clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sub-browser-card .client-item { padding: 10px; background: white; border: 1px solid #e5e7eb; border-radius: 8px; text-align: center; font-size: 14px; color: #374151; }
.sub-browser-card .client-item-link { display: block; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.sub-browser-card .client-item-link:hover { border-color: #667eea; transform: translateY(-1px); }
.sub-toast { position: fixed; bottom: 20px; right: 20px; background: #10b981; color: white; padding: 12px 24px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); display: none; z-index: 1000; }
.sub-toast.show { display: block; animation: sub-toast-in 0.3s ease-out; }
@keyframes sub-toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== Dev ===== */
.dev-telegram .container { max-width: 500px; }
.dev-telegram h1 { font-size: 1.25rem; margin-bottom: 0.5rem; color: #94a3b8; }
.dev-telegram p { margin-bottom: 1.5rem; color: #64748b; font-size: 0.9rem; }
.dev-telegram a { display: inline-block; padding: 0.75rem 1.25rem; background: #334155; color: #e2e8f0; text-decoration: none; border-radius: 8px; margin-right: 0.5rem; margin-bottom: 0.5rem; }
.dev-telegram a:hover { background: #475569; }
.dev-telegram .link-admin { background: #0f766e; }
.dev-telegram .link-admin:hover { background: #0d9488; }
.dev-telegram .link-user { background: #1e40af; }
.dev-telegram .link-user:hover { background: #2563eb; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .games-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 2rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.1rem; }
    .features { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pricing-top { flex-direction: column; align-items: flex-start; }
    .auth-block { align-items: flex-start; text-align: left; }
}
