:root {
    --bg: #0b1020;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(255, 255, 255, 0.6);
    --text: #0f172a;
    --muted: #64748b;
    --tg: #229ed9;
    --tg-2: #2aabee;
    --tg-hover: #1d8cc0;
    --radius: 24px;
    --shadow: 0 30px 60px -20px rgba(2, 8, 23, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ---------- animated background ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(1200px 600px at 50% -10%, #1e293b 0%, transparent 60%),
        linear-gradient(160deg, #0b1020 0%, #111a33 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: float 14s ease-in-out infinite;
}

.blob--1 { width: 340px; height: 340px; top: -60px; left: -40px; background: #2aabee; animation-delay: 0s; }
.blob--2 { width: 300px; height: 300px; bottom: -80px; right: -40px; background: #7c3aed; animation-delay: -4s; }
.blob--3 { width: 260px; height: 260px; top: 40%; right: 30%; background: #06b6d4; animation-delay: -8s; opacity: 0.4; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, -30px) scale(1.08); }
}

/* ---------- card ---------- */
.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: rise 0.6s cubic-bezier(.21,.99,.43,1) both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card__media {
    position: relative;
    width: 100%;
    background: #e8eef6;
    overflow: hidden;
}

.card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__media--fallback {
    background:
        radial-gradient(120px 120px at 30% 30%, rgba(255,255,255,.35), transparent 70%),
        linear-gradient(135deg, var(--tg-2), #7c3aed);
}

.card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(2, 8, 23, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- body ---------- */
.card__body {
    position: relative;
    padding: 30px 28px 30px;
    text-align: center;
}

.card__icon {
    width: 64px;
    height: 64px;
    margin: -62px auto 16px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--tg-2), var(--tg));
    box-shadow: 0 12px 28px -8px rgba(42, 171, 238, 0.7);
    border: 3px solid #fff;
    position: relative;
    z-index: 2;
}

.card__icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.card__title {
    font-size: 24px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.card__subtitle {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

.card__actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 650;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.btn__icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--tg-2), var(--tg));
    box-shadow: 0 14px 30px -10px rgba(34, 158, 217, 0.8);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px -10px rgba(34, 158, 217, 0.9);
    filter: brightness(1.03);
}

.btn--primary:active {
    transform: translateY(0);
}

.card__note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 480px) {
    .card__body { padding: 26px 22px; }
    .card__title { font-size: 21px; }
    .card__subtitle { font-size: 14px; }
}
