* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    color: #666;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #26a69a;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-links a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.top-links a:hover {
    color: #26a69a;
}

.lang-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
    cursor: pointer;
}

header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

header .container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

.logo .gb {
    color: #26a69a;
    text-shadow: 2px 2px 4px rgba(38, 166, 154, 0.3);
}

.logo .firmware {
    color: #333;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-filter {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #26a69a;
    font-weight: 500;
}

.search-box button {
    padding: 10px 20px;
    background: #26a69a;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #00897b;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-icon {
    position: relative;
    background: #26a69a;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: #26a69a;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-details p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.cart-amount {
    font-size: 16px;
    font-weight: bold;
    color: #333 !important;
}

.unpaid-invoices {
    background: #ff3366;
    padding: 8px 20px;
    border-radius: 4px;
}

.unpaid-invoices a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.main-nav {
    background: #26a69a;
    padding: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.main-nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.main-nav li a:hover {
    background: #00897b;
}

.ticker-section {
    background: #000;
    color: white;
    padding: 10px 0;
}

.ticker-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.ticker-row:last-child {
    border-bottom: none;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-weight: bold;
    min-width: 150px;
}

.ticker-label.recent-files {
    background: #26a69a;
    color: white;
}

.ticker-label.top-files {
    background: #ff3366;
}

.ticker-content {
    flex: 1;
    padding: 0 20px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
}

.ticker-content marquee {
    color: white;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.featured-badge {
    background: #26a69a;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

main {
    padding: 40px 0;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 1;
}

.section-title {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.files-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.file-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: box-shadow 0.3s;
}

.file-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-icon {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #999;
}

.file-details {
    flex: 1;
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.file-header h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
    flex: 1;
}

.badges {
    display: flex;
    gap: 5px;
}

.badge {
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.badge-new {
    background: #ff3366;
    color: white;
}

.badge-featured {
    background: #26a69a;
    color: white;
}

.rating {
    margin-bottom: 10px;
}

.rating i {
    color: #ffc107;
    font-size: 14px;
}

.file-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

.category {
    background: #e0f2f1;
    color: #26a69a;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 500;
}

.file-action {
    display: flex;
    align-items: center;
}

.download-btn {
    background: #26a69a;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #00897b;
}

.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ad-banner {
    background: #f0f0f0;
    border: 3px solid #26a69a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #26a69a;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-300x600 {
    width: 300px;
    height: 600px;
}

.banner-250x250 {
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.breadcrumb {
    padding: 20px 0;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #26a69a;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

.download-details {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.file-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.file-badges-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.file-image {
    background: #f5f5f5;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.file-icon-large {
    text-align: center;
}

.file-icon-large i {
    font-size: 80px;
    color: #26a69a;
    margin-bottom: 20px;
}

.file-icon-large p {
    color: #666;
    font-size: 14px;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.pinterest {
    background: #e60023;
}

.file-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-item span {
    color: #333;
    font-size: 16px;
}

.download-btn-large {
    display: inline-block;
    background: #26a69a;
    color: white;
    padding: 18px 60px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.download-btn-large:hover {
    background: #00897b;
}

.download-btn-large i {
    margin-right: 10px;
}

footer {
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 48px;
    font-weight: bold;
}

.footer-logo .gb {
    color: #26a69a;
}

.footer-logo .firmware {
    color: #333;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex: 1;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #26a69a;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.twitter {
    background: #00acee;
}

.social-btn.instagram {
    background: #e4405f;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.rss {
    background: #ff6600;
}

@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
    }
    
    .ad-banner {
        margin: 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}
