* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #EAF1FF;
    background: linear-gradient(180deg, #0A1830 0%, #050A14 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 64px;
}

.wrap {
    width: 100%;
    max-width: 640px;
}

h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 4px;
}

.subtitle {
    text-align: center;
    color: #9FB3D9;
    margin-bottom: 32px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.tariff {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.tariff-name {
    font-size: 20px;
    font-weight: 600;
}

.tariff-price {
    color: #9FB3D9;
    margin-top: 4px;
}

button, .btn {
    background: #2F6FED;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #4C8DFF;
}

.status {
    text-align: center;
    font-size: 18px;
    margin: 24px 0;
}

.status.pending { color: #E8B93F; }
.status.issued { color: #4ADE80; }

.center { text-align: center; }

.qr {
    display: block;
    margin: 24px auto;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    width: 220px;
    height: 220px;
}

.downloads {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.download-card {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(47,111,237,0.18), rgba(255,255,255,0.04));
    border: 1px solid rgba(76,141,255,0.35);
    border-radius: 16px;
    padding: 18px 20px;
    text-decoration: none;
    color: #EAF1FF;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.download-card:hover {
    transform: translateY(-2px);
    border-color: #4C8DFF;
    background: linear-gradient(135deg, rgba(47,111,237,0.28), rgba(255,255,255,0.06));
}

.download-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: #4C8DFF;
}

.download-title {
    font-size: 17px;
    font-weight: 700;
}

.download-sub {
    color: #9FB3D9;
    font-size: 13px;
    margin-top: 2px;
}

.hint {
    color: #9FB3D9;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #2F6FED;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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