/* ==========================================================================
   WHATSAPP CADENCE APP — eesier branded
   A tool for manual WhatsApp outreach with cadence control
   ========================================================================== */

.wca {
    --wca-primary: #1c91e4;
    --wca-primary-rgb: 28, 145, 228;
    --wca-secondary: #4fbefe;
    --wca-secondary-rgb: 79, 190, 254;
    --wca-accent: #ff6f3c;
    --wca-accent-rgb: 255, 111, 60;
    --wca-good: #10b981;
    --wca-good-rgb: 16, 185, 129;
    --wca-bad: #ef4444;
    --wca-ink: #0f172a;
    --wca-muted: #64748b;
    --wca-border: #e2e8f0;
    --wca-surface: #ffffff;
    --wca-font: 'Quicksand', ui-sans-serif, system-ui, sans-serif;
    --wca-r: 16px;
    --wca-r-full: 999px;
    --wca-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    --wca-shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.10);
    --coolPct: 100%;

    padding: 100px 25px 50px;
    font-family: var(--wca-font);
    color: var(--wca-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(var(--wca-primary-rgb), 0.03), transparent 40%);
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */

.wca .wrap {
    max-width: 1200px;
    display: grid;
    gap: 25px;
    margin: 0 auto;
}

.wca .grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    align-items: start;
}


/* ==========================================================================
   BANNER
   ========================================================================== */

.wca .banner {
    background: var(--wca-surface);
    border: 1px solid rgba(var(--wca-primary-rgb), 0.10);
    border-radius: 20px;
    box-shadow: var(--wca-shadow);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.wca .banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wca-primary), var(--wca-secondary), var(--wca-accent));
    border-radius: 20px 20px 0 0;
}

.wca .bannerRow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.wca .title {
    margin: 0;
    font-family: var(--wca-font);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--wca-primary), var(--wca-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wca .subtitle {
    margin-top: 10px;
    font-weight: 500;
    color: var(--wca-muted);
    max-width: 600px;
    line-height: 1.6;
}


/* ==========================================================================
   STATS
   ========================================================================== */

.wca .stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: stretch;
}

.wca .stat {
    background: var(--wca-surface);
    border: 1px solid var(--wca-border);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 140px;
    position: relative;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.wca .stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--wca-shadow);
}

.wca .stat .k {
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wca-muted);
}

.wca .stat .v {
    margin-top: 6px;
    font-family: var(--wca-font);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: var(--wca-ink);
}

.wca .stat.good {
    border-color: rgba(var(--wca-good-rgb), 0.25);
    background: linear-gradient(135deg, rgba(var(--wca-good-rgb), 0.04), transparent);
}

.wca .stat.warn {
    border-color: rgba(var(--wca-primary-rgb), 0.25);
    background: linear-gradient(135deg, rgba(var(--wca-primary-rgb), 0.04), transparent);
}

.wca .stat.pink {
    border-color: rgba(var(--wca-accent-rgb), 0.25);
    background: linear-gradient(135deg, rgba(var(--wca-accent-rgb), 0.04), transparent);
}


/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.wca .progressWrap {
    flex: 1;
    min-width: 0;
}

.wca .progressBar {
    height: 25px;
    border-radius: var(--wca-r-full);
    background: #f1f5f9;
    border: 1px solid var(--wca-border);
    overflow: hidden;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.wca .progressFill {
    height: 100%;
    border-radius: var(--wca-r-full);
    background: linear-gradient(90deg, var(--wca-primary), var(--wca-secondary));
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 0%;
}

.wca .progressBar.complete {
    border-color: rgba(var(--wca-good-rgb), 0.30);
    box-shadow: 0 0 25px rgba(var(--wca-good-rgb), 0.15);
}

.wca .progressBar.complete .progressFill {
    background: linear-gradient(90deg, var(--wca-good), #34d399);
}

.wca .progressLabel {
    margin-top: 10px;
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 13px;
    color: var(--wca-muted);
}


/* ==========================================================================
   PANELS
   ========================================================================== */

.wca .panel {
    background: var(--wca-surface);
    border: 1px solid var(--wca-border);
    border-radius: 20px;
    box-shadow: var(--wca-shadow);
    overflow: hidden;
    position: relative;
}

.wca .panelHd {
    padding: 14px 20px;
    border-bottom: 1px solid var(--wca-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, rgba(var(--wca-primary-rgb), 0.03), transparent);
}

.wca .pillMini {
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 11px;
    line-height: 1.2;
    padding: 6px 12px;
    border-radius: var(--wca-r-full);
    border: 1.5px solid rgba(var(--wca-primary-rgb), 0.25);
    background: rgba(var(--wca-primary-rgb), 0.06);
    color: var(--wca-primary);
    white-space: nowrap;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wca .pillMini.pink {
    border-color: rgba(var(--wca-accent-rgb), 0.30);
    background: rgba(var(--wca-accent-rgb), 0.06);
    color: var(--wca-accent);
}

.wca .content {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.wca .fieldLabel {
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wca-muted);
    margin: 0 0 8px;
}


/* ==========================================================================
   INPUTS
   ========================================================================== */

.wca input[type="text"],
.wca textarea {
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid var(--wca-border);
    background: var(--wca-surface);
    color: var(--wca-ink);
    padding: 12px 16px;
    outline: none;
    font-family: var(--wca-font);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.wca input[type="text"]:focus,
.wca textarea:focus {
    border-color: var(--wca-primary);
    box-shadow: 0 0 0 3px rgba(var(--wca-primary-rgb), 0.12);
}

.wca input[type="text"]::placeholder,
.wca textarea::placeholder {
    color: var(--wca-muted);
    opacity: 0.6;
}

.wca textarea {
    min-height: 170px;
    resize: vertical;
}


/* ==========================================================================
   BAR & BUTTONS
   ========================================================================== */

.wca .bar {
    padding: 14px 20px;
    border-top: 1px solid var(--wca-border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(var(--wca-primary-rgb), 0.02);
}

.wca button {
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--wca-primary), var(--wca-secondary));
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--wca-r-full);
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    box-shadow: 0 4px 14px rgba(var(--wca-primary-rgb), 0.25);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
    user-select: none;
    position: relative;
}

.wca button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--wca-primary-rgb), 0.30);
    filter: brightness(1.05);
}

.wca button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(var(--wca-primary-rgb), 0.20);
}

.wca button.danger {
    background: linear-gradient(135deg, var(--wca-bad), #f87171);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.wca button.danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.30);
}

.wca button.ghost {
    background: transparent;
    color: var(--wca-muted);
    box-shadow: none;
    border: 1.5px solid var(--wca-border);
    padding: 8px 14px;
    font-size: 12px;
}

.wca button.ghost:hover {
    background: rgba(var(--wca-primary-rgb), 0.04);
    color: var(--wca-primary);
    border-color: rgba(var(--wca-primary-rgb), 0.20);
}

.wca button.ghost:active {
    transform: none;
}


/* ==========================================================================
   COUNT & CHIPS
   ========================================================================== */

.wca .count {
    margin-left: auto;
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 13px;
    color: var(--wca-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

.wca .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--wca-r-full);
    border: 1.5px solid var(--wca-border);
    background: rgba(var(--wca-primary-rgb), 0.03);
}

.wca .chip b {
    font-family: var(--wca-font);
    font-weight: 700;
    font-size: 13px;
    color: var(--wca-ink);
}

.wca .chip span {
    font-family: var(--wca-font);
    font-weight: 500;
    font-size: 11px;
    color: var(--wca-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ==========================================================================
   TABLE
   ========================================================================== */

.wca .table-wrap {
    background: var(--wca-surface);
    border: 1px solid var(--wca-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--wca-shadow);
}

.wca table {
    width: 100%;
    border-collapse: collapse;
}

.wca thead th {
    text-align: left;
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wca-muted);
    background: linear-gradient(180deg, rgba(var(--wca-primary-rgb), 0.04), transparent);
    padding: 14px 20px;
    border-bottom: 1px solid var(--wca-border);
}

.wca tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(var(--wca-primary-rgb), 0.06);
    vertical-align: middle;
    font-size: 14px;
    font-weight: 500;
    color: var(--wca-ink);
}

.wca tbody tr:last-child td {
    border-bottom: none;
}

.wca tbody tr {
    transition: background 150ms ease;
}

.wca tbody tr:hover {
    background: rgba(var(--wca-primary-rgb), 0.02);
}

.wca .col-name {
    width: 44%;
}

.wca .col-phone {
    width: 30%;
    font-variant-numeric: tabular-nums;
    color: var(--wca-muted);
}

.wca .col-action {
    width: 26%;
    text-align: right;
}


/* ==========================================================================
   PILL (WhatsApp action button)
   ========================================================================== */

.wca .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--wca-r-full);
    border: none;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    white-space: nowrap;
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
    user-select: none;
    position: relative;
}

.wca a {
    color: inherit;
    text-decoration: none;
}

.wca a:hover .pill {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.30);
    filter: brightness(1.05);
}

.wca a:active .pill {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.20);
}


/* ==========================================================================
   SENT STATE
   ========================================================================== */

.wca tr.sent {
    background: linear-gradient(90deg, rgba(var(--wca-good-rgb), 0.06), rgba(var(--wca-good-rgb), 0.02));
    position: relative;
}

.wca tr.sent::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--wca-good), #34d399);
    border-radius: 0 2px 2px 0;
}

.wca tr.sent:hover {
    background: linear-gradient(90deg, rgba(var(--wca-good-rgb), 0.10), rgba(var(--wca-good-rgb), 0.04));
}

.wca tr.sent .col-name {
    text-decoration: line-through;
    text-decoration-color: rgba(var(--wca-good-rgb), 0.40);
    color: var(--wca-muted);
}

.wca tr.sent .col-phone {
    opacity: 0.50;
}

.wca tr.sent .pill {
    background: linear-gradient(135deg, var(--wca-good), #34d399);
    box-shadow: 0 4px 14px rgba(var(--wca-good-rgb), 0.20);
    animation: wca-sent-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes wca-sent-pop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.wca .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(var(--wca-good-rgb), 0.30);
    background: rgba(var(--wca-good-rgb), 0.08);
    margin-left: 10px;
    font-size: 12px;
    color: var(--wca-good);
    animation: wca-check-in 0.3s ease-out 0.15s both;
}

@keyframes wca-check-in {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}


/* ==========================================================================
   DISABLED STATE (during cooldown)
   ========================================================================== */

.wca .disabled a {
    pointer-events: none;
}

.wca .disabled .pill {
    opacity: 0.40;
    filter: grayscale(1);
    box-shadow: none;
    transform: none;
}

.wca .disabled .pill::after {
    content: "bloqueado";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--wca-font);
    font-weight: 700;
    font-size: 10px;
    color: var(--wca-primary);
    opacity: 0.9;
}

.wca .disabled .pill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(var(--wca-primary-rgb), 0.06) 0 8px, transparent 8px 16px);
    border-radius: inherit;
    pointer-events: none;
}


/* ==========================================================================
   COOLDOWN PANEL
   ========================================================================== */

.wca .coolPanel {
    position: relative;
    padding: 20px;
    min-height: 540px;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 10px;
}

.wca .coolTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wca .status {
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wca-muted);
}

.wca .time {
    font-family: var(--wca-font);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--wca-primary);
    font-variant-numeric: tabular-nums;
}

.wca .coolHint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--wca-border);
    background: rgba(var(--wca-primary-rgb), 0.03);
    font-family: var(--wca-font);
    font-weight: 500;
    font-size: 12px;
    color: var(--wca-muted);
}

.wca .coolHint b {
    font-weight: 700;
    color: var(--wca-primary);
}

.wca .coolToggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 12px;
    color: var(--wca-muted);
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--wca-border);
    background: rgba(var(--wca-primary-rgb), 0.03);
}

.wca .coolToggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--wca-primary);
    cursor: pointer;
}


/* ==========================================================================
   TAP BUTTON (cookie clicker)
   ========================================================================== */

.wca .cookieBtnWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.wca .cookieBtn {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: none;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.25), transparent 45%),
        radial-gradient(circle at 65% 70%, rgba(0, 0, 0, 0.08), transparent 45%),
        linear-gradient(135deg, var(--wca-primary), var(--wca-secondary));
    box-shadow:
        0 12px 40px rgba(var(--wca-primary-rgb), 0.30),
        inset 0 2px 0 rgba(255, 255, 255, 0.20);
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: transform 150ms ease, box-shadow 200ms ease, filter 200ms ease;
    outline: none;
}

.wca .cookieBtn::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.10);
    pointer-events: none;
}

.wca .cookieBtn::after {
    content: "tap";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--wca-font);
    font-weight: 700;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.80);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    pointer-events: none;
}

.wca .cookieBtn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 48px rgba(var(--wca-primary-rgb), 0.35),
        inset 0 2px 0 rgba(255, 255, 255, 0.20);
    filter: brightness(1.05);
}

.wca .cookieBtn:active {
    transform: translateY(3px);
    box-shadow:
        0 4px 16px rgba(var(--wca-primary-rgb), 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
}


/* ==========================================================================
   PROGRESS TRACK
   ========================================================================== */

.wca .track {
    position: relative;
    border-radius: 14px;
    border: 1px solid var(--wca-border);
    background: #f1f5f9;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.05);
}

.wca .fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--coolPct);
    background: linear-gradient(180deg, var(--wca-primary), var(--wca-secondary));
    transition: height 0.22s linear;
    border-radius: 0 0 13px 13px;
}

.wca .fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
    animation: wca-shimmer 2.5s ease-in-out infinite;
}

@keyframes wca-shimmer {
    0%, 100% { transform: translateX(-120%); }
    50% { transform: translateX(120%); }
}


/* ==========================================================================
   COOLDOWN ACTIVE STATE
   ========================================================================== */

.wca .coolActive .cookieBtn {
    animation: wca-pulse-btn 1.5s ease-in-out infinite;
}

@keyframes wca-pulse-btn {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.04); filter: brightness(1.08); }
}

.wca .coolActive .track {
    border-color: rgba(var(--wca-primary-rgb), 0.25);
    box-shadow:
        inset 0 2px 8px rgba(15, 23, 42, 0.05),
        0 0 25px rgba(var(--wca-primary-rgb), 0.08);
    animation: wca-track-glow 2s ease-in-out infinite;
}

@keyframes wca-track-glow {
    0%, 100% { box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.05), 0 0 15px rgba(var(--wca-primary-rgb), 0.06); }
    50% { box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.05), 0 0 30px rgba(var(--wca-primary-rgb), 0.12); }
}


/* ==========================================================================
   BURST (unlock animation)
   ========================================================================== */

.wca .burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
}

.wca .burst.on {
    animation: wca-burst 0.8s ease-out forwards;
}

@keyframes wca-burst {
    0% { opacity: 0; transform: scale(0.96); }
    20% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1.08); }
}

.wca .burst::before {
    content: "desbloqueado!";
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    font-family: var(--wca-font);
    font-weight: 700;
    font-size: 20px;
    color: var(--wca-primary);
    text-shadow:
        0 0 20px rgba(var(--wca-primary-rgb), 0.45),
        0 0 50px rgba(var(--wca-secondary-rgb), 0.25);
    white-space: nowrap;
}

.wca .burst::after {
    content: "";
    position: absolute;
    inset: -50px;
    background:
        radial-gradient(circle at 50% 50%, rgba(var(--wca-primary-rgb), 0.18), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(var(--wca-secondary-rgb), 0.12), transparent 65%);
    animation: wca-sparkle 0.8s ease-out forwards;
}

@keyframes wca-sparkle {
    from { transform: scale(0.7); opacity: 1; }
    to { transform: scale(1.4); opacity: 0; }
}


/* ==========================================================================
   SKIP BUTTON
   ========================================================================== */

.wca .skip {
    display: none;
    margin-left: auto;
    background: transparent !important;
    color: var(--wca-muted) !important;
    box-shadow: none !important;
    border: 1.5px solid var(--wca-border) !important;
    padding: 6px 12px;
    font-size: 11px;
}

.wca .skip:hover {
    color: var(--wca-primary) !important;
    border-color: rgba(var(--wca-primary-rgb), 0.20) !important;
    background: rgba(var(--wca-primary-rgb), 0.04) !important;
}

.wca .skip:active {
    transform: none;
}

.wca .coolActive .skip {
    display: inline-flex;
}


/* ==========================================================================
   COOLDOWN MODAL (fullscreen overlay)
   ========================================================================== */

.wca .coolModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
}

.wca .coolModal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wca .coolModal .coolModal-track {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.50);
    overflow: hidden;
}

.wca .coolModal .coolModal-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(var(--wca-primary-rgb), 0.80), rgba(var(--wca-secondary-rgb), 0.80));
    transition: height 0.22s linear;
}

.wca .coolModal .coolModal-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.08) 50%, transparent 80%);
    animation: wca-shimmer 2.5s ease-in-out infinite;
}

.wca .coolModal .coolModal-ui {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.wca .coolModal .coolModal-time {
    font-family: var(--wca-font);
    font-weight: 700;
    font-size: 72px;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

.wca .coolModal .coolModal-hint {
    font-family: var(--wca-font);
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.70);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wca .coolModal .coolModal-skipBtn {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.80) !important;
    padding: 10px 25px;
    box-shadow: none !important;
}

.wca .coolModal .coolModal-skipBtn:hover {
    background: rgba(255, 255, 255, 0.20) !important;
    color: #ffffff !important;
    transform: none;
}


/* ==========================================================================
   FLOATY (cookie reward popup)
   ========================================================================== */

.wca .floaty {
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(-9999px, -9999px);
    pointer-events: none;
    z-index: 9999;
    font-family: var(--wca-font);
    font-weight: 700;
    font-size: 14px;
    color: var(--wca-primary);
    text-shadow: 0 0 14px rgba(var(--wca-primary-rgb), 0.40);
    opacity: 0;
    will-change: transform, opacity;
}

.wca .floaty.on {
    animation: wca-floatUp 0.95s ease-out forwards;
}

@keyframes wca-floatUp {
    0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.95); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--x), calc(var(--y) - 80px)) scale(1.05); }
}


/* ==========================================================================
   MUTED ROW (empty table)
   ========================================================================== */

.wca .mutedRow {
    color: var(--wca-muted);
    font-size: 13px;
    font-weight: 500;
}


/* ==========================================================================
   PHASE STATES
   ========================================================================== */

.wca.phase-input .grid {
    display: none;
}

.wca.phase-input #inputPanel {
    max-width: 640px;
    margin: 0 auto;
}

.wca.phase-input #inputPanel textarea {
    min-height: 250px;
}

.wca.phase-active #inputPanel {
    display: none;
}

.wca .backBtn {
    display: none;
    margin-top: 10px;
}

.wca.phase-active .banner .backBtn {
    display: inline-flex;
}

.wca .grid .table-wrap {
    max-height: calc(100vh - 250px);
    min-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1000px) {

    .wca .grid {
        grid-template-columns: 1fr;
    }

    .wca .coolPanel {
        min-height: 460px;
    }

    .wca .stats {
        justify-content: flex-start;
    }

    .wca .stat {
        min-width: 120px;
    }

    .wca .bannerRow {
        flex-direction: column;
    }

    .wca .grid .table-wrap {
        max-height: none;
        min-height: auto;
    }
}

@media (max-width: 640px) {

    .wca {
        padding: 80px 16px 25px;
    }

    .wca .banner {
        padding: 20px;
    }

    .wca .title {
        font-size: 20px;
    }

    .wca .stat {
        min-width: 100px;
        padding: 10px 12px;
    }

    .wca .stat .v {
        font-size: 16px;
    }

    .wca .time {
        font-size: 22px;
    }

    .wca .cookieBtn {
        width: 110px;
        height: 110px;
    }

    .wca .panelHd {
        padding: 12px 16px;
    }

    .wca .content {
        padding: 16px;
    }

    .wca .bar {
        padding: 12px 16px;
    }

    .wca thead th,
    .wca tbody td {
        padding: 10px 12px;
    }
}
