/* ===========================
   STRIPE AUTH - CUSTOM STYLES
   =========================== */

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
}

.splash-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.splash-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: splashGlowPulse 2s ease-in-out infinite;
}

@keyframes splashGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.splash-logo {
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.5));
    animation: splashLogoFloat 3s ease-in-out infinite;
}

@keyframes splashLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.splash-text {
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 2.5rem;
    color: #00ff00;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5), 0 0 40px rgba(0, 255, 0, 0.3);
    margin-bottom: 0.3rem;
}

.splash-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #00aa00;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

/* Loading Bar */
.splash-loading {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.splash-loading-bar {
    width: 100%;
    height: 4px;
    background: #111;
    border: 1px solid #1a3a1a;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.splash-loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00, #00ff00);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    width: 0%;
    transition: width 0.08s linear;
}

.splash-loading-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #00aa00;
    letter-spacing: 3px;
    text-align: right;
}

/* ===== SPLASH ACTION BUTTONS ===== */
.splash-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff00;
    color: #00ff00;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.splash-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s ease;
}

.splash-action-btn:hover::before {
    left: 100%;
}

.splash-action-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.3), inset 0 0 25px rgba(0, 255, 0, 0.05);
    transform: translateY(-3px);
}

.splash-action-btn-alt {
    border-color: #00ccff;
    color: #00ccff;
}

.splash-action-btn-alt:hover {
    background: rgba(0, 204, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 204, 255, 0.3), inset 0 0 25px rgba(0, 204, 255, 0.05);
}

/* ===== SPLASH KEY INPUT ===== */
.splash-key-input {
    width: 100%;
    max-width: 350px;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: all 0.3s ease;
}

.splash-key-input::placeholder {
    color: rgba(0, 255, 0, 0.3);
}

.splash-key-input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3), inset 0 0 15px rgba(0, 255, 0, 0.05);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes waitingPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FLOATING COUNTDOWN TIMER ===== */
.sa-countdown-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid rgba(255, 170, 0, 0.6);
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffaa00;
    animation: countdownGlow 2s ease-in-out infinite;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    cursor: default;
    user-select: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 170, 0, 0.15);
}

.sa-countdown-float .countdown-label {
    font-size: 0.6rem;
    color: rgba(255, 170, 0, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sa-countdown-float .countdown-time {
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    color: #ffaa00;
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.4);
}

.sa-countdown-float .countdown-icon {
    font-size: 0.85rem;
    animation: hourglassFlip 2s ease-in-out infinite;
}

.sa-countdown-float.countdown-warning {
    border-color: #ff4444;
    animation: countdownWarning 0.8s ease-in-out infinite;
}

.sa-countdown-float.countdown-warning .countdown-time {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
}

.sa-countdown-float.countdown-warning .countdown-label {
    color: rgba(255, 68, 68, 0.6);
}

/* FREE key countdown — orange */
.sa-countdown-float.countdown-free {
    border-color: rgba(255, 170, 0, 0.6);
    color: #ffaa00;
}

.sa-countdown-float.countdown-free .countdown-label {
    color: rgba(255, 170, 0, 0.6);
}

.sa-countdown-float.countdown-free .countdown-time {
    color: #ffaa00;
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.4);
}

/* VIP key countdown — violet/purple */
.sa-countdown-float.countdown-vip {
    border-color: rgba(180, 100, 255, 0.7);
    color: #b464ff;
    animation: countdownGlowVip 2s ease-in-out infinite;
}

.sa-countdown-float.countdown-vip .countdown-label {
    color: rgba(180, 100, 255, 0.7);
}

.sa-countdown-float.countdown-vip .countdown-time {
    color: #c88aff;
    text-shadow: 0 0 8px rgba(180, 100, 255, 0.5);
}

.sa-countdown-float.countdown-vip .countdown-icon {
    color: #b464ff;
}

.sa-countdown-float.countdown-vip.countdown-warning {
    border-color: #ff4444;
    animation: countdownWarning 0.8s ease-in-out infinite;
}

.sa-countdown-float.countdown-vip.countdown-warning .countdown-time {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
}

.sa-countdown-float.countdown-vip.countdown-warning .countdown-label {
    color: rgba(255, 68, 68, 0.6);
}

/* Paused state */
.sa-countdown-float.countdown-paused {
    opacity: 0.7;
    animation: countdownPausedPulse 2s ease-in-out infinite;
}

.sa-countdown-float.countdown-paused .countdown-time {
    animation: pausedBlink 1.5s ease-in-out infinite;
}

@keyframes countdownGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 170, 0, 0.15); }
    50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 170, 0, 0.3); }
}

@keyframes countdownGlowVip {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 8px rgba(180, 100, 255, 0.2); }
    50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(180, 100, 255, 0.4); }
}

@keyframes countdownWarning {
    0%, 100% { opacity: 1; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 68, 68, 0.3); }
    50% { opacity: 0.7; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 68, 68, 0.6); }
}

@keyframes hourglassFlip {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

@keyframes countdownPausedPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.85; }
}

@keyframes pausedBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== VIP PAUSE/RESUME BUTTON ===== */
.vip-pause-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    margin-left: 6px;
    background: rgba(180, 100, 255, 0.15);
    border: 1px solid rgba(180, 100, 255, 0.5);
    border-radius: 4px;
    color: #c88aff;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.vip-pause-btn:hover {
    background: rgba(180, 100, 255, 0.3);
    border-color: #b464ff;
    box-shadow: 0 0 10px rgba(180, 100, 255, 0.4);
    transform: scale(1.1);
}

.vip-pause-btn:active {
    transform: scale(0.95);
}

.vip-pause-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vip-pause-btn i {
    font-size: 0.65rem;
}

/* ===== PROXY STATUS PANEL ===== */
.proxy-status-panel {
    background: var(--terminal-bg-light);
    border: 1px solid var(--terminal-border);
    padding: 0.6rem 0.8rem;
    max-height: 180px;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
}

.proxy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.08);
    transition: background 0.2s ease;
}

.proxy-item:last-child { border-bottom: none; }
.proxy-item:hover { background: rgba(0, 255, 0, 0.03); }

.proxy-addr {
    color: var(--terminal-text-dim);
    font-size: 0.7rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.proxy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.5px;
    border: 1px solid;
    text-transform: uppercase;
}

.proxy-badge-live { color: #00ff00; border-color: #00ff00; background: rgba(0, 255, 0, 0.08); box-shadow: 0 0 6px rgba(0, 255, 0, 0.3); }
.proxy-badge-dead { color: #ff0000; border-color: #ff0000; background: rgba(255, 0, 0, 0.08); box-shadow: 0 0 6px rgba(255, 0, 0, 0.3); }
.proxy-badge-checking { color: #ffff00; border-color: #ffff00; background: rgba(255, 255, 0, 0.08); box-shadow: 0 0 6px rgba(255, 255, 0, 0.3); animation: proxyCheckPulse 1s ease-in-out infinite; }
.proxy-badge-noproxy { color: #888888; border-color: #555555; background: rgba(136, 136, 136, 0.08); }

@keyframes proxyCheckPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== PROXY SUMMARY BAR ===== */
.proxy-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--terminal-bg-light);
    border: 1px solid var(--terminal-border);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
}

.proxy-summary-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.proxy-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* ===== HOME NAV BUTTON ===== */
.home-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #1a0000, #330000);
    border: 2px solid #ff0000;
    border-radius: 4px;
    color: #ff0000;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Share Tech Mono', monospace;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(255,0,0,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(255,0,0,0.75);
    color: #ff0000;
    background: linear-gradient(135deg, #330000, #440000);
}

/* ===== BROWSE PANEL STYLES ===== */
.browse-panel-item { display: flex; align-items: center; padding: 0.6rem 0.8rem; text-decoration: none; color: #ccc; font-size: 0.8rem; transition: all 0.2s; border-bottom: 1px solid rgba(255,255,255,0.05); }
.browse-panel-item:hover { background: rgba(0,255,0,0.05); color: #00ff00; }
.browse-panel-item.active-page { background: rgba(0,255,0,0.08); color: #00ff00; border-left: 3px solid #00ff00; }
.browse-panel-item i { width: 18px; text-align: center; color: #444; transition: color 0.2s; margin-right: 0.75rem; flex-shrink: 0; }
.browse-panel-item:hover i, .browse-panel-item.active-page i { color: #00ff00; }
.browse-badge-main { margin-left: auto; background: #003300; color: #00ff00; font-size: 0.55rem; padding: 0.1rem 0.4rem; border: 1px solid #00ff00; font-weight: 900; letter-spacing: 0.5px; font-family: 'Share Tech Mono', monospace; }
.browse-badge-premium { margin-left: auto; background: #1a1500; color: #ffd700; font-size: 0.55rem; padding: 0.1rem 0.4rem; border: 1px solid #ffd700; font-weight: 900; letter-spacing: 0.5px; font-family: 'Share Tech Mono', monospace; animation: premiumPulse 2s ease-in-out infinite; }
@keyframes premiumPulse { 0%,100% { box-shadow: 0 0 4px rgba(255,215,0,0.4); } 50% { box-shadow: 0 0 10px rgba(255,215,0,0.9); } }
.browse-badge-new { margin-left: auto; background: #0d0d2b; color: #7777ff; font-size: 0.55rem; padding: 0.1rem 0.4rem; border: 1px solid #4444ff; font-weight: 900; letter-spacing: 0.5px; font-family: 'Share Tech Mono', monospace; }

.browse-dropdown-btn i { display: none; }

/* ===== RESULTS BADGE STYLES ===== */
.karma-results .m .badge,
.karma-results .n .badge,
.karma-results .d .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 4px;
    font-weight: bold;
}

.karma-results .m .badge {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
}

.karma-results .n .badge {
    background: linear-gradient(135deg, #00bfff, #0099cc);
    color: #000;
}

.karma-results .d .badge {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
}

.karma-results .m { margin-bottom: 6px; }
.karma-results .n { margin-bottom: 6px; }
.karma-results .d { margin-bottom: 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .home-nav-btn .home-nav-text { display: none; }
    .home-nav-btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .home-nav-btn i { margin: 0 !important; font-size: 1.2rem; }

    .browse-dropdown-btn .browse-text,
    .browse-dropdown-btn .browse-btn-prefix,
    .browse-dropdown-btn .browse-btn-cursor { display: none; }
    .browse-dropdown-btn { width: 40px; height: 40px; padding: 0; justify-content: center; gap: 0; }
    .browse-dropdown-btn i { display: inline-block; margin: 0 !important; font-size: 1.2rem; }
    .browse-side-panel { width: 240px; }

    /* Splash responsive */
    .splash-text { font-size: 1.8rem; letter-spacing: 4px; }
    .splash-subtitle { font-size: 0.6rem; letter-spacing: 2px; }
    .splash-action-btn { padding: 0.7rem 1.2rem; font-size: 0.75rem; }

    /* Floating countdown responsive */
    .sa-countdown-float { bottom: 12px; right: 12px; padding: 0.4rem 0.8rem; font-size: 0.75rem; }
    .sa-countdown-float .countdown-time { font-size: 0.95rem; }
    .vip-pause-btn { width: 22px; height: 22px; margin-left: 4px; }
    .vip-pause-btn i { font-size: 0.55rem; }
}

@media (max-width: 480px) {
    .splash-text { font-size: 1.4rem; letter-spacing: 3px; }
    .splash-action-btn { padding: 0.6rem 1rem; font-size: 0.7rem; }
    .sa-countdown-float { bottom: 8px; right: 8px; padding: 0.35rem 0.7rem; }
    .vip-pause-btn { width: 20px; height: 20px; }
}
