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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f4f8;
    color: #1a202c;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    font-size: 30px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover,
.nav a.active {
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 5px 5px 5px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 0;
    font-size: 14px;
    width: 180px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-box button {
    background: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    color: #667eea;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box button:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    padding: 40px;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-download {
    display: inline-block;
    padding: 12px 35px;
    background: white;
    color: #667eea;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.slide-icon {
    position: absolute;
    right: 10%;
    font-size: 120px;
    opacity: 0.2;
    color: white;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Section Title */
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a202c;
    text-align: center;
}

.section-title span {
    font-size: 16px;
    font-weight: 400;
    color: #718096;
    display: block;
    margin-top: 5px;
}

/* Category Filter */
.category-filter {
    padding: 40px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: none;
    background: #edf2f7;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* App Grid */
.app-grid {
    padding: 60px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.app-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card-img {
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a202c;
}

.card-desc {
    font-size: 14px;
    color: #718096;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #718096;
    margin-bottom: 15px;
}

.card-meta span i {
    margin-right: 5px;
    color: #667eea;
}

.rating i {
    color: #f59e0b !important;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-detail {
    flex: 1;
    padding: 8px 16px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-detail:hover {
    background: #e2e8f0;
}

.btn-download-sm {
    flex: 1;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-download-sm:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* Admin Login */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.login-logo h2 {
    color: #1a202c;
    font-size: 24px;
}

.alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.form-group label i {
    margin-right: 5px;
    color: #667eea;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    background: #f7fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
}

/* Admin Page */
.admin-page {
    background: #f0f4f8;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    color: white;
}

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

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.admin-nav {
    display: flex;
    gap: 20px;
}

.admin-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.admin-nav a:hover {
    color: white;
}

.admin-main {
    padding: 40px 0;
}

.admin-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a202c;
}

.admin-grid {
    display: grid;
    gap: 30px;
}

.admin-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.admin-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a202c;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-primary {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    margin-left: 10px;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f7fafc;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    color: #718096;
    text-transform: uppercase;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-edit {
    background: #ebf4ff;
    color: #3182ce;
}

.btn-edit:hover {
    background: #bee3f8;
}

.btn-delete {
    background: #fed7d7;
    color: #e53e3e;
}

.btn-delete:hover {
    background: #feb2b2;
}

/* Inner Pages */
.page-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

.page-content {
    padding: 60px 0;
}

/* Detail Page */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.detail-main {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
}

.detail-info h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: #718096;
    font-size: 14px;
}

.detail-meta span i {
    margin-right: 5px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a202c;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.screenshot-item {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px dashed #e2e8f0;
}

.screenshot-item i {
    font-size: 32px;
    color: #667eea;
}

.update-log-content {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.8;
}

.detail-sidebar {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #1a202c;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
}

.qr-code::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 8px;
}

.qr-code::before {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    z-index: 1;
}

.qr-label {
    text-align: center;
    font-size: 13px;
    color: #718096;
}

.download-btn-lg {
    display: block;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.download-btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Comments */
.comment-item {
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-user {
    font-weight: 600;
    font-size: 14px;
}

.comment-rating {
    color: #f59e0b;
    font-size: 13px;
}

.comment-text {
    font-size: 14px;
    color: #4a5568;
}

.comment-date {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
    }

    .nav.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .search-box {
        width: 100%;
        margin-top: 15px;
    }

    .search-box input {
        width: 100%;
    }

    .banner-slider {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-icon {
        display: none;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
}