/* 
 * APK Studio Pro - Professional Styling
 * Copyright (c) 2024 Amarax Central(TM). All rights reserved.
 * Modern, Professional UI Design System
 */

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

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

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    font-size: 3em;
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.logo-text h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    margin: 5px 0 0 0;
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 300;
}

.header-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.8;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 1.2em;
}

main {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #34495e;
}

input, textarea, select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.icon-preview, .image-preview {
    width: 100px;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.icon-preview input[type="file"],
.image-preview input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tabs button {
    padding: 8px 15px;
    border: none;
    background: #eee;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.tabs button.active {
    background: #3498db;
    color: white;
}

.tabs button.add-screen {
    background: #2ecc71;
    color: white;
}

.screen-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.screen-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #3498db;
    color: white;
}

.screen-actions button.delete {
    background: #e74c3c;
}

.elements-list {
    margin-top: 20px;
}

.element-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.button-config, .image-config {
    display: flex;
    gap: 10px;
    align-items: center;
}

.button-config input, .button-config select {
    flex: 1;
}

button.delete {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.build-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.1);
}

.action-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.action-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.action-content p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 0.9em;
}

.action-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.test-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.generate-btn {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.phone-preview {
    position: sticky;
    top: 20px;
}

.phone-frame {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 35px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    aspect-ratio: 9/16;
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #555;
    border-radius: 3px;
}

.phone-frame::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #555;
    border-radius: 50%;
    border: 2px solid #666;
}

.screen {
    background: white;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.preview-header {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
}

.preview-content {
    padding: 20px;
    overflow-y: auto;
    height: calc(100% - 54px);
    min-height: 200px;
    border: 2px dashed transparent;
    transition: border-color 0.3s;
}

.preview-content.drag-over {
    border-color: #3498db;
}

.screen-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview-content .screen-content > div {
    position: relative;
    width: 100%;
}

.preview-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
    margin: 5px 0;
}

.preview-button.audio-button {
    background: #9b59b6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.preview-button.audio-button::before {
    content: "🔊";
}

.preview-button.audio-button:active {
    background: #8e44ad;
}

.preview-image {
    max-width: 100%;
    border-radius: 5px;
}

.preview-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
}

.preview-delete-btn:hover {
    background: #c0392b;
}

.preview-text {
    width: 100%;
    margin: 5px 0;
    position: relative;
}

.text-display {
    padding: 8px;
    border: 1px dashed transparent;
    border-radius: 5px;
    cursor: text;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.8);
}

.text-display:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.text-input {
    width: 100%;
    padding: 8px;
    border: 2px solid #3498db;
    border-radius: 5px;
    font-size: inherit;
    font-family: inherit;
    background: white;
    margin: 5px 0;
}

.text-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.preview-app .preview-text {
    background: transparent;
}

.preview-app .text-display {
    background: transparent;
    cursor: text;
}

.preview-app .text-input {
    background: white;
}

.preview-app {
    width: 320px;
    height: 600px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.preview-statusbar {
    background: #333;
    color: white;
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.preview-toolbar {
    background: #3498db;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-toolbar button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
}

.preview-toolbar h3 {
    margin: 0;
    font-size: 18px;
}

.preview-screen {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.preview-screen h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.preview-screen .preview-button {
    margin: 10px 0;
}

.preview-screen .preview-image {
    margin: 10px 0;
    max-width: 100%;
    border-radius: 8px;
}

.import-actions {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.import-btn {
    background: #34495e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.import-btn:hover {
    background: #2c3e50;
}

.import-btn::before {
    content: "📂";
}

.import-btn.folder-btn {
    background: #27ae60;
    margin-left: 10px;
}

.import-btn.folder-btn::before {
    content: "📁";
}

.import-btn.mod-btn {
    background: #e67e22;
}

.import-btn.mod-btn::before {
    content: "🔧";
}

.import-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.folder-structure {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.folder-item {
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.folder-item:hover {
    background: #e9ecef;
}

.folder-item.folder {
    color: #f39c12;
}

.folder-item.file {
    color: #3498db;
    margin-left: 20px;
}

.text-content.code {
    font-family: monospace;
    white-space: pre-wrap;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.mod-options {
    margin-top: 15px;
    padding: 15px;
    background: #fff3e0;
    border-radius: 8px;
}

.mod-option {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mod-option label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e67e22;
}

.library-modal {
    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: 2000;
    backdrop-filter: blur(5px);
}

.library-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 95vw;
    max-height: 95vh;
    width: 1000px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.library-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.library-header h2 {
    margin: 0;
    font-size: 2em;
    font-weight: 600;
}

.library-subtitle {
    margin: 5px 0 0 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5em;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.library-controls {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

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

.sort-select, .filter-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: white;
    font-size: 1em;
    cursor: pointer;
    outline: none;
}

.library-showcase {
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
}

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

.app-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover::before {
    opacity: 1;
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-icon {
    font-size: 2em;
    color: white;
}

.app-category {
    font-size: 1.5em;
    padding: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
}

.app-details {
    margin-bottom: 20px;
}

.app-name {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
}

.app-description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: #666;
}

.stat-icon {
    font-size: 1.1em;
}

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

.download-btn, .preview-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.download-btn {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.preview-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.empty-showcase {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-showcase h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.empty-showcase p {
    margin: 0;
    font-size: 0.9em;
}

.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.preview-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

.preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-app-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.preview-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.5em;
}

.preview-version, .preview-package {
    margin: 2px 0;
    font-size: 0.9em;
    opacity: 0.8;
}

.close-preview-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5em;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-preview-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.preview-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.preview-description {
    margin-bottom: 25px;
}

.preview-description h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.preview-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
}

.preview-permissions h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.permission-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
}

.permission-icon {
    font-size: 1.1em;
}

.preview-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.primary-download-btn {
    width: 100%;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.btn-icon {
    font-size: 1.2em;
}

.ai-chat,
.ai-btn,
.ai-btn:hover,
.message,
.message.user,
.message.ai,
.chat-input,
.chat-input input,
.chat-input button,
.chat-input button:disabled {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Follow Popup Styles */
.follow-popup-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: 9999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.follow-popup-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.follow-popup-main {
    padding: 30px;
}

.popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.popup-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.popup-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.8em;
    font-weight: 600;
}

.popup-subtitle {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.creator-avatar {
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.creator-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2em;
}

.creator-details p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.user-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.user-stats .stat-card {
    flex: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.user-stats .stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
}

.user-stats .stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.follow-benefits {
    margin-bottom: 25px;
}

.follow-benefits h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.follow-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.follow-benefits li {
    padding: 8px 0;
    color: #666;
    font-size: 0.9em;
}

.popup-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.follow-btn, .like-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.follow-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.like-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.popup-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.popup-note p {
    margin: 0;
    color: #856404;
    font-size: 0.9em;
    font-weight: 600;
}

.follow-popup-thanks {
    padding: 40px 30px;
    text-align: center;
}

.thanks-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.follow-popup-thanks h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.8em;
}

.follow-popup-thanks p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 1.1em;
}

.thanks-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.thanks-message p {
    margin: 5px 0;
    color: #155724;
    font-size: 0.9em;
    font-weight: 600;
}

.popup-footer {
    background: #f8f9fa;
    padding: 15px 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.copyright {
    margin: 0;
    color: #666;
    font-size: 0.8em;
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.toast-show {
    transform: translateX(0);
}

.toast.toast-success {
    border-left: 4px solid #2ecc71;
}

.toast.toast-error {
    border-left: 4px solid #e74c3c;
}

.toast-icon {
    font-size: 1.2em;
}

.toast-message {
    color: #333;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
    }
    
    .phone-preview {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .build-actions {
        grid-template-columns: 1fr;
    }
    
    .library-content {
        width: 95vw;
        height: 95vh;
    }
}

@media (max-width: 600px) {
    .logo-text h1 {
        font-size: 2em;
    }
    
    .tagline {
        font-size: 1em;
    }
    
    .library-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .library-item {
        flex-direction: column;
        text-align: center;
    }
    
    .apk-meta {
        justify-content: center;
    }
}