/* ===== TOKENS ===== */
:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --blue: #1e3a8a;
    --blue-light: #3b82f6;
    --indigo: #4f46e5;
    --purple: #8b5cf6;
    --sky: #e0f2fe;
    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.1);
    --amber: #f59e0b;
    --amber-bg: rgba(245, 158, 11, 0.1);
    --text: #1e293b;
    --text-sec: #64748b;
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Animation Tokens */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}


/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--navy);
    position: relative;
    color: #cbd5e1;
    font-size: .78rem;
    padding: 8px 0;
    letter-spacing: .02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

/* Animated accent bar above top-bar */
.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-light), var(--indigo), var(--purple), var(--blue-light));
    background-size: 300% auto;
    animation: shine 6s linear infinite;
    z-index: 2;
}

.top-bar i {
    font-size: .9rem;
    vertical-align: middle;
    margin-right: 4px;
    opacity: .7;
}

/* ===== HEADER ===== */
.header {
    background: radial-gradient(circle at 0% 0%, #1e3a8a 0%, #0f172a 100%);
    color: #fff;
    padding: 32px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    position: relative;
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-logo {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(255, 255, 255, .95);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle-hi {
    font-size: .98rem;
    opacity: .9;
    margin-top: 2px;
    font-weight: 500;
    color: #e2e8f0;
}

.subtitle {
    font-size: .88rem;
    opacity: .7;
    margin-top: 1px;
    font-weight: 400;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }

    50% {
        opacity: .8;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(180deg, #0f172a 0%, var(--bg) 100%);
    padding: 48px 0 40px;
    text-align: center;
    color: #fff;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}


/* ===== MAIN ===== */
.main-content {
    flex: 1;
    padding-bottom: 56px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 20px;
    margin-top: -4px;
}

.section-label i {
    font-size: 1.1rem;
}

/* ===== DASHBOARD GRID ===== */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    padding-top: 8px;
}

/* ===== CARD BASE ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Card Status Glows */
.card-live:hover {
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.1), 0 10px 10px -5px rgba(16, 185, 129, 0.04);
}

.card-live::before {
    background: var(--green);
}

.card-dev:hover {
    box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.1), 0 10px 10px -5px rgba(245, 158, 11, 0.04);
}

.card-dev::before {
    background: var(--amber);
}

.card-placeholder {
    border: 2px dashed #e2e8f0;
    background: rgba(248, 250, 252, 0.5);
    cursor: default;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.card-placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: #cbd5e1;
}

/* Card Icon */
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: transform 0.3s var(--ease-out);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-3deg);
}

.icon-live {
    background: radial-gradient(circle at top left, #f0f9ff, #e0f2fe);
    color: var(--blue-light);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}

.icon-dev {
    background: radial-gradient(circle at top left, #fffbeb, #fef3c7);
    color: var(--amber);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.1);
}

.icon-placeholder {
    background: #f1f5f9;
    color: #94a3b8;
    margin: 0 auto 16px;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--navy);
}

.card-desc {
    font-size: .9rem;
    color: var(--text-sec);
    flex: 1;
    line-height: 1.5;
}

/* Badge */
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-live {
    background: #dcfce7;
    color: #166534;
}

.badge-dev {
    background: #fef3c7;
    color: #92400e;
}

.badge-live i {
    font-size: .5rem;
    animation: pulse 2s infinite;
}

/* Card Action */
.card-action {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: .88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-light);
    transition: gap 0.2s;
}

.card:hover .card-action {
    gap: 12px;
    color: var(--indigo);
}

.dev-action {
    color: var(--text-sec);
}


/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    color: #94a3b8;
    padding: 0;
    font-size: .82rem;
    margin-top: auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 0 24px;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, .9);
    padding: 3px;
}

.footer-brand strong {
    display: block;
    color: #e2e8f0;
    font-size: .95rem;
}

.footer-brand span {
    font-size: .78rem;
    color: #64748b;
}

.footer-links h4 {
    color: #e2e8f0;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.footer-link-grid {
    display: flex;
    gap: 12px;
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #cbd5e1;
    transition: background .2s, transform .2s, box-shadow .2s;
    min-width: 170px;
}

.footer-link-item:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.footer-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(96, 165, 250, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #60a5fa;
    flex-shrink: 0;
}

.footer-link-item strong {
    display: block;
    font-size: .8rem;
    color: #e2e8f0;
    font-weight: 600;
}

.footer-link-item span {
    font-size: .72rem;
    color: #64748b;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
}

.disclaimer {
    font-size: .75rem;
    opacity: .65;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
    padding: 16px 0 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 24px;
    font-size: .78rem;
}

.footer-bottom p {
    margin: 0;
}

.developed-by a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.developed-by a:hover {
    color: #93c5fd;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--card);
    border-radius: var(--radius);
    width: 92%;
    max-width: 440px;
    padding: 36px 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn .25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-sec);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-icon-wrap {
    font-size: 3rem;
    color: var(--amber);
    margin-bottom: 12px;
}

.modal h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.modal p {
    color: var(--text-sec);
    font-size: .92rem;
    margin-bottom: 24px;
}

.btn {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.btn:hover {
    background: var(--navy);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-meta {
        align-self: flex-start;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.25rem;
    }

    .header-logo {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 150;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .4);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .55);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(-10px);
    pointer-events: auto;
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: #111827;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(0);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #111827;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(37, 211, 102, .4);
    }

    50% {
        box-shadow: 0 4px 14px rgba(37, 211, 102, .4), 0 0 0 12px rgba(37, 211, 102, .1);
    }
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #e2e8f0;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, .2);
}

.lang-toggle i {
    font-size: .95rem;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

/* ===== DYNAMIC BRANDING ===== */
.brand-link-dynamic {
    display: inline-flex;
    align-items: center;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.brand-main {
    background: linear-gradient(90deg, #4338ca, #8b5cf6, #4f46e5, #4338ca);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-precise 3s linear infinite;
}

.brand-dot-in {
    background: linear-gradient(90deg, #f59e0b, #ea580c, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-precise 3s linear infinite;
}

@keyframes shine-precise {
    to {
        background-position: 200% center;
    }
}