/*
   RR Construction - Central Command Dashboard
   Premium Light/Dark Theme with Construction Accents
   Default: Light Mode
*/

/* ============================================================
   DESIGN TOKENS - LIGHT MODE (Default)
   ============================================================ */
:root,
[data-theme="light"] {
    /* Backgrounds */
    --bg-main:         #F0F4FA;
    --bg-secondary:    #E4EBF5;
    --card-bg:         rgba(255, 255, 255, 0.75);
    --card-bg-solid:   #FFFFFF;
    --card-border:     rgba(0, 0, 0, 0.07);
    --card-shadow:     0 4px 24px rgba(0, 0, 0, 0.08);
    --header-bg:       rgba(255, 255, 255, 0.72);

    /* Text */
    --text-main:       #1A202C;
    --text-sub:        #4A5568;
    --text-muted:      #94A3B8;

    /* Brand Accent */
    --primary-accent:  #D97706;
    --primary-glow:    rgba(217, 119, 6, 0.25);
    --accent-gradient: linear-gradient(135deg, #EAB308, #D97706);

    /* Orb Colors */
    --orb-tl:  rgba(59, 130, 246, 0.12);
    --orb-br:  rgba(234, 179, 8, 0.10);
    --orb-mid: rgba(16, 185, 129, 0.06);

    /* Grid Pattern */
    --grid-color: rgba(0, 0, 0, 0.04);

    /* Status */
    --success:      #10B981;
    --success-bg:   rgba(16, 185, 129, 0.10);
    --success-border: rgba(16, 185, 129, 0.25);

    /* System Card Accents */
    --admin-color:  #3B82F6;
    --hik-color:    #EF4444;
    --leave-color:  #10B981;
    --vms-color:    #F59E0B;

    /* Toggle */
    --toggle-track-bg: #CBD5E1;
    --toggle-thumb-bg: #FFFFFF;

    /* Welcome gradient text */
    --grad-text-start: #1A202C;
    --grad-text-end:   #64748B;
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
    --bg-main:         #0B0F19;
    --bg-secondary:    #131A2A;
    --card-bg:         rgba(23, 32, 49, 0.70);
    --card-bg-solid:   #17203180;
    --card-border:     rgba(255, 255, 255, 0.06);
    --card-shadow:     0 8px 32px rgba(0, 0, 0, 0.45);
    --header-bg:       rgba(19, 26, 42, 0.55);

    --text-main:       #F8FAFC;
    --text-sub:        #CBD5E1;
    --text-muted:      #64748B;

    --primary-accent:  #EAB308;
    --primary-glow:    rgba(234, 179, 8, 0.30);
    --accent-gradient: linear-gradient(135deg, #EAB308, #B45309);

    --orb-tl:  rgba(59, 130, 246, 0.18);
    --orb-br:  rgba(234, 179, 8, 0.12);
    --orb-mid: rgba(16, 185, 129, 0.08);

    --grid-color: rgba(255, 255, 255, 0.025);

    --success:       #10B981;
    --success-bg:    rgba(16, 185, 129, 0.12);
    --success-border: rgba(16, 185, 129, 0.20);

    --toggle-track-bg: #1E3A5F;
    --toggle-thumb-bg: #EAB308;

    --grad-text-start: #FFFFFF;
    --grad-text-end:   #94A3B8;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ============================================================
   BACKGROUND ELEMENTS
   ============================================================ */
.bg-pattern {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 44px 44px;
    z-index: -2;
    pointer-events: none;
    transition: background-image 0.4s ease;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    pointer-events: none;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.top-left {
    top: -15%; left: -10%;
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, var(--orb-tl) 0%, transparent 70%);
}

.bottom-right {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--orb-br) 0%, transparent 70%);
    animation-delay: -6s;
}

.center-mid {
    top: 40%; left: 35%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--orb-mid) 0%, transparent 70%);
    animation-delay: -3s;
}

@keyframes floatOrb {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 25px) scale(1.06); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.dashboard-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 4rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: var(--header-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    animation: slideDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-icon {
    width: 52px; height: 52px;
    background: #fff;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 24px var(--primary-glow), 0 2px 8px rgba(0,0,0,0.10);
    transition: box-shadow 0.4s ease;
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 0.1rem;
    color: var(--text-main);
    transition: color 0.4s ease;
}

.logo-text span {
    font-size: 0.78rem;
    color: var(--primary-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

/* Header widgets */
.header-widgets {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.time-widget {
    text-align: right;
    padding-right: 1.5rem;
    border-right: 1px solid var(--card-border);
    transition: border-color 0.4s ease;
}

.time-main {
    font-size: 1.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
    transition: color 0.4s ease;
}

.date-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.toggle-track {
    position: relative;
    width: 64px; height: 32px;
    background: var(--toggle-track-bg);
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    transition: background 0.4s ease;
    overflow: hidden;
    border: 1.5px solid var(--card-border);
}

.toggle-icon {
    font-size: 0.9rem;
    z-index: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.toggle-icon.sun  { color: #D97706; margin-right: auto; }
.toggle-icon.moon { color: #94A3B8; margin-left: auto;  }

[data-theme="dark"] .toggle-icon.sun  { opacity: 0.4; }
[data-theme="dark"] .toggle-icon.moon { color: #EAB308; opacity: 1; }
[data-theme="light"] .toggle-icon.sun  { color: #D97706; opacity: 1; }
[data-theme="light"] .toggle-icon.moon { opacity: 0.4; }

.toggle-thumb {
    position: absolute;
    top: 3px; left: 4px;
    width: 24px; height: 24px;
    background: var(--toggle-thumb-bg);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    z-index: 2;
}

[data-theme="dark"]  .toggle-thumb { transform: translateX(32px); }
[data-theme="light"] .toggle-thumb { transform: translateX(0); }

/* User avatar */
.user-profile .avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1.5px solid var(--card-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}

.user-profile .avatar:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    box-shadow: 0 0 14px var(--primary-glow);
}

/* ============================================================
   WELCOME SECTION
   ============================================================ */
.app-content { flex: 1; }

.welcome-section {
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s ease 0.15s both;
}

.welcome-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-accent);
    background: var(--primary-glow);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 1rem;
    border: 1px solid rgba(217,119,6,0.18);
}

.welcome-section h2 {
    font-size: 2.6rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    transition: color 0.4s ease;
    line-height: 1.2;
}

.gradient-text {
    font-weight: 800;
    background: linear-gradient(135deg, var(--grad-text-start), var(--grad-text-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    font-size: 1.05rem;
    color: var(--text-sub);
    transition: color 0.4s ease;
}

/* ============================================================
   SYSTEMS GRID & CARDS
   ============================================================ */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.system-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--delay, 0.1s);
    box-shadow: var(--card-shadow);
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease;
}

/* Subtle top accent line per card */
.system-card::after {
    content: '';
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 2px;
    background: var(--card-accent, var(--primary-accent));
    opacity: 0;
    border-radius: 0 0 4px 4px;
    transition: opacity 0.35s ease;
}

.system-card:hover::after { opacity: 0.6; }

.system-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255,255,255,0.15);
}

[data-theme="dark"] .system-card:hover {
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
}

/* Shine effect */
.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
    border-radius: inherit;
}

[data-theme="dark"] .card-shine {
    background: linear-gradient(130deg, rgba(255,255,255,0.04) 0%, transparent 60%);
}

/* Large background icon */
.card-bg-icon {
    position: absolute;
    right: -18px; bottom: -18px;
    font-size: 160px;
    opacity: 0.035;
    z-index: 0;
    transform: rotate(-12deg);
    transition: transform 0.6s ease, opacity 0.4s ease;
    color: var(--card-accent, var(--primary-accent));
    pointer-events: none;
}

[data-theme="dark"] .card-bg-icon { opacity: 0.025; }

.system-card:hover .card-bg-icon {
    transform: rotate(0deg) scale(1.08);
    opacity: 0.07;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    position: relative; z-index: 1;
}

/* Icon wrappers */
.icon-wrapper {
    width: 62px; height: 62px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.65rem;
    color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.system-card:hover .icon-wrapper {
    transform: scale(1.08) rotate(-4deg);
}

.admin-icon { background: linear-gradient(135deg, #60A5FA, #2563EB); box-shadow: 0 6px 20px rgba(59,130,246,0.35); }
.hik-icon   { background: linear-gradient(135deg, #F87171, #B91C1C); box-shadow: 0 6px 20px rgba(239,68,68,0.35); }
.leave-icon { background: linear-gradient(135deg, #34D399, #047857); box-shadow: 0 6px 20px rgba(16,185,129,0.35); }
.vms-icon   { background: linear-gradient(135deg, #FBBF24, #B45309); box-shadow: 0 6px 20px rgba(245,158,11,0.35); }

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.status-badge.online {
    color: var(--success);
    background: var(--success-bg);
    border-color: var(--success-border);
}

/* Pulsing dot */
.pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
    0%   { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
    70%  { transform: scale(1);   box-shadow: 0 0 0 7px rgba(16,185,129,0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Card Body */
.card-body {
    position: relative; z-index: 1;
    flex: 1;
    margin-bottom: 2rem;
}

.card-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    transition: color 0.4s ease;
}

.card-body p {
    color: var(--text-sub);
    font-size: 0.92rem;
    line-height: 1.65;
    transition: color 0.4s ease;
}

/* Card Footer */
.card-footer {
    position: relative; z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Action buttons */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 0.97rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.action-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Light mode — solid buttons */
[data-theme="light"] .admin-btn { background: #EFF6FF; color: #2563EB; border-color: #BFDBFE; }
[data-theme="light"] .admin-btn:hover { background: #2563EB; color: #fff; border-color: #2563EB; box-shadow: 0 6px 20px rgba(59,130,246,0.30); }

[data-theme="light"] .hik-btn { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
[data-theme="light"] .hik-btn:hover { background: #DC2626; color: #fff; border-color: #DC2626; box-shadow: 0 6px 20px rgba(239,68,68,0.30); }

[data-theme="light"] .leave-btn { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
[data-theme="light"] .leave-btn:hover { background: #059669; color: #fff; border-color: #059669; box-shadow: 0 6px 20px rgba(16,185,129,0.30); }

[data-theme="light"] .vms-btn { background: #FFFBEB; color: #D97706; border-color: #FDE68A; }
[data-theme="light"] .vms-btn:hover { background: #D97706; color: #fff; border-color: #D97706; box-shadow: 0 6px 20px rgba(245,158,11,0.30); }

/* Dark mode — glassy buttons */
[data-theme="dark"] .admin-btn { background: rgba(59,130,246,0.12); color: #60A5FA; border-color: rgba(59,130,246,0.25); }
[data-theme="dark"] .admin-btn:hover { background: rgba(59,130,246,0.25); color: #fff; box-shadow: 0 0 22px rgba(59,130,246,0.20); }

[data-theme="dark"] .hik-btn { background: rgba(239,68,68,0.12); color: #F87171; border-color: rgba(239,68,68,0.25); }
[data-theme="dark"] .hik-btn:hover { background: rgba(239,68,68,0.25); color: #fff; box-shadow: 0 0 22px rgba(239,68,68,0.20); }

[data-theme="dark"] .leave-btn { background: rgba(16,185,129,0.12); color: #34D399; border-color: rgba(16,185,129,0.25); }
[data-theme="dark"] .leave-btn:hover { background: rgba(16,185,129,0.25); color: #fff; box-shadow: 0 0 22px rgba(16,185,129,0.20); }

[data-theme="dark"] .vms-btn { background: rgba(245,158,11,0.12); color: #FBBF24; border-color: rgba(245,158,11,0.25); }
[data-theme="dark"] .vms-btn:hover { background: rgba(245,158,11,0.25); color: #fff; box-shadow: 0 0 22px rgba(245,158,11,0.20); }

/* Support link */
.support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
}

.support-link:hover {
    color: #25D366;
    background: rgba(37, 211, 102, 0.08);
}

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
    margin-top: 4rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--card-border);
    animation: fadeUp 0.8s ease 0.6s both;
    transition: border-color 0.4s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

.system-indicators {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

.dot-online {
    font-size: 0.45rem;
    color: var(--success);
}

/* ============================================================
   OFFLINE CARD STATE
   ============================================================ */
.card-offline {
    opacity: 0.55;
    filter: grayscale(0.7);
    pointer-events: none; /* disables all clicks on the card */
}

/* Re-enable pointer just for the disabled button span so it renders */
.card-offline .card-footer {
    pointer-events: none;
}

.card-offline:hover {
    transform: none !important;
    box-shadow: var(--card-shadow) !important;
    border-color: var(--card-border) !important;
}

.card-offline .icon-wrapper {
    filter: grayscale(1);
}

/* Status badge — offline variant */
.status-badge.offline {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.25);
    gap: 6px;
}

/* Status badge — checking/loading variant */
.status-badge.checking {
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.10);
    border-color: rgba(148, 163, 184, 0.20);
    gap: 6px;
}

/* Checking button state */
.btn-checking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.97rem;
    border: 1px dashed rgba(148, 163, 184, 0.30);
    background: transparent;
    color: var(--text-muted);
    cursor: wait;
}

/* Offline warning notice inside card */
.offline-notice {
    margin-top: 0.85rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.20);
    color: #EF4444;
}

/* Disabled button */
.btn-disabled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.97rem;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    cursor: not-allowed;
    background: transparent;
    color: var(--text-muted);
    user-select: none;
}

[data-theme="dark"] .btn-disabled {
    border-color: rgba(255, 255, 255, 0.10);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes slideDown {
    from { transform: translateY(-28px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes fadeUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .dashboard-wrapper { padding: 2rem; }
}

@media (max-width: 768px) {
    .dashboard-wrapper { padding: 1rem; }

    .app-header {
        flex-wrap: wrap;
        gap: 1.25rem;
        padding: 1.25rem;
        border-radius: 16px;
        margin-bottom: 2rem;
    }

    .logo-container { flex: 1; }

    .header-widgets {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--card-border);
        padding-top: 1.25rem;
    }

    .time-widget { border-right: none; padding-right: 0; text-align: left; }

    .welcome-section h2 { font-size: 2rem; }

    .footer-content { flex-direction: column; gap: 1.25rem; text-align: center; }

    .systems-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ============================================================
   FLOATING IT SUPPORT BUTTON
   ============================================================ */
.float-support {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    text-decoration: none;
    animation: fadeUp 0.8s ease 0.8s both;
}

.float-support-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    overflow: hidden;
    max-width: 180px;
}

.float-support:hover .float-support-inner {
    background: #1DA851;
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.60);
    transform: translateY(-4px) scale(1.03);
}

.float-wa-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    animation: waBounce 2.5s ease-in-out infinite;
}

.float-support-label {
    transition: max-width 0.35s ease, opacity 0.35s ease;
}

@keyframes waBounce {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15) rotate(-5deg); }
}

@media (max-width: 768px) {
    .float-support {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .float-support-label {
        display: none;
    }

    .float-support-inner {
        padding: 0.9rem;
        border-radius: 50%;
        max-width: 54px;
    }
}
