* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 3px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a2a4e 50%, #0f1f3f 100%);
    min-height: 100vh;
    color: #e0e7ff;
    overflow-x: hidden;
}

#app {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a0e27 0%, #1a2a4e 50%, #0f1f3f 100%);
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 15px;
    opacity: 0;
    transform: translateY(20px);
}

.screen.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.95; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 217, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 217, 255, 0.8), 0 0 30px rgba(0, 255, 136, 0.5); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 217, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 217, 255, 0.6), 0 0 30px rgba(0, 255, 136, 0.3); }
}

@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 4s linear infinite;
}

.animate-slide-in {
    animation: slide-in-right 0.5s ease-out forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.pulse-animation {
    /* Removed glow animation */
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.hover-scale:active {
    transform: scale(0.98);
}

.glow-effect {
    /* Removed glow effect */
}

.glow-effect::before {
    display: none;
}

.shimmer-effect {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.container {
    text-align: center;
    padding: 20px 15px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.header {
    padding: 15px 0;
    margin-bottom: 10px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.signals-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(0, 255, 136, 0.1) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50px;
    padding: 6px 12px;
}

.counter-icon {
    font-size: 14px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.25) 0%, rgba(0, 255, 136, 0.2) 100%);
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.2);
}

.counter-value {
    font-size: 18px;
    font-weight: 700;
    color: #00ff88;
    min-width: 24px;
    text-align: center;
}

.counter-label {
    font-size: 11px;
    color: #b0c4ff;
}

.logo {
    font-size: 56px;
    margin-bottom: 15px;
    display: inline-block;
}

h1, h2 {
    margin-bottom: 12px;
    font-weight: 600;
    color: #ffffff;
}

h1 {
    font-size: 26px;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 18px;
}

h3 {
    font-size: 14px;
    color: #00d9ff;
    margin: 8px 0;
}

.description {
    color: #a0aecb;
    font-size: 12px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 50px;
    padding: 8px 14px;
    text-align: left;
    font-size: 12px;
}

.feature-icon {
    font-size: 16px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 255, 136, 0.15) 100%);
    padding: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 255, 136, 0.15) 100%);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
    border: 1px solid rgba(0, 217, 255, 0.25);
}

.info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 20px;
}

.waiting-animation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.waiting-animation .dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.waiting-animation .dot:nth-child(1) { animation-delay: -0.32s; }
.waiting-animation .dot:nth-child(2) { animation-delay: -0.16s; }
.waiting-animation .dot:nth-child(3) { animation-delay: 0s; }

.btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-icon {
    margin-right: 8px;
}

.btn.primary {
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    color: #0a0e27;
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.15);
    font-weight: 600;
}

.btn.primary:hover {
    box-shadow: 0 6px 16px rgba(0, 217, 255, 0.25);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e7ff;
    border: 1px solid rgba(0, 217, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.1);
}

.btn.back-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aecb;
    font-size: 12px;
    padding: 8px 16px;
}

.btn.region-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50px;
}

.btn.region-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.5);
}

.tabs {
    display: flex;
    gap: 6px;
    margin: 10px 0;
    overflow-x: auto;
    padding: 4px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #a0aecb;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
}

.tab.active {
    background: rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 217, 255, 0.5);
    color: #00d9ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.tabs-container {
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.3s ease-out forwards;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 42, 78, 0.95) 0%, rgba(15, 31, 63, 0.95) 100%);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 16px;
    padding: 30px 25px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease-out;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.modal-content p {
    color: #a0aecb;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
}

.pair-select-item {
    background: linear-gradient(135deg, rgba(94, 146, 243, 0.1) 0%, rgba(0, 217, 255, 0.08) 100%);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pair-select-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.4);
    transform: translateX(5px);
}

.pair-select-item.selected {
    background: rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.big-signal-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(0, 255, 136, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.15);
    margin: 10px 0;
    animation: scaleIn 0.5s ease-out;
}

.signal-pair-big {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
}

.signal-direction-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.direction-arrow {
    font-size: 36px;
}

.direction-arrow.up {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.direction-arrow.down {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.direction-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.signal-info-big {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.signal-result-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.signal-result-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    min-height: 44px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signal-result-buttons .btn:first-child {
    box-shadow: 0 4px 10px rgba(0, 255, 136, 0.2);
}

.signal-result-buttons .btn:last-child {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
}

.user-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.4);
}

.user-info {
    text-align: left;
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #00d9ff;
    margin-bottom: 5px;
    font-size: 14px;
}

.user-detail {
    color: #a0aecb;
    font-size: 12px;
    margin: 2px 0;
}

.user-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.user-action-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.user-action-btn:hover {
    transform: scale(1.05);
}

.user-action-btn.approve {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.user-action-btn.block {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.user-action-btn.delete {
    background: rgba(255, 80, 80, 0.2);
    color: #ff5050;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

.admin-tab {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #a0aecb;
    cursor: pointer;
    font-size: 14px;
}

.admin-tab.active {
    background: rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 217, 255, 0.5);
    color: #00d9ff;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(94, 146, 243, 0.15) 0%, rgba(0, 217, 255, 0.1) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: #e0e7ff;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-field:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(94, 146, 243, 0.25) 0%, rgba(0, 217, 255, 0.15) 100%);
    border-color: rgba(0, 217, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.25);
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    color: #b0c4ff;
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #6b7fd6;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.signal-limit-control {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.signal-limit-control label {
    color: #a0aecb;
    font-size: 12px;
    flex: 1;
}

.signal-limit-control input {
    width: 60px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    color: #e0e7ff;
    font-size: 12px;
}

.signal-limit-control button {
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.15);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #00d9ff;
}

.stat-label {
    font-size: 12px;
    color: #a0aecb;
    margin-top: 5px;
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.pagination-btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
    margin-bottom: 0 !important;
}

.status-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.result {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    color: #a0aecb;
    font-size: 13px;
    max-height: 200px;
    overflow-y: auto;
}

.result.show {
    animation: scaleIn 0.3s ease-out;
}

.timeframe-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(0, 217, 255, 0.3) !important;
    color: #e0e7ff !important;
}

.timeframe-btn:hover {
    background: rgba(0, 217, 255, 0.15) !important;
    border-color: rgba(0, 217, 255, 0.5) !important;
}

.timeframe-btn.selected {
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%) !important;
    color: #0a0e27 !important;
    border-color: transparent !important;
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .signals-counter {
        margin-top: 10px;
    }
}
