/* ===== PREVENT ZOOM OUT ===== */
html {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    min-width: 320px;
    overflow-x: hidden;
}

body {
    min-width: 320px;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Prevent zoom on double tap for mobile */
* {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent pinch zoom on mobile */
@media (max-width: 768px) {
    html, body {
        touch-action: pan-y pan-x;
        -webkit-user-select: none;
        user-select: none;
    }
    
    input, textarea, button, [contenteditable] {
        touch-action: manipulation;
        -webkit-user-select: text;
        user-select: text;
    }
}

/* Prevent zoom on iOS Safari */
@supports (-webkit-touch-callout: none) {
    html {
        -webkit-text-size-adjust: 100%;
    }
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ===== UTILITY ===== */
.text-gradient {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #00f2ea 0%, #00d4cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== TOAST ANIMATION ===== */
@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== BUTTON ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: #00f2ea;
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 242, 234, 0.2);
}
.btn-primary:hover {
    background: #00d4cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 242, 234, 0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

.btn-danger {
    background: #ff0050;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 0, 80, 0.2);
}
.btn-danger:hover {
    background: #e60048;
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 32px; font-size: 18px; border-radius: 16px; }
.btn-block { width: 100%; justify-content: center; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== INPUT ===== */
.input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    outline: none;
    touch-action: manipulation;
}
.input::placeholder { color: rgba(255,255,255,0.3); }
.input:focus {
    border-color: #00f2ea;
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.15);
}

/* ===== CARD ===== */
.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}
.card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 16px 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}
.navbar .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00f2ea, #ff0050);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}
.navbar .nav-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    white-space: nowrap;
}
.navbar .nav-links a:hover { color: #fff; }
.navbar .nav-links .whatsapp-link {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(37, 211, 102, 0.2);
}
.navbar .nav-links .whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.2);
    color: #25D366;
}
.navbar .hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    touch-action: manipulation;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0,242,234,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    width: 100%;
}
.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 6px 16px 6px 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}
.hero .badge i { color: #00f2ea; }
.hero h1 {
    font-size: clamp(32px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}
.hero p {
    font-size: clamp(14px, 1.8vw, 20px);
    color: rgba(255,255,255,0.5);
    margin-bottom: 28px;
    line-height: 1.6;
}
.hero .input-group {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}
.hero .input-group .input { flex: 1; min-width: 0; }
.hero .input-group .btn { flex-shrink: 0; }
.hero .trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}
.hero .trust-badges i { margin-right: 6px; }

/* ===== WHATSAPP CHANNEL ===== */
.whatsapp-channel {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.whatsapp-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 16px;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 420px;
    width: 100%;
    cursor: pointer;
}

.whatsapp-channel-btn:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.15);
}

.whatsapp-channel-btn .fa-whatsapp {
    font-size: 28px;
    color: #25D366;
    flex-shrink: 0;
}

.whatsapp-channel-btn .whatsapp-channel-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.whatsapp-channel-btn .whatsapp-channel-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.whatsapp-channel-btn .whatsapp-channel-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.2;
}

.whatsapp-channel-btn .fa-arrow-right {
    font-size: 16px;
    color: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.whatsapp-channel-btn:hover .fa-arrow-right {
    color: #25D366;
    transform: translateX(4px);
}

/* ===== STATS ===== */
.stats {
    padding: 32px 0 48px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.stats-grid .stat-card {
    text-align: center;
    padding: 16px;
}
.stats-grid .stat-card .number {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.stats-grid .stat-card .label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.stats-grid .stat-card .icon {
    font-size: 18px;
    color: #00f2ea;
    margin-bottom: 6px;
}

/* ===== RESULT ===== */
.result-section {
    display: none;
    padding: 32px 0 48px;
}
.result-section.active { display: block; }

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.result-grid .preview {
    aspect-ratio: 16/9;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}
.result-grid .preview img,
.result-grid .preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.result-grid .preview .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.result-grid .preview .play-overlay:hover { background: rgba(0,0,0,0.1); }

.result-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.result-info .title {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    line-height: 1.3;
}
.result-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.result-info .meta i { margin-right: 4px; }
.result-info .author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}
.result-info .author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.result-info .author .name { font-weight: 600; }
.result-info .author .username { font-size: 13px; color: rgba(255,255,255,0.4); }

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.result-actions .btn { 
    flex: 1; 
    min-width: 100px; 
    font-size: 14px; 
    padding: 10px 16px; 
}

/* ===== IMAGE CAROUSEL ===== */
.carousel {
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    overflow: hidden;
}
.carousel .slides {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}
.slide-wrapper {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
}
.slide-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.carousel .controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}
.carousel .controls button {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 16px;
    touch-action: manipulation;
}
.carousel .controls button:hover { background: rgba(0,0,0,0.8); }
.carousel .counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.carousel .dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}
.carousel .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
    cursor: pointer;
}
.carousel .dots span.active {
    background: #00f2ea;
    width: 24px;
    border-radius: 4px;
}

/* ===== IMAGE GRID ===== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.image-grid .btn {
    font-size: 13px;
    padding: 10px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.image-grid .btn-primary {
    background: #00f2ea;
    color: #000;
    border: none;
}

.image-grid .btn-primary:hover {
    background: #00d4cc;
    transform: translateY(-2px);
}

.image-grid .btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.image-grid .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== MUSIC ===== */
.music-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.music-card .info { flex: 1; min-width: 0; }
.music-card .info .title { font-weight: 600; font-size: 15px; }
.music-card .info .author { font-size: 13px; color: rgba(255,255,255,0.4); }
.music-card .btn { flex-shrink: 0; }

/* ===== STATUS PAGE ===== */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.status-item .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.status-item .status-dot.online { background: #00f2ea; box-shadow: 0 0 12px rgba(0,242,234,0.3); }
.status-item .status-dot.offline { background: #ff0050; box-shadow: 0 0 12px rgba(255,0,80,0.3); }
.status-item .status-dot.degraded { background: #ffaa00; box-shadow: 0 0 12px rgba(255,170,0,0.3); }
.status-item .response-time { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 6px; }
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-image { height: 200px; border-radius: 12px; }

/* ===== FOOTER ===== */
.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}
.footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ===== DASHBOARD ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.dashboard-chart {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}
.dashboard-chart .bar-container {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100px;
    padding: 6px 0;
}
.dashboard-chart .bar {
    flex: 1;
    background: linear-gradient(180deg, #00f2ea, #00d4cc);
    border-radius: 4px 4px 0 0;
    transition: height 0.8s ease;
    min-height: 4px;
}
.dashboard-chart .bar-labels {
    display: flex;
    gap: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
}
.dashboard-chart .bar-labels span { flex: 1; text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .navbar .nav-links.open { display: flex; }
    .navbar .hamburger { display: block; }
    
    .hero .input-group { flex-direction: column; }
    .hero .input-group .btn { width: 100%; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stats-grid .stat-card { padding: 14px; }
    .stats-grid .stat-card .number { font-size: 22px; }
    
    .result-grid { grid-template-columns: 1fr; gap: 16px; }
    
    .result-actions .btn { flex: 1 1 calc(50% - 4px); min-width: auto; font-size: 13px; padding: 8px 12px; }
    
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    
    .whatsapp-channel-btn {
        padding: 10px 16px;
        border-radius: 12px;
        gap: 10px;
    }
    .whatsapp-channel-btn .fa-whatsapp { font-size: 22px; }
    .whatsapp-channel-btn .whatsapp-channel-title { font-size: 13px; }
    .whatsapp-channel-btn .whatsapp-channel-desc { font-size: 11px; }
    .whatsapp-channel-btn .fa-arrow-right { font-size: 14px; }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 6px;
    }
    .image-grid .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    
    .stats-grid { gap: 8px; }
    .stats-grid .stat-card { padding: 12px; }
    .stats-grid .stat-card .number { font-size: 20px; }
    
    .result-actions .btn { flex: 1 1 100%; }
    
    .status-grid { grid-template-columns: 1fr; }
    
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 14px; }
    .hero .trust-badges { gap: 16px; font-size: 12px; }
    
    .card { padding: 14px; }
    
    .image-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .image-grid .btn {
        font-size: 11px;
        padding: 8px 10px;
    }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 24px; }
    .stats-grid .stat-card .number { font-size: 18px; }
    .navbar .logo { font-size: 20px; }
    .navbar .logo-icon { width: 30px; height: 30px; font-size: 14px; }
}