/* Global Vars */
:root {
    --primary: #00E676; /* Vibrant Green */
    --primary-dark: #00B248;
    --secondary: #651FFF; /* Deep Purple */
    --bg-dark: #0D1117;
    --bg-card: #161B22;
    --text-main: #FFFFFF;
    --text-muted: #8B949E;
    --border-color: #30363D;
    
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-card: linear-gradient(180deg, rgba(22,27,34,0.8) 0%, rgba(22,27,34,1) 100%);
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 40px;
}

/* Header */
.main-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(13, 17, 23, 0.85);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0px;
}

@media (min-width: 768px) {
    .logo-container h1 {
        font-size: 2rem;
    }
}

.highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-container p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: -2px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* App Cards (Android & Computer) */
.app-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s;
}

.app-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.app-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    flex: 1;
}

.app-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.badge {
    display: inline-block;
    background: rgba(0, 230, 118, 0.15);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.downloader-code {
    font-size: 0.9rem;
    color: #FFC107;
    font-weight: 600;
    background: rgba(255, 193, 7, 0.1);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--text-main);
    color: var(--bg-dark);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-download:hover {
    background-color: var(--primary);
    color: white;
}

/* Smart TV Grid */
.intro-card {
    text-align: center;
    margin-bottom: 2rem;
}

.intro-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.intro-card p {
    color: var(--text-muted);
}

.alert-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 171, 0, 0.1);
    color: #ffab00;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    border: 1px solid rgba(255, 171, 0, 0.2);
    text-align: left;
    font-size: 0.9rem;
}

.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.tv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Clickable */
    transition: 0.2s ease;
}

.tv-card:hover {
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.02);
}

.tv-card.priority {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(0, 230, 118, 0.05) 0%, var(--bg-card) 100%);
}

.tv-card.priority:hover {
     background: linear-gradient(180deg, rgba(0, 230, 118, 0.1) 0%, var(--bg-card) 100%);
}

.tv-icon-img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: black;
}

.tv-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tv-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.tag {
    font-size: 0.7rem;
    background: var(--gradient-brand);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.tv-card small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}


/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

/* Modal Internal Typography */
.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.modal-content li {
    margin-bottom: 0.5rem;
}

.modal-content strong {
    color: var(--text-main);
}

.btn-contact {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: #000;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.2s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}


/* Footer */
footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* Responsiveness */
@media (max-width: 480px) {
    .app-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .app-icon {
        width: 100%;
        height: 120px;
        margin-bottom: 0.5rem;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .tv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .floating-whatsapp {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .floating-whatsapp svg {
        width: 24px;
        height: 24px;
    }
}
