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

input, textarea, select {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
    touch-action: manipulation;
}

input[type="text"],
input[type="number"],
textarea {
    font-size: 16px !important;
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --accent: #22d3ee;
    --success: #10b981;
    --danger: #ef4444;
    --bg-dark: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

#app {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.page {
    display: none;
    padding: 20px;
    min-height: 100vh;
    animation: fadeIn 0.4s ease-out;
}

.page.active {
    display: block;
}

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

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

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

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

.header {
    text-align: center;
    padding: 80px 0 50px;
    animation: slideUp 0.6s ease-out;
}

.logo {
    font-size: 56px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 4px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-btn .icon {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}

.tagline {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
}

.tagline::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 30px 0;
}

.menu-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text);
    padding: 20px 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.menu-btn:hover::before {
    left: 100%;
}

.menu-btn:hover, .menu-btn:active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(34, 211, 238, 0.2) 100%);
    border-color: var(--primary-light);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.menu-btn:nth-child(1) { animation: slideUp 0.5s ease-out 0.1s both; }
.menu-btn:nth-child(2) { animation: slideUp 0.5s ease-out 0.2s both; }
.menu-btn:nth-child(3) { animation: slideUp 0.5s ease-out 0.3s both; }
.menu-btn:nth-child(4) { animation: slideUp 0.5s ease-out 0.4s both; }
.menu-btn:nth-child(5) { animation: slideUp 0.5s ease-out 0.5s both; }
.menu-btn:nth-child(6) { animation: slideUp 0.5s ease-out 0.6s both; }

.page-header {
    display: flex;
    align-items: center;
    padding: 15px 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    animation: slideUp 0.4s ease-out;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 12px 15px;
    margin-right: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary);
    transform: translateX(-3px);
}

.page-header h2 {
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content {
    padding: 10px 0;
    animation: fadeIn 0.5s ease-out 0.2s both;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.nav-btn {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

#current-month {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-light);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid transparent;
}

.calendar-day:hover:not(.empty) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(34, 211, 238, 0.2) 100%);
    transform: scale(1.1);
    border-color: var(--primary);
    z-index: 1;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day .day-number {
    font-size: 15px;
    font-weight: 600;
}

.calendar-day .indicators {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.indicator.available {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.indicator.blocked {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 25px;
    padding: 35px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

.modal-content h3 {
    margin-bottom: 10px;
    font-size: 24px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#selected-date-text {
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 16px;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 18px 22px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover:not(.blocked) {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    transform: translateX(5px);
}

.time-slot.blocked {
    opacity: 0.4;
    cursor: not-allowed;
}

.time-slot.blocked .slot-status {
    color: var(--danger);
}

.close-modal {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-light);
    padding: 14px 35px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--primary);
    color: #fff;
}

.calc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 15px;
}

.calc-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 14px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calc-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.calc-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.calc-section.active {
    display: block;
}

.calc-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.slider-container {
    margin: 35px 0;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 20px;
}

#deposit-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    outline: none;
}

#deposit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    transition: transform 0.2s;
}

#deposit-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-value {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-top: 20px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-top: 25px;
    animation: fadeIn 0.5s ease-out;
}

.profit-display {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--success) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
    animation: pulse 2s ease-in-out infinite;
}

.profit-note {
    color: var(--text-muted);
}

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

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

.calc-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.result-table {
    margin-top: 25px;
    animation: fadeIn 0.4s ease-out;
}

.result-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 15px;
    overflow: hidden;
}

.result-table th, .result-table td {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.result-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    font-weight: 600;
}

.result-table td {
    background: rgba(255, 255, 255, 0.03);
}

.info-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.info-section:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.info-section h3 {
    margin-bottom: 12px;
    font-size: 18px;
    color: var(--primary-light);
}

.info-section p {
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.registration-step {
    text-align: center;
    padding: 25px 0;
}

.registration-step h3 {
    margin-bottom: 25px;
    font-size: 20px;
}

.region-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.region-btn {
    display: block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
    border: 2px solid var(--primary);
    color: var(--text);
    padding: 22px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.region-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.action-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.action-btn.success {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.action-btn.success:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.status-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.status-card.inactive {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15) 0%, rgba(75, 85, 99, 0.1) 100%);
    border-color: rgba(107, 114, 128, 0.3);
}

.status-card.inactive h4 {
    color: #9ca3af;
}

.status-card.searching {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.4);
    animation: pulseYellow 2s ease-in-out infinite;
}

.status-card.searching h4 {
    color: #fbbf24;
}

.status-card.prepare {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    animation: pulseGreen 2s ease-in-out infinite;
}

.status-card.prepare h4 {
    color: var(--success);
}

.status-card.active-signal {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    animation: pulsePurple 2s ease-in-out infinite;
}

.status-card.active-signal h4 {
    color: var(--primary-light);
}

@keyframes pulseYellow {
    0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.4); }
}

@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.4); }
}

@keyframes pulsePurple {
    0%, 100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.4); }
}

.status-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--success);
}

.status-card .status-text {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.status-card p {
    color: var(--text-muted);
}

.direction-arrow {
    font-size: 24px;
    font-weight: bold;
}

.direction-arrow.up {
    color: var(--success);
}

.direction-arrow.down {
    color: var(--danger);
}

.admin-panel-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.4);
    color: #a78bfa;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.admin-panel-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(168, 85, 247, 0.3) 100%);
    transform: translateY(-2px);
}

.search-asset-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.search-asset-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4) 0%, rgba(251, 191, 36, 0.3) 100%);
    transform: translateY(-2px);
}

.continue-signal-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 2px solid rgba(34, 211, 238, 0.4);
    color: var(--accent);
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.continue-signal-btn:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.4) 0%, rgba(6, 182, 212, 0.3) 100%);
    transform: translateY(-2px);
}

.users-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
}

.user-info {
    flex: 1;
}

.user-info .username {
    font-weight: 600;
    color: var(--text);
}

.user-info .user-id {
    font-size: 12px;
    color: var(--text-muted);
}

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

.toggle-access-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-access-btn.grant {
    background: var(--success);
    color: white;
}

.toggle-access-btn.revoke {
    background: var(--danger);
    color: white;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 16px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}

.pairs-list {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
}

.pairs-list::-webkit-scrollbar {
    width: 6px;
}

.pairs-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.pairs-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.pair-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--text);
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pair-item:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    transform: translateX(8px);
}

.direction-btns {
    display: flex;
    gap: 18px;
    margin: 25px 0;
}

.dir-btn {
    flex: 1;
    padding: 25px;
    border: 2px solid transparent;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dir-btn[data-dir="UP"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--success);
    border-color: var(--success);
}

.dir-btn[data-dir="UP"]:hover, .dir-btn[data-dir="UP"].selected {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.dir-btn[data-dir="DOWN"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: var(--danger);
    border-color: var(--danger);
}

.dir-btn[data-dir="DOWN"]:hover, .dir-btn[data-dir="DOWN"].selected {
    background: linear-gradient(135deg, var(--danger) 0%, #f87171 100%);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.signal-preview, .signal-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
}

.signal-preview p, .signal-info p {
    margin-bottom: 12px;
    font-size: 16px;
}

.result-btns {
    display: flex;
    gap: 18px;
    margin-top: 25px;
}

.result-btn {
    flex: 1;
    padding: 22px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
}

.result-btn.win {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.result-btn.win:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.result-btn.loss {
    background: linear-gradient(135deg, var(--danger) 0%, #f87171 100%);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
}

.result-btn.loss:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
}

.admin-slots {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.admin-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 18px 22px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch {
    position: relative;
    width: 60px;
    height: 34px;
}

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

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    transition: 0.4s;
    border-radius: 34px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .slider-toggle {
    background: linear-gradient(135deg, var(--danger) 0%, #f87171 100%);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

input:checked + .slider-toggle:before {
    transform: translateX(26px);
}

.signal-history {
    margin-top: 30px;
}

.signal-history h4 {
    margin-bottom: 18px;
    color: var(--text-muted);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 18px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.history-item .pair-info {
    font-weight: 600;
}

.history-item .result-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.history-item .result-badge.win {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.history-item .result-badge.loss {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

@media (max-width: 400px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo {
        font-size: 42px;
    }
    
    .header {
        padding: 60px 0 40px;
    }
}

.expiration-timer {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 20px auto 10px;
}

.timer-svg {
    width: 100%;
    height: 100%;
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.timer-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.admin-only {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
}
