/* ==========================================================
   PIMZX44 CHECKER — APPLE VISIONOS UI v6.3
   FULL GLASS + PREMIUM GRADIENT + HEADER FIX + UI REFINEMENT
========================================================== */

:root {
    --glass-dark: rgba(20, 20, 20, 0.45);
    --glass-medium: rgba(255, 255, 255, 0.08);
    --glass-light: rgba(255,255,255,0.14);

    --border-glass: rgba(255, 255, 255, 0.18);
    --border-strong: rgba(255,255,255,0.35);

    --text: #fff;
    --text-muted: #bdbdbd;

    --green-light: #2ecc71;
    --green-dark: #27ae60;

    --red-light: #ff3b30;
    --red-dark: #c6281f;

    --yellow-light: #f1c40f;
    --yellow-dark: #d4a60d;

    --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* ==========================================================
   BASE
========================================================== */

body {
    background: radial-gradient(circle at 50% -20%, #1a1a1a 0%, #070707 60%, #000000 100%);
    color: var(--text);
    font-family: "Crimson Text", serif;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

* { box-sizing: border-box; }

/* ==========================================================
   NAVBAR
========================================================== */

.navbar {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.1rem 2rem;

    display: flex;
    justify-content: space-between;
    font-family: "Cinzel", serif;
    font-size: 1.05rem;

    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

/* ==========================================================
   MAIN CONTAINER + CARD
========================================================== */

.main-container {
    padding: 3rem 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.card {
    width: 125%;
    max-width: none;

    /* TRUE CENTERING WITHOUT TRANSFORM */
    margin-left: calc((100% - 125%) / 2);

    background: var(--glass-dark);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding-bottom: 2.5rem;
    box-shadow: var(--shadow);

    /* keep your hover/visionOS effects working */
    transform-style: preserve-3d;
    transition:
        transform 0.25s ease,
        box-shadow 0.35s ease,
        background 0.3s ease;
}

/* ==========================================================
   HEADER (title + API input + online)
========================================================== */

.card-header {
    border-bottom: 1px solid var(--border-glass);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1.4rem 2rem;
    gap: 1.4rem;
}

.header-left {
    font-family: "Cinzel", serif;
    font-size: 1.15rem;
    color: #fff;
    white-space: nowrap;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-center input {
    width: 260px;      /* PERFECT width for 15 characters */
    min-width: 260px;
    max-width: 260px;

    text-align: center;
    background: var(--glass-medium);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 0.85rem 1.2rem;
    font-size: 1.05rem;
    color: var(--text);
    backdrop-filter: blur(14px);
    transition: 0.25s ease;
}

/* Small animation when focusing */
.header-center input:focus {
    width: 280px;
    outline: none;
    box-shadow: 0 0 14px rgba(255,255,255,0.25);
}

.header-right {
    font-family: "Cinzel", serif;
    font-size: 1.05rem;
    color: #fff;
    white-space: nowrap;
}

/* responsive header */
@media (max-width: 950px) {
    .card-header-flex {
        flex-direction: column;
        text-align: center;
    }
    .header-left,
    .header-right {
        order: 1;
    }
    .header-center {
        width: 100%;
        order: 2;
    }
}

/* ==========================================================
   API INPUT
========================================================== */

#gate {
    background: var(--glass-medium);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 0.85rem 1.2rem;
    color: var(--text);
    font-size: 1.05rem;
    backdrop-filter: blur(14px);
}

/* ==========================================================
   BODY CONTENT
========================================================== */

.card-body {
    padding: 2.5rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
}

.left-side,
.right-side {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

h3 {
    text-align: center;
    font-family: "Cinzel", serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.05rem;
    margin: 0;
    text-shadow: 0 0 6px rgba(255,255,255,0.16);
}

/* ==========================================================
   INPUT + TEXTAREAS
========================================================== */

input,
textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 0.85rem;
    color: var(--text);
    font-size: 1rem;
    backdrop-filter: blur(14px);
}

textarea {
    resize: none;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.4);
}

#lista { height: 250px; }
#response-live,
#response-dead { height: 330px; }

#cvv,
#amount { height: 45px; }

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ==========================================================
   iOS CAPSULE SELECT
========================================================== */

.select-ios {
    appearance: none;
    height: 45px;
    width: 100%;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.27);
    background: rgba(255,255,255,0.13);
    padding: 10px 20px;
    padding-right: 45px;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(14px);

    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' width='16' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;

    box-shadow: inset 0 0 12px rgba(255,255,255,0.05);
}

.select-ios option {
    background: #101010;
    color: #fff;
}

/* ==========================================================
   COPY BUTTON
========================================================== */

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid var(--border-glass);
    padding: 7px 9px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text);
    backdrop-filter: blur(12px);
}

/* ==========================================================
   BUTTONS
========================================================== */

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

button {
    transition: background 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease;
}
button:hover { transform: translateY(-2px); }
button:active { transform: scale(0.94); }

.btn-generate {
    background: linear-gradient(135deg, var(--yellow-light), var(--yellow-dark));
    border: 1px solid var(--yellow-dark);
    color: #000;
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    font-weight: bold;
    box-shadow: 0 0 12px #f1c40f55;
}

.btn-remove {
    background: linear-gradient(135deg, var(--red-light), var(--red-dark));
    border: 1px solid var(--red-dark);
    padding: 0.85rem 1.4rem;
    color: white;
    font-weight: bold;
    border-radius: 14px;
    box-shadow: 0 0 12px #ff3b3055;
}

.btn-start {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    border: 1px solid var(--green-light);
    color: white;
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    font-weight: bold;
    box-shadow: 0 0 12px #2ecc7155;
}

.btn-stop {
    background: linear-gradient(135deg, var(--red-dark), var(--red-light));
    border: 1px solid var(--red-dark);
    color: white;
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    font-weight: bold;
    box-shadow: 0 0 12px #ff3b3055;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 0.85rem 1.3rem;
    border-radius: 14px;
}

/* ==========================================================
   PALDO / BASURA ACTIVE TOGGLE
========================================================== */

.btn-paldo,
.btn-basura {
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    font-weight: bold;
    transition: 0.25s ease;
}

/* paldo inactive */
.btn-paldo {
    background: transparent;
    border: 1px solid var(--green-light);
    color: var(--green-light);
}
.btn-paldo.active {
    background: var(--green-light);
    color: #fff;
}

/* basura inactive */
.btn-basura {
    background: transparent;
    border: 1px solid var(--red-light);
    color: var(--red-light);
}
.btn-basura.active {
    background: var(--red-light);
    color: #fff;
}

/* ==========================================================
   RESULTS STATS
========================================================== */

.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 1.4rem;
    text-align: center;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 8px rgba(255,255,255,0.06);
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 900;
}

.live-value { color: var(--green-light); }
.dead-value { color: var(--red-light); }

/* ==========================================================
   TOAST
========================================================== */

.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toast {
    background: var(--glass-medium);
    border: 1px solid var(--border-glass);
    padding: 1rem 1.4rem;
    border-radius: 18px;
    color: white;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);

    margin-top: 14px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.35s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 950px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   VISIONOS DEPTH HOVER (NO TILT)
========================================== */

.card {
    transform-style: preserve-3d;
    transition:
        transform 0.25s ease,
        box-shadow 0.35s ease,
        background 0.3s ease;
    position: relative;

}

/* Soft highlight layer */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(
        circle at 50% 20%,
        rgba(255,255,255,0.15),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

/* Depth hover */
.card-depth {
    transform: scale(1.02);
    animation: breathingGlow 2.2s infinite ease-in-out;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.55),
        0 0 18px rgba(255,255,255,0.18);
    transform: scale(1.02);
}

.card-depth::before {
    opacity: 1;
}

/* ==========================================================
   VISIONOS BREATHING GLOW
========================================================== */

@keyframes breathingGlow {
    0% {
        box-shadow:
            0 15px 35px rgba(0,0,0,0.55),
            0 0 20px rgba(255,255,255,0.10),
            0 0 0 rgba(255,255,255,0.0) inset;
    }
    50% {
        box-shadow:
            0 18px 45px rgba(0,0,0,0.60),
            0 0 26px rgba(255,255,255,0.22),
            0 0 12px rgba(255,255,255,0.12) inset;
    }
    100% {
        box-shadow:
            0 15px 35px rgba(0,0,0,0.55),
            0 0 20px rgba(255,255,255,0.10),
            0 0 0 rgba(255,255,255,0.0) inset;
    }
}

/* ==========================================================
   POPUP NEON PROGRESS BAR (Option B)
========================================================== */

#progress-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);

    width: 380px;
    padding: 16px 20px;
    border-radius: 16px;

    background: rgba(0,0,0,0.60);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(18px);

    box-shadow:
        0 0 15px rgba(0,255,180,0.4),
        0 0 30px rgba(0,255,180,0.15);

    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 99999;
}

#progress-popup.show {
    opacity: 1;
    pointer-events: auto;
}

#progress-label {
    text-align: center;
    font-family: "Cinzel", serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
}

/* BAR BACKGROUND */
#progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* NEON FILL */
#progress-fill {
    height: 100%;
    width: 0%;
    background: #00ffa2;
    box-shadow:
        0 0 20px #00ffa2,
        0 0 40px #00ffa2;
    transition: width .25s ease;
}
/* ==========================================================
   ONLINE GLOW + OFFLINE BLINK ANIMATIONS
========================================================== */

/* Smooth fade transition for dot + text */
#status-dot,
#status-text {
    transition: all 0.35s ease-in-out;
}

/* Green glow (online breathing effect) */
.status-online {
    animation: glowPulse 1.8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%   { text-shadow: 0 0 4px #00ff80, 0 0 8px #00ff80; }
    50%  { text-shadow: 0 0 10px #00ff80, 0 0 20px #00ff80; }
    100% { text-shadow: 0 0 4px #00ff80, 0 0 8px #00ff80; }
}

/* Red blinking effect (offline warning) */
.status-offline {
    animation: redBlink 1.2s infinite;
}

@keyframes redBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}
/* ==========================================================
   PREMIUM WHITE VISIONOS BREATHING CARD GLOW (Fixed Fit)
========================================================== */

/* 125% WIDTH CARD — PERFECT WHITE GLOW FIT */
.card.card-checking {
    animation: cardBreathingWhite 2.4s ease-in-out infinite;
    box-shadow:
        0 0 18px rgba(255,255,255,0.22),
        0 0 32px rgba(255,255,255,0.16),
        0 0 55px rgba(255,255,255,0.10);
    border-radius: 24px; /* Keep your smooth top curve */
}

@keyframes cardBreathingWhite {
    0% {
        box-shadow:
            0 0 15px rgba(255,255,255,0.18),
            0 0 28px rgba(255,255,255,0.12),
            0 0 45px rgba(255,255,255,0.08);
        transform: scale(1.000);
    }
    50% {
        box-shadow:
            0 0 22px rgba(255,255,255,0.30),
            0 0 48px rgba(255,255,255,0.20),
            0 0 72px rgba(255,255,255,0.14);
        transform: scale(1.006);
    }
    100% {
        box-shadow:
            0 0 15px rgba(255,255,255,0.18),
            0 0 28px rgba(255,255,255,0.12),
            0 0 45px rgba(255,255,255,0.08);
        transform: scale(1.000);
    }
}

.card,
.card:hover,
.card-depth,
.card.card-checking {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

.card::before,
.card:hover::before,
.card-depth::before {
    opacity: 0 !important;
    animation: none !important;
}