:root {
    --primary-color: #01875f;
    --primary-dark: #016a4d;
    --secondary-color: #1a73e8;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --radius: 8px;
    --radius-lg: 16px;
    --bottom-nav-height: 64px;
}

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

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 100;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo img {
    width: 32px;
    height: 32px;
}

.header-logo span {
    font-weight: 500;
    font-size: 18px;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.header-icon:hover {
    background: var(--bg-secondary);
}

.header-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(1, 135, 95, 0.08);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 24px;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    overflow-x: auto;
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 16px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-tab:hover {
    color: var(--primary-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 12px;
    transition: color 0.2s;
    cursor: pointer;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item:hover {
    color: var(--primary-color);
}

/* App Cards */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
}

.section-more {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 0 16px 16px;
}

.app-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.app-card-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.app-card-info {
    padding: 12px 4px;
}

.app-card-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* App List Item */
.app-list {
    padding: 0 16px;
}

.app-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.app-list-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.app-list-info {
    flex: 1;
    min-width: 0;
}

.app-list-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.app-list-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-list-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.app-list-badge svg {
    width: 14px;
    height: 14px;
}

/* Featured Banner */
.featured-banner {
    margin: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.featured-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.featured-banner-title {
    font-size: 18px;
    font-weight: 500;
}

/* Horizontal Scroll */
.horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll .app-card {
    flex: 0 0 140px;
}

/* App Detail Page */
.app-detail-header {
    display: flex;
    gap: 16px;
    padding: 16px;
}

.app-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.app-detail-info {
    flex: 1;
}

.app-detail-name {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
}

.app-detail-developer {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.app-detail-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.app-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.app-stat-value {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.app-stat-value svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

.app-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.app-stat-divider {
    width: 1px;
    background: var(--border-color);
}

.install-section {
    padding: 16px;
}

.install-btn-wrapper {
    display: flex;
    gap: 8px;
}

.install-btn {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.install-dropdown {
    width: 48px;
    border-radius: 8px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.install-dropdown svg {
    color: white;
}

.install-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Screenshots */
.screenshots-section {
    padding: 16px 0;
}

.screenshots-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 160px;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
}

.screenshot-item img,
.screenshot-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    position: relative;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Description Section */
.description-section {
    padding: 16px;
}

.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.description-title {
    font-size: 16px;
    font-weight: 500;
}

.description-arrow {
    color: var(--text-secondary);
}

.description-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Reviews Section */
.reviews-section {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.reviews-score {
    font-size: 48px;
    font-weight: 400;
}

.reviews-stars {
    display: flex;
    gap: 2px;
    color: var(--primary-color);
}

.reviews-stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.reviews-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    font-size: 14px;
    font-weight: 500;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: var(--primary-color);
}

.review-stars svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Download Progress */
.download-progress {
    padding: 16px;
    display: none;
}

.download-progress.active {
    display: block;
}

.progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 80px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    width: 64px;
    height: 64px;
}

.auth-logo h1 {
    font-size: 20px;
    margin-top: 12px;
}

.auth-title {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Profile Page */
.profile-header {
    text-align: center;
    padding: 32px 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.profile-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}

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

.profile-stat-value {
    font-size: 18px;
    font-weight: 500;
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-menu {
    padding: 16px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.profile-menu-item:hover {
    background: var(--bg-secondary);
}

.profile-menu-item svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.profile-menu-item span {
    font-size: 15px;
}

/* Admin Panel */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--text-primary);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.admin-nav {
    padding: 20px 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-nav-item svg {
    width: 20px;
    height: 20px;
}

.admin-content {
    flex: 1;
    margin-left: 250px;
    padding: 24px;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-title {
    font-size: 24px;
    font-weight: 500;
}

.admin-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.admin-card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.admin-stat-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.admin-stat-icon.blue { background: var(--secondary-color); }
.admin-stat-icon.green { background: var(--primary-color); }
.admin-stat-icon.orange { background: #f59e0b; }
.admin-stat-icon.purple { background: #8b5cf6; }

.admin-stat-value {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 4px;
}

.admin-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
}

.data-table td {
    font-size: 14px;
}

.data-table tr:hover {
    background: var(--bg-secondary);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

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

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.action-btn:hover {
    opacity: 0.8;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.action-btn.edit {
    background: #dbeafe;
    color: #2563eb;
}

.action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn.approve {
    background: #d1fae5;
    color: #059669;
}

.action-btn.reject {
    background: #fef3c7;
    color: #d97706;
}

/* Upload Section */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-area:hover {
    border-color: var(--secondary-color);
}

.upload-area svg {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 14px;
}

.upload-area input {
    display: none;
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-top: 12px;
}

.uploaded-file svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.uploaded-file-info {
    flex: 1;
}

.uploaded-file-name {
    font-size: 14px;
    font-weight: 500;
}

.uploaded-file-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.uploaded-file-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Search Page */
.search-container {
    padding: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 24px;
    margin-bottom: 16px;
}

.search-box svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    font-size: 16px;
    outline: none;
}

.search-results {
    padding-top: 16px;
}

/* Category Page */
.category-header {
    padding: 24px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.category-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.category-title {
    font-size: 24px;
    font-weight: 500;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    padding: 16px;
}

.category-card {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
}

.category-card svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.category-card span {
    font-size: 13px;
    display: block;
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 16px;
}

.back-btn svg {
    width: 24px;
    height: 24px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;
    font-weight: 500;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 16px;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        left: -250px;
        transition: left 0.3s;
        z-index: 1001;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .admin-mobile-toggle {
        display: block;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .app-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .app-detail-icon {
        margin: 0 auto;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Image Preview Grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured Slider */
.featured-slider {
    position: relative;
    margin: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
}

.featured-slides {
    position: relative;
    height: 220px;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.featured-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.featured-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.featured-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.featured-slide-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.featured-slide-desc {
    font-size: 13px;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

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

.featured-dot.active {
    background: white;
}
