/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Pastel & Fun Palette - Bright, Cheerful, Energetic */
    --primary: hsl(260, 100%, 75%);
    /* Fun Pastel Purple */
    --primary-hover: hsl(260, 90%, 65%);
    --primary-light: hsl(260, 100%, 96%);

    --accent: hsl(330, 100%, 75%);
    /* Fun Pastel Pink */
    --accent-light: hsl(330, 100%, 96%);

    --navy: hsl(260, 40%, 30%);
    /* Deep Grape */
    --navy-light: hsl(260, 30%, 40%);

    --background: hsl(0, 0%, 100%);
    /* Pure White */
    --background-alt: hsl(260, 60%, 98%);
    /* Very light purple tint */
    --surface: hsl(0, 0%, 100%);
    --surface-elevated: hsl(0, 0%, 100%);

    --text: hsl(260, 20%, 30%);
    /* Soft Deep Purple Text */
    --text-muted: hsl(260, 15%, 60%);
    --text-light: hsl(260, 15%, 80%);

    --border: hsl(260, 30%, 90%);
    --border-light: hsl(260, 30%, 95%);

    --success: hsl(150, 60%, 40%);
    --danger: hsl(350, 70%, 55%);

    /* Soft Shadows */
    --shadow-sm: 0 2px 8px rgba(80, 40, 100, 0.04);
    --shadow-md: 0 8px 24px rgba(80, 40, 100, 0.06);
    --shadow-lg: 0 16px 32px rgba(80, 40, 100, 0.08);
    --shadow-xl: 0 24px 48px rgba(80, 40, 100, 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    font-family: var(--font-sans);
    background: linear-gradient(180deg, var(--background) 0%, hsl(265, 85%, 98%) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: hsl(260, 60%, 45%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--surface);
    background: none;
    -webkit-text-fill-color: initial;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--surface);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--navy-light);
    color: var(--accent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

/* Page Header */
.page-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--spacing-lg);
}

.header-content {
    flex: 1;
}

.header-actions {
    flex-shrink: 0;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--navy);
    background: none;
    -webkit-text-fill-color: initial;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

.title-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
}

.edit-title-form {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
}

.title-input {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    padding: var(--spacing-xs);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--navy);
    background: var(--surface);
    text-align: center;
    max-width: 400px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--surface);
    color: var(--navy);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.1rem;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--background);
    color: var(--danger);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.project-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-md);
}

.project-card-header h3 {
    font-size: 1.3rem;
    color: var(--text);
    flex: 1;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.meta-item {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.project-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) 0;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Forms */
.create-form {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

.form-section {
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--navy);
    font-size: 0.95rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--surface);
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--background-alt);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
    border-style: solid;
}

.upload-placeholder svg {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.upload-placeholder h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.upload-placeholder p {
    color: var(--text-muted);
}

.upload-hint {
    font-size: 0.85rem;
    margin-top: var(--spacing-sm);
}

.file-list {
    margin-top: var(--spacing-md);
}

.file-count {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--spacing-sm);
}

.preview-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--border);
}

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

.preview-item.more {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-xl);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Modal */
.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;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
}

.modal-content h2 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(233, 150, 122, 0.2);
}

#progressText {
    text-align: center;
    color: var(--text-muted);
}

/* Project Stats */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Center the single card when no projects exist */
.projects-grid:has(.project-card:only-child) {
    display: flex;
    justify-content: center;
}

.projects-grid:has(.project-card:only-child) .project-card {
    max-width: 400px;
    width: 100%;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--surface-elevated);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.stat-icon {
    font-size: 3rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.action-card {
    background: var(--surface-elevated);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-light);
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.action-card.primary {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.action-card.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.action-card.primary:hover::before {
    opacity: 0.2;
}

.action-card.primary * {
    position: relative;
    z-index: 1;
}

.action-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.action-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.action-card p {
    opacity: 0.8;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

/* Viewer */
.viewer-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

.viewer-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 10;
}

.viewer-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--navy);
    border: 1px solid var(--border);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.viewer-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.viewer-counter {
    color: var(--navy);
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
}

.viewer-canvas {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-canvas img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    pointer-events: none;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--navy);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    box-shadow: var(--shadow-md);
}

.nav-arrow:hover:not(:disabled) {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.viewer-watermark {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 20;
    letter-spacing: 1px;
}

.viewer-number {
    position: absolute;
    top: 80px;
    left: 50px;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Footer */
.footer {
    background: var(--navy);
    border-top: 1px solid var(--navy-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: var(--text-light);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }
}

/* Authentication Pages */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
}

.auth-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    width: 100%;
    border: 1px solid var(--border-light);
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--navy), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card .subtitle {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Social Auth Buttons */
.social-auth {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-google:hover {
    border-color: #4285F4;
    background: hsl(217, 89%, 97%);
}

.btn-facebook {
    color: white;
    background: #1877F2;
    border-color: #1877F2;
}

.btn-facebook:hover {
    background: #166FE5;
    border-color: #166FE5;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--spacing-lg) 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 var(--spacing-md);
    font-size: 0.9rem;
}

/* Auth Form */
.auth-form {
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--navy);
    font-size: 0.95rem;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--surface);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--spacing-md);
}

.link-muted {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.link-muted:hover {
    color: var(--primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.auth-footer {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* GDPR Pages */
.gdpr-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-elevated);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.gdpr-content h2 {
    color: var(--navy);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.gdpr-content h3 {
    color: var(--text);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.gdpr-content p,
.gdpr-content li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.gdpr-content ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.gdpr-content strong {
    color: var(--text);
}

/* Collapsible Section */
.collapsible-section {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
}

.collapsible-section summary {
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    transition: var(--transition);
}

.collapsible-section summary:hover {
    background: var(--surface);
}

.collapsible-section summary::-webkit-details-marker {
    display: none;
}

.collapsible-section summary h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text);
}

.collapsible-section .arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.collapsible-section[open] .arrow {
    transform: rotate(180deg);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    background: var(--surface);
}

.photo-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Cards Section */
.cards-section {
    margin-top: var(--spacing-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--navy), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cards-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto;
}

.card-preview-item {
    background: var(--surface);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.card-preview-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-preview-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

/* Project Title Link */
.project-title-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.project-title-link h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.project-title-link:hover h3 {
    color: var(--primary);
}

/* New Project Card */
.new-project-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('create_sketch.png');
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: var(--transition);
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.new-project-card:hover {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('create_sketch.png');
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.new-project-content {
    text-align: center;
    color: var(--text-muted);
}

.new-project-card:hover .new-project-content {
    color: var(--primary);
}

.plus-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.new-project-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Modal for Card Preview */
.card-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: var(--spacing-xl);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.card-modal.active {
    display: flex;
}

.card-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    cursor: default;
}

.close-modal {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.close-modal:hover {
    opacity: 1;
}

/* Add Photos Wrapper */
.add-photos-wrapper {
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
}

.upload-status {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Download Section */
.download-section {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: center;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    min-width: 300px;
}

.download-btn .icon {
    font-size: 2rem;
}

.download-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-btn .main-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.download-btn .sub-text {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

/* View All Card */
.view-all-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-elevated);
    cursor: pointer;
    min-height: 200px;
    border: 2px dashed var(--border);
}

.view-all-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.view-all-card span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.view-all-card small {
    color: var(--text-muted);
}

.card-preview-item {
    cursor: pointer;
}

/* Upload Progress */
.upload-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.upload-progress .progress-bar {
    flex: 1;
    margin-bottom: 0;
    max-width: 200px;
    background: var(--border);
}

.progress-fill.indeterminate {
    width: 100%;
    animation: indeterminate 1.5s infinite linear;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
}

@keyframes indeterminate {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--surface);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    z-index: 1000;
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-top: var(--spacing-xs);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    color: var(--text);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    display: block;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: var(--background-alt);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 0;
}

.dropdown-item.new-project {
    color: var(--primary);
    font-weight: 500;
}

.nav-link.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link.dropdown-trigger::after {
    content: '▼';
    font-size: 0.7em;
    opacity: 0.7;
}

/* Dropdown styling updates */
.dropdown-content {
    min-width: 220px;
    padding: var(--spacing-xs) 0;
}

.dropdown-item {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--background-alt);
    color: var(--primary);
    padding-left: calc(var(--spacing-md) + 4px);
}

.dropdown-item.new-project {
    color: var(--primary);
    font-weight: 600;
    border-top: 1px solid var(--border-light);
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-sm);
}

.dropdown-item.new-project:hover {
    background-color: var(--primary-light);
}

.nav-link.dropdown-trigger {
    padding-right: var(--spacing-lg);
    position: relative;
}

.nav-link.dropdown-trigger::after {
    content: '▼';
    font-size: 0.6em;
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    transition: var(--transition);
}

.dropdown:hover .nav-link.dropdown-trigger::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

/* Adjust grid for single row */
.cards-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-md);
}

.view-all-card {
    min-height: auto;
    aspect-ratio: auto;
    height: 100%;
}

/* Improve Dropdown Hover Area */
.dropdown {
    padding-bottom: 0;
    /* Remove padding that might cause gaps */
}

.dropdown-content {
    margin-top: 0;
    /* Connect directly to trigger */
    padding-top: var(--spacing-xs);
    top: 100%;
    /* Position right below */
}

/* Invisible bridge to keep hover active */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    /* Bridge gap */
}

/* Color Palette Selection */
.color-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.color-option {
    position: relative;
    cursor: pointer;
}

.color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.color-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--surface);
}

.color-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.color-preview.multicolor {
    background: conic-gradient(hsl(340, 60%, 85%),
            hsl(25, 60%, 85%),
            hsl(45, 60%, 85%),
            hsl(150, 40%, 85%),
            hsl(200, 60%, 85%),
            hsl(260, 60%, 85%),
            hsl(340, 60%, 85%));
}

.color-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

/* Selected State */
.color-option input[type="radio"]:checked+.color-card {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.color-option input[type="radio"]:checked+.color-card .color-name {
    color: var(--primary);
    font-weight: 600;
}

.color-option:hover .color-card {
    border-color: var(--primary);
}

/* Checkmark */
.color-option input[type="radio"]:checked+.color-card .color-preview::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Compact Color Selection */
.color-options {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--spacing-sm);
}

.color-card {
    padding: var(--spacing-sm);
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
    min-height: 40px;
}

.color-preview {
    width: 24px;
    height: 24px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.color-name {
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Checkmark for compact view */
.color-option input[type="checkbox"]:checked+.color-card .color-preview::after {
    font-size: 0.9rem;
}

/* Ensure checkbox works */
.color-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.color-option input[type="checkbox"]:checked+.color-card {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.color-option input[type="checkbox"]:checked+.color-card .color-name {
    color: var(--primary);
    font-weight: 600;
}

/* Vertical Compact Color Selection */
.color-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    max-height: 200px;
    overflow-y: auto;
    padding: var(--spacing-xs);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
}

.color-card {
    padding: var(--spacing-xs) var(--spacing-md);
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: var(--transition);
}

.color-option:hover .color-card {
    background: var(--background-alt);
}

.color-preview {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    /* Square with rounded corners */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.color-name {
    font-size: 0.9rem;
    color: var(--text);
}

/* Selected State */
.color-option input[type="checkbox"]:checked+.color-card {
    background: var(--primary-light);
    border-color: var(--primary);
}

.color-option input[type="checkbox"]:checked+.color-card .color-name {
    color: var(--primary);
    font-weight: 600;
}

/* Checkmark */
.color-option input[type="checkbox"]:checked+.color-card::after {
    content: '✓';
    margin-left: auto;
    color: var(--primary);
    font-weight: bold;
}

/* Remove old checkmark style */
.color-option input[type="checkbox"]:checked+.color-card .color-preview::after {
    content: none;
}

/* Horizontal Compact Color Selection */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    max-height: none;
    overflow-y: visible;
    padding: 0;
    border: none;
    background: transparent;
}

.color-option {
    flex: 0 0 auto;
}

.color-card {
    padding: var(--spacing-xs) var(--spacing-sm);
    min-height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    /* Pill shape */
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--surface);
    cursor: pointer;
}

.color-preview {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.color-name {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Selected State Pills */
.color-option input[type="checkbox"]:checked+.color-card {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.color-option input[type="checkbox"]:checked+.color-card .color-name {
    color: white;
}

.color-option input[type="checkbox"]:checked+.color-card .color-preview {
    box-shadow: 0 0 0 2px white;
}

/* Hide checkmark for pills */
.color-option input[type="checkbox"]:checked+.color-card::after {
    content: none;
}

/* Compact Upload Area */
.upload-area {
    padding: var(--spacing-lg);
    min-height: 200px;
}

.upload-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-sm);
}

.upload-placeholder h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.file-preview {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

/* Italic Light Label */
.form-label em {
    font-weight: 300;
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9em;
}

/* Horizontal Color Selection Fix */
.color-options {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow-y: visible;
    background: transparent;
    border: none;
    padding: 0;
}

.color-card {
    min-height: 32px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
}

.color-preview {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Hide checkmark for horizontal pills */
.color-option input[type="checkbox"]:checked+.color-card::after {
    content: none;
}

/* Selected state for horizontal pills */
.color-option input[type="checkbox"]:checked+.color-card {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.color-option input[type="checkbox"]:checked+.color-card .color-name {
    color: white;
}

.color-option input[type="checkbox"]:checked+.color-card .color-preview {
    box-shadow: 0 0 0 2px white;
}

/* Minimalist Color Selection */
.color-card {
    padding: 4px;
    min-height: auto;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    background: transparent;
    transition: var(--transition);
}

.color-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    /* Soft square */
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.color-name {
    display: none;
    /* Hide names */
}

/* Selected State */
.color-option input[type="checkbox"]:checked+.color-card {
    background: transparent;
    border-color: transparent;
}

.color-option input[type="checkbox"]:checked+.color-card .color-preview {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary);
}

/* Hover State */
.color-option:hover .color-preview {
    transform: scale(1.05);
}

/* Inline Warning Box */
.warning-box {
    background: var(--surface-elevated);
    border: 1px solid var(--accent);
    border-left: 4px solid var(--accent);
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    border-radius: var(--radius-md);
    animation: slideDown 0.3s ease-out;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.warning-text {
    color: var(--text);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.warning-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix Modal Close Button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Grid */
.modal-content-grid {
    background: var(--surface);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.modal-header .close-modal {
    position: static;
    color: var(--text);
    background: transparent;
}

.all-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.all-cards-grid .card-preview-item {
    aspect-ratio: 1;
    cursor: pointer;
}

/* Homepage GIF */
.hero-gif {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) auto;
    display: block;
    box-shadow: var(--shadow-lg);
}

/* Project Header Refinement */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.project-header .header-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.project-header h1 {
    margin-bottom: 0;
    font-size: 2.5rem;
}

.project-badges {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: var(--spacing-xs);
}

.badge {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.badge.date {
    background: transparent;
    border: none;
    padding-left: 0;
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .project-header .header-content {
        align-items: center;
    }
}

/* Centered Create Card for Logged Out State */
.projects-grid:only-child {
    display: flex;
    justify-content: center;
}

.projects-grid:only-child .new-project-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Delete Modal Styling */
.delete-modal-content {
    text-align: center;
    max-width: 400px;
}

.modal-icon.warning {
    color: var(--error);
    background: #FEF2F2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.delete-modal-content h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--navy);
}

.delete-modal-content p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Marketing Section */
.marketing-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-light);
}

.marketing-hero {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.marketing-hero h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: var(--spacing-md);
}

.marketing-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.use-case-card {
    background: var(--surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.use-case-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--navy);
}

.example-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    background: var(--surface-elevated);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-top: var(--spacing-xl);
}

.example-content {
    flex: 1;
}

.example-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--navy);
}

.example-image {
    flex: 1;
    max-width: 400px;
}

.example-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
    transition: var(--transition);
}

.example-image:hover img {
    transform: rotate(0deg) scale(1.02);
}

@media (max-width: 768px) {
    .example-section {
        flex-direction: column-reverse;
        text-align: center;
    }

    .example-image {
        max-width: 100%;
    }
}

/* Example Images Container */
.example-images-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1.5;
}

.example-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.example-label {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.example-card-img {
    width: 200px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transform: rotate(-3deg);
    transition: var(--transition);
}

.example-slideshow-img {
    width: 280px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: var(--transition);
}

.example-arrow {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
}

.example-image-wrapper:hover img {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

@media (max-width: 900px) {
    .example-images-container {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .example-arrow {
        transform: rotate(90deg);
    }
}

/* Modern & Classy Text Styling */
.example-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.example-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: var(--spacing-lg);
}

.example-content ul li strong {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 1.1rem;
}

.example-content ul li {
    position: relative;
    padding-left: 1rem;
}

/* Add a decorative line */
.example-content::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: var(--spacing-lg);
    border-radius: 2px;
}

/* Editable Title Styles */
.title-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0.2rem;
    border-radius: 50%;
}

.btn-icon:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.edit-title-form {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.title-input {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 0.5rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    outline: none;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* Dropdown Button Styling to match Nav Links */
.dropbtn {
    background-color: transparent;
    color: var(--surface);
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown:hover .dropbtn {
    background-color: var(--navy-light);
    color: var(--accent);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-radius: var(--radius-md);
    overflow: hidden;
    top: 100%;
    right: 0;
    margin-top: 0;
    /* Remove margin to close gap */
    padding-top: 5px;
}

/* Add an invisible pseudo-element to bridge the gap */
/* Add an invisible pseudo-element to bridge the gap */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    /* Increased bridge height */
    background: transparent;
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--background);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Improve Dropdown Interaction */
.dropdown {
    padding-bottom: 10px;
    /* Invisible bridge to content */
    margin-bottom: -10px;
    /* Compensate for padding */
}

.dropdown-content {
    margin-top: 0;
    /* Attach directly to the padding bridge */
    padding-top: 5px;
    /* Small buffer inside the box */
}

/* Custom Form Validation Styles */
.input-error {
    border-color: var(--danger) !important;
    background-color: hsl(350, 70%, 98%) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    animation: slideDown 0.2s ease-out forwards;
}

.error-message::before {
    content: "⚠️";
    font-size: 0.9rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Visual Font Picker */
.font-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.font-option {
    cursor: pointer;
    position: relative;
}

.font-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.font-preview {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.font-option input:checked+.font-preview {
    border-color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.font-option:hover .font-preview {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.font-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.font-example {
    font-size: 1.8rem;
    color: var(--navy);
    line-height: 1.2;
}

/* Border Picker Styles */
.border-preview-box {
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    /* Grey background to simulate an image */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #888;
    position: relative;
}

/* Add a fake "image" icon or text */
.border-preview-box::after {
    content: "IMG";
    font-weight: bold;
    opacity: 0.5;
}

.border-preview-black {
    border: 3px solid #000;
    /* Thinner, more realistic for image border */
}

.border-preview-white {
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    /* Subtle shadow to define white border */
}

.border-preview-none {
    /* No border on the box itself */
    border: 1px dashed #ccc;
    /* Adding a light dashed border to make it visible as 'none' option */
}

/* Watermark Styles */
.card-preview-item {
    position: relative;
    overflow: hidden;
}

.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.watermark-text {
    transform: rotate(-45deg);
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    border: 4px solid rgba(0, 0, 0, 0.15);
    padding: 0.5rem 1rem;
    letter-spacing: 2px;
}

/* Locked Slideshow Overlay */
.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    color: white;
    text-align: center;
}

.locked-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
}

.locked-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.locked-content p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

/* Blurred Locked Cards */
.card-preview-item.locked {
    cursor: not-allowed;
}

.card-preview-item.locked img {
    filter: blur(15px);
    opacity: 0.7;
}

.card-preview-item.locked .watermark-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.card-preview-item.locked .watermark-text {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
}