* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
}

.app-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Status bar */
.status-bar {
    background: #000;
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #fff;
    border-bottom: 1px solid #222;
}

.time {
    font-weight: 600;
}

.signal {
    font-size: 10px;
    letter-spacing: 2px;
    color: #FFCC00;
}

/* Main content */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px 120px 16px;
    -webkit-overflow-scrolling: touch;
}

.content-wrapper::-webkit-scrollbar {
    display: none;
}

/* Header */
.header-section {
    text-align: center;
    margin-bottom: 24px;
}

.badge-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.badge-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFCC00 0%, #FFB84D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 24px rgba(255, 204, 0, 0.25);
}

.live-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
}

.pulse {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-anim 1.5s ease-in-out infinite;
}

@keyframes pulse-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.header-section h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.header-section p {
    font-size: 13px;
    color: #FFCC00;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Stats */
.stats-box {
    background: rgba(255, 204, 0, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #FFCC00;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-text {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-sep {
    width: 1px;
    height: 35px;
    background: rgba(255, 204, 0, 0.2);
    margin: 0 12px;
}

/* Feed */
.feed-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    max-height: 120px;
    overflow: hidden;
}

.feed-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-item {
    font-size: 12px;
    color: #ddd;
    line-height: 1.4;
    animation: slideIn 0.3s ease-out;
}

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

.feed-name {
    color: #FFCC00;
    font-weight: 600;
}

.feed-time {
    font-size: 10px;
    color: #555;
}

/* Features */
.features-box {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.feat {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #ddd;
}

/* Button container (sticky) */
.button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.95) 100%);
    padding: 16px;
    z-index: 100;
}

.activate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFCC00 0%, #FFB84D 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.25);
    letter-spacing: 0.5px;
    -webkit-appearance: none;
    appearance: none;
}

.activate-btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.2);
}

.activate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-hint {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    gap: 16px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 204, 0, 0.2);
    border-top: 3px solid #FFCC00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 360px) {
    .content-wrapper {
        padding: 20px 12px 120px 12px;
    }

    .header-section h1 {
        font-size: 24px;
    }

    .badge-circle {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    .stat-num {
        font-size: 18px;
    }

    .activate-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .app-container {
        max-width: 480px;
        margin: 0 auto;
        border: 1px solid #333;
        height: 100vh;
    }
}
