/* ═══════════════════════════════════════════════════════════
   BLANK MINDED — Main Page with Theme Switcher
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Default Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-input: #f5f5f5;
    --border-light: #f0f0f0;
    --border-mid: #e0e0e0;
    --text-primary: #1a1a1a;
    --text-secondary: #888888;
    --text-muted: #b0b0b0;
    --accent: #1a1a1a;
    --accent-contrast: #ffffff;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Karla', -apple-system, sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════════
   THEME VARIATIONS
   ═══════════════════════════════════════════════════════════ */

/* Dark Theme */
body.theme-dark {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-input: #1a1a1a;
    --border-light: #222222;
    --border-mid: #333333;
    --text-primary: #f5f5f5;
    --text-secondary: #999999;
    --text-muted: #666666;
    --accent: #ffffff;
    --accent-contrast: #0a0a0a;
}

/* Cream Theme */
body.theme-cream {
    --bg-primary: #faf8f5;
    --bg-secondary: #f5f2ed;
    --bg-input: #efe9e0;
    --border-light: #e8e2d9;
    --border-mid: #d4ccc0;
    --text-primary: #3d3529;
    --text-secondary: #7a6f5f;
    --text-muted: #a69f8f;
    --accent: #3d3529;
    --accent-contrast: #faf8f5;
}

/* Midnight Theme */
body.theme-midnight {
    --bg-primary: #0f1624;
    --bg-secondary: #172033;
    --bg-input: #1e2a42;
    --border-light: #2a3a55;
    --border-mid: #3d4f6f;
    --text-primary: #e8ecf4;
    --text-secondary: #8fa3c4;
    --text-muted: #5a7099;
    --accent: #7cacf8;
    --accent-contrast: #0f1624;
}

/* Rose Theme */
body.theme-rose {
    --bg-primary: #fdf7f7;
    --bg-secondary: #faf0f0;
    --bg-input: #f5e8e8;
    --border-light: #eddede;
    --border-mid: #e0cccc;
    --text-primary: #4a3535;
    --text-secondary: #8a6b6b;
    --text-muted: #b89a9a;
    --accent: #c47878;
    --accent-contrast: #ffffff;
}

/* Forest Theme */
body.theme-forest {
    --bg-primary: #f5f8f5;
    --bg-secondary: #eef3ee;
    --bg-input: #e5ede5;
    --border-light: #d5e0d5;
    --border-mid: #bfd0bf;
    --text-primary: #2d3d2d;
    --text-secondary: #5a755a;
    --text-muted: #8aa88a;
    --accent: #4a7c4a;
    --accent-contrast: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════ */

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.025;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════
   THEME SWITCHER
   ═══════════════════════════════════════════════════════════ */

.theme-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s var(--ease-out);
}

.theme-btn:hover {
    background: var(--bg-input);
    border-color: var(--border-mid);
    color: var(--text-primary);
    transform: rotate(45deg);
}

.theme-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 200;
}

.theme-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.theme-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 320px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 300;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.theme-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.theme-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.theme-header h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
}

.close-theme {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.close-theme:hover {
    color: var(--text-primary);
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.theme-option:hover {
    border-color: var(--border-mid);
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: var(--accent);
}

.theme-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.light-preview { background: linear-gradient(135deg, #ffffff 50%, #f0f0f0 50%); }
.dark-preview { background: linear-gradient(135deg, #1a1a1a 50%, #0a0a0a 50%); }
.cream-preview { background: linear-gradient(135deg, #faf8f5 50%, #efe9e0 50%); }
.midnight-preview { background: linear-gradient(135deg, #1e2a42 50%, #0f1624 50%); }
.rose-preview { background: linear-gradient(135deg, #fdf7f7 50%, #f5e8e8 50%); }
.forest-preview { background: linear-gradient(135deg, #f5f8f5 50%, #e5ede5 50%); }

.theme-option span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════
   FALLING EMOJI BACKGROUND
   ═══════════════════════════════════════════════════════════ */

.emoji-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.falling-emoji {
    position: absolute;
    top: -50px;
    font-size: 1.5rem;
    opacity: 0.08;
    animation: fall linear infinite;
    will-change: transform;
}

@keyframes fall {
    0% { transform: translateY(-50px) rotate(0deg); }
    100% { transform: translateY(calc(100vh + 50px)) rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   INTRO ANIMATION
   ═══════════════════════════════════════════════════════════ */

.intro {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.intro-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 1.2s var(--ease-out);
}

.word {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.03em;
    display: flex;
    overflow: hidden;
    color: var(--text-primary);
}

.word-minded {
    font-style: italic;
    color: var(--text-secondary);
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: letterIn 0.6s var(--ease-out) forwards;
}

.word-blank .letter:nth-child(1) { animation-delay: 0.1s; }
.word-blank .letter:nth-child(2) { animation-delay: 0.15s; }
.word-blank .letter:nth-child(3) { animation-delay: 0.2s; }
.word-blank .letter:nth-child(4) { animation-delay: 0.25s; }
.word-blank .letter:nth-child(5) { animation-delay: 0.3s; }

.word-minded .letter:nth-child(1) { animation-delay: 0.4s; }
.word-minded .letter:nth-child(2) { animation-delay: 0.45s; }
.word-minded .letter:nth-child(3) { animation-delay: 0.5s; }
.word-minded .letter:nth-child(4) { animation-delay: 0.55s; }
.word-minded .letter:nth-child(5) { animation-delay: 0.6s; }
.word-minded .letter:nth-child(6) { animation-delay: 0.65s; }

.dot {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0;
    position: absolute;
    transition: all 1s var(--ease-out);
}

/* Morphed State */
.intro.morphed .intro-title {
    flex-direction: row;
    gap: 1.5rem;
}

.intro.morphed .word {
    font-size: clamp(3.5rem, 10vw, 6rem);
}

.intro.morphed .fade-letter {
    opacity: 0;
    width: 0;
    transform: translateY(-20px) scale(0.8);
    transition: all 0.5s var(--ease-out);
}

.intro.morphed .letter-b,
.intro.morphed .letter-m {
    transition: all 0.8s var(--ease-elastic);
}

.intro.morphed .word-minded {
    font-style: normal;
    color: var(--text-primary);
}

.intro.morphed .dot {
    opacity: 1;
    position: relative;
    font-size: 2.5rem;
    animation: dotPop 0.5s var(--ease-elastic) forwards;
}

.intro.hidden {
    opacity: 0;
    transform: translateY(-40px) scale(0.9);
    transition: all 0.8s var(--ease-out);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */

.content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: all 0.8s var(--ease-out);
}

.content.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.logo {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.logo-dot {
    color: var(--text-muted);
    font-size: clamp(2rem, 6vw, 3.5rem);
}

/* ═══════════════════════════════════════════════════════════
   URL INPUT
   ═══════════════════════════════════════════════════════════ */

.url-form {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 60px;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    transition: all 0.3s var(--ease-out);
}

.input-wrapper:focus-within {
    background: var(--bg-primary);
    border-color: var(--border-mid);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.url-input {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem 0;
}

.url-input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--accent-contrast);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.submit-btn:hover {
    transform: scale(1.05);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn svg {
    transition: transform 0.3s var(--ease-out);
}

.submit-btn:hover svg {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════
   SITE FINDER BUTTON
   ═══════════════════════════════════════════════════════════ */

.site-finder-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.7rem 1.4rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.site-finder-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-mid);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.site-finder-btn svg {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.site-finder-btn:hover svg {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT TYPE SELECTOR
   ═══════════════════════════════════════════════════════════ */

.type-selector {
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out);
    pointer-events: none;
}

.type-selector.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.type-label {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.type-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.75rem;
    background: var(--bg-input);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    min-width: 130px;
}

.type-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-mid);
    transform: translateY(-3px);
}

.type-btn.selected {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.type-btn.selected .type-name,
.type-btn.selected .type-desc,
.type-btn.selected .type-icon {
    color: var(--accent-contrast);
}

.type-icon {
    font-size: 1.8rem;
    transition: transform 0.3s var(--ease-elastic);
}

.type-btn:hover .type-icon {
    transform: scale(1.15);
}

.type-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
}

.type-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   HINT
   ═══════════════════════════════════════════════════════════ */

.hint {
    margin-top: 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes letterIn {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dotPop {
    0% { opacity: 0; transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

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

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Submit button disabled state */
.submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn:disabled:hover {
    transform: none;
}

.submit-btn.ready {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(26, 26, 26, 0); }
}

body.theme-dark .submit-btn.ready {
    animation: pulse-dark 1.5s ease-in-out infinite;
}

@keyframes pulse-dark {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* ═══════════════════════════════════════════════════════════
   USAGE COUNTER
   ═══════════════════════════════════════════════════════════ */

.usage-counter {
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.usage-counter.hidden {
    display: none;
}

.usage-text {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.usage-text.warning {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #e65100;
}

.usage-text.danger {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
}

/* ═══════════════════════════════════════════════════════════
   USER MENU (when logged in)
   ═══════════════════════════════════════════════════════════ */

.user-menu {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    z-index: 50;
}

.user-menu.visible {
    display: flex;
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    padding: 0.4rem 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.logout-btn:hover {
    background: var(--bg-primary);
    border-color: var(--border-mid);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════════════════════ */

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 500;
}

.auth-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 380px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
    z-index: 600;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.auth-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.auth-close:hover {
    color: var(--text-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-subtitle strong {
    color: var(--accent);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form.hidden {
    display: none;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-input-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.auth-input-group input {
    padding: 0.9rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s var(--ease-out);
}

.auth-input-group input:focus {
    background: var(--bg-primary);
    border-color: var(--border-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-input-group input::placeholder {
    color: var(--text-muted);
}

.auth-submit {
    margin-top: 0.5rem;
    padding: 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-contrast);
    background: var(--accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.auth-switch button {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.auth-switch button:hover {
    opacity: 0.8;
}

.auth-error {
    text-align: center;
    font-size: 0.85rem;
    color: #c62828;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #ffebee;
    border-radius: 8px;
}

.auth-error.hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   INLINE FOOTER (inside content)
   ═══════════════════════════════════════════════════════════ */

.inline-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.inline-footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.inline-footer .feedback-text {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.inline-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.inline-footer a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .theme-btn {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .user-menu {
        top: 1rem;
        left: 1rem;
        padding: 0.4rem 0.6rem 0.4rem 0.8rem;
    }
    
    .user-email {
        max-width: 100px;
        font-size: 0.7rem;
    }
    
    .theme-panel {
        width: 90%;
        max-width: 320px;
    }
    
    .content {
        padding: 0 1rem;
    }
    
    .input-wrapper {
        padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    }
    
    .url-input {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
    
    .submit-btn {
        width: 48px;
        height: 48px;
    }
    
    .intro.morphed .intro-title {
        gap: 1rem;
    }
    
    .logo {
        gap: 1rem;
    }
    
    .type-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .type-btn {
        width: 100%;
        max-width: 200px;
        padding: 1rem 1.5rem;
    }
    
    .type-selector {
        margin-top: 2rem;
    }
}
