* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Config Panel */
.config-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.config-panel h2 {
    color: #4a5568;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Icon Upload */
.icon-upload-container {
    text-align: center;
}

.icon-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #cbd5e0;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.icon-preview:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.icon-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.icon-preview i {
    font-size: 2rem;
    color: #a0aec0;
    margin-bottom: 10px;
}

.icon-preview p {
    color: #718096;
    font-size: 0.9rem;
}

.upload-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* Theme Options */
.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-option span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
}

.checkbox-container input {
    width: auto;
    margin-right: 10px;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Generate Button */
.generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.generate-btn:active {
    transform: translateY(-1px);
}

/* Preview Panel */
.preview-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-panel h2 {
    color: #4a5568;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

/* Device Frame */
.device-frame {
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.device-header {
    height: 20px;
    margin-bottom: 10px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-size: 0.8rem;
}

.status-bar .icons i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.screen {
    width: 100%;
    height: calc(100% - 45px);
    background: white;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: #667eea;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.app-icon-placeholder {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.app-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.web-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.web-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #718096;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #667eea;
}

.device-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 5px;
    background: #f0f0f0;
    border-radius: 3px;
}

/* Actions */
.actions {
    display: flex;
    gap: 15px;
    width: 100%;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary {
    background: #667eea;
    color: white;
}

.action-btn.primary:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
}

.action-btn.primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.action-btn.secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.action-btn.secondary:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin: 50px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.features-section h2 {
    color: #4a5568;
    margin-bottom: 40px;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin: 50px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-section h2 {
    color: #4a5568;
    margin-bottom: 40px;
    font-size: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #edf2f7;
}

.contact-item i {
    font-size: 2rem;
    color: #667eea;
    width: 60px;
    height: 60px;
    background: #e6eeff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h3 {
    color: #2d3748;
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.contact-item p {
    color: #718096;
    margin: 0;
    font-size: 1.1rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    margin: 0 0 5px 0;
    opacity: 0.9;
}

.footer-info p:first-child {
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Modal Styles for Privacy Policy and Terms */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.modal-header h2 {
    color: #4a5568;
    margin: 0;
}

.close-modal {
    background: #f56565;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #e53e3e;
    transform: rotate(90deg);
}

.modal-body {
    color: #4a5568;
    line-height: 1.6;
}

.modal-body h3 {
    color: #2d3748;
    margin: 20px 0 10px 0;
}

.modal-body p {
    margin: 10px 0;
}

/* Splash Screen Options */
.splash-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.splash-option {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.splash-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.splash-option.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.splash-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.splash-preview i {
    font-size: 1.5rem;
    color: #667eea;
}

.splash-preview span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
}

.color-preview {
    color: white !important;
}

.color-preview span {
    color: white !important;
}

.animated-preview i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.color-picker-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.color-picker-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.color-picker-container input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Radio Buttons */
.radio-container {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
}

.radio-container input {
    width: auto;
    margin-right: 10px;
}

.radio-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-container input:checked + .radio-checkmark {
    border-color: #667eea;
}

.radio-container input:checked + .radio-checkmark::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.signing-options, .apk-mode-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.key-options {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.generate-key-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.generate-key-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.sensitivity-value {
    display: inline-block;
    margin-left: 10px;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Pull to Refresh Animation */
.pull-to-refresh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 10;
    border-bottom: 1px solid #e2e8f0;
}

.pull-to-refresh.active {
    transform: translateY(0);
}

.pull-to-refresh i {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 10px;
}

.pull-to-refresh p {
    color: #4a5568;
    font-weight: 500;
}

.pull-to-refresh.loading i {
    animation: spin 1s linear infinite;
}

/* Package Name Styling */
.help-text {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 0.85rem;
}

/* Data Import Section */
.data-import-container {
    text-align: center;
}

.import-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.import-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.import-info {
    margin-bottom: 15px;
}

.import-info small {
    color: #718096;
}

.imported-files {
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 15px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.imported-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    margin-bottom: 5px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
}

.imported-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.imported-file-info i {
    color: #48bb78;
}

.remove-file {
    background: #f56565;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Splash Upload Container */
.splash-upload-container {
    text-align: center;
    margin-top: 15px;
}

.upload-splash-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.upload-splash-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
}

.upload-splash-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.splash-preview-container {
    margin: 15px 0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-preview-placeholder {
    text-align: center;
    color: #a0aec0;
}

.splash-preview-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.splash-preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.splash-options-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: #edf2f7;
    transform: translateY(-1px);
}

/* Device Download Button */
.action-btn.secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.action-btn.secondary:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

/* Website Preview Styles */
.website-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.preview-header {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.preview-header i {
    font-size: 1.2rem;
}

.preview-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.preview-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.website-info {
    text-align: center;
    margin-bottom: 30px;
}

.website-icon {
    width: 80px;
    height: 80px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.website-details h4 {
    color: #2d3748;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.website-details p {
    color: #718096;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.preview-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.feature-tag {
    background: #e6fffa;
    color: #234e52;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature-tag i {
    font-size: 0.8rem;
}

.preview-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preview-btn.primary {
    background: #667eea;
    color: white;
}

.preview-btn.primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.preview-btn.secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.preview-btn.secondary:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* Monetization Options */
.monetization-options, .firebase-options, .offline-options, .permissions-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admob-config, .firebase-config {
    margin-top: 20px;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.admob-config input, .firebase-config input {
    margin-bottom: 15px;
}

.file-info {
    margin-top: 10px;
    padding: 10px;
    background: #e6fffa;
    border-radius: 5px;
    border: 1px solid #b2f5ea;
    color: #234e52;
    font-size: 0.9rem;
}

.file-info i {
    color: #38b2ac;
    margin-right: 8px;
}

/* Permission Cards */
.permissions-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.permission-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.permission-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.permission-card.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.permission-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #667eea;
}

.permission-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.permission-desc {
    font-size: 0.85rem;
    color: #718096;
}

/* AAB Badge */
.aab-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

/* Firebase Status */
.firebase-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: #f0fff4;
    border-radius: 8px;
    border: 1px solid #c6f6d5;
}

.firebase-status.connected {
    background: #f0fff4;
    border-color: #9ae6b4;
}

.firebase-status.disconnected {
    background: #fff5f5;
    border-color: #fed7d7;
}

/* Offline Screen Preview */
.offline-preview {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.offline-preview i {
    font-size: 3rem;
    color: #a0aec0;
    margin-bottom: 15px;
}

.offline-preview h4 {
    color: #4a5568;
    margin-bottom: 10px;
}

.offline-preview p {
    color: #718096;
    margin-bottom: 20px;
}

.retry-btn-preview {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.retry-btn-preview:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Version and API Configuration */
.version-api-container {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.version-api-container .form-group {
    margin-bottom: 15px;
}

.version-api-container .form-group:last-child {
    margin-bottom: 0;
}

.version-api-container select {
    background: white;
}

.version-api-container .help-text {
    color: #718096;
    font-size: 0.8rem;
}

/* API Level Info Cards */
.api-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.api-info-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.api-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.api-info-card .api-version {
    font-weight: 700;
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.api-info-card .api-name {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.api-info-card .api-coverage {
    background: #e6fffa;
    color: #234e52;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Version Validation */
.version-validation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.version-validation.valid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.version-validation.invalid {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.version-validation i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .config-panel,
    .preview-panel {
        padding: 20px;
    }
    
    .device-frame {
        width: 240px;
        height: 500px;
    }
    
    .features-section {
        padding: 30px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .splash-options {
        grid-template-columns: 1fr;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .preview-features {
        flex-direction: column;
        align-items: center;
    }
    
    .permissions-options {
        grid-template-columns: 1fr;
    }
    
    .admob-config, .firebase-config {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .api-info-cards {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .device-frame {
        width: 200px;
        height: 420px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
}