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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1419;
    color: white;
    line-height: 1.5;
    min-height: 100vh;
}

#app {
    width: 100%;
    height: 100vh;
}

.screen {
    display: none !important;
}

.screen.active {
    display: block !important;
}

#activation-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
}

.activation-container {
    width: 100%;
}

#activation-screen .header {
    text-align: center;
    margin-bottom: 48px;
}

.logo {
    font-size: 80px;
    margin-bottom: 20px;
}

#activation-screen h1 {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(90deg, #00d4ff 0%, #ff00ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

#activation-screen .subtitle {
    color: #8b92a7;
    font-size: 17px;
}

.activation-card {
    background: rgba(26, 31, 46, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.activation-card .form-group {
    margin-bottom: 24px;
}

.activation-card .form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
    color: #e0e0e0;
}

.activation-card input {
    width: 100%;
    padding: 18px 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 17px;
    background: rgba(15, 20, 25, 0.7);
    color: white;
    transition: all 0.2s;
}

.activation-card input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(15, 20, 25, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

.activation-card .btn-primary {
    width: 100%;
    padding: 20px;
    background: linear-gradient(90deg, #00d4ff 0%, #0091ff 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 145, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.activation-card .btn-primary:active {
    transform: scale(0.98);
}

.activation-card .help-text {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 212, 255, 0.12);
    border-left: 4px solid #00d4ff;
    border-radius: 10px;
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.5;
}

@media (max-width: 480px) {
    
    
    #activation-screen h1 {
        font-size: 36px;
    }
    
    .logo {
        font-size: 64px;
    }
    
    .activation-card {
        padding: 28px 24px;
    }
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    color: #a0a8b8;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(20, 28, 40, 0.8);
    color: white;
    transition: all 0.2s;
    font-family: inherit;
}

input::placeholder {
    color: #5a6270;
}

input:focus {
    outline: none;
    border-color: #5b8fff;
    background: rgba(20, 28, 40, 0.95);
}

textarea, select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(20, 28, 40, 0.8);
    color: white;
    transition: all 0.2s;
    font-family: inherit;
}

textarea:focus, select:focus {
    outline: none;
    border-color: #5b8fff;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #5b8fff 0%, #4a6fd8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: 0;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.help-text {
    margin-top: 16px;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 12px;
    color: #7a8496;
    line-height: 1.5;
    text-align: center;
}

/* ===== ГЛАВНОЕ МЕНЮ ===== */
#main-menu {
    background: #0f1419;
    min-height: 100vh;
}

#main-menu .header {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    padding: 32px 20px 26px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#main-menu h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 7px;
    background: linear-gradient(90deg, #00d4ff 0%, #ff00ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

#main-menu .subtitle {
    color: #8b92a7;
    font-size: 14px;
}

.menu-buttons {
    padding: 22px 16px;
    display: grid;
    gap: 13px;
}

.menu-btn {
    background: linear-gradient(135deg, #1e2530 0%, #1a1f2e 100%);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px 17px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    text-align: left;
}

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

.menu-btn:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 94, 77, 0.15), rgba(255, 94, 77, 0.05));
    border-color: rgba(255, 94, 77, 0.3);
}

.menu-btn:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05));
    border-color: rgba(255, 152, 0, 0.3);
}

.menu-btn:nth-child(3) {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    border-color: rgba(76, 175, 80, 0.3);
}

.menu-btn:nth-child(4) {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
    border-color: rgba(33, 150, 243, 0.3);
}

.disclaimer {
    margin: 18px 16px;
    padding: 15px;
    background: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #ff9800;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.6;
    color: #d0d0d0;
}

/* ===== ДРУГИЕ ЭКРАНЫ ===== */
.header {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.back-btn {
    background: transparent;
    border: none;
    color: #00d4ff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    margin-bottom: 10px;
}

.form-group {
    padding: 0 16px;
    margin-bottom: 18px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin: 16px;
}

.tab {
    flex: 1;
    padding: 11px;
    background: rgba(30, 37, 48, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #a0a0a0;
    transition: all 0.2s;
}

.tab.active {
    background: linear-gradient(90deg, #00d4ff 0%, #0091ff 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 145, 255, 0.4);
}

.tab-content {
    display: none;
}

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

.result {
    margin: 16px;
    padding: 18px;
    background: rgba(26, 31, 46, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    display: none;
}

.result.active {
    display: block;
}

.result h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 16px;
}

.indicator, .interaction {
    padding: 15px;
    margin-bottom: 11px;
    border-radius: 11px;
    border-left: 4px solid;
    background: rgba(30, 37, 48, 0.6);
}

.indicator.normal, .interaction.safe {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.indicator.high, .interaction.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.indicator.low {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.interaction.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.indicator-name, .interaction-drugs {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 6px;
}

.indicator-value {
    color: #a0a0a0;
    font-size: 13px;
    margin-bottom: 6px;
}

.indicator-description, .interaction-description {
    font-size: 14px;
    line-height: 1.5;
    color: #d0d0d0;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loader.hidden {
    display: none;
}

.spinner {
    width: 54px;
    height: 54px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader p {
    color: white;
    margin-top: 18px;
    font-size: 16px;
    font-weight: 700;
}

#image-preview img {
    max-width: 100%;
    border-radius: 11px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

@media (max-width: 480px) {
    #activation-screen h1 {
        font-size: 28px;
    }
    
    .logo {
        font-size: 70px;
    }
}
