:root {
    --bg-color: #0f0f0f;
    --card-bg: #1c1c1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #8774e1; /* Telegram purple-ish */
    --accent-hover: #6f5cc3;
    --button-gradient: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%); /* Example gradient */
    --button-solid: #6b4eff; /* Purple from screens */
    --green: #4caf50;
    --danger: #ff4b4b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; /* Space for bottom nav */
}

.app-container {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
}

.user-handle {
    color: var(--text-secondary);
    font-size: 13px;
}

.balance-container {
    text-align: right;
}

.balance-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.balance-value {
    font-size: 24px;
    font-weight: 700;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.current-plan-card .card-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.current-plan-card .plan-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:active {
    opacity: 0.8;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-primary {
    background-color: var(--button-solid);
    color: white;
    margin-top: 8px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    margin-top: 12px;
}

/* Section Title */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 16px 0;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .plans-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.plan-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-header {
    margin-bottom: 12px;
}

.plan-header h3 {
    font-size: 18px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: normal;
}

.plan-credits {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.plan-price-tag {
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.price-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.price-usd {
    font-weight: 700;
    font-size: 16px;
}

.price-rub {
    color: var(--text-secondary);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.features-list {
    list-style: none;
    margin: 12px 0;
    flex-grow: 1;
}

.features-list li {
    font-size: 13px;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    color: #ddd;
}

.check {
    color: var(--accent-color);
    font-weight: bold;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: black;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-item.active {
    color: var(--text-primary);
}

.nav-item .icon {
    font-size: 20px;
}
