@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --moon-glow: rgba(255, 255, 255, 0.15);
    --shadow-text: 0 2px 8px rgba(0, 0, 0, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 60% 70%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 50% 50%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 80% 10%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 10% 90%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 30% 80%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 70% 40%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 90% 60%, white 1px, transparent 1px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    animation: particlesFloat 30s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 15% 20%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 85% 80%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 45% 15%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 75% 85%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 25% 60%, white 1px, transparent 1px),
        radial-gradient(1px 1px at 55% 35%, white 1px, transparent 1px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    animation: particlesFloat 40s ease-in-out infinite reverse;
}

@keyframes particlesFloat {
    0%, 100% { 
        opacity: 0.3; 
        transform: translate(0, 0); 
    }
    25% { 
        opacity: 0.6; 
        transform: translate(10px, -15px); 
    }
    50% { 
        opacity: 0.4; 
        transform: translate(-8px, 10px); 
    }
    75% { 
        opacity: 0.7; 
        transform: translate(15px, 5px); 
    }
}

.nav-menu {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0));
    left: calc(20px + env(safe-area-inset-left, 0));
    z-index: 1000;
}

.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--moon-glow);
}

.menu-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px var(--moon-glow);
    transform: scale(1.05);
}

.menu-icon svg {
    color: rgba(255, 255, 255, 0.8);
}

.nav-dropdown {
    position: absolute;
    top: 60px;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px var(--moon-glow);
    animation: slideDown 0.3s ease-out;
}

.user-menu {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0));
    right: calc(20px + env(safe-area-inset-right, 0));
    z-index: 1000;
}

.user-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--moon-glow);
}

.user-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px var(--moon-glow);
    transform: scale(1.05);
}

.user-icon svg {
    color: rgba(255, 255, 255, 0.8);
}

.user-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px var(--moon-glow);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.menu-item svg {
    flex-shrink: 0;
}

.page-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    position: relative;
    z-index: 1;
}

.page {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-pill-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: var(--shadow-text);
    box-shadow: 0 0 20px var(--moon-glow);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px var(--moon-glow); }
    50% { box-shadow: 0 0 30px var(--moon-glow); }
}

.card-input-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#cardInput {
    width: 100%;
    min-height: 180px;
    max-height: 300px;
    background: transparent;
    border: none;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    resize: vertical;
    outline: none;
    text-align: center;
}

#cardInput::-webkit-scrollbar {
    display: none;
}

#cardInput {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#cardInput::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.max-lines,
.line-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.btn-clear-icon,
.btn-paste-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
}

.btn-clear-icon:hover,
.btn-paste-icon:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 12px var(--moon-glow);
}

.btn-clear-icon:active,
.btn-paste-icon:active {
    transform: scale(0.95);
}

.btn-clear-icon svg,
.btn-paste-icon svg {
    width: 18px;
    height: 18px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn svg {
    position: relative;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-start {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 0 15px var(--moon-glow);
}

.btn-start:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 25px var(--moon-glow);
    transform: translateY(-2px);
}

.btn-stop {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #ef4444;
}

.btn-stop:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.btn-stop:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-settings-inline {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
}

.btn-settings-inline:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    border-color: rgba(255, 193, 7, 0.4);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
    transform: translateY(-1px);
}

.btn-clear {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-subtle);
    color: rgba(255, 255, 255, 0.6);
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.progress-section {
    margin-bottom: 24px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.progress-bar {
    position: relative;
    flex: 1;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(64, 156, 255, 0.3), rgba(64, 156, 255, 0.15));
    border-radius: 20px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(64, 156, 255, 0.2);
}

.progress-info {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.progress-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: var(--shadow-text);
    white-space: nowrap;
}

.checking-status {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: var(--shadow-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.status-text {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: var(--shadow-text);
    white-space: nowrap;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.result-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.result-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-box-header .toggle-log-btn {
    position: relative;
    top: auto;
    right: auto;
}

.result-box-body {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.result-box.expanded {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
}

.result-box-body .result-log {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: 140px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.toggle-log-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.toggle-log-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px var(--moon-glow);
}

.toggle-log-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.result-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.result-box.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px var(--moon-glow);
}

.result-live {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.result-live:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.result-charged {
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.06);
}

.result-charged:hover {
    box-shadow: 0 0 34px rgba(34, 197, 94, 0.12);
}

.result-dead {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.result-dead:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.result-icon {
    opacity: 0.6;
    margin-right: 16px;
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon svg {
    filter: drop-shadow(0 0 10px currentColor);
    width: 32px;
    height: 32px;
}

.result-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.result-count {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: var(--shadow-text);
}

.result-log-section {
    animation: slideIn 0.4s ease-out;
}

.log-header {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-log {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.result-log::-webkit-scrollbar {
    width: 6px;
}

.result-log::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.result-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.result-log::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.log-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    animation: logItemAppear 0.3s ease-out;
    min-height: 60px;
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.07);
}

@keyframes logItemAppear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.log-item:last-child {
    margin-bottom: 0;
}

.log-badge {
    grid-row: 1 / 3;
    grid-column: 1;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: start;
}

.log-badge.live {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.log-badge.charged {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.log-badge.cvv-live {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.log-badge.ccn-live {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.log-badge.dead {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.log-badge.error {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.log-card {
    grid-row: 1;
    grid-column: 2;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.btn-copy-single {
    grid-row: 1 / 3;
    grid-column: 3;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.5);
    align-self: start;
}

.btn-copy-single:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px var(--moon-glow);
}

.log-response {
    grid-row: 2;
    grid-column: 2;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.65);
    font-style: normal;
    white-space: normal;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: var(--shadow-text);
}

.alert-box {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.alert-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.add-key-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.add-key-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    outline: none;
    transition: all 0.2s;
}

.add-key-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.add-key-form input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px var(--moon-glow);
}

.btn-add {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    white-space: nowrap;
}

.btn-add:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px var(--moon-glow);
}

.keys-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.key-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.key-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px var(--moon-glow);
}

.key-info {
    flex: 1;
    min-width: 0;
}

.key-masked {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.key-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.key-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px var(--moon-glow);
}

.key-actions {
    display: flex;
    gap: 8px;
}

.btn-use,
.btn-delete {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
    background: transparent;
}

.btn-use {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.btn-use:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px var(--moon-glow);
}

.btn-delete {
    border-color: rgba(220, 38, 38, 0.3);
    color: #ef4444;
}

.btn-delete:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.5);
}

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.login-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.login-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 60px var(--moon-glow);
    animation: loginAppear 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.6);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

@keyframes loginAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-header {
    margin-bottom: 32px;
}

.login-header svg {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 20px var(--moon-glow));
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: var(--shadow-text);
}

.login-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.telegram-login-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login-footer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.login-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #ffffff;
}

.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.settings-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.settings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 0 60px var(--moon-glow);
    animation: loginAppear 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.settings-header {
    text-align: center;
    margin-bottom: 32px;
}

.settings-header svg {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 20px var(--moon-glow));
}

.settings-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: var(--shadow-text);
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-group input[type="text"],
.setting-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s;
    font-family: 'Rajdhani', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

#paypalSecretInput {
    width: 100%;
    box-sizing: border-box;
}

.setting-group input[type="text"]:focus,
.setting-group select:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px var(--moon-glow);
}

.delay-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 12px 0;
}

.delay-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-subtle);
    cursor: pointer;
    box-shadow: 0 0 15px var(--moon-glow);
    transition: all 0.2s;
}

.delay-slider::-webkit-slider-thumb:hover {
    background: #ffffff;
    box-shadow: 0 0 25px var(--moon-glow);
    transform: scale(1.1);
}

.delay-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-subtle);
    cursor: pointer;
    box-shadow: 0 0 15px var(--moon-glow);
    transition: all 0.2s;
}

.delay-slider::-moz-range-thumb:hover {
    background: #ffffff;
    box-shadow: 0 0 25px var(--moon-glow);
    transform: scale(1.1);
}

.delay-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.delay-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -8px;
}

#delayValue {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-shadow: 0 0 10px var(--moon-glow);
}

.setting-group select {
    cursor: pointer;
}

.setting-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

.setting-group select option:disabled {
    color: rgba(255, 255, 255, 0.3);
}

.setting-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.settings-footer {
    display: flex;
    justify-content: center;
}

.btn-save {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}

.btn-save:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px var(--moon-glow);
    transform: translateY(-2px);
}

.app-container {
    min-height: 100vh;
}

.user-info {
    padding: 12px 16px;
}

.guest-info {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guest-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.guest-login,
.guest-join {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    justify-content: center;
}

.guest-login:hover,
.guest-join:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px var(--moon-glow);
}

.guest-join {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.guest-join:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.user-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', monospace;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px 0;
}

.menu-logout {
    color: #ef4444 !important;
}

.menu-logout:hover {
    background: rgba(220, 38, 38, 0.1) !important;
}

.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 0 30px var(--moon-glow);
    animation: slideInRight 0.3s ease-out;
    z-index: 10000;
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.popup-card {
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 0 60px var(--moon-glow);
    animation: popupAppear 0.3s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-subtle);
}

.popup-icon svg {
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 15px var(--moon-glow));
}

.popup-message {
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.popup-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}

.popup-btn-primary {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.popup-btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px var(--moon-glow);
    transform: translateY(-2px);
}

.popup-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .page-container {
        padding: 70px 16px 30px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        display: grid;
        grid-template-columns: 1fr auto;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .add-key-form {
        flex-direction: column;
    }
    
    .key-card {
        flex-wrap: wrap;
    }
    
    .key-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .login-card,
    .settings-card {
        padding: 32px 24px;
    }
    
    .notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px var(--moon-glow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.stat-live .stat-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-premium .stat-icon {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px var(--moon-glow);
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px var(--moon-glow);
}

.live-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.live-card-item {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    transition: all 0.2s;
}

.live-card-item:hover {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.live-card-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-card-number {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.live-card-response {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.live-card-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.live-card-copy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-card-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
