* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #00d4ff;
    --accent-color: #ff6b00;
    --warning-color: #ffd700;
    --success-color: #00ff88;
    --dark-bg: #0a0e27;
    --card-bg: rgba(15, 23, 42, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --text-muted: #6b7280;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-camera: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-ads: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-gyro: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-ads-gyro: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0a0e27, #1a1f3a, #0f1624, #1e2749);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 60px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.tagline {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
}

.sub-tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 10px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.sub-tagline::before,
.sub-tagline::after {
    content: '•';
    color: var(--primary-color);
    font-size: 18px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notice Banner */
.notice-banner {
    margin-bottom: 30px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 193, 7, 0.15));
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 15px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
}

.notice-icon {
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notice-text {
    flex: 1;
}

.notice-text strong {
    display: block;
    color: var(--warning-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.notice-text p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.notice-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: var(--warning-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-close:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: rotate(90deg);
}

/* Header Action Buttons Container */
.header-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Contact Button */
.contact-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.2), rgba(0, 212, 255, 0.2));
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 12px;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    text-decoration: none;
}

.contact-btn:hover {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.3), rgba(0, 212, 255, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.contact-btn .btn-icon {
    font-size: 18px;
    animation: emailBounce 2s ease-in-out infinite;
}

@keyframes emailBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Bug Report Button */
.bug-report-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 87, 34, 0.2));
    border: 2px solid rgba(255, 87, 34, 0.5);
    border-radius: 12px;
    color: #ff5722;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
}

.bug-report-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 87, 34, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.bug-report-btn .btn-icon {
    font-size: 18px;
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Upload Sensitivity Button */
.upload-sens-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
    text-decoration: none;
}

.upload-sens-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 212, 255, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.upload-sens-btn .btn-icon {
    font-size: 18px;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::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 ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 255, 136, 0.3);
}

/* Card Color Accents */
.camera-card {
    border-left: 4px solid #667eea;
}

.ads-card {
    border-left: 4px solid #f093fb;
}

.gyro-card {
    border-left: 4px solid #4facfe;
}

.ads-gyro-card {
    border-left: 4px solid #43e97b;
}

.summary-card {
    border-left: 4px solid var(--warning-color);
}

.tips-card {
    border-left: 4px solid var(--accent-color);
}

/* Input Section */
.input-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

#deviceSelectionGrid {
    margin-bottom: 20px;
}

#deviceSelectionGrid .form-group {
    grid-column: span 1;
}

/* Adjust grid when brand/model groups are hidden */
#deviceSelectionGrid:has(#brandGroup[style*="display: none"]) #gyroGroup {
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.label-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5));
}

.input-select {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 50px;
}

.input-select:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.15));
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.input-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

/* Select option styling */
.input-select option {
    background: #1a1f3a;
    color: var(--text-primary);
    padding: 10px;
    font-weight: 600;
}

.input-select optgroup {
    background: #0f1624;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    padding: 8px;
    margin-top: 5px;
}

.input-select option:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 212, 255, 0.3));
}

.input-select option:checked {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    font-weight: 700;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 212, 255, 0.05));
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    min-height: 50px;
}

.checkbox-label:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.15));
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.input-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-color);
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.3));
}

/* Generate Button */
.btn-generate {
    width: 100%;
    padding: 18px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 15px;
    color: var(--dark-bg);
    font-size: 20px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-generate:active {
    transform: scale(0.98);
}

.btn-generate.loading {
    pointer-events: none;
    opacity: 0.8;
    animation: pulse 1.5s ease-in-out infinite;
}

.btn-generate.success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    animation: successPulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.btn-quick {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
}

.btn-quick:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.15));
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.btn-quick .btn-icon {
    font-size: 24px;
}

@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Generate Button */
.btn-generate {
    width: 100%;
    padding: 18px 40px;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 15px;
    color: var(--dark-bg);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-generate:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

.btn-generate:active {
    transform: scale(0.98);
}

.btn-icon {
    font-size: 24px;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Results Section */
.results-section {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-card {
    margin-bottom: 30px;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.card-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-left: 42px;
    line-height: 1.5;
    font-weight: 500;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.setting-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.setting-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.setting-item:hover::after {
    width: 100%;
}

.setting-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.setting-value {
    font-size: 40px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    line-height: 1;
    padding: 5px 0;
}

/* Summary Card */
.summary-card {
    margin-bottom: 30px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--warning-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--warning-color);
    font-family: 'Orbitron', sans-serif;
}

/* Tips Card */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.tip-item {
    display: flex;
    gap: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.1);
}

.tip-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.tip-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.btn-action {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    border: 2px solid;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-action:hover::before {
    width: 300px;
    height: 300px;
}

.btn-action:active {
    transform: scale(0.95);
}

.btn-copy {
    background: rgba(138, 43, 226, 0.1);
    border-color: #8a2be2;
    color: #8a2be2;
}

.btn-copy:hover {
    background: #8a2be2;
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

.btn-export {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-export:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.btn-share {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-share:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-print {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.btn-print:hover {
    background: var(--warning-color);
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-reset {
    background: rgba(255, 107, 0, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-reset:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px 30px;
    margin-top: 60px;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 2px solid rgba(0, 255, 136, 0.2);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.footer p {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.footer-link:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.footer-separator {
    color: var(--text-muted);
}

/* Footer Contact Section */
.footer-contact {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.footer-contact:hover {
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.3);
    transform: translateY(-3px);
}

.contact-info {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-label {
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.contact-email {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.contact-email::before {
    content: '✉';
    font-size: 1.2em;
    animation: emailPulse 2s ease-in-out infinite;
}

@keyframes emailPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.contact-email:hover {
    color: var(--secondary-color);
    background: rgba(0, 255, 136, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.contact-subtext {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.6;
    padding: 15px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--warning-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-text {
        font-size: 48px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .sub-tagline {
        font-size: 12px;
        gap: 10px;
        padding: 0 10px;
    }
    
    .sub-tagline::before,
    .sub-tagline::after {
        display: none;
    }

    .header-actions {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn,
    .bug-report-btn,
    .upload-sens-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .footer-contact {
        padding: 15px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-email {
        font-size: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    /* Notice Banner Responsive */
    .notice-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .notice-icon {
        font-size: 24px;
    }
    
    .notice-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    /* Bug Report Button Responsive */
    .bug-report-btn {
        position: static;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }
    
    /* Bug Type Grid Responsive */
    .bug-type-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form Actions Responsive */
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 15px 25px;
    padding-right: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    position: relative;
}

.toast.hide {
    animation: slideOut 0.3s ease forwards;
}

.toast-icon {
    font-size: 24px;
}

.toast-message {
    color: var(--text-primary);
    font-weight: 600;
}

.toast-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) rotate(90deg);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Recommendation Modal */
.recommendation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.recommendation-modal {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title .icon {
    font-size: 28px;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.recommendation-options {
    margin-bottom: 25px;
}

.recommendation-options h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 16px;
}

.recommendation-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.recommendation-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.recommendation-btn .rec-icon {
    font-size: 32px;
    min-width: 40px;
    text-align: center;
}

.recommendation-btn .rec-content {
    text-align: left;
    flex: 1;
}

.recommendation-btn strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.recommendation-btn small {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.rec-btn-other {
    border-color: rgba(255, 255, 255, 0.2);
}

.rec-btn-other:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff6b6b;
    transform: scale(1.05);
}

/* Enhanced Setting Items with Range Bars */
.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.setting-range-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.range-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease, background 0.3s ease;
    position: relative;
}

.range-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.range-low {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.range-medium {
    background: linear-gradient(90deg, #FF9800, #FFC107);
}

.range-high {
    background: linear-gradient(90deg, #FF5722, #F44336);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.setting-tip {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid var(--secondary-color);
    border-radius: 4px;
    line-height: 1.4;
}

/* History Modal */
.history-modal {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.history-entry {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.history-entry:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-header strong {
    color: var(--primary-color);
    font-size: 16px;
}

.btn-small {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: var(--dark-bg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 15px rgba(0, 255, 136, 0.4);
}

.history-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.history-details span {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.history-preview {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.history-preview span {
    font-size: 12px;
    color: var(--warning-color);
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: center;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-clear-history {
    padding: 12px 24px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: 10px;
    color: #ff6b6b;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-history:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.05);
}

/* Weapon Recommendations Modal */
.weapon-modal {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.weapon-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.weapon-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.weapon-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.weapon-scopes {
    margin-bottom: 15px;
}

.weapon-scopes strong,
.weapon-priority strong,
.weapon-tips strong,
.weapon-values strong {
    display: block;
    color: var(--warning-color);
    font-size: 13px;
    margin-bottom: 8px;
}

.scope-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.scope-tag {
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    font-size: 11px;
    color: var(--secondary-color);
    font-weight: 600;
}

.weapon-priority,
.weapon-tips,
.weapon-values {
    margin-bottom: 15px;
}

.weapon-priority p,
.weapon-tips p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.weapon-values {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--warning-color);
}

.value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.value-row:last-child {
    border-bottom: none;
}

.value-row span {
    font-size: 12px;
    color: var(--text-secondary);
}

.value-row strong {
    font-size: 16px;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.value-row strong.highlight {
    color: var(--warning-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    color: #ff6b6b;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Bug Report Modal */
.bug-report-modal {
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
}

.bug-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-field label .required {
    color: #ff5722;
}

.form-input,
.form-select,
.form-textarea {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Rajdhani', sans-serif;
}

.form-select option {
    background: #1a1f3a;
    color: var(--text-primary);
    padding: 10px;
}

.bug-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bug-type-option {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bug-type-option:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: var(--primary-color);
}

.bug-type-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.bug-type-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit-bug {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: var(--dark-bg);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-bug:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.btn-cancel-bug {
    flex: 1;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-bug:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.bug-info-box {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.bug-info-box p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Export Modal */
.export-modal {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.btn-export-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.btn-export-option:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.export-icon {
    font-size: 32px;
}

.btn-export-option strong {
    color: var(--primary-color);
    font-size: 16px;
}

.btn-export-option span:last-child {
    font-size: 12px;
    color: var(--text-secondary);
}

.export-preview {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.export-preview h4 {
    color: var(--warning-color);
    margin-bottom: 10px;
    font-size: 14px;
}

.export-preview pre {
    max-height: 300px;
    overflow-y: auto;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

/* Tutorial Modal */
.tutorial-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.tutorial-modal {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.tutorial-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    color: #ff6b6b;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-close:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.tutorial-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
    justify-content: center;
}

.tutorial-title .icon {
    font-size: 40px;
}

.tutorial-content {
    margin-bottom: 30px;
}

.tutorial-step {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.tutorial-step:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateX(5px);
}

.tutorial-step.pro-tips {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.step-instructions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.instruction-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.instruction-icon {
    font-size: 28px;
    min-width: 35px;
    text-align: center;
}

.instruction-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.instruction-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 5px 0;
}

.instruction-item ul {
    margin: 8px 0;
    padding-left: 20px;
}

.instruction-item li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin: 5px 0;
}

.instruction-item code {
    background: rgba(0, 255, 136, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.note {
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid var(--secondary-color);
    padding: 8px 12px;
    border-radius: 5px;
    margin-top: 8px;
    font-size: 13px !important;
    color: var(--secondary-color) !important;
}

.highlight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    padding: 8px 12px;
    border-radius: 5px;
    border-left: 3px solid #ffd700;
    color: #ffd700 !important;
    font-weight: 700;
}

.pro-tip-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.pro-tip-item strong {
    color: #ffd700;
    font-size: 15px;
}

.tutorial-footer {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 255, 136, 0.2);
}

.btn-tutorial-close {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: var(--dark-bg);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.btn-tutorial-close:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.6);
}

@media (max-width: 768px) {
    .tutorial-modal {
        padding: 25px;
    }
    
    .tutorial-title {
        font-size: 24px;
    }
    
    .tutorial-step {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        font-size: 36px;
    }
    
    .step-content h3 {
        font-size: 20px;
    }
    
    .instruction-item {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print styles */
@media print {
    .animated-background,
    .action-buttons,
    .header,
    .input-section,
    .tips-card,
    .footer {
        display: none !important;
    }
    
    .glass-card {
        background: white;
        color: black;
        border: 2px solid #000;
        page-break-inside: avoid;
    }
    
    .setting-value {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }
}

/* Subscribe Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
}

.popup-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.popup-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 39, 73, 0.95) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
    animation: popupSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popupSlideIn {
    0% {
        transform: scale(0.5) translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: rotate(90deg);
}

.popup-icon {
    font-size: 80px;
    color: #ff0000;
    margin-bottom: 20px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.popup-content h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.popup-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-subscribe {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-subscribe:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.5);
}

.btn-subscribe:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-subscribe i {
    font-size: 24px;
}

/* Prevent page scroll when popup is active */
body.popup-active {
    overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .popup-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .popup-content h2 {
        font-size: 24px;
    }
    
    .popup-content p {
        font-size: 14px;
    }
    
    .popup-icon {
        font-size: 60px;
    }
    
    .btn-subscribe {
        padding: 12px 30px;
        font-size: 16px;
    }
}
