/* Daily Ai'ds Landing Page Styles */
/* Matches Instagram @techiavellian carousel aesthetic */

/* Custom Font Faces - Matching Carousel Theme */
@font-face {
    font-family: 'Zina';
    src: url('/fonts/Zina-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Comico';
    src: url('/fonts/Comico-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Nippo';
    src: url('/fonts/Nippo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Nippo';
    src: url('/fonts/Nippo-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Stardom';
    src: url('/fonts/Stardom-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Chillax';
    src: url('/fonts/Chillax-Variable.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Array';
    src: url('/fonts/Array-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'ArrayWide';
    src: url('/fonts/Array-Wide.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Typewriter';
    src: url('/fonts/Typewriter.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'ModernTypewriter';
    src: url('/fonts/ModernTypewriter.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Larabie';
    src: url('/fonts/Larabie.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1a1a1a;
    --accent: #FF3B3B;
    --accent-hover: #ff5555;
    --accent-glow: rgba(255, 59, 59, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #666666;
    --border: #2a2a2a;
    --success: #00DC64;
    --font-brand: 'Stardom', 'Space Grotesk', sans-serif;
    --font-section: 'Array', 'Space Grotesk', sans-serif;
    --font-display: 'Nippo', 'Space Grotesk', sans-serif;
    --font-header: 'Zina', 'Space Grotesk', sans-serif;
    --font-title: 'Comico', 'Space Grotesk', sans-serif;
    --font-body: 'Montserrat', 'Inter', sans-serif;
    --font-numbers: 'Orbitron', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(ellipse at center, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.7) 40%, rgba(10, 10, 10, 0.9) 70%, var(--bg-primary) 100%),
        url('/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Navigation Bar */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-instagram {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    font-family: 'ModernTypewriter', var(--font-body);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-instagram:hover {
    color: var(--accent);
}

.nav-instagram-icon {
    width: 16px;
    height: 16px;
}

.nav-tabs {
    display: flex;
    gap: 0;
    justify-self: center;
}

.nav-tab {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    padding: 16px 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 1px;
    background: var(--accent);
    transition: all 0.25s ease;
    opacity: 0;
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab:hover::after {
    left: 25%;
    right: 25%;
    opacity: 0.5;
}

.nav-tab.active {
    color: var(--accent);
}

.nav-tab.active::after {
    left: 20%;
    right: 20%;
    opacity: 1;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

/* Hero Section - Dictionary Entry */
.hero {
    padding: 40px 0 35px;
    text-align: left;
}

.hero-content {
    max-width: 100%;
}

.hero-title-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 4px;
}

.hero-title-row .instagram-link {
    margin: 0;
    padding: 6px 14px;
    font-size: 0.75rem;
    gap: 5px;
}

.hero-title-row .instagram-link .instagram-icon {
    width: 14px;
    height: 14px;
}

.dictionary-entry {
    margin-bottom: 24px;
    padding: 0 40px;
}

.dict-word {
    font-family: 'Typewriter', 'Courier New', monospace;
    font-size: 5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 3px;
    margin-bottom: 0;
}

.dict-pos {
    font-family: 'ModernTypewriter', 'Courier New', monospace;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 4px;
    padding-left: 24px;
}

.dict-pronunciation {
    font-family: 'ModernTypewriter', 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    padding-left: 24px;
}

.dict-definition {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    padding-left: 40px;
    max-width: 100%;
}

.dict-number {
    font-family: 'ModernTypewriter', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--accent);
    min-width: 22px;
    flex-shrink: 0;
}

.dict-definition p {
    font-family: 'ModernTypewriter', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.6;
}

.dict-example {
    margin-top: 24px;
    padding-left: 40px;
    border-left: 2px solid var(--accent);
    margin-left: 40px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.dict-label {
    font-family: 'ModernTypewriter', 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.dict-example-text {
    font-family: 'ModernTypewriter', 'Courier New', monospace;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
}

.dict-example-text em {
    font-style: normal;
    color: var(--text-primary);
    font-weight: 500;
}

.dict-origin {
    margin-top: 24px;
    padding-left: 40px;
}

.dict-origin p {
    font-family: 'ModernTypewriter', 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.dict-origin em {
    font-style: italic;
    color: var(--text-secondary);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.instagram-icon {
    width: 20px;
    height: 20px;
}

/* Daily Ai'ds Section */
.daily-aids-section {
    padding: 32px 0 20px;
    text-align: left;
}

.daily-aids-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.daily-aids-left {
    flex: 1;
}

.daily-aids-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 2px;
}

.daily-aids-title {
    font-family: 'ArrayWide', var(--font-section);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-shadow: 0 0 30px var(--accent-glow);
}

.daily-aids-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.daily-aids-description {
    max-width: 520px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: #CCCCCC;
    line-height: 1.7;
}

/* Controls Section */
.search-container {
    width: 280px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.search-container:focus-within .search-icon {
    color: var(--accent);
    opacity: 1;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(30, 30, 30, 0.8) 100%);
    border: none;
    border-radius: 25px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(35, 35, 35, 1) 0%, var(--bg-card) 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0.6;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-container label {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sort-select {
    padding: 8px 36px 8px 14px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(30, 30, 30, 0.8) 100%);
    border: none;
    border-radius: 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23FF3B3B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sort-select:focus {
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
}

.sort-select:hover {
    background-color: rgba(35, 35, 35, 1);
}

/* Posts List */
.posts-container {
    padding: 20px 0 60px;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Post Card - Horizontal Row Layout */
.post-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px 14px 12px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.post-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
}

.post-number {
    font-family: 'ArrayWide', var(--font-section);
    font-size: 2.2rem;
    color: var(--accent);
    font-weight: 400;
    text-shadow: 0 0 15px var(--accent-glow);
    letter-spacing: 1px;
    min-width: 42px;
    text-align: center;
    flex-shrink: 0;
}

.post-divider {
    width: 1px;
    height: 32px;
    background: var(--accent);
    margin: 0 12px;
    border-radius: 1px;
    box-shadow: 0 0 6px var(--accent-glow);
    flex-shrink: 0;
}

.post-title {
    font-family: 'ModernTypewriter', var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: 0.5px;
    flex: 1;
}

.post-potential,
.post-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
    min-width: 120px;
    flex-shrink: 0;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-potential .stat-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--success);
}

.post-setup .stat-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Empty & Loading States */
.empty-state,
.loading-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent);
}

#modalBody {
    padding: 40px;
    overflow-y: auto;
}

/* Modal Content Styles */
.modal-header {
    margin-bottom: 32px;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
}

.modal-number {
    font-family: 'ArrayWide', var(--font-section);
    color: var(--accent);
    font-size: 2.8rem;
    font-weight: 400;
    text-shadow: 0 0 20px var(--accent-glow);
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-divider {
    width: 1px;
    height: 40px;
    background: var(--accent);
    margin: 0 16px;
    border-radius: 1px;
    box-shadow: 0 0 8px var(--accent-glow);
}

.modal-title {
    font-family: 'ModernTypewriter', var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
}

.modal-summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-section {
    margin-bottom: 32px;
}

.modal-section h3 {
    font-family: 'Nippo', var(--font-display);
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.modal-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.modal-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.modal-stat .stat-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-stat.potential .stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--success);
}

.modal-stat.difficulty .stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.modal-stat.setup .stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent);
}

.income-assumptions {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.modal-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.income-method {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.steps-list {
    list-style: none;
}

.step-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 12px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-title {
    font-family: 'Larabie', var(--font-display);
    font-weight: 400;
    color: var(--accent);
}

.ai-badge {
    font-family: 'ModernTypewriter', var(--font-display);
    font-size: 0.8rem;
    color: var(--success);
    margin-left: auto;
}

.step-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-left: 40px;
}

/* Prompt Sections */
.prompt-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.prompt-section h4 {
    font-family: 'Nippo', var(--font-display);
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-section h4 svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.prompt-text {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.prompt-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Larabie', var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #cc2f2f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    box-shadow: 0 6px 25px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 59, 59, 0.3);
}

.btn-unlock {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    font-weight: 600;
}

.btn-unlock:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

.btn-unlock:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

.btn-unlock:disabled {
    background: #333;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 59, 59, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Advanced Prompt Download */
.advanced-section {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.1), rgba(255, 59, 59, 0.05));
    border: 1px solid rgba(255, 59, 59, 0.3);
    border-radius: 16px;
    padding: 24px;
}

.advanced-section h4 {
    font-family: 'Nippo', var(--font-display);
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.advanced-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.advanced-section .guide-instruction {
    color: #4CAF50;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.5;
}

.advanced-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    background: transparent;
    margin-top: auto;
    flex-shrink: 0;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

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

.footer-tagline {
    margin-top: 4px;
    font-style: italic;
    color: var(--text-muted);
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .post-potential,
    .post-setup {
        padding: 0 16px;
        min-width: 100px;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .post-potential .stat-value,
    .post-setup .stat-value {
        font-size: 0.85rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    #app {
        padding: 0 16px;
    }
    
    /* Nav Mobile */
    .nav-container {
        grid-template-columns: auto auto auto;
        gap: 10px;
    }
    
    .nav-instagram {
        font-size: 0.75rem;
    }
    
    .nav-instagram-icon {
        width: 14px;
        height: 14px;
    }
    
    .nav-tab {
        padding: 14px 20px;
        font-size: 0.8rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 30px 0 25px;
    }
    
    .hero-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .dict-word {
        font-size: 2.4rem;
        letter-spacing: 1px;
    }
    
    .hero-title-row .instagram-link {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .hero-title-row .instagram-link .instagram-icon {
        width: 16px;
        height: 16px;
    }
    
    .dict-pos {
        font-size: 0.85rem;
        padding-left: 8px;
    }
    
    .dict-pronunciation {
        font-size: 0.8rem;
        padding-left: 8px;
        margin-bottom: 14px;
    }
    
    .dict-definition {
        padding-left: 8px;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .dict-definition p {
        font-size: 0.78rem;
        line-height: 1.5;
    }
    
    .dict-number {
        font-size: 0.78rem;
        min-width: 18px;
    }
    
    .dictionary-entry {
        margin-bottom: 16px;
        padding: 0 16px;
    }
    
    .dict-example {
        margin-left: 8px;
        padding-left: 16px;
        margin-top: 18px;
    }
    
    .dict-label {
        font-size: 0.72rem;
    }
    
    .dict-example-text {
        font-size: 0.78rem;
        line-height: 1.6;
    }
    
    .dict-origin {
        padding-left: 8px;
        margin-top: 18px;
    }
    
    .dict-origin p {
        font-size: 0.72rem;
        line-height: 1.5;
    }
    
    /* Daily Ai'ds Section Mobile */
    .daily-aids-section {
        padding: 20px 0 16px;
    }
    
    .daily-aids-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .daily-aids-left {
        width: 100%;
    }
    
    .daily-aids-right {
        align-items: stretch;
        width: 100%;
        gap: 10px;
        padding-bottom: 0;
    }
    
    .daily-aids-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .daily-aids-subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }
    
    .daily-aids-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* Search & Sort Mobile */
    .search-container {
        width: 100%;
    }
    
    .search-input {
        padding: 12px 16px 12px 40px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .search-icon {
        left: 14px;
        width: 16px;
        height: 16px;
    }
    
    .sort-container {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
    
    .sort-container label {
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .sort-select {
        padding: 10px 36px 10px 14px;
        font-size: 0.85rem;
        border-radius: 20px;
        flex: 1;
        max-width: 200px;
    }
    
    /* Posts List Mobile */
    .posts-container {
        padding: 16px 0 40px;
    }
    
    .posts-grid {
        gap: 10px;
    }
    
    .post-card {
        padding: 12px 14px 12px 10px;
        border-radius: 10px;
    }
    
    .post-number {
        font-size: 1.6rem;
        min-width: 32px;
    }
    
    .post-divider {
        height: 24px;
        margin: 0 10px;
    }
    
    .post-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .post-potential,
    .post-setup {
        display: none;
    }
    
    /* Modal Mobile */
    .modal-content {
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
        width: 100%;
        max-width: 100%;
    }
    
    #modalBody {
        padding: 20px 16px;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .modal-title-row {
        margin-bottom: 16px;
    }
    
    .modal-number {
        font-size: 2rem;
        min-width: 44px;
    }
    
    .modal-divider {
        height: 36px;
        margin: 0 12px;
    }
    
    .modal-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .modal-summary {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .modal-revenue-badge {
        font-size: 1.1rem;
        padding: 10px 16px;
        margin-bottom: 16px;
    }
    
    .modal-section-title {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .modal-steps {
        gap: 12px;
    }
    
    .modal-step {
        padding: 14px;
        border-radius: 10px;
    }
    
    .modal-step-number {
        font-size: 1.1rem;
        min-width: 28px;
    }
    
    .modal-step-title {
        font-size: 0.95rem;
    }
    
    .modal-step-description {
        font-size: 0.8rem;
        padding-left: 36px;
    }
    
    .step-item {
        position: relative;
        padding-bottom: 28px;
    }
    
    .step-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ai-badge {
        position: absolute;
        bottom: 8px;
        left: 0;
        margin-left: 0;
    }
    
    .modal-stats {
        gap: 20px;
    }
    
    .modal-stat .stat-value {
        font-size: 0.95rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    
    .modal-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 6px 0;
        font-size: 0.7rem;
    }
    
    .footer-tagline {
        font-size: 0.65rem;
        margin-top: 2px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    #app {
        padding: 0 12px;
    }
    
    .dict-word {
        font-size: 1.9rem;
    }
    
    .daily-aids-title {
        font-size: 1.5rem;
    }
    
    .post-number {
        font-size: 1.4rem;
        min-width: 32px;
    }
    
    .post-title {
        font-size: 0.88rem;
    }
    
    .modal-number {
        font-size: 1.7rem;
        min-width: 38px;
    }
    
    .modal-title {
        font-size: 1.05rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Copy success animation */
.copy-success {
    animation: copyPulse 0.3s ease;
}

@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Recover Purchase Button - Nav Bar */
.recover-purchase-btn-nav {
    background: rgba(120, 20, 20, 0.85);
    border: none;
    color: #ffffff;
    font-family: 'ModernTypewriter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.25s ease;
    white-space: nowrap;
    justify-self: end;
}

.recover-purchase-btn-nav:hover {
    background: rgba(160, 30, 30, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(160, 30, 30, 0.3);
}

.recover-purchase-btn-nav:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .nav-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
    }
    
    .nav-tabs {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
    }
    
    .nav-instagram {
        grid-row: 2;
        grid-column: 1;
        justify-self: start;
    }
    
    .recover-purchase-btn-nav {
        grid-row: 2;
        grid-column: 2;
        justify-self: end;
        font-size: 0.6rem;
        padding: 6px 12px;
    }
}

/* Recover Modal */
.recover-modal-content {
    max-width: 400px;
    text-align: center;
}

.recover-title {
    font-family: 'Nippo', 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.recover-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

#recoverForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recover-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

.recover-input:focus {
    outline: none;
    border-color: var(--accent);
}

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

.recover-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.recover-submit-btn:hover {
    background: var(--accent-hover);
}

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

.recover-submit-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.recover-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: left;
}

.recover-result.success {
    background: rgba(0, 220, 100, 0.1);
    border: 1px solid var(--success);
}

.recover-result.error {
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid var(--accent);
}

.recover-result h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.purchase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 8px;
}

.purchase-item:last-child {
    margin-bottom: 0;
}

.purchase-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-link {
    padding: 8px 12px;
    background: var(--success);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.download-link:hover {
    opacity: 0.9;
}
