:root {
    --bg: radial-gradient(circle at top, #0f172a, #020617);
    --card-bg: rgba(15, 23, 42, 0.75);
    --border: rgba(0, 136, 204, 0.3);
    --telegram-blue: #0088cc;
    --telegram-light: #38bdf8;
    --star-gold: #facc15;
    --text: #ffffff;
    --text-dim: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    padding-bottom: 60px;
}

.container {
    padding: 0 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.logo-main {
    font-weight: 900;
    font-size: 22px;
}

.logo-sub {
    color: var(--telegram-blue);
}

.btn-back {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
}

/* Title */
.page-title {
    font-size: 26px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #0088cc, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 25px;
}

/* ===================== */
/* STARS GRID */
/* ===================== */

.stars-packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stars-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Star glow animation */
.stars-card::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(56,189,248,0.15), transparent);
    transform: rotate(25deg);
    transition: 0.7s;
}

.stars-card:hover::before {
    top: 120%;
}

.stars-card:hover {
    transform: translateY(-6px);
    border-color: var(--telegram-light);
    box-shadow: 0 0 25px rgba(0,136,204,0.5);
}

/* Active */
.stars-card.active {
    border: 2px solid var(--star-gold);
    box-shadow: 0 0 25px rgba(250,204,21,0.6);
}

/* Icon */
.stars-icon-wrap img {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(56,189,248,0.6));
}

/* Stars amount */
.stars-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

/* Price */
.stars-price {
    color: var(--telegram-light);
    font-weight: 800;
    font-size: 15px;
}

/* ===================== */
/* ORDER SUMMARY */
/* ===================== */

.order-summary {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--telegram-blue);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 25px;
}

.sum-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.val {
    font-weight: 800;
    color: var(--star-gold);
}

/* ===================== */
/* BUTTON */
/* ===================== */

.btn-primary-lg {
    width: 100%;
    background: linear-gradient(90deg, #0088cc, #0ea5e9);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0,136,204,0.5);
}

.btn-primary-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0,136,204,0.8);
}

.btn-primary-lg:disabled {
    background: #1e293b;
    color: #475569;
    box-shadow: none;
    cursor: not-allowed;
}

/* Note */
.note {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 400px) {
    .stars-packages { gap: 10px; }
    .stars-card { padding: 15px 10px; }
    .stars-card h3 { font-size: 16px; }
}