* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

:root {
    --primary-dark: #0A0A0F;
    --secondary-dark: #1A1A2E;
    --accent-purple: #6A11CB;
    --accent-light: #9D4EDD;
    --accent-glow: #B388FF;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0C0;
    --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(106, 17, 203, 0.4);
}

body {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-top: 10px;
}

.flashlight-container {
    position: relative;
    text-align: center;
    margin: 40px auto;
    padding: 40px 20px;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 30px;
    border: 1px solid rgba(106, 17, 203, 0.3);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(10px);
}

.flashlight-beam {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 300px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    border-radius: 100px/50px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    filter: blur(20px);
    z-index: 1;
}

.flashlight-btn {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--secondary-dark), var(--primary-dark));
    border: 4px solid var(--accent-purple);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-deep), inset 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
}

.flashlight-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow), inset 0 0 40px rgba(106, 17, 203, 0.3);
}

.flashlight-btn.active {
    background: linear-gradient(145deg, var(--accent-purple), var(--accent-light));
    box-shadow: 0 0 50px rgba(106, 17, 203, 0.7);
    border-color: var(--accent-glow);
}

.flashlight-btn i {
    font-size: 3.5rem;
    transition: transform 0.3s;
}

.flashlight-btn.active i {
    transform: rotate(90deg);
}

.btn-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.status {
    margin-top: 30px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    display: inline-block;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.feature-card {
    background: rgba(157, 78, 221, 0.1);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(157, 78, 221, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-light);
    margin-bottom: 15px;
}

.controls {
    background: rgba(26, 26, 46, 0.8);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    height: 12px;
    -webkit-appearance: none;
    background: rgba(106, 17, 203, 0.2);
    border-radius: 10px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-purple);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

input[type="color"] {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
}

.ad-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px dashed rgba(157, 78, 221, 0.4);
}

.ad-label {
    color: var(--accent-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-unit {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
    padding: 20px;
}

.ad-placeholder {
    color: var(--text-secondary);
    text-align: center;
}

/* Sponsors Section */
.sponsors {
    margin: 30px 0;
    padding: 20px;
    background: rgba(106, 17, 203, 0.1);
    border-radius: 15px;
    text-align: center;
    border: 1px dashed rgba(157, 78, 221, 0.3);
}

.sponsor-label {
    color: var(--accent-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sponsor-placeholder {
    padding: 15px;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
    color: var(--text-secondary);
}

.sponsor-placeholder a {
    color: var(--accent-light);
    text-decoration: none;
}

.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    color: var(--text-secondary);
}

.footer a {
    color: var(--accent-light);
    text-decoration: none;
}

.share-btn {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-light));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: scale(1.05);
}

/* Donate Button */
.donate-btn {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
}

.donate-btn:hover {
    transform: scale(1.05);
}

/* Install Button Styles */
.install-btn {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-light));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
    margin-left: 10px;
}

.install-btn:hover {
    transform: scale(1.05);
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-purple);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-deep);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .flashlight-btn {
        width: 160px;
        height: 160px;
    }
    
    .features {
        flex-direction: column;
    }
    
    /* Mobile adjustments for install button */
    .install-btn {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
}