:root {
    --ink: #092235;
    --muted: #5d7280;
    --primary: #0066cc;
    --secondary: #00a3a3;
    --surface: rgba(255, 255, 255, 0.92);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 18%, rgba(0, 102, 204, 0.32), transparent 28%),
        radial-gradient(circle at 84% 14%, rgba(0, 163, 163, 0.34), transparent 25%),
        radial-gradient(circle at 75% 82%, rgba(0, 102, 204, 0.28), transparent 30%),
        linear-gradient(135deg, #eaf8ff 0%, #f8fcff 45%, #e6f7f7 100%);
}

.stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
}

.phone-mockup {
    position: relative;
    width: min(390px, 94vw);
    min-height: 620px;
    padding: 18px 13px 16px;
    border: 10px solid #111827;
    border-radius: 44px;
    background: linear-gradient(160deg, #1f2937, #020617);
    box-shadow:
        0 28px 80px rgba(7, 34, 53, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: floatPhone 5s ease-in-out infinite;
}

.phone-mockup::before {
    content: "";
    position: absolute;
    inset: -22px;
    z-index: -1;
    border-radius: 58px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.22), rgba(0, 163, 163, 0.18));
    filter: blur(18px);
}

.phone-speaker {
    width: 86px;
    height: 6px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: #2e3a47;
}

.card {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    padding: 22px 18px 20px;
    text-align: center;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98)),
        linear-gradient(135deg, rgba(0, 102, 204, 0.16), rgba(0, 163, 163, 0.13));
}

.card::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -80px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.16);
}

.card::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: 90px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(0, 163, 163, 0.14);
}

.hero,
.eyebrow,
h1,
.badges,
.hint,
.actions,
.address {
    position: relative;
    z-index: 1;
}

.hero {
    height: 180px;
    display: grid;
    place-items: center;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 76px;
    height: 76px;
    object-fit: contain;
    padding: 8px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 10px 25px rgba(7, 34, 53, 0.12);
}

.photo-ring {
    width: 158px;
    height: 158px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--primary), var(--secondary), var(--primary));
    box-shadow: 0 18px 38px rgba(7, 34, 53, 0.2);
    animation: pulseRing 2.8s ease-in-out infinite;
}

.doctor-img {
    width: 145px;
    height: 145px;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 50%;
}

.orbit {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 12px 24px rgba(7, 34, 53, 0.18);
    animation: bob 2.6s ease-in-out infinite;
}

.orbit-one {
    right: 26px;
    top: 18px;
    background: var(--primary);
}

.orbit-two {
    right: 2px;
    bottom: 48px;
    background: var(--secondary);
    animation-delay: 0.4s;
}

.orbit-three {
    left: 32px;
    bottom: 32px;
    background: var(--primary);
    animation-delay: 0.8s;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
}

.badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 8px;
}

.badges span {
    min-height: 58px;
    display: grid;
    gap: 5px;
    align-content: center;
    padding: 8px 6px;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 9px 22px rgba(7, 34, 53, 0.08);
}

.badges i {
    color: var(--teal);
    font-size: 16px;
}

.hint {
    margin: 6px 0 8px;
    color: #0c6c75;
    font-size: 12px;
    font-weight: 800;
}

.address {
    margin: 8px 0 0;
    color: #394e5a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.action {
    min-width: 0;
    height: 72px;
    display: grid;
    place-items: center;
    gap: 5px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 13px 24px rgba(7, 34, 53, 0.17);
    transform: translateY(22px);
    opacity: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.5s ease;
}

.action i {
    font-size: 24px;
    animation: iconBeat 2.4s ease-in-out infinite;
}

.action.show {
    transform: translateY(0);
    opacity: 1;
}

.action:hover,
.action:focus-visible {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 30px rgba(7, 34, 53, 0.24);
}

.call {
    background: linear-gradient(135deg, #1fb86f, #0b8f5b);
}

.whatsapp {
    background: linear-gradient(135deg, #28d874, #0a9f57);
}

.email {
    background: linear-gradient(135deg, #ff6b7a, #df3153);
}

.website {
    background: linear-gradient(135deg, #19a2ff, #006dd6);
}

.location {
    background: linear-gradient(135deg, #8f73ff, #5d3edc);
}

.save {
    background: linear-gradient(135deg, #f5bc44, #e47a1f);
}

@keyframes floatPhone {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseRing {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.035);
    }
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(8deg);
    }
}

@keyframes iconBeat {
    0%,
    100% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.12);
    }
}

@media (max-width: 430px) {
    .stage {
        padding: 10px;
    }

    .phone-mockup {
        min-height: 0;
        padding: 14px 10px 12px;
        border-width: 7px;
        border-radius: 34px;
    }

    .card {
        min-height: calc(100vh - 52px);
        padding: 18px 14px;
        border-radius: 24px;
    }

    .hero {
        height: 160px;
    }

    h1 {
        font-size: 26px;
    }

    .action {
        height: 66px;
        border-radius: 15px;
        font-size: 11px;
    }
}

/* Admin Analytics Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.admin-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.admin-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.admin-close:hover {
    color: #333;
}

.admin-content h2 {
    margin: 0 0 20px;
    color: var(--ink);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #f0f9ff, #e6f7f7);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--muted);
}

.stat-number {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.clicks-section {
    margin-bottom: 20px;
}

.clicks-section h3 {
    margin: 0 0 12px;
    color: var(--ink);
}

.click-stats {
    display: grid;
    gap: 8px;
}

.click-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
}

.click-item span:last-child {
    color: var(--primary);
    font-size: 18px;
}

.clear-data {
    width: 100%;
    padding: 12px;
    background: #ff6b7a;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.clear-data:hover {
    background: #df3153;
}
