* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    transition: all 0.4s ease;
}

html, body {
    height: 100%;
    background: #111;
    color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
    user-select: none;
}

input, textarea, select, button {
    user-select: text !important;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-left img {
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s;
    -webkit-user-drag: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right button {
    padding: 3px 6px;
    border-radius: 7px;
    background: #111;
    color: #ffcc00;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.header-right button:hover {
    background: linear-gradient(45deg, #ffcc00, #ff6600);
    color: #111;
    transform: scale(1.05);
}

/* Banner */
.banner-container {
    position: relative;
    width: 98%;
    max-width: 1200px;
    overflow: hidden;
    margin: 5px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    -webkit-user-drag: none;
}

.banner-container img.active {
    opacity: 1;
    position: relative;
}

/* Panel & Ads Section */
.panel-container {
    background: #111;
    padding: 10px;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* --- Top Buttons --- */
.top-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    background: #111;
    padding: 8px 6px;
    position: sticky;
    top: 66px;
    z-index: 999;
}

.tab-btn {
    flex: 1;
    min-width: 130px;
    max-width: 160px;
    white-space: nowrap;
    padding: 7px 8px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(90deg, #444, #222);
    color: #fff;
    font-size: 12.5px;
    text-align: center;
    transition: all 0.3s;
    border: none;
}

.tab-btn.active {
    background: linear-gradient(90deg, #ff6600, #ffcc00);
    color: #111;
}

.tab-btn:hover {
    background: linear-gradient(90deg, #ff8800, #ffcc00);
    transform: scale(1.05);
}

/* Sections */
.section {
    display: none;
    padding: 20px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    color: #ffcc00;
    margin-bottom: 10px;
    font-size: 22px;
}

.section p {
    color: #ccc;
    font-size: 15px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 25px;
}

.product-card {
    background: #1a1a1a;
    border-radius: 19px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    text-align: center;
    padding: 15px;
    width: 100%;
    max-width: 220px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255,204,0,0.3);
}

.product-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 5px;
    border-radius: 10px;
}

.product-card h3 {
    font-size: 15px;
    color: #ffcc00;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card button {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff6600, #ffcc00);
    color: #111;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.product-card button:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .tab-btn {
        min-width: 100px;
        max-width: 120px;
        font-size: 11.5px;
        padding: 6px 7px;
    }
    
    .product-card h3 {
        font-size: 14px;
    }
}

/* FILTER BUTTONS */
.filter-row {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 14px;
    display: flex;
    gap: 6px;
    overflow: auto;
}

.filter-btn {
    background: #333;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .3s ease;
    border: none;
    text-decoration: none;
    font-weight: 600;
}

.filter-btn:hover {
    background: #ffcc00;
    color: #000;
}

.filter-btn.active {
    background: #ffcc00;
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(246,176,23,0.4);
}

/* MASTER PANEL CARDS */
.grid-wrap {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.card {
    display: flex;
    background: #0d0d0d;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    height: 120px;
    border: 1px solid rgba(255,255,255,0.1);
}

.card-left {
    flex: 0 0 40%;
    height: 100%;
    overflow: hidden;
    background: #007acc;
}

.card-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-right {
    flex: 0 0 60%;
    text-align: center;
    background: #ffcc00;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.min-sharing {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
}

.rate {
    font-size: 15px;
    font-weight: 700;
}

.rate i {
    margin: 0 5px;
    color: #000;
}

.visit-btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    text-decoration: none;
    transition: all .3s ease;
}

.visit-btn:hover {
    background: #000;
    color: #ffcc00;
    transform: translateY(-2px);
}

/* Action Buttons */
.master-panel-btn {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #00cc44, #00ff77);
    color: #111;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.ads-btn {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff6600, #ffcc00);
    color: #111;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.master-panel-btn:hover, .ads-btn:hover {
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .header-left img {
        height: 40px;
    }
    
    .header-right button {
        padding: 2px 4px;
        font-size: 12px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        height: 100px;
    }
    
    .card-left {
        flex: 0 0 35%;
    }
    
    .card-right {
        flex: 0 0 65%;
    }
}