:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: 1px solid rgba(255, 255, 255, 0.08);
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;

    /* Ruby Theme Colors */
    --primary: #ff003c;
    --primary-hover: #d90032;
    --primary-glow: rgba(255, 0, 60, 0.5);

    --success: #00ff9d;
    --success-glow: rgba(0, 255, 157, 0.2);

    --danger: #ff2a2a;
    --danger-glow: rgba(255, 42, 42, 0.2);

    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --font-main: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    /* Animated Gradient Background */
    background: radial-gradient(circle at top left, rgba(255, 0, 60, 0.15), transparent 40%),
        radial-gradient(circle at bottom right, rgba(0, 255, 157, 0.05), transparent 40%),
        #050505;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid transparent;
    background-clip: padding-box;
}

/* Utilities */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 1rem;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: #f0c040 !important;
}

.text-danger {
    color: var(--danger) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Background (Optional support) */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
}

/* Layout */
.container {
    max-width: 98%;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Flip Container */
.flip-wrapper {
    perspective: 2000px;
    width: 100%;
    flex: 1;
}

.flip-inner {
    width: 100%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.flip-wrapper.is-flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}

.flip-back {
    transform: rotateY(180deg);
}

/* View Toggle */
.view-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.btn-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    position: relative;
}

    .presence-panel {
        position: absolute;
        top: 0.5rem;
        right: 0;
        min-width: 140px;
        padding: 0.65rem 0.85rem;
        border-radius: 10px;
        border: 1px solid rgba(0, 229, 255, 0.35);
        background: rgba(8, 12, 18, 0.92);
        box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
        text-align: left;
        font-size: 0.72rem;
        z-index: 20;
    }

.presence-title {
    color: #00e5ff;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
}

.presence-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: #aaa;
    line-height: 1.45;
}

.presence-row strong {
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.presence-row.presence-total {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #00ff9d;
}

.presence-row.presence-total strong {
    color: #00ff9d;
}

.logo-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transition: transform 0.5s ease;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-wrapper:hover {
    transform: rotate(10deg) scale(1.1);
}

.title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Glitch Effect on Title Hover */
.title.glitch:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--primary);
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    opacity: 0.8;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    flex: 1;
}

/* CC checker uses 3-column layout: left, center, right */
#checkerView.dashboard-grid {
    grid-template-columns: 320px 1fr 320px;
    align-items: start;
}

#authnetView.dashboard-grid {
    grid-template-columns: 320px 1fr 320px;
    align-items: start;
}

/* AuthNet tab: title case on controls, ALL CAPS on stat row only */
#authnetView .btn,
#authnetView .btn-clear {
    text-transform: none;
    letter-spacing: 0.02em;
}

#authnetView .nc-divider {
    text-transform: none;
    letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    #checkerView.dashboard-grid {
        grid-template-columns: 1fr;
    }
    #authnetView.dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible;
    gap: 0.5rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.card-title > i[class*="fa-"],
.card-title > i.fas,
.card-title > i.far,
.card-title > i.fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05em;
    height: 1.05em;
    line-height: 1;
    flex-shrink: 0;
    vertical-align: middle;
}

.status-indicator {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    min-width: 0;
    flex-shrink: 1;
}
.status-indicator.status-active {
    color: var(--success);
}
.status-indicator.status-error {
    color: var(--danger);
}

.card-title.live-stat, .card-title.text-success { color: var(--success) !important; }
.card-title.ccn-stat, .card-title.text-warning { color: #f0c040 !important; }
.card-title.dead-stat, .card-title.text-danger { color: var(--danger) !important; }

/* Form Controls */
.form-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-control,
.form-control:disabled,
.form-control[readonly] {
    width: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

textarea.form-control {
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto !important;
    touch-action: auto !important;
    resize: vertical;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) rgba(0,0,0,0.2);
    min-height: 60px;
}

textarea.form-control::-webkit-scrollbar {
    width: 12px;
}

textarea.form-control::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}

textarea.form-control::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

textarea.form-control::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(255, 0, 60, 0.1) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
}

/* Card list inputs — one card per line, no mid-line CVV breaks (match VBV checker) */
textarea#cardInput,
textarea#vbvInput,
textarea#ppcpInput,
textarea#pmcInput,
textarea#lista,
textarea#gateway-lista {
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    overflow-x: auto;
    overflow-y: auto;
    line-height: 1.55;
    font-family: 'Courier New', Consolas, monospace;
    tab-size: 2;
}

/* Specific Fix for Generator and Filter View 'White' boxes */
#genOutput, #filterOutput, #filterOutputInvalid, #filterInput, #genBinInput {
    background-color: rgba(0, 0, 0, 0.5) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#filterOutputInvalid {
    color: #ff2a2a !important;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

select.form-control {
    appearance: none;
    cursor: pointer;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:not(:disabled):hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--danger-glow);
}

/* Override Bootstrap btn-success to match ruby theme */
.btn-success {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.btn-success:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* Override Bootstrap btn-warning to match ruby theme */
.btn-warning {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
.btn-warning:hover {
    background: rgba(255,255,255,0.14) !important;
    color: #fff !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.8rem;
    font-size: 0.8rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-icon {
    background: transparent;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--text-muted);
}

.btn-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    width: auto;
    height: auto;
}

.btn-clear {
    background: transparent;
    color: var(--primary);
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}

.btn-clear:hover {
    text-decoration: underline;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stat-card {
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Stat Specific Colors */
.live-stat .stat-icon {
    background: rgba(0, 255, 157, 0.1);
    color: var(--success);
}

.live-stat .stat-value {
    color: var(--success);
    text-shadow: 0 0 10px var(--success-glow);
}

.dead-stat .stat-icon {
    background: rgba(255, 42, 42, 0.1);
    color: var(--danger);
}

.dead-stat .stat-value {
    color: var(--danger);
}

.ccn-stat .stat-icon {
    background: rgba(255, 166, 0, 0.1);
    color: #ffaa00;
}

.ccn-stat .stat-value {
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 166, 0, 0.2);
}

.risk-stat .stat-icon {
    background: rgba(255, 136, 0, 0.1);
    color: #ff8800;
}

.risk-stat .stat-value {
    color: #ff8800;
    text-shadow: 0 0 10px rgba(255, 136, 0, 0.2);
}

/* CPM stat — cyan theme */
.cpm-stat .stat-icon {
    background: rgba(0, 200, 255, 0.1);
    color: #00c8ff;
}

.cpm-stat .stat-value {
    color: #00c8ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.25);
}

/* Results */
.results-card {
    margin-bottom: 1.5rem;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.results-card .card-header {
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    overflow: visible;
    background: rgba(12, 12, 12, 0.97);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 21;
}

.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
}

.badge-live {
    background: rgba(0, 255, 157, 0.15);
    color: var(--success);
}

.badge-ccn {
    background: rgba(255, 166, 0, 0.15);
    color: #ffaa00;
}

.badge-dead {
    background: rgba(255, 42, 42, 0.15);
    color: var(--danger);
}

.badge-recheck {
    background: rgba(93, 213, 245, 0.18);
    color: #5dd5f5;
}

.badge-protected {
    background: rgba(255, 136, 0, 0.18);
    color: #ff8c00;
    border: 1px solid rgba(255, 136, 0, 0.35);
}

.badge-site {
    background: rgba(120, 120, 120, 0.12);
    color: #888;
}

.result-list {
    flex: 1;
    overflow-y: auto !important;
    padding-right: 0.5rem;
    pointer-events: auto !important;
    touch-action: pan-y !important;
    position: relative;
    z-index: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.result-item {
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.4rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    border-left: 3px solid transparent;
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-item.live {
    border-left-color: var(--success);
    background: linear-gradient(90deg, rgba(0, 255, 157, 0.05) 0%, transparent 100%);
}

.result-item.ccn {
    border-left-color: #ffaa00;
    background: linear-gradient(90deg, rgba(255, 166, 0, 0.05) 0%, transparent 100%);
}

.result-item.dead {
    border-left-color: var(--danger);
    background: linear-gradient(90deg, rgba(255, 42, 42, 0.05) 0%, transparent 100%);
}

.result-item.risk {
    border-left-color: #ff8800;
    background: linear-gradient(90deg, rgba(255, 136, 0, 0.08) 0%, transparent 100%);
}

.result-item.error {
    border-left-color: #888888;
    background: linear-gradient(90deg, rgba(136, 136, 136, 0.08) 0%, transparent 100%);
}

.result-item.recheck {
    border-left-color: #5dd5f5;
    background: linear-gradient(90deg, rgba(93, 213, 245, 0.08) 0%, transparent 100%);
}

.ppcp-row-label {
    font-weight: 700;
    min-width: 70px;
    font-size: 0.82em;
}

.ppcp-row-recheck {
    color: #5dd5f5;
}
.result-item.checking-preview {
    border-left-color: #00e5ff;
    background: rgba(0, 229, 255, 0.08) !important;
    animation: pulse-border 1.5s infinite ease-in-out;
}
@keyframes pulse-border {
    0% { border-left-color: #00e5ff; }
    50% { border-left-color: #0088ff; }
    100% { border-left-color: #00e5ff; }
}

.res-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.res-info {
    font-size: 0.78rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.res-info .badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    vertical-align: middle;
}

.res-info .tg-data {
    display: none !important;
}

/* ACCOUNT POOL controls — vertical stack: Count → CHECK PK → PRE-CREATE */
.nc-pool-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.35rem;
}

.nc-pool-toolbar-btn {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px !important;
    font-size: 0.74rem !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.15;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nc-pool-toolbar-btn-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
}

.nc-pool-toolbar-btn-inner i {
    flex-shrink: 0;
    font-size: 0.88rem;
}

.nc-pool-toolbar-btn-inner > span:last-child {
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
    text-align: center;
    hyphens: none;
}

.nc-pool-btn-precreate {
    flex: 0 0 auto !important;
    width: 100% !important;
}

#telegram-slot-auth:not(:empty) {
    margin-bottom: 10px;
}

.nc-pool-count-slot {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}

.nc-pool-count-caption {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: #9a9a9a;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.nc-pool-count-input {
    flex: 0 0 auto;
    width: 64px !important;
    max-width: 64px !important;
    min-width: 64px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    font-size: 0.9rem !important;
    text-align: center;
    line-height: 1.2;
    border-radius: 6px !important;
}

/* Pool status — short running/done line; details in per-action logs */
#stripe-auth-pool-block #poolStatus {
    margin-top: 6px;
    padding-top: 2px;
    min-height: 1.2em;
    max-height: 2.8em;
    overflow: hidden;
    line-height: 1.35;
}

#stripe-auth-pool-block .nc-pool-log-block {
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

#stripe-auth-pool-block .nc-pool-log-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

#stripe-auth-pool-block .nc-pool-log-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#stripe-auth-pool-block .nc-pool-log-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

#stripe-auth-pool-block .nc-pool-log-btn {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #bbb;
    cursor: pointer;
    line-height: 1.4;
}

#stripe-auth-pool-block .nc-pool-log-btn:hover:not(:disabled) {
    color: #fff;
    border-color: rgba(0, 229, 255, 0.45);
}

#stripe-auth-pool-block .nc-pool-log-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#stripe-auth-pool-block .nc-pool-log-body {
    max-height: 140px;
    overflow-y: auto;
    padding: 8px 10px;
    font-size: 0.76em;
    line-height: 1.45;
    color: #aaa;
}

#stripe-auth-pool-block .nc-pool-log-empty {
    color: #666;
    font-style: italic;
}

#stripe-auth-pool-block .nc-pool-log-ts {
    display: block;
    font-size: 0.68rem;
    color: #555;
    margin-bottom: 4px;
}

#stripe-auth-pool-block .nc-pool-log-run--err .nc-pool-log-ts {
    color: #a55;
}

/* Stripeauth pool — full-width buttons, no sideways truncation */
#stripe-auth-pool-block .nc-pool-actions {
    align-items: stretch;
}

#stripe-auth-pool-block .nc-pool-toolbar-btn {
    width: 100%;
    min-height: 48px;
    padding: 0 14px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: visible;
    box-sizing: border-box !important;
}

#stripe-auth-pool-block .nc-pool-toolbar-btn-inner {
    flex-wrap: nowrap !important;
    min-width: 0;
}

#stripe-auth-pool-block .nc-pool-toolbar-btn-inner > span:last-child {
    white-space: nowrap !important;
    overflow: visible;
    text-overflow: unset;
}

#stripe-auth-pool-block .nc-pool-count-slot {
    width: 100%;
    min-height: 48px;
}

#stripe-auth-pool-block .nc-pool-count-input {
    height: 40px !important;
    min-height: 40px !important;
    width: 64px !important;
    max-width: 64px !important;
    min-width: 64px !important;
}

/* Single-line LIVE / CCN hits — full card in API response only */
.result-item.live.result-item-compact .res-info-single,
.result-item.ccn.result-item-compact .res-info-single {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    line-height: 1.45;
}

.res-header-minimal {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.25rem;
}

.result-item.dead .res-header-minimal + .res-info-single,
.result-item.recheck .res-header-minimal + .res-info-single {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    line-height: 1.45;
}

/* Toggles */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #666;
}

.brand-text {
    color: var(--primary);
    font-weight: 700;
}

/* Alert Box */
.alert-container {
    margin-bottom: 2rem;
}

.alert-box {
    display: none; /* Deprecated in favor of .nc-toast */
}

/* Premium Neat Toast System */
.nc-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    left: auto;
    z-index: 999999;
    background: rgba(10, 5, 15, 0.96);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: min(520px, calc(100vw - 32px));
    word-break: break-word;
    overflow-wrap: anywhere;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    animation: ncToastIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.nc-toast span {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
}

.nc-toast.success { border-left: 5px solid #00e676; box-shadow: 0 8px 32px rgba(0, 230, 118, 0.15); }
.nc-toast.info { border-left: 5px solid #2196F3; box-shadow: 0 8px 32px rgba(33, 150, 243, 0.15); }
.nc-toast.warning { border-left: 5px solid #ffea00; box-shadow: 0 8px 32px rgba(255, 234, 0, 0.15); }
.nc-toast.error { border-left: 5px solid #ff1744; box-shadow: 0 8px 32px rgba(255, 23, 68, 0.15); }
.nc-toast.g59 { border-left: 5px solid #ff0000; box-shadow: 0 0 20px rgba(255, 0, 0, 0.3); }

@keyframes ncToastIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Proxy check result rows — prevent long strings from blowing mobile layout */
.proxy-status-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 8px;
    padding: 2px 0;
    border-bottom: 1px solid #222;
    max-width: 100%;
}
.proxy-status-line {
    font-family: monospace;
    font-size: 0.78em;
    word-break: break-all;
    overflow-wrap: anywhere;
    min-width: 0;
    flex: 1 1 55%;
}
.proxy-status-line.proxy-ok { color: #00e5a0; }
.proxy-status-line.proxy-dead { color: #ff4444; }
.proxy-status-meta {
    color: #888;
    font-size: 0.78em;
    flex: 0 1 auto;
    word-break: break-all;
}
.proxy-status-ip { color: #00e5ff; }

#vbvProxyStatus,
#pmcProxyStatus,
#ppcpProxyStatus {
    max-width: 100%;
    overflow-x: hidden;
    word-break: break-word;
}

textarea.proxy-required-field,
#vbvProxy,
#pmcProxy,
#ppcpProxy {
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* ACCOUNT POOL — full results modal (keeps config panel compact) */
.nc-pool-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    animation: ncPoolModalFade 0.2s ease;
}

.nc-pool-modal-panel {
    width: 100%;
    max-width: 520px;
    max-height: min(82vh, 640px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #141018 0%, #0a080c 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.nc-pool-modal-header {
    flex-shrink: 0;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nc-pool-modal-title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f0f0f0;
    letter-spacing: 0.02em;
    text-transform: none;
}

.nc-pool-modal-summary {
    margin: 0;
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.45;
}

.nc-pool-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 16px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #ccc;
    word-break: break-word;
}

.nc-pool-modal-footer {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
}

.nc-pool-modal-done {
    min-width: 100px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--primary, #e91e63);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.nc-pool-modal-done:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

@keyframes ncPoolModalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* G59 / API Dead Glitch Effect ($uicideboy$ Style) */
.alert-box.g59 {
    background: #000;
    border: 2px solid #ff0000;
    color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5), inset 0 0 20px rgba(255, 0, 0, 0.2);
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    position: relative;
    overflow: hidden;
}

.alert-box.g59::before {
    content: "API DEAD";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 0, 0.1) 4px,
            rgba(255, 0, 0, 0.1) 6px);
    pointer-events: none;
    z-index: 1;
}

.alert-box.g59 .alert-icon {
    animation: glitch-anim 2s infinite linear alternate-reverse;
    text-shadow: 2px 2px #000, -2px -2px #000;
}

.alert-box.g59 h4 {
    font-family: 'Courier New', Courier, monospace;
    /* Gritty font */
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-2deg);
    }

    40% {
        transform: skew(2deg);
    }

    60% {
        transform: skew(-1deg);
    }

    80% {
        transform: skew(1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

@keyframes glitch-anim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* -------------------------------------
   LAYOUT ADDITIONS
-------------------------------------- */
.filter-results-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem; 
    flex: 1;
}

/* Keep CC checker results column stable/aligned without shrinking */
#checkerView .results-panel {
    width: 100%;
    min-width: 0;
}

/* -------------------------------------
   MOBILE RESPONSIVENESS FIXES
-------------------------------------- */

/* Small desktop & tablets */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablets / Large Phones */
@media (max-width: 768px) {
    .nc-toast {
        top: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        right: 12px;
        max-width: none;
        width: auto;
        font-size: 0.82rem;
        padding: 12px 16px;
    }

    .container {
        padding: 0.65rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        align-items: stretch;
    }

    .flip-wrapper,
    .flip-inner,
    .flip-front,
    .flip-back {
        width: 100%;
        max-width: 100%;
    }

    .flip-front,
    .flip-back {
        align-items: stretch;
    }

    .dashboard-grid,
    .control-panel,
    .results-panel,
    #checkerView,
    #vbvView,
    #ppcpView,
    #pmcView {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .main-header {
        padding: 0.75rem 0 1rem;
        margin-bottom: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .presence-panel {
        position: static;
        width: min(100%, 340px);
        margin: 0 auto 0.85rem;
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 0.75rem;
        row-gap: 0.2rem;
    }

    .presence-title {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 0.15rem;
    }

    .presence-row.presence-total {
        grid-column: 1 / -1;
    }

    .logo-wrapper {
        width: 70px;
        height: 70px;
    }

    .title {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .view-toggle {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        width: 100%;
        margin-bottom: 1.25rem;
    }
    
    .btn-toggle {
        padding: 0.65rem 0.5rem;
        font-size: 0.72rem;
        width: 100%;
        min-width: 0;
        justify-content: center;
        border-radius: 12px;
        letter-spacing: 0.5px;
    }

    .btn-toggle i {
        width: 1em;
        text-align: center;
        flex-shrink: 0;
    }

    .glass-card {
        padding: 1rem;
    }

    .card-title {
        font-size: 0.85rem;
    }

    .card-header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .results-card .card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: sticky;
        top: 0;
        z-index: 25;
    }

    .results-card .header-actions {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.35rem;
        padding-top: 0.15rem;
    }

    .results-card .card-header .card-title {
        width: 100%;
        justify-content: center;
    }

    /* Force stats grid to wrap nicely on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem;
        width: 100%;
    }

    .stat-card {
        justify-content: center;
        padding: 0.55rem 0.5rem;
    }

    .stat-info {
        text-align: center;
        align-items: center;
    }

    /* CC gen stats only — single column */
    #generatorView .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-grid .actions[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .form-group[style*="display:flex"] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem !important;
    }

    /* Scale down the big stat number on mobile */
    #genTotalCount, #filterCount, #filterInvalidCount {
        font-size: 1.4rem !important;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .header-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 0.4rem;
    }

    .header-actions .btn-sm {
        flex: 0 0 auto;
        width: auto;
        min-width: 4.2rem;
        max-width: none;
        font-size: 0.68rem;
        padding: 0.35rem 0.55rem;
    }

    .header-actions .badge {
        flex: 0 0 auto;
    }

    .control-panel .card-header,
    .control-card > .card-header {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .control-panel .card-header .card-title {
        justify-content: center;
        width: 100%;
    }

    .control-panel .card-header .status-indicator {
        max-width: none;
        text-align: center;
    }

    .glass-card {
        width: 100%;
    }

    .form-group,
    .actions,
    .form-control,
    textarea.form-control {
        width: 100%;
    }

    .filter-results-grid {
        grid-template-columns: 1fr !important;
    }

    /* iOS Safari 3D Flip Fix - Convert to standard 2D view toggling */
    .flip-wrapper { 
        perspective: none !important; 
    }
    .flip-inner { 
        transform: none !important; 
        transition: none !important; 
        transform-style: flat !important;
        display: block !important; 
    }
    .flip-front, .flip-back {
        transform: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
    }
    
    /* When not flipped, hide back completely */
    .flip-wrapper:not(.is-flipped) .flip-back {
        display: none !important;
    }
    
    /* When flipped, hide front completely */
    .flip-wrapper.is-flipped .flip-front {
        display: none !important;
    }
}

/* Smaller mobile phones */
@media (max-width: 480px) {
    .title {
        font-size: 1.4rem;
    }

    .view-toggle {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .btn-toggle {
        font-size: 0.78rem;
        padding: 0.7rem 0.85rem;
    }

    .presence-panel {
        width: 100%;
        font-size: 0.68rem;
    }

    .result-item {
        font-size: 0.75rem;
        padding: 0.6rem;
        word-break: break-all;
    }

    .stat-card {
        padding: 0.5rem 0.2rem;
    }

    .stat-value {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}

/* ── Proxy Required Field ───────────────────────────────────────────── */
.proxy-required-field {
    border-color: #cc0000 !important;
    box-shadow: 0 0 6px rgba(204, 0, 0, 0.25);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.proxy-required-field:not(:placeholder-shown) {
    border-color: rgba(0, 255, 157, 0.5) !important;
    box-shadow: 0 0 6px rgba(0, 255, 157, 0.2);
}

@keyframes proxyShake {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-8px); }
    30%  { transform: translateX(8px); }
    45%  { transform: translateX(-6px); }
    60%  { transform: translateX(6px); }
    75%  { transform: translateX(-3px); }
    90%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.proxy-shake {
    animation: proxyShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.nc-textarea {
    min-height: 130px;
    resize: vertical;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eaeaea !important;
    padding: 10px !important;
}

.nc-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}
.nc-divider::before,
.nc-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nc-divider::before { margin-right: 0.75rem; }
.nc-divider::after { margin-left: 0.75rem; }

.nc-edit-icon {
    color: var(--primary);
    opacity: 0.85;
    transition: opacity 0.2s;
}
.nc-edit-icon:hover { opacity: 0.7; }

/* Modal dark theme overrides */
.nc-modal-content {
    background: #0d0d0d !important;
    border: var(--card-border) !important;
    border-radius: 12px !important;
    color: var(--text-color) !important;
    backdrop-filter: blur(20px);
}
.nc-modal-header {
    background: rgba(255,255,255,0.03) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.nc-modal-content .modal-body {
    background: transparent;
}

/* Bootstrap progress overrides for dark theme */
.progress {
    background: rgba(255,255,255,0.08) !important;
    border-radius: 4px;
}

/* Bootstrap form-range color */
.form-range::-webkit-slider-thumb {
    background: var(--primary) !important;
}
.form-range::-moz-range-thumb {
    background: var(--primary) !important;
}
.form-range::-webkit-slider-runnable-track {
    background: rgba(255,255,255,0.15) !important;
}

/* Bootstrap dropdown dark overrides */
.dropdown-menu-dark {
    background: #0d0d0d !important;
    border: var(--card-border) !important;
}

.dropdown-menu-dark .dropdown-item {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.dropdown-menu-dark .dropdown-header {
    color: var(--primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bootstrap form-check-input (toggle) color */
.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Bootstrap badge overrides in nc context */
.badge.bg-primary {
    background: var(--primary) !important;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
    border-radius: 6px;
}

/* h-100 utility (Bootstrap adds this, ensure it works with glass-card) */
.h-100 { height: 100% !important; }

/* gap utilities (Bootstrap 5 uses these) */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }

/* me / ms / mb / mt spacing helpers used inside nc panels */
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.p-3  { padding: 1rem !important; }
.float-end { float: right !important; }

/* Sites editor with line numbers */
.nc-sites-editor {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
}
.nc-line-numbers {
    padding: 0.75rem 0.5rem;
    width: 42px;
    text-align: right;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.6;
    user-select: none;
    overflow: hidden;
    pointer-events: none;
    flex-shrink: 0;
    height: 100%;
}
.nc-sites-textarea {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    resize: none;
    min-height: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    padding: 0.75rem !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    pointer-events: all !important;
    color: #fff !important;
}
.nc-sites-textarea:focus {
    box-shadow: none !important;
    border: none !important;
}

/* ─── PPCP tab password modal ──────────────────────────────────────────────── */
body.ppcp-tab-lock-open {
    overflow: hidden;
}

.ppcp-tab-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
}

.ppcp-tab-lock-overlay.hidden {
    display: none;
}

.ppcp-tab-lock-panel {
    position: relative;
    width: min(420px, calc(100vw - 2rem));
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 157, 0.25);
    background: linear-gradient(145deg, rgba(12, 12, 12, 0.98), rgba(6, 6, 6, 0.99));
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.08), 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.ppcp-tab-lock-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 157, 0.07), transparent 55%);
    pointer-events: none;
}

.ppcp-tab-lock-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #aaa;
    cursor: pointer;
}

.ppcp-tab-lock-close:hover {
    background: rgba(255, 0, 60, 0.2);
    color: #fff;
}

.ppcp-tab-lock-content {
    position: relative;
    z-index: 1;
    padding: 1.75rem 1.75rem 1.5rem;
}

.ppcp-tab-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.25);
    color: #00ff9d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.ppcp-tab-lock-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    color: #f5f5f5;
}

.ppcp-tab-lock-desc {
    margin: 0 0 1.1rem;
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ppcp-tab-lock-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #aaa;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ppcp-tab-lock-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-family: monospace;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.ppcp-tab-lock-input:focus {
    outline: none;
    border-color: rgba(0, 255, 157, 0.45);
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.12);
}

.ppcp-tab-lock-error {
    min-height: 1.2rem;
    margin: 0.45rem 0 0;
    color: #ff6b6b;
    font-size: 0.8rem;
}

.ppcp-tab-lock-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 1.1rem;
}

.ppcp-tab-lock-actions .btn {
    min-width: 6rem;
}

/* ─── Developer info modal ─────────────────────────────────────────────────── */
body.dev-modal-open {
    overflow: hidden;
}

.btn-developer {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 0, 60, 0.45);
    background: rgba(255, 0, 60, 0.12);
    color: #ffb3c6;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.btn-developer:hover {
    background: rgba(255, 0, 60, 0.22);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 18px var(--primary-glow);
    transform: translateY(-1px);
}

.dev-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    animation: ncPoolModalFade 0.22s ease;
}

.dev-modal-overlay.hidden {
    display: none !important;
}

.dev-modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid rgba(255, 0, 60, 0.35);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 24px 80px rgba(0, 0, 0, 0.75),
        0 0 40px rgba(255, 0, 60, 0.15);
    overflow: hidden;
}

.dev-modal-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../img/ruby_dev_bg.png') center center / cover no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

.dev-modal-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(5, 5, 5, 0.88) 0%,
        rgba(20, 0, 8, 0.75) 45%,
        rgba(5, 5, 5, 0.92) 100%
    );
}

.dev-modal-scanlines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.06;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.4) 2px,
        rgba(0, 0, 0, 0.4) 4px
    );
}

.dev-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.dev-modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.06);
}

.dev-modal-content {
    position: relative;
    z-index: 2;
    padding: 1.35rem 1.25rem 1.15rem;
    overflow-y: auto;
    max-height: min(88vh, 720px);
}

.dev-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 0, 60, 0.2);
    border: 1px solid rgba(255, 0, 60, 0.4);
    color: #ff8fab;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.dev-modal-title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 20%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dev-modal-telegram {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
}

.dev-modal-telegram a {
    color: #5ecbff;
    text-decoration: none;
    font-weight: 600;
}

.dev-modal-telegram a:hover {
    color: #9ee0ff;
    text-decoration: underline;
}

.dev-modal-telegram i {
    color: #229ed9;
    margin-right: 0.35rem;
}

.dev-modal-bio {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-left: 3px solid var(--primary);
    background: rgba(255, 0, 60, 0.08);
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    font-style: italic;
    color: #ddd;
    line-height: 1.5;
}

.dev-modal-section-title {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff8fab;
}

.dev-modal-section-title i {
    margin-right: 0.35rem;
}

.dev-modal-donate-intro {
    margin: 0 0 0.65rem;
    font-size: 0.74rem;
    color: #aaa;
    line-height: 1.45;
}

.dev-donate-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dev-donate-row {
    display: grid;
    grid-template-columns: 88px 1fr 36px;
    gap: 0.35rem;
    align-items: center;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.dev-donate-row:hover {
    border-color: rgba(255, 0, 60, 0.35);
    background: rgba(255, 0, 60, 0.1);
}

.dev-donate-row--copied {
    border-color: var(--success) !important;
    background: rgba(0, 255, 157, 0.1) !important;
}

.dev-donate-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
}

.dev-donate-val {
    font-size: 0.68rem;
    font-family: 'Consolas', 'Share Tech Mono', monospace;
    color: #e8e8e8;
    word-break: break-all;
    line-height: 1.35;
}

.dev-copy-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dev-copy-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.dev-modal-footer-note {
    margin: 0.85rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    color: #666;
    text-align: center;
    letter-spacing: 0.04em;
}

@media (max-width: 480px) {
    .dev-donate-row {
        grid-template-columns: 1fr 36px;
        grid-template-rows: auto auto;
    }

    .dev-donate-label {
        grid-column: 1 / -1;
    }

    .dev-donate-val {
        grid-column: 1;
    }

    .dev-copy-btn {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Telegram bot token / chat ID — masked inputs (see telegram_secret_input.js) */
.tg-secret-wrap {
    position: relative;
    width: 100%;
}

.tg-secret-wrap .form-control,
.tg-secret-wrap input.tg-secret-input {
    padding-right: 2.6rem;
}

.tg-secret-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
    z-index: 2;
}

.tg-secret-toggle:hover {
    color: #ffcc00;
}

.tg-secret-toggle:focus {
    outline: 1px solid rgba(255, 204, 0, 0.45);
    outline-offset: 2px;
}

