/* Global Styles */
:root {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-color: #f4f6fb;
    --surface-color: #ffffff;
    --surface-muted: #f8f9fa;
    --text-color: #222;
    --text-muted: #666;
    --border-color: #e0e0e0;
    --accent-color: #667eea;
    --nav-bg: #ffffff;
    --nav-text: #333;
    --input-bg: #ffffff;
    --input-text: #222;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-label {
    font-size: 0.85em;
    color: var(--text-muted);
}

/* Global inputs */
input,
textarea,
select {
    background: var(--input-bg);
    color: var(--input-text);
    border-color: var(--border-color);
}

/* Dark theme overrides for key surfaces */
body.theme-dark .container,
body.theme-dark .main-nav,
body.theme-dark .mode-section,
body.theme-dark .intensity-container,
body.theme-dark .history-item,
body.theme-dark .response-card,
body.theme-dark .tone-preview {
    background: var(--surface-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.theme-dark .nav-menu li a,
body.theme-dark .nav-brand a,
body.theme-dark .mode-label,
body.theme-dark .subtitle {
    color: var(--text-color);
}

body.theme-dark .nav-overlay {
    background: rgba(0, 0, 0, 0.7);
}
body.theme-dark {
    --bg-gradient: linear-gradient(135deg, #0f1115 0%, #171a21 100%);
    --bg-color: #0f1115;
    --surface-color: #1b1f27;
    --surface-muted: #141821;
    --text-color: #e6e9f0;
    --text-muted: #a0a7b4;
    --border-color: #2c3340;
    --accent-color: #7f8cff;
    --nav-bg: #1b1f27;
    --nav-text: #e6e9f0;
    --input-bg: #141821;
    --input-text: #e6e9f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

header h1 {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.logout-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9em;
}

.logout-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1em;
}

/* Mode Toggle Section */
.mode-section {
    background: var(--surface-muted);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.mode-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mode-label {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.spicy-indicator {
    font-size: 1.5em;
    animation: pulse 2s infinite;
}

.spicy-indicator.hidden {
    display: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Intensity Container */
.intensity-container {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.intensity-container.hidden {
    display: none;
}

.intensity-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

#intensity-emoji {
    font-size: 1.3em;
    margin-left: 5px;
}

#intensity-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #ff6b6b, #ee5a6f, #ff4757);
    outline: none;
    margin: 15px 0;
    -webkit-appearance: none;
}

#intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#intensity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.intensity-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

/* Consent Container */
.consent-container {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.consent-container.hidden {
    display: none;
}

.consent-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95em;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Warning Badge */
.warning-badge {
    margin-top: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
    animation: glow 2s infinite;
}

.warning-badge.hidden {
    display: none;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 107, 107, 0.6); }
}

/* Tone Preview */
.tone-preview {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #e8f4f8;
    border-radius: 8px;
    font-weight: 600;
    color: #667eea;
}

/* Form Section */
.form-section {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 30px;
    margin: 20px 0;
}

.loading-indicator.hidden {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Response Section */
.response-section {
    margin: 25px 0;
}

.response-section.hidden {
    display: none;
}

.response-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.response-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.response-mode-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.response-mode-badge.normal {
    background: #667eea;
    color: white;
}

.response-mode-badge.spicy {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.response-time {
    font-size: 0.85em;
    color: #666;
}

.response-content {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.response-card.spicy .response-content {
    border-left-color: #ff6b6b;
}

.response-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.copy-btn {
    background: #28a745;
    color: white;
}

.copy-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.regenerate-btn {
    background: #17a2b8;
    color: white;
}

.regenerate-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

.error-message.hidden {
    display: none;
}

/* History Section */
.history-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.history-section h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.empty-history {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.history-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid #667eea;
}

.history-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.history-item.spicy {
    border-left-color: #ff6b6b;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.history-mode {
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.history-mode.normal {
    background: #667eea;
    color: white;
}

.history-mode.spicy {
    background: #ff6b6b;
    color: white;
}

.history-time {
    color: #666;
    font-size: 0.85em;
}

.history-content {
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
}

.history-intensity {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

/* Spicy Mode Glow Effects */
body.spicy-mode .container {
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
}

body.spicy-mode .tone-preview {
    background: #ffe5e5;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

body.spicy-mode .generate-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

body.spicy-mode .generate-btn:hover:not(:disabled) {
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Navigation Menu */
.main-nav {
    background: var(--nav-bg);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-brand a {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

/* Hamburger Menu Button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--nav-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--nav-text);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.3s;
    font-weight: 500;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu li a:hover {
    background: #f0f0f0;
    color: #667eea;
}

.nav-menu li a.active {
    background: #667eea;
    color: white;
}

.nav-menu .mobile-only {
    display: none;
}

.nav-menu .nav-divider {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

.nav-menu .admin-link {
    background: #dc3545;
    color: white !important;
}

.nav-menu .logout-mobile {
    color: #dc3545;
}

.nav-menu .signup-mobile {
    background: #667eea;
    color: white !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credits-badge {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.credits-badge .plan-free {
    color: #dc3545;
}

.credits-badge .plan-paid {
    color: #28a745;
}

.plan-badge {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    text-transform: capitalize;
}

.upgrade-btn {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
}

.admin-btn {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
}

.profile-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.signup-btn {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* Dashboard Styles */
.container {
    max-width: 1200px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.feature-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.feature-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
    animation: glow 2s infinite;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.promo-badge {
    background: white;
    color: #ff6b6b;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2em;
}

.promo-text {
    font-size: 1.1em;
    font-weight: 600;
}

/* File Upload Styles */
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #667eea;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="file"]:hover {
    border-color: #764ba2;
    background: #f0f0f0;
}

input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: 600;
}

input[type="file"]::file-selector-button:hover {
    background: #764ba2;
}

/* Photo Preview Grid */
.photo-preview-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.photo-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.photo-preview-item:hover {
    transform: scale(1.05);
}

.photo-preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.photo-preview-item p {
    padding: 8px;
    font-size: 0.85em;
    color: #666;
    text-align: center;
    margin: 0;
    background: white;
}

.photo-desc-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9em;
    font-family: inherit;
    margin-top: 5px;
}

/* Screenshot Preview */
.screenshot-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #667eea;
}

.screenshot-preview.hidden {
    display: none;
}

.screenshot-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Studio Photos Page Styles */
.service-section {
    margin-top: 20px;
}

.service-intro {
    text-align: center;
    margin-bottom: 40px;
}

.service-intro h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 2em;
}

.service-intro p {
    color: #666;
    font-size: 1.1em;
}

.pricing-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pricing-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid #e0e0e0;
    position: relative;
}

.pricing-card.featured {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
}

.pricing-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.price {
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.service-features {
    margin: 50px 0;
}

.service-features h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item .feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 0.95em;
}

.cta-section {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.cta-section h2 {
    margin-bottom: 15px;
    font-size: 2em;
}

.cta-section p {
    margin-bottom: 25px;
    font-size: 1.1em;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.cta-btn.primary {
    background: white;
    color: #667eea;
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: #667eea;
}

.testimonial-section {
    margin: 50px 0;
}

.testimonial-section h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2em;
}

.testimonial {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.testimonial p {
    color: #333;
    font-style: italic;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.testimonial-author {
    color: #667eea;
    font-weight: 600;
}

/* =======================================
   RESPONSIVE DESIGN - Mobile First
   ======================================= */

/* Tablet Breakpoint (768px) */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
        border-radius: 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pricing-comparison {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        gap: 5px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
        text-align: left;
        padding: 14px 16px;
        font-size: 1em;
        border-radius: 10px;
    }

    .nav-menu .mobile-only {
        display: block;
    }

    .nav-actions {
        display: none;
    }

    .nav-user-info {
        flex-wrap: wrap;
    }

    .promo-banner {
        padding: 15px;
    }

    .promo-content {
        flex-direction: column;
        gap: 10px;
    }

    .promo-badge {
        font-size: 1em;
    }
}

/* Mobile Breakpoint (600px) */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        border-radius: 15px;
    }

    header h1 {
        font-size: 1.6em;
    }

    .subtitle {
        font-size: 0.95em;
    }

    .mode-toggle-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mode-section {
        padding: 15px;
    }

    .intensity-container {
        padding: 12px;
    }

    .form-group label {
        font-size: 0.95em;
    }

    select,
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"] {
        padding: 14px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .generate-btn {
        padding: 16px;
        font-size: 1em;
        min-height: 50px;
    }

    .response-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        padding: 14px;
        min-height: 48px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2.5em;
    }

    .feature-card h3 {
        font-size: 1.1em;
    }

    .feature-btn {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }

    .photo-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .photo-preview-item img {
        height: 120px;
    }

    .cta-section {
        padding: 25px 15px;
    }

    .cta-section h2 {
        font-size: 1.5em;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .before-after-container {
        grid-template-columns: 1fr;
    }

    .history-section h2 {
        font-size: 1.3em;
    }

    .history-item {
        padding: 12px;
    }

    .history-item-header {
        flex-direction: column;
        gap: 5px;
    }

    /* Login/Register Pages */
    .login-container,
    .register-container {
        margin: 20px auto;
        padding: 25px;
    }

    .login-header h1,
    .register-header h1 {
        font-size: 1.6em;
    }

    /* Pricing */
    .pricing-card {
        padding: 20px;
    }

    .price {
        font-size: 2em;
    }

    /* Touch-friendly targets */
    button,
    a.generate-btn,
    a.feature-btn,
    a.cta-btn,
    .btn-sm {
        min-height: 44px;
        min-width: 44px;
    }

    /* Table responsiveness */
    .data-table {
        font-size: 0.8em;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    header h1 {
        font-size: 1.4em;
    }

    .nav-brand a {
        font-size: 1.3em;
    }

    .credits-badge {
        font-size: 0.8em;
        padding: 4px 8px;
    }

    .plan-badge {
        font-size: 0.75em;
        padding: 4px 8px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card h3 {
        font-size: 1.5em;
    }

    .photo-preview-grid {
        grid-template-columns: 1fr;
    }

    .photo-preview-item img {
        height: 150px;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        padding-top: 60px;
    }

    .nav-menu li a {
        padding: 10px 16px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hamburger-line {
        height: 2px;
    }
}

/* Photo Enhancement Styles */
.enhancement-section {
    margin-top: 30px;
}

.photo-display-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.photo-enhancement-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.photo-enhancement-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.before-after-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.before-after-item {
    text-align: center;
}

.before-after-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1em;
}

.before-after-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.enhanced-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 10px;
    color: #666;
    font-style: italic;
}

.enhanced-image {
    min-height: auto;
}

.enhanced-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-actions {
    text-align: center;
    margin-top: 15px;
}

.download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Filter Controls */
.filter-controls {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.filter-controls h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.preset-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.preset-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9em;
}

.preset-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.preset-btn.active {
    background: #667eea;
    color: white;
}

.adjustment-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.adjustment-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adjustment-group label {
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.adjustment-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.adjustment-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.adjustment-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

