/* ============================================================================
   PromptVault – Design System (OPHYR-inspired)
   Pure black, 1px borders, uppercase labels, per-category color accents
   ============================================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Tokens --- */
:root {
    /* Surface */
    --bg:         #080808;
    --bg-panel:   #0e0e0e;
    --bg-raised:  #141414;
    --bg-input:   #111111;

    /* Borders */
    --border:     #1e1e1e;
    --border-mid: #272727;
    --border-hi:  #333333;

    /* Text */
    --text:       #e8e8e8;
    --text-2:     #888888;
    --text-3:     #444444;

    /* Semantic */
    --success:    #22c55e;
    --danger:     #ef4444;
    --warning:    #f59e0b;

    /* Category palette – each gets its own hue */
    --cat-text:      #3b82f6;   /* Text & Writing  → blue        */
    --cat-bild:      #a855f7;   /* Bildgenerierung → purple       */
    --cat-video:     #ec4899;   /* Video           → pink         */
    --cat-musik:     #f97316;   /* Musik           → orange       */
    --cat-agents:    #06b6d4;   /* Agents          → cyan         */
    --cat-workflows: #22c55e;   /* Workflows       → green        */
    --cat-coding:    #84cc16;   /* Coding          → lime         */
    --cat-business:  #eab308;   /* Business        → amber        */
    --cat-bildung:   #f43f5e;   /* Bildung         → rose         */
    --cat-kreativ:   #8b5cf6;   /* Kreativ         → violet       */

    --radius:    6px;
    --radius-sm: 4px;
    --transition: 0.15s ease;
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.main { flex: 1; }

/* --- Utilities --- */
.text-center { text-align: center; }
.text-muted   { color: var(--text-2); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Label style: PROCESSING, EMBEDDED CONTENT, etc. --- */
.label-caps {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ============================================================================
   NAVBAR
   ============================================================================ */
.navbar {
    background: #0c0c0c;
    border-bottom: 1px solid #2a2a2a;
    padding: 0 0;
    height: 48px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}
.nav-brand {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-right: 2rem;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(201,168,76,0.35);
}
.nav-brand span {
    color: #6b6b6b;
    font-weight: 400;
    margin-left: 0.6rem;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
}
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-mid);
    color: var(--text-2);
    font-size: 1.1rem;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: auto;
}
.nav-menu { display: flex; align-items: center; gap: 0; flex: 1; height: 100%; }
.nav-link {
    color: #b0b0b0;
    font-size: 0.82rem;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #2a2a2a;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.nav-link:first-child { border-left: 1px solid #2a2a2a; }
.nav-link:hover { color: #ffffff; background: #181818; }
.nav-link-muted { color: #666; }

.nav-search {
    flex: 1;
    position: relative;
    max-width: 280px;
    margin-left: auto;
    margin-right: 1rem;
}
.search-form { display: flex; }
.search-input {
    width: 100%;
    padding: 0.4rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.82rem;
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--border-hi); }
.search-input::placeholder { color: var(--text-3); }

.nav-stats {
    font-size: 0.75rem;
    color: #888;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding-left: 1rem;
    border-left: 1px solid #2a2a2a;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-stats span { color: #d0d0d0; font-weight: 600; }

/* Auth links in nav */
.nav-auth {
    display: flex;
    align-items: center;
    height: 100%;
    border-left: 1px solid #2a2a2a;
    padding-left: 0.75rem;
    gap: 0.5rem;
}

/* --- Search dropdown --- */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    max-height: 280px;
    overflow-y: auto;
    z-index: 200;
}
.search-dropdown.active { display: block; }
.search-dropdown-item {
    display: block;
    padding: 0.55rem 0.75rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    transition: background var(--transition);
}
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background: var(--bg-raised); }
.search-dropdown-item small { color: var(--text-2); display: block; font-size: 0.72rem; margin-top: 0.1rem; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    background: transparent;
    color: var(--text-2);
}
.btn:hover { border-color: var(--border-hi); color: var(--text); background: var(--bg-raised); }
.btn-primary {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
    font-weight: 600;
}
.btn-primary:hover { background: #fff; border-color: #fff; color: #000; }
.btn-secondary { background: var(--bg-raised); color: var(--text); border-color: var(--border-mid); }
.btn-secondary:hover { border-color: var(--border-hi); }
.btn-outline { background: transparent; border-color: var(--border-mid); color: var(--text-2); }
.btn-outline:hover { border-color: var(--border-hi); color: var(--text); }
.btn-danger { background: transparent; border-color: rgba(239,68,68,0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(239,68,68,0.08); border-color: var(--danger); }
.btn-sm { padding: 0.28rem 0.6rem; font-size: 0.75rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.hero-sub {
    color: var(--text-2);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}
.hero-search {
    display: flex;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-input);
}
.hero-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
}
.hero-search-input::placeholder { color: var(--text-3); }
.hero-search .btn-primary {
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border-mid);
    padding: 0.75rem 1.2rem;
    font-size: 0.82rem;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 1.5rem;
}
.page-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 1.4rem; font-weight: 600; }
.page-header p { color: var(--text-2); margin-top: 0.25rem; font-size: 0.88rem; }

/* ============================================================================
   CATEGORY SYSTEM – each slug gets its own color
   ============================================================================ */

/* Generic category badge */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

/* Per-category color assignments */
.cat-text     { color: var(--cat-text);      background: rgba(59,130,246,0.08);  border-color: rgba(59,130,246,0.25);  }
.cat-bild     { color: var(--cat-bild);      background: rgba(168,85,247,0.08);  border-color: rgba(168,85,247,0.25);  }
.cat-video    { color: var(--cat-video);     background: rgba(236,72,153,0.08);  border-color: rgba(236,72,153,0.25);  }
.cat-musik    { color: var(--cat-musik);     background: rgba(249,115,22,0.08);  border-color: rgba(249,115,22,0.25);  }
.cat-agents   { color: var(--cat-agents);    background: rgba(6,182,212,0.08);   border-color: rgba(6,182,212,0.25);   }
.cat-workflows{ color: var(--cat-workflows); background: rgba(34,197,94,0.08);   border-color: rgba(34,197,94,0.25);   }
.cat-coding   { color: var(--cat-coding);    background: rgba(132,204,22,0.08);  border-color: rgba(132,204,22,0.25);  }
.cat-business { color: var(--cat-business);  background: rgba(234,179,8,0.08);   border-color: rgba(234,179,8,0.25);   }
.cat-bildung  { color: var(--cat-bildung);   background: rgba(244,63,94,0.08);   border-color: rgba(244,63,94,0.25);   }
.cat-kreativ  { color: var(--cat-kreativ);   background: rgba(139,92,246,0.08);  border-color: rgba(139,92,246,0.25);  }

/* Category card – uses the same color system for left accent line */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    transition: all var(--transition);
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--transition);
}
.category-card:hover { border-color: var(--border-hi); color: var(--text); }
.category-card:hover::before { opacity: 0.6; }

.category-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.category-card h3 { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.2rem; }
.category-card p { font-size: 0.75rem; color: var(--text-2); }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }

/* Category list card (categories page) */
.categories-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.8rem; }
.category-list-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.category-list-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--transition);
}
.category-list-card:hover { border-color: var(--border-hi); }
.category-list-card:hover::before { opacity: 0.5; }
.category-list-icon { font-size: 1.8rem; flex-shrink: 0; }
.category-list-info h3 { font-size: 0.9rem; font-weight: 600; }
.category-list-info p { font-size: 0.78rem; color: var(--text-2); margin-top: 0.1rem; }
.category-list-info .count { font-size: 0.72rem; color: var(--text-3); margin-top: 0.2rem; font-variant-numeric: tabular-nums; }

/* ============================================================================
   PROMPT GRID & CARDS
   ============================================================================ */
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.prompt-card {
    background: var(--bg-panel);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    transition: background var(--transition);
}
.prompt-card:hover { background: var(--bg-raised); }
.prompt-card-header { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.prompt-card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; line-height: 1.3; }
.prompt-card-title a { color: var(--text); }
.prompt-card-title a:hover { color: #fff; }
.prompt-card-desc {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prompt-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.73rem;
    color: var(--text-3);
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
   BADGES
   ============================================================================ */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: var(--bg-raised);
    color: var(--text-2);
    border: 1px solid var(--border-mid);
}

.difficulty-badge {
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.difficulty-badge.green { background: rgba(34,197,94,0.1);  color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.difficulty-badge.yellow{ background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.difficulty-badge.red   { background: rgba(239,68,68,0.1);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.2);  }

.featured-badge { padding: 0.12rem 0.45rem; background: rgba(234,179,8,0.12); color: var(--cat-business); border: 1px solid rgba(234,179,8,0.25); border-radius: var(--radius-sm); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-sm { font-size: 0.62rem; background: var(--bg-raised); color: var(--text-2); border: 1px solid var(--border-mid); padding: 0.1rem 0.35rem; border-radius: 3px; font-weight: 600; margin-left: 0.3rem; }

/* ============================================================================
   PROMPT DETAIL
   ============================================================================ */
.prompt-detail { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; }
.prompt-detail-main { min-width: 0; }
.prompt-meta { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.prompt-detail h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.prompt-description { color: var(--text-2); font-size: 0.92rem; margin-bottom: 1.5rem; line-height: 1.7; }

.prompt-box {
    background: var(--bg-input);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.prompt-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.9rem;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border-mid);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.prompt-text {
    padding: 1rem 1.1rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
}
.copy-btn.copied { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: var(--success); }

/* Editable prompt */
.prompt-edit-hint {
    font-size: 0.6rem;
    color: var(--text-3);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    margin-left: 0.3rem;
    transition: opacity var(--transition);
}
.prompt-text {
    cursor: text;
}
.prompt-text:hover {
    background: #131313;
}
.prompt-text:hover + * .prompt-edit-hint,
.prompt-box:hover .prompt-edit-hint {
    color: var(--text-2);
}
.prompt-edit-area {
    width: 100%;
    padding: 1rem 1.1rem;
    background: #0d1117;
    border: none;
    color: var(--text);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.75;
    resize: vertical;
    min-height: 160px;
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
}
.prompt-box.editing {
    border-color: #333;
}
.prompt-box.editing .prompt-box-header {
    background: #0d1117;
    border-color: #252525;
}
.btn-reset-prompt {
    border-color: #333;
    color: #888;
    font-size: 0.72rem;
}

.info-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
}
.info-box h3 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.4rem;
}
.info-box p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.5rem; }
.tag {
    padding: 0.2rem 0.55rem;
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    border-radius: 20px;
    font-size: 0.73rem;
    color: var(--text-2);
    transition: all var(--transition);
}
.tag:hover { border-color: var(--border-hi); color: var(--text); }

.prompt-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.prompt-stats { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.prompt-user-actions { display: flex; align-items: center; gap: 0.6rem; }
.bookmark-btn.active { border-color: var(--cat-text); color: var(--cat-text); background: rgba(59,130,246,0.08); }

/* Rating */
.rating-stars { display: flex; gap: 0.1rem; }
.star {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-3);
    cursor: pointer;
    padding: 0;
    transition: color var(--transition), transform var(--transition);
}
.star:hover, .star.active { color: var(--cat-business); }
.star:hover { transform: scale(1.1); }

/* ============================================================================
   SIDEBAR
   ============================================================================ */
.prompt-detail-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
}
.sidebar-card h3 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.8rem;
}

.tool-list { display: flex; flex-direction: column; gap: 0.4rem; }
.tool-item a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 0.82rem;
    transition: all var(--transition);
}
.tool-item a:hover { border-color: var(--border-hi); color: var(--text); }
.tool-item.primary a { border-color: var(--border-mid); color: var(--text); }
.tool-item small { display: block; font-size: 0.72rem; color: var(--text-3); padding-left: 0.7rem; margin-top: 0.1rem; }

.related-list { display: flex; flex-direction: column; }
.related-list li a { display: block; padding: 0.4rem 0; font-size: 0.82rem; color: var(--text-2); border-bottom: 1px solid var(--border); }
.related-list li:last-child a { border-bottom: none; }
.related-list li a:hover { color: var(--text); }

/* ============================================================================
   BREADCRUMB
   ============================================================================ */
.breadcrumb { font-size: 0.78rem; color: var(--text-3); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); }

/* ============================================================================
   FILTERS
   ============================================================================ */
.filters { margin-bottom: 1.2rem; }
.filter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-select {
    padding: 0.4rem 0.7rem;
    background: var(--bg-input);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--border-hi); }

/* ============================================================================
   PAGINATION
   ============================================================================ */
.pagination { display: flex; justify-content: center; gap: 0; margin-top: 2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; margin-left: auto; margin-right: auto; }
.page-link {
    padding: 0.4rem 0.75rem;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.82rem;
    transition: all var(--transition);
}
.page-link:last-child { border-right: none; }
.page-link:hover { background: var(--bg-raised); color: var(--text); }
.page-link.active { background: var(--text); color: var(--bg); font-weight: 600; }

/* ============================================================================
   EMPTY STATE
   ============================================================================ */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-2); }
.empty-state p { margin-bottom: 0.8rem; font-size: 0.9rem; }

/* ============================================================================
   SEARCH PAGE
   ============================================================================ */
.search-page-form { display: flex; gap: 0; margin-bottom: 2rem; border: 1px solid var(--border-mid); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-input); }
.search-page-input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
}
.search-page-input::placeholder { color: var(--text-3); }
.search-page-form .btn { border-radius: 0; border: none; border-left: 1px solid var(--border-mid); }

/* ============================================================================
   FORMS
   ============================================================================ */
.form-card {
    max-width: 440px;
    margin: 2.5rem auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.form-card h1 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35rem; }
.form-card .form-subtitle { color: var(--text-2); margin-bottom: 1.5rem; font-size: 0.85rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: var(--text-3);
}
.form-control {
    width: 100%;
    padding: 0.55rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.88rem;
    outline: none;
    transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--border-hi); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { min-height: 120px; resize: vertical; font-family: inherit; }
select.form-control { cursor: pointer; }

.form-hint { font-size: 0.72rem; color: var(--text-3); margin-top: 0.25rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.form-check input[type="checkbox"] { accent-color: var(--text-2); width: 15px; height: 15px; }
.form-check label { font-size: 0.82rem; color: var(--text-2); margin-bottom: 0; font-weight: 400; text-transform: none; letter-spacing: 0; }

.alert { padding: 0.65rem 0.9rem; border-radius: var(--radius-sm); font-size: 0.82rem; margin-bottom: 1rem; }
.alert-error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.2);  color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.08);  border: 1px solid rgba(34,197,94,0.2);  color: #86efac; }

.form-footer { text-align: center; margin-top: 1rem; font-size: 0.82rem; color: var(--text-2); }
.form-footer a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================================
   DASHBOARD
   ============================================================================ */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.stat-card {
    background: var(--bg-panel);
    padding: 1.2rem;
    text-align: center;
}
.stat-card .stat-number { font-size: 1.8rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-card .stat-label { font-size: 0.68rem; color: var(--text-3); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

.dashboard-section { margin-bottom: 2rem; }
.dashboard-section h2 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.quick-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* ============================================================================
   USER PROMPT LIST
   ============================================================================ */
.user-prompt-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.user-prompt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    transition: background var(--transition);
}
.user-prompt-item:last-child { border-bottom: none; }
.user-prompt-item:hover { background: var(--bg-raised); }
.user-prompt-info { flex: 1; min-width: 0; }
.user-prompt-info h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-prompt-info p { font-size: 0.75rem; color: var(--text-3); }
.user-prompt-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 2rem 0 1.2rem;
    margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.2rem; }
.footer h4 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.75rem;
}
.footer p, .footer a { color: var(--text-2); font-size: 0.82rem; }
.footer ul li { margin-bottom: 0.3rem; }
.footer ul li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1rem; text-align: center; }
.footer-bottom p { font-size: 0.72rem; color: var(--text-3); }

/* ============================================================================
   PROFILE LAYOUT — side nav + main content
   ============================================================================ */

.profile-layout {
    display: flex;
    min-height: calc(100vh - 48px);
    background: #0a0908;
}

/* --- Side nav --- */
.profile-sidenav {
    width: 220px;
    flex-shrink: 0;
    background: #0e0c0a;
    border-right: 1px solid #1e1c18;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.pnav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.4rem 1.8rem;
    border-bottom: 1px solid #1e1c18;
    margin-bottom: 1.4rem;
}
.pnav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e1a12;
    border: 1px solid rgba(201,168,76,0.3);
    color: #c9a84c;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}
.pnav-user-info { min-width: 0; }
.pnav-username {
    font-size: 0.82rem;
    font-weight: 600;
    color: #c8c0a8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pnav-role {
    font-size: 0.62rem;
    color: #5a5040;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.1rem;
}

.pnav-links { padding: 0 0.75rem; flex: 1; }
.pnav-group-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #3a3020;
    padding: 0 0.7rem;
    margin-bottom: 0.3rem;
}
.pnav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 3px;
    font-size: 0.82rem;
    color: #7a7060;
    transition: color var(--transition), background var(--transition);
    margin-bottom: 0.1rem;
}
.pnav-link:hover { color: #c8c0a8; background: #141210; }
.pnav-link.pnav-active { color: #c9a84c; background: #1a1610; }
.pnav-link.pnav-active .pnav-icon { color: #c9a84c; }
.pnav-link-dim { color: #3a3020; }
.pnav-link-dim:hover { color: #7a7060; background: none; }
.pnav-icon { font-size: 0.9rem; width: 1rem; text-align: center; flex-shrink: 0; }

/* --- Main area --- */
.profile-main {
    flex: 1;
    padding: 2.5rem 3rem;
    min-width: 0;
    background: #0a0908;
}

.profile-section-header { margin-bottom: 2rem; }
.profile-section-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 0.4rem;
}
.profile-section-label a { color: inherit; }
.profile-section-label a:hover { color: #e0c870; }
.profile-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d8d0b8;
    letter-spacing: -0.02em;
}
.profile-title-count {
    font-size: 0.9rem;
    color: #4a4030;
    font-weight: 400;
    margin-left: 0.5rem;
}

/* Alerts */
.profile-alert {
    padding: 0.65rem 1rem;
    border-radius: 3px;
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}
.profile-alert-error   { background: rgba(239,68,68,0.07);  border: 1px solid rgba(239,68,68,0.15);  color: #f87171; }
.profile-alert-success { background: rgba(201,168,76,0.07); border: 1px solid rgba(201,168,76,0.2);  color: #c9a84c; }

/* --- Stats grid --- */
.pstat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1px;
    background: #1e1c18;
    border: 1px solid #1e1c18;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2rem;
    max-width: 480px;
}
.pstat-card {
    background: #0e0c0a;
    padding: 1.4rem 1.6rem;
}
.pstat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #c9a84c;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.pstat-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4a4030;
    margin-top: 0.4rem;
}

/* Quick links */
.profile-quick-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.pquick-btn {
    padding: 0.5rem 1rem;
    background: #c9a84c;
    border: 1px solid #c9a84c;
    border-radius: 2px;
    color: #0a0908;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.pquick-btn:hover { background: #e0c870; border-color: #e0c870; color: #0a0908; }
.pquick-btn-ghost {
    background: transparent;
    border-color: rgba(201,168,76,0.25);
    color: #8a7850;
}
.pquick-btn-ghost:hover { background: #1a1610; border-color: rgba(201,168,76,0.4); color: #c9a84c; }

/* --- Section blocks --- */
.profile-block { margin-bottom: 2.5rem; }
.profile-block-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a4030;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #1e1c18;
    margin-bottom: 0;
}
.profile-block-more { margin-top: 0.8rem; }
.profile-block-more a { font-size: 0.78rem; color: #7a7060; }
.profile-block-more a:hover { color: #c9a84c; }

/* --- Prompt list --- */
.plist { border: 1px solid #1e1c18; border-top: none; border-radius: 0 0 3px 3px; overflow: hidden; }
.plist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    background: #0e0c0a;
    border-bottom: 1px solid #1a1810;
    gap: 1rem;
    transition: background var(--transition);
}
.plist-item:last-child { border-bottom: none; }
.plist-item:hover { background: #131008; }
.plist-info { flex: 1; min-width: 0; }
.plist-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #c8c0a8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}
.plist-meta { font-size: 0.72rem; color: #4a4030; }
.plist-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5a5040;
    border: 1px solid #2a2818;
    padding: 0.05rem 0.35rem;
    border-radius: 2px;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.plist-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.plist-action {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6a6050;
    padding: 0.3rem 0.6rem;
    border: 1px solid #2a2818;
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
    text-decoration: none;
}
.plist-action:hover { color: #c9a84c; border-color: rgba(201,168,76,0.3); }
.plist-action-danger:hover { color: #ef4444; border-color: rgba(239,68,68,0.3); }

/* Empty state */
.profile-empty {
    padding: 3rem 0;
    color: #4a4030;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* --- Profile forms --- */
.pform { max-width: 560px; }
.pform-section-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 1.2rem;
}
.pform-divider { border: none; border-top: 1px solid #1e1c18; margin: 2rem 0 1.5rem; }
.pform-field { margin-bottom: 1.4rem; }
.pform-field label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a7850;
    margin-bottom: 0.5rem;
}
.pform-input {
    width: 100%;
    padding: 0.65rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #2a2818;
    border-radius: 0;
    color: #c8c0a8;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
    font-family: inherit;
}
.pform-input:focus { border-bottom-color: #c9a84c; }
.pform-input::placeholder { color: #3a3020; }
.pform-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.pform-textarea-lg { min-height: 200px; }
.pform-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a5040'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.4rem center; padding-right: 1.4rem; }
.pform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.pform-hint { font-size: 0.68rem; color: #3a3020; margin-top: 0.3rem; }
.pform-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}
.pform-check input[type="checkbox"] { accent-color: #c9a84c; width: 14px; height: 14px; }
.pform-check label { font-size: 0.8rem; color: #6a6050; cursor: pointer; }
.pform-btn {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 1rem;
    background: transparent;
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 2px;
    color: #c9a84c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pform-btn:hover {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #0a0908;
}

/* Responsive */
@media (max-width: 900px) {
    .profile-layout { flex-direction: column; }
    .profile-sidenav { width: 100%; border-right: none; border-bottom: 1px solid #1e1c18; padding: 1rem 0; }
    .pnav-links { display: flex; flex-wrap: wrap; gap: 0; padding: 0 0.75rem; }
    .pnav-group-label { display: none; }
    .pnav-user { padding: 0 1.4rem 1rem; border-bottom: 1px solid #1e1c18; margin-bottom: 0.75rem; }
    .profile-main { padding: 2rem 1.5rem; }
    .pform-row { grid-template-columns: 1fr; }
}

/* ============================================================================
   AUTH PAGES (login / register) — OPHYR luxury split layout
   ============================================================================ */

.auth-page {
    display: flex;
    min-height: calc(100vh - 48px);
    background: #110f0b;
}

/* Columns */
.auth-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
}
.auth-col-login   { background: #131108; }
.auth-col-register{ background: #0f0d0a; }

.auth-inner {
    width: 100%;
    max-width: 380px;
}

/* Thin gold divider between columns */
.auth-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent 5%, rgba(201,168,76,0.25) 30%, rgba(201,168,76,0.25) 70%, transparent 95%);
    flex-shrink: 0;
}

/* Error */
.auth-alert {
    padding: 0.6rem 0.9rem;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 3px;
    color: #fca5a5;
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
}

/* Form fields */
.auth-form { width: 100%; }

.auth-field {
    margin-bottom: 1.4rem;
}
.auth-field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 0.5rem;
}

/* Filled cream input (login side) */
.auth-input-filled {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: #ede8cc;
    border: none;
    border-radius: 2px;
    color: #1a1610;
    font-size: 0.92rem;
    outline: none;
    transition: background var(--transition);
}
.auth-input-filled:focus { background: #f5f0d8; }
.auth-input-filled::placeholder { color: #9a9070; }

/* Underline-only input (register side) */
.auth-input-line {
    width: 100%;
    padding: 0.6rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    border-radius: 0;
    color: #d8d0b8;
    font-size: 0.92rem;
    outline: none;
    transition: border-color var(--transition);
}
.auth-input-line:focus { border-bottom-color: #c9a84c; }
.auth-input-line::placeholder { color: #4a4030; }

.auth-hint {
    font-size: 0.68rem;
    color: #5a5040;
    margin-top: 0.3rem;
    letter-spacing: 0.02em;
}

/* Two-column field row */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

/* Checkbox row */
.auth-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    gap: 1rem;
}
.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #8a8070;
    cursor: pointer;
    white-space: nowrap;
}
.auth-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #c9a84c;
    flex-shrink: 0;
}
.auth-link-caps {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a7060;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.auth-link-caps:hover { color: #c9a84c; }

/* Button */
.auth-btn {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    background: #1a1610;
    border: 1px solid #3a3020;
    border-radius: 2px;
    color: #c9a84c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    margin-top: 0.5rem;
    text-decoration: none;
}
.auth-btn:hover {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #0f0d0a;
}
.auth-btn-outline {
    background: transparent;
    border-color: rgba(201,168,76,0.4);
    color: #c9a84c;
}
.auth-btn-outline:hover {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #0f0d0a;
}

.auth-pflicht {
    font-size: 0.65rem;
    color: #4a4030;
    margin-top: 0.8rem;
    letter-spacing: 0.04em;
}

/* Right side: Benefits */
.auth-benefits { margin-bottom: 2.5rem; }

.auth-cta-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9a84c;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 0.5rem;
}
.auth-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.auth-benefit-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
    opacity: 0.7;
    filter: sepia(1) saturate(0.5) brightness(0.9);
}
.auth-benefit-list li p {
    font-size: 0.85rem;
    color: #8a8070;
    line-height: 1.6;
}

.auth-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a84c;
    border-top: 1px solid rgba(201,168,76,0.15);
    padding-top: 1.8rem;
    margin-bottom: 1.8rem;
    text-align: center;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
    .auth-page { flex-direction: column; }
    .auth-divider { width: 100%; height: 1px; background: linear-gradient(to right, transparent 5%, rgba(201,168,76,0.25) 30%, rgba(201,168,76,0.25) 70%, transparent 95%); }
    .auth-col { padding: 2.5rem 1.5rem; }
    .auth-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================================
   404
   ============================================================================ */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-size: 6rem; font-weight: 800; color: var(--text-3); margin-bottom: 0.5rem; letter-spacing: -0.05em; }
.error-page h2 { font-size: 1.2rem; margin-bottom: 0.8rem; font-weight: 500; }
.error-page p { color: var(--text-2); margin-bottom: 1.5rem; font-size: 0.88rem; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        background: var(--bg-panel);
        border-bottom: 1px solid var(--border);
        z-index: 99;
    }
    .nav-menu.active { display: flex; }
    .nav-link { height: auto; padding: 0.8rem 1.5rem; border-right: none; border-bottom: 1px solid var(--border); width: 100%; }
    .nav-link:first-child { border-left: none; }
    .nav-search { max-width: 100%; margin: 0; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
    .nav-auth { border-left: none; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
    .nav-stats { display: none; }
    .nav-container { flex-wrap: wrap; position: relative; }

    .hero h1 { font-size: 1.8rem; }
    .hero-search { flex-direction: column; border-radius: var(--radius-sm); }
    .hero-search .btn-primary { border-left: none; border-top: 1px solid var(--border-mid); }

    .prompt-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .prompt-detail { grid-template-columns: 1fr; }
    .prompt-detail-sidebar { order: -1; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .form-row { flex-direction: column; gap: 0; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .user-prompt-item { flex-direction: column; align-items: flex-start; }
    .user-prompt-actions { width: 100%; }
}
