* {
    font-family: 'Poppins', sans-serif;
}

html,
body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    background: #f2ede6;
    transition: background 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dark body {
    background: #0a0a0f;
}

.ambient {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ambient span {
    position: absolute;
    border-radius: 9999px;
    background: #f97316;
    opacity: 0.10;
    filter: blur(60px);
}

.dark .ambient span {
    opacity: 0.14;
}

.ambient span:nth-child(1) {
    width: 320px;
    height: 320px;
    top: -80px;
    left: -60px;
}

.ambient span:nth-child(2) {
    width: 260px;
    height: 260px;
    bottom: -60px;
    right: -40px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(31, 41, 55, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    position: relative;
    z-index: 10;
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(249, 115, 22, 0.3) transparent;
    padding: 2rem 2.5rem;
}

.glass-card::-webkit-scrollbar {
    width: 4px;
}

.glass-card::-webkit-scrollbar-track {
    background: transparent;
}

.glass-card::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.3);
    border-radius: 20px;
}

.dark .glass-card {
    background: rgba(20, 20, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.dark .glass-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-chip {
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark .glass-chip {
    background: rgba(251, 146, 60, 0.10);
    border: 1px solid rgba(251, 146, 60, 0.18);
}

.icon-badge {
    background: #f97316;
}

.dark .icon-badge {
    background: #ea580c;
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-14px) scale(1.02);
    }
    100% {
        transform: translateY(0px) scale(1);
    }
}

.pulse-ring {
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45);
    }
    80% {
        box-shadow: 0 0 0 20px rgba(249, 115, 22, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

.dot-pulse span {
    display: inline-block;
    animation: dotBounce 1.2s infinite ease-in-out;
}

.dot-pulse span:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-pulse span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%,
    80%,
    100% {
        transform: scale(0.4);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.theme-toggle {
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

.txt-heading {
    color: #1f2937;
}

.dark .txt-heading {
    color: #ffffff;
}

.txt-body {
    color: #4b5563;
}

.dark .txt-body {
    color: #b7b7c4;
}

.txt-muted {
    color: #6b7280;
}

.dark .txt-muted {
    color: #8a8a98;
}

.txt-faint {
    color: #9ca3af;
}

.dark .txt-faint {
    color: #6a6a78;
}

.txt-accent {
    color: #ea580c;
}

.dark .txt-accent {
    color: #fb923c;
}

.visitor-count {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.visitor-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.25rem 1rem !important;
        max-height: 95vh;
    }

    .text-5xl {
        font-size: 2.25rem !important;
    }

    .text-4xl {
        font-size: 1.75rem !important;
    }

    body {
        padding: 0.5rem;
    }

    .w-24 {
        width: 5rem !important;
        height: 5rem !important;
    }

    .text-4xl.md\:text-5xl {
        font-size: 2.25rem !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .glass-card {
        padding: 1.5rem 1.75rem !important;
    }
}