@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root
{
    --ink:#18233b;
    --muted:#68748b;
    --primary:#6654d9;
    --primary-dark:#5140bd;
    --line:#e8eaf2;
    --bg:#fff;
    --tint:#f7f7fc;
    --green:#168b68;
    --shadow:0 16px 45px rgba(31,39,75,.08)
}
*
{
    box-sizing:border-box
}
html
{
    scroll-behavior:smooth
}
body
{
    margin:0;
    font-family:'DM Sans',sans-serif;
    color:var(--ink);
    background:var(--bg);
    line-height:1.6
}
a
{
    color:inherit;
    text-decoration:none
}
button,input,select
{
    font:inherit
}
.container
{
    width:min(1120px,calc(100% - 40px));
    margin:auto
}
.narrow
{
    max-width:760px
}
.site-header
{
    height:76px;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    background:#fff;
    position:sticky;
    top:0;
    z-index:10
}
.nav-row
{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px
}
.brand
{
    display:flex;
    align-items:center;
    gap:10px;
    font:800 21px Manrope,sans-serif;
    letter-spacing:-.7px
}
.brand-logo
{
    display:block;
    width:230px;
    height:58px;
    object-fit:contain
}
.brand-mark
{
    width:36px;
    height:36px;
    border-radius:12px;
    background:linear-gradient(135deg,#806bf0,#5142c2);
    display:grid;
    place-items:center;
    color:white;
    font-size:20px
}
.nav-links
{
    display:flex;
    align-items:center;
    gap:27px;
    color:#59647a;
    font-size:14px;
    font-weight:600
}
.nav-links a:hover,.nav-links a.active
{
    color:var(--primary)
}
.nav-actions
{
    display:flex;
    gap:10px;
    align-items:center
}
.mobile-toggle
{
    display:none;
    border:0;
    background:none;
    font-size:24px
}
.btn
{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:12px 19px;
    border-radius:10px;
    border:1px solid transparent;
    font-weight:700;
    font-size:14px;
    cursor:pointer;
    transition:.2s
}
.btn-primary
{
    background:var(--primary);
    color:#fff;
    box-shadow:0 7px 18px #6654d933
}
.btn-primary:hover
{
    background:var(--primary-dark);
    transform:translateY(-1px)
}
.btn-light,.btn-outline
{
    background:#fff;
    border-color:var(--line);
    color:var(--ink)
}
.btn-light:hover,.btn-outline:hover
{
    border-color:var(--primary);
    color:var(--primary)
}
.btn-white
{
    background:#fff;
    color:var(--primary)
}
.btn-full
{
    width:100%
}
.hero
{
    padding:78px 0 82px;
    background:radial-gradient(circle at 78% 40%,#eeeaff 0,transparent 30%),linear-gradient(110deg,#fbfaff,#f7f7ff)
}
.hero-grid
{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    align-items:center;
    gap:50px
}
.eyebrow
{
    font-size:11px;
    letter-spacing:2px;
    font-weight:800;
    color:var(--primary)
}
h1,h2,h3
{
    font-family:Manrope,sans-serif;
    line-height:1.18;
    letter-spacing:-1px;
    margin:0 0 14px
}
h1
{
    font-size:clamp(38px,5vw,59px);
    font-weight:800
}
.gradient-text
{
    background:linear-gradient(90deg,#6552d6,#9b73e9);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent
}
.hero-copy
{
    font-size:18px;
    color:var(--muted);
    max-width:530px;
    margin:0 0 27px
}
.hero-actions
{
    display:flex;
    gap:12px;
    flex-wrap:wrap
}
.hero-note
{
    font-size:12px;
    color:var(--muted);
    margin-top:25px
}
.dot
{
    display:inline-block;
    width:8px;
    height:8px;
    background:#28ad80;
    border-radius:50%;
    margin-right:7px
}
.hero-art
{
    height:350px;
    position:relative;
    display:grid;
    place-items:center
}
.art-orbit
{
    position:absolute;
    border:1px solid #d9d2ff;
    border-radius:50%;
    width:330px;
    height:330px
}
.orbit-two
{
    width:265px;
    height:265px;
    border-style:dashed
}
.art-card
{
    position:relative;
    background:linear-gradient(145deg,#6856d9,#4435a8);
    color:white;
    width:245px;
    padding:30px;
    border-radius:22px;
    box-shadow:0 25px 55px #4d3ab344;
    transform:rotate(-5deg)
}
.art-icon
{
    font-size:27px
}
.art-small
{
    font-size:9px;
    letter-spacing:2px;
    opacity:.75
}
.art-card h3
{
    font-size:29px;
    margin:14px 0
}
.art-line
{
    height:4px;
    width:48px;
    border-radius:5px;
    background:#c6baff
}
.art-card p
{
    font-size:12px;
    opacity:.8
}
.float-chip
{
    position:absolute;
    background:#fff;
    border:1px solid #eeeafc;
    border-radius:12px;
    padding:12px 16px;
    font-weight:700;
    font-size:12px;
    box-shadow:var(--shadow)
}
.chip-top
{
    top:38px;
    right:0
}
.chip-bottom
{
    bottom:38px;
    left:0
}
.section
{
    padding:76px 0
}
.section-tint
{
    background:var(--tint)
}
.section-heading
{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:27px
}
.section-heading h2
{
    font-size:32px;
    margin:7px 0
}
.section-heading p,.page-hero p
{
    color:var(--muted);
    margin:0
}
.text-link
{
    color:var(--primary);
    font-weight:700;
    font-size:13px
}
.category-grid
{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:17px
}
.category-card
{
    border:1px solid var(--line);
    border-radius:16px;
    padding:23px;
    background:white;
    transition:.2s
}
.category-card:hover
{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
    border-color:#d7d0ff
}
.category-icon
{
    width:46px;
    height:46px;
    border-radius:14px;
    display:grid;
    place-items:center;
    font-size:22px;
    margin-bottom:20px
}
.purple
{
    background:#efecff
}
.orange
{
    background:#fff1e7
}
.blue
{
    background:#e9f4ff
}
.green
{
    background:#e8f8f1
}
.category-card h3
{
    font-size:17px;
    margin-bottom:8px
}
.category-card p
{
    font-size:13px;
    color:var(--muted);
    min-height:42px;
    margin:0 0 17px
}
.card-arrow
{
    font-size:12px;
    color:var(--primary);
    font-weight:700
}
.cta-section
{
    padding:10px 0 78px
}
.cta-box
{
    border-radius:22px;
    padding:38px 45px;
    background:linear-gradient(110deg,#5d4bc9,#8266e4);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px
}
.cta-box h2
{
    font-size:29px;
    margin:8px 0
}
.cta-box p
{
    margin:0;
    color:#e5e0ff
}
.light-eyebrow
{
    color:#d9d0ff
}
.page-hero
{
    padding:57px 0;
    background:linear-gradient(110deg,#f7f5ff,#f7f9ff)
}
.page-hero h1
{
    font-size:43px;
    margin:9px 0
}
.filter-panel
{
    display:flex;
    gap:12px;
    padding:15px;
    background:#fafaff;
    border:1px solid var(--line);
    border-radius:14px;
    margin-bottom:20px
}
.search-wrap
{
    display:flex;
    align-items:center;
    gap:9px;
    flex:1;
    background:#fff;
    border:1px solid var(--line);
    border-radius:9px;
    padding:0 12px
}
.search-wrap span
{
    font-size:24px;
    color:#8a91a3
}
.search-wrap input
{
    border:0;
    outline:0;
    width:100%;
    padding:12px 0;
    background:transparent
}
.filter-panel select
{
    min-width:175px;
    border:1px solid var(--line);
    border-radius:9px;
    background:#fff;
    padding:0 12px;
    color:#59647a
}
.results-line
{
    display:flex;
    justify-content:space-between;
    gap:15px;
    font-size:13px;
    margin:20px 0;
    color:var(--ink)
}
.muted
{
    color:var(--muted)
}
.listing-grid
{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:17px
}
.listing-card
{
    border:1px solid var(--line);
    border-radius:15px;
    padding:21px;
    background:#fff;
    display:flex;
    flex-direction:column;
    min-height:235px;
    transition:.2s
}
.listing-card:hover
{
    box-shadow:var(--shadow);
    transform:translateY(-3px)
}
.listing-top
{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px
}
.tag
{
    font-size:10px;
    font-weight:800;
    letter-spacing:.5px;
    text-transform:uppercase;
    color:#6251c8;
    background:#f0edff;
    padding:6px 9px;
    border-radius:20px
}
.deadline
{
    font-size:11px;
    color:var(--muted)
}
.listing-deadline
{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin:0 0 14px;
    padding:10px 12px;
    border:1px solid #f0d79b;
    border-left:4px solid #d99a20;
    border-radius:9px;
    background:#fff8e8;
}
.deadline-label
{
    font-size:10px;
    line-height:1.3;
    font-weight:800;
    letter-spacing:.8px;
    color:#80530b;
}
.deadline-value
{
    font-size:14px;
    line-height:1.4;
    font-weight:750;
    color:#533708;
    overflow-wrap:anywhere;
}
.listing-card h3
{
    font-size:18px;
    margin-bottom:8px
}
.listing-card p
{
    font-size:13px;
    color:var(--muted);
    margin:0 0 15px
}
.listing-meta
{
    font-size:11px;
    color:#68748b;
    margin-top:auto;
    padding-top:12px;
    border-top:1px solid #f0f1f5
}
.listing-actions
{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:13px
}
.small-link
{
    font-size:12px;
    font-weight:700;
    color:var(--primary)
}
.save-btn
{
    border:1px solid var(--line);
    background:#fff;
    border-radius:8px;
    padding:7px 10px;
    cursor:pointer;
    font-size:12px;
    color:#58647a
}
.save-btn.saved
{
    background:#f0edff;
    color:var(--primary);
    border-color:#d9d1ff
}
.empty-state
{
    grid-column:1/-1;
    padding:35px;
    text-align:center;
    border:1px dashed #d8dbea;
    border-radius:14px;
    color:var(--muted)
}
.site-footer
{
    padding:35px 0;
    background:#171d32;
    color:#d5d9e7
}
.footer-row
{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px
}
.footer-brand
{
    color:white;
    background:#fff;
    border-radius:9px;
    padding:2px 8px
}
.footer-brand .brand-logo
{
    width:210px;
    height:52px
}
.footer-copy
{
    font-size:12px;
    color:#aeb5ca
}
.auth-page
{
    background:#f8f8fd;
    min-height:100vh
}
.auth-wrap
{
    padding:45px 20px 65px;
    display:grid;
    place-items:center
}
.auth-card
{
    width:min(470px,100%);
    background:#fff;
    padding:35px;
    border:1px solid var(--line);
    border-radius:19px;
    box-shadow:var(--shadow)
}
.back-link
{
    display:inline-block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:23px
}
.auth-card h1
{
    font-size:29px;
    margin:9px 0
}
.auth-card>p
{
    font-size:13px
}
.form-stack
{
    display:grid;
    gap:15px;
    margin-top:23px
}
.form-stack label
{
    font-size:12px;
    font-weight:700;
    color:#46516a;
    display:grid;
    gap:7px
}
.form-stack input,.form-stack select
{
    width:100%;
    border:1px solid #dfe2ec;
    border-radius:9px;
    padding:12px 13px;
    outline:none;
    background:#fff;
    color:var(--ink)
}
.form-stack input:focus,.form-stack select:focus
{
    border-color:var(--primary);
    box-shadow:0 0 0 3px #6654d91c
}
.form-message
{
    font-size:12px;
    margin:0;
    min-height:18px
}
.form-message.error
{
    color:#c33d4b
}
.form-message.success
{
    color:var(--green)
}
.auth-switch
{
    text-align:center;
    margin:22px 0 0;
    font-size:13px
}
.auth-switch a
{
    color:var(--primary);
    font-weight:700
}
.dashboard-grid
{
    display:grid;
    grid-template-columns:245px 1fr;
    gap:35px
}
.profile-panel
{
    border:1px solid var(--line);
    border-radius:15px;
    padding:22px;
    height:max-content;
    text-align:center
}
.avatar
{
    width:65px;
    height:65px;
    display:grid;
    place-items:center;
    border-radius:50%;
    margin:0 auto 13px;
    background:#eeeaff;
    color:var(--primary);
    font:800 25px Manrope
}
.profile-panel h2
{
    font-size:19px;
    margin-bottom:4px
}
.profile-panel p
{
    font-size:12px;
    overflow-wrap:anywhere
}
.pill
{
    display:inline-block;
    background:#f0edff;
    color:var(--primary);
    border-radius:20px;
    padding:5px 10px;
    font-size:11px;
    margin:7px 0 18px
}
.dashboard-main .section-heading
{
    align-items:center
}
.notice
{
    padding:15px;
    border-radius:10px;
    margin:20px 0;
    font-size:13px
}
.warning
{
    background:#fff7e8;
    color:#80550b;
    border:1px solid #f3dfb5
}
@media(max-width:850px)
{
    .nav-links
    {
        gap:14px
    }
    .category-grid
    {
        grid-template-columns:repeat(2,1fr)
    }
    .listing-grid
    {
        grid-template-columns:repeat(2,1fr)
    }
    .hero-grid
    {
        gap:15px
    }
    .hero-art
    {
        transform:scale(.9)
    }
}
@media(max-width:650px)
{
    .brand-logo
    {
        width:190px;
        height:50px
    }
    .site-header
    {
        height:67px
    }
    .nav-links
    {
        display:none;
        position:absolute;
        top:66px;
        left:0;
        right:0;
        background:#fff;
        padding:18px 22px;
        border-bottom:1px solid var(--line);
        flex-direction:column;
        align-items:flex-start
    }
    .nav-links.open
    {
        display:flex
    }
    .nav-actions .btn-light
    {
        display:none
    }
    .mobile-toggle
    {
        display:block
    }
    .hero
    {
        padding:55px 0
    }
    .hero-grid
    {
        grid-template-columns:1fr
    }
    .hero-art
    {
        height:290px;
        margin-top:10px
    }
    .art-orbit
    {
        width:270px;
        height:270px
    }
    .orbit-two
    {
        width:220px;
        height:220px
    }
    .art-card
    {
        transform:scale(.9) rotate(-5deg)
    }
    .chip-top
    {
        right:0
    }
    .chip-bottom
    {
        left:0
    }
    .section
    {
        padding:55px 0
    }
    .section-heading
    {
        align-items:flex-start;
        flex-direction:column
    }
    .section-heading h2
    {
        font-size:27px
    }
    .category-grid,.listing-grid
    {
        grid-template-columns:1fr
    }
    .category-card p
    {
        min-height:0
    }
    .cta-box
    {
        padding:28px;
        align-items:flex-start;
        flex-direction:column
    }
    .filter-panel
    {
        flex-direction:column
    }
    .filter-panel select
    {
        padding:12px
    }
    .results-line
    {
        flex-direction:column
    }
    .page-hero h1
    {
        font-size:36px
    }
    .dashboard-grid
    {
        grid-template-columns:1fr
    }
    .footer-row
    {
        align-items:flex-start;
        flex-direction:column
    }
    .auth-card
    {
        padding:25px
    }
}

.category-grid,
.listing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    max-width: 820px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.category-icon {
    margin: 0 0 8px;
}

.category-card h3,
.category-card p {
    min-height: 0;
    margin: 0;
}

.category-card .card-arrow {
    margin-top: 8px;
}

.listing-card {
    width: 100%;
    min-height: 0;
}

.listing-card p {
    max-width: 720px;
}

/* Student profile pictures */
.account-link{display:inline-flex;align-items:center;gap:9px;color:var(--primary);font-weight:700;font-size:14px}
.nav-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid #e5eaf4}
.nav-avatar-fallback{display:grid;place-items:center;background:#eeeaff;color:var(--primary);font-weight:800}
.avatar.has-photo{display:block;overflow:hidden;padding:0}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.profile-upload-label{margin:0 auto 8px;cursor:pointer}
.profile-photo-help{font-size:11px!important;color:var(--muted);margin:0 0 14px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.profile-upload-label.disabled{opacity:.6;pointer-events:none}
@media(max-width:700px){.account-link span:last-child{display:none}}

/* ===== Admin header ===== */
.admin-badge{font-size:11px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--primary);background:#f0edff;border-radius:20px;padding:6px 12px}

/* ===== Listing extras: apply tracker + comments ===== */
.listing-extras{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px;padding-top:13px;border-top:1px solid #f0f1f5}
.apply-btn,.comment-toggle{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 11px;cursor:pointer;font-size:12px;font-weight:600;color:#58647a;transition:.2s}
.apply-btn:hover,.comment-toggle:hover{border-color:var(--primary);color:var(--primary)}
.apply-btn.applied{background:#e8f8f1;border-color:#bfe6d6;color:var(--green)}
.comment-toggle[aria-expanded="true"]{background:#f0edff;border-color:#d9d1ff;color:var(--primary)}
.apply-btn:disabled,.comment-toggle:disabled{opacity:.6;cursor:default}
.comments-panel{margin-top:13px;padding:14px;background:var(--tint);border-radius:12px;border:1px solid var(--line)}
.comments-panel[hidden]{display:none}
.comment-list{display:grid;gap:12px;max-height:300px;overflow-y:auto;margin-bottom:12px}
.comment{display:flex;gap:10px;align-items:flex-start}
.comment-avatar{flex:none;width:32px;height:32px;border-radius:50%;background:#eeeaff;color:var(--primary);display:grid;place-items:center;font:800 13px Manrope,sans-serif}
.comment-body{min-width:0;flex:1}
.comment-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}
.comment-head time{color:var(--muted);font-size:11px}
.comment-delete{margin-left:auto;border:0;background:none;color:#c33d4b;font-size:11px;cursor:pointer;padding:0}
.comment-body p,.listing-card .comment-body p{margin:2px 0 0;font-size:13px;color:#3a4256;max-width:none;overflow-wrap:anywhere;white-space:pre-line}
.listing-card .comment-empty,.comment-empty{font-size:12px;color:var(--muted);margin:0 0 12px;text-align:center}
.comment-form textarea{width:100%;border:1px solid #dfe2ec;border-radius:9px;padding:10px 12px;font:inherit;font-size:13px;resize:vertical;background:#fff;color:var(--ink);outline:none}
.comment-form textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6654d91c}
.comment-form-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}
.comment-hint{font-size:11px;color:var(--muted)}
.comment-form .btn{padding:8px 18px}

/* ===== Success stories ===== */
.story-share{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px 30px;border-radius:18px;background:linear-gradient(110deg,#f5f2ff,#f4f8ff);border:1px solid #e3dffb}
.story-share[hidden]{display:none}
.story-share h2{font-size:24px;margin:6px 0}
.story-share p{margin:0;max-width:620px;font-size:14px}
.story-form{margin-top:4px;padding:28px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow);display:grid;gap:16px}
.story-form[hidden]{display:none}
.story-form label{font-size:12px;font-weight:700;color:#46516a;display:grid;gap:7px}
.story-form input:not([type=checkbox]),.story-form select,.story-form textarea{width:100%;border:1px solid #dfe2ec;border-radius:9px;padding:12px 13px;outline:none;background:#fff;color:var(--ink);font:inherit;font-weight:400}
.story-form textarea{resize:vertical;line-height:1.55}
.story-form input:focus,.story-form select:focus,.story-form textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6654d91c}
.story-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.check-row{display:flex!important;align-items:flex-start;gap:10px;font-weight:500!important;font-size:13px!important;color:var(--ink)!important}
.check-row input{width:auto!important;margin-top:4px}
.story-counter{margin:-8px 0 0;font-size:11px;color:var(--muted);text-align:right}
.story-form-actions{display:flex;gap:10px;flex-wrap:wrap}
.story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.story-card{border:1px solid var(--line);border-radius:16px;padding:22px;background:#fff;display:flex;flex-direction:column;transition:.2s}
.story-card:hover{box-shadow:var(--shadow);transform:translateY(-3px)}
.story-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.story-card h3{font-size:19px;margin-bottom:6px}
.story-for{font-size:12px;font-weight:700;color:var(--primary);margin:0 0 10px}
.story-body{font-size:14px;color:#46516a;white-space:pre-line;margin:0 0 18px;overflow-wrap:anywhere}
.story-foot{margin-top:auto;padding-top:14px;border-top:1px solid #f0f1f5;display:flex;justify-content:space-between;align-items:center;gap:10px}
.story-author{display:flex;gap:10px;align-items:center;min-width:0}
.story-author strong{display:block;font-size:13px}
.story-author small{color:var(--muted);font-size:11px}

/* ===== Dashboard additions ===== */
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:26px;max-width:820px}
.stat{border:1px solid var(--line);border-radius:14px;padding:16px;background:#fff;text-align:center}
.stat strong{display:block;font:800 26px Manrope,sans-serif;color:var(--primary)}
.stat span{font-size:12px;color:var(--muted)}
.app-list{display:grid;gap:12px;max-width:820px}
.app-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:#fff;flex-wrap:wrap}
.app-item h3{font-size:16px;margin:8px 0 4px}
.app-item p{margin:0;font-size:12px}
.app-actions{display:flex;gap:8px;align-items:center}
.app-actions .btn{padding:8px 14px;font-size:12px}
.status-chip{font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;padding:6px 9px;border-radius:20px}
.status-chip.pending{background:#fff4de;color:#9a6811}
.status-chip.approved{background:#e4f6ec;color:#16804b}
.status-chip.rejected{background:#fde8e8;color:#a32626}
.profile-edit{display:grid;gap:12px;text-align:left;margin-bottom:14px}
.profile-edit[hidden]{display:none}
.profile-edit label{font-size:11px;font-weight:700;color:#46516a;display:grid;gap:6px}
.profile-edit input,.profile-edit select{width:100%;border:1px solid #dfe2ec;border-radius:9px;padding:10px 12px;outline:none;background:#fff;color:var(--ink)}
.profile-edit input:focus,.profile-edit select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6654d91c}
.profile-remove-photo{margin:0 auto 8px;font-size:12px;padding:9px 14px}
.profile-remove-photo[hidden]{display:none}

@media(max-width:850px){.story-form-grid{grid-template-columns:1fr}.story-grid{grid-template-columns:1fr}}
@media(max-width:650px){.story-share{flex-direction:column;align-items:flex-start}.stat-row{grid-template-columns:repeat(3,1fr);gap:8px}.app-item{align-items:flex-start}.admin-badge{display:none}}

.status-chip.hidden{background:#fde8e8;color:#a32626}
.pill[hidden]{display:none}
.profile-panel #profile-email{margin-bottom:14px}

/* ===== Home page ===== */
.home-page .hero{padding:84px 0 88px}
.home-page .hero h1{margin-bottom:18px}
.hero-points{list-style:none;display:flex;gap:10px 22px;flex-wrap:wrap;padding:0;margin:26px 0 0;font-size:13px;font-weight:600;color:#46516a}
.hero-points li{display:flex;align-items:center;gap:4px}
.stats-band{background:#fff;border-bottom:1px solid var(--line)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:26px 0}
.stats-item{text-align:center;padding:6px 10px;border-right:1px solid var(--line)}
.stats-item:last-child{border-right:0}
.stats-item strong{display:block;font:800 30px Manrope,sans-serif;color:var(--primary);letter-spacing:-1px;line-height:1.2}
.stats-item span{font-size:12px;color:var(--muted);font-weight:600}
.home-page .section-heading p{max-width:640px}
.center-heading{justify-content:center;text-align:center}
.center-heading p{margin:0 auto}
.home-page .category-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}
.home-page .listing-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}
.home-page .story-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-page .category-card{padding:26px;border-radius:18px}
.home-page .category-card:hover .card-arrow{letter-spacing:.3px}
.home-page .listing-card,.home-page .story-card{border-radius:18px}
.home-page .listing-card p{max-width:none}
.steps-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;counter-reset:step}
.step-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 24px;transition:.2s}
.step-card:hover{box-shadow:var(--shadow);transform:translateY(-4px)}
.step-num{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#806bf0,#5142c2);color:#fff;font:800 18px Manrope,sans-serif;margin-bottom:18px;box-shadow:0 8px 18px #6654d933}
.step-card h3{font-size:17px;margin-bottom:8px}
.step-card p{font-size:13px;color:var(--muted);margin:0}
.home-page .empty-state{background:#fff}
@media(max-width:850px){
 .stats-grid{grid-template-columns:repeat(2,1fr);gap:18px 0}
 .stats-item:nth-child(2){border-right:0}
 .home-page .category-grid,.steps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-page .listing-grid,.home-page .story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 .home-page .hero{padding:52px 0 56px}
 .home-page .category-grid,.steps-grid,.home-page .listing-grid,.home-page .story-grid{grid-template-columns:1fr}
 .stats-item strong{font-size:25px}
}
.home-page .stats-item strong{font-size:28px}
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.feature-card{border:1px solid var(--line);border-radius:18px;padding:26px;background:#fff;transition:.2s}
.feature-card:hover{box-shadow:var(--shadow);transform:translateY(-4px);border-color:#d7d0ff}
.feature-card h3{font-size:17px;margin:14px 0 8px}
.feature-card p{font-size:13px;color:var(--muted);margin:0}
@media(max-width:850px){.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.feature-grid{grid-template-columns:1fr}}
