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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

:root {
    --primary: #00b0f0;
    --primary-light: #00c8f0;
    --primary-dark: #009ad0;
    --accent: #00d0f0;
    --accent-light: #60d8f0;

    --bg-dark: #040d14;
    --bg-darker: #020910;
    --bg-card: rgba(0, 176, 240, 0.06);
    --bg-card-hover: rgba(0, 176, 240, 0.10);
    --bg-card-solid: #081820;

    --text-light: #f0f8ff;
    --text-gray: #8ab4c8;
    --text-muted: #5a8898;

    --border: rgba(0, 176, 240, 0.12);
    --border-hover: rgba(0, 176, 240, 0.35);

    --gradient: linear-gradient(135deg, #009ad0 0%, #00b0f0 50%, #00c8f0 100%);
    --gradient-text: linear-gradient(135deg, #00c8f0 0%, #00d8f0 50%, #60e0f8 100%);
    --gradient-hover: linear-gradient(135deg, #00b0f0 0%, #00c8f0 50%, #40d8f0 100%);

    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

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

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

/* ===== STARS BACKGROUND ===== */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--opacity); transform: scale(1); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 10, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 176, 240, 0.4);
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--text-light);
    background: var(--bg-card);
}

.nav-cta {
    background: var(--gradient) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(0, 176, 240, 0.3);
}

.nav-cta:hover {
    box-shadow: 0 4px 24px rgba(0, 176, 240, 0.5) !important;
    transform: translateY(-1px);
    background: var(--gradient-hover) !important;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu span {
    width: 22px;
    height: 2px;
    background: var(--text-gray);
    border-radius: 2px;
    transition: all 0.3s;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 176, 240, 0.12) 0%, rgba(0, 154, 208, 0.08) 40%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 100px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 200, 240, 0.08) 0%, transparent 70%);
    animation: heroGlow 12s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h1 .hero-line:first-child {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-content h1 .hero-line:last-child {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    line-height: 1.7;
}

.subtitle strong {
    color: var(--primary-light);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 176, 240, 0.35);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before { left: 100%; }

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(0, 176, 240, 0.5);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    padding: 16px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    background: var(--bg-card);
}

.cta-secondary svg {
    width: 18px;
    height: 18px;
}

.cta-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-light);
    background: var(--bg-card-hover);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 64px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

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

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    background: rgba(0, 176, 240, 0.10);
    border: 1px solid rgba(0, 176, 240, 0.18);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-header h2,
.order-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-light);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 100px 0;
    position: relative;
}

.steps {
    display: flex;
    align-items: center;
    gap: 24px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.4s;
}

.step:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 176, 240, 0.10);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 176, 240, 0.3);
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}

.step p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.step-arrow {
    font-size: 24px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== ORDER FORM ===== */
.order-form-section {
    padding: 100px 0;
    position: relative;
}

.order-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.order-info {
    padding-top: 20px;
}

.order-info h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.order-info > p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.order-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.feature:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

/* Form Card */
.order-form-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-light);
}

.order-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-light);
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 176, 240, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Quick Amount Buttons */
.quick-amounts {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.quick-amounts button {
    flex: 1;
    padding: 8px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amounts button:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(0, 176, 240, 0.08);
}

.quick-amounts button:active {
    transform: scale(0.96);
}

/* Order Summary */
.order-summary {
    background: rgba(0, 176, 240, 0.06);
    border: 1px solid rgba(0, 176, 240, 0.15);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-row span {
    font-size: 14px;
    color: var(--text-gray);
}

.summary-row strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discount-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 176, 240, 0.10);
}

.discount-badge {
    font-size: 13px !important;
    font-weight: 600;
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 10px;
    border-radius: 100px;
}

/* ===== SBP BUTTON ===== */
.sbp-button {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 176, 240, 0.35);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: buttonShine 3s ease-in-out infinite;
}

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

.sbp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(0, 176, 240, 0.5);
}

.sbp-button:active {
    transform: translateY(-1px);
}

.sbp-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 32px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.toast-error { background: rgba(239, 68, 68, 0.9); }
.toast-success { background: rgba(34, 197, 94, 0.9); }
.toast-info { background: rgba(0, 176, 240, 0.9); }

@keyframes toastIn {
    from { transform: translateY(20px) translateX(20px); opacity: 0; }
    to { transform: translateY(0) translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(6, 10, 20, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }

    .hero { padding: 130px 0 80px; }
    .hero-content h1 { font-size: 48px; letter-spacing: -1px; }
    .subtitle { font-size: 16px; }

    .hero-stats { gap: 24px; }
    .stat strong { font-size: 22px; }

    .steps { flex-direction: column; gap: 16px; }
    .step-arrow { transform: rotate(90deg); }

    .section-header h2, .order-info h2 { font-size: 32px; }

    .order-layout { grid-template-columns: 1fr; gap: 0; }

    .order-info { display: none; }
    .order-form-card { padding: 28px 20px; }

    .hero-buttons { flex-direction: column; align-items: center; }
    .cta-button, .cta-secondary { width: 100%; justify-content: center; }

    .footer-content { flex-direction: column; gap: 24px; }
    .footer-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 40px; }
    .quick-amounts { flex-wrap: wrap; }
    .quick-amounts button { min-width: calc(33% - 8px); }
}

/* ===== TELEGRAM MINI APP MODE ===== */
.tg-miniapp header,
.tg-miniapp .hero,
.tg-miniapp .how-it-works,
.tg-miniapp footer,
.tg-miniapp .stars-bg {
    display: none !important;
}

.tg-miniapp html {
    scroll-padding-top: 0;
}

.tg-miniapp .order-form-section {
    padding: 16px 0 24px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
}

.tg-miniapp .order-form-section::before {
    display: none;
}

.tg-miniapp .order-layout {
    grid-template-columns: 1fr;
    gap: 0;
}

.tg-miniapp .order-info {
    display: none;
}

.tg-miniapp .order-form-card {
    border: none;
    background: transparent;
    padding: 0 4px;
    border-radius: 0;
}

.tg-miniapp .order-form-card::before {
    display: none;
}

.tg-miniapp .form-title {
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
}

.tg-miniapp .form-note {
    display: none;
}

.tg-miniapp .form-group input[readonly] {
    opacity: 0.6;
    cursor: default;
}

/* === MiniApp Welcome === */
.miniapp-welcome {
    display: none;
}

.tg-miniapp .miniapp-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px 8px;
}

.tg-miniapp .miniapp-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.tg-miniapp .miniapp-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 6px;
}

.tg-miniapp .miniapp-subtitle {
    color: #a1a1aa;
    font-size: 14px;
    margin: 0 0 16px;
}

.tg-miniapp .miniapp-features {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #d4d4d8;
}

.tg-miniapp .miniapp-features span {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tg-miniapp .miniapp-features span svg {
    flex-shrink: 0;
}
