/* ─── Reset / Base ─────────────────────────────────────────── */

/* ─── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f6fa;
    color: #1a1a2e;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 .5rem; }

/* ─── Sidebar layout ────────────────────────────────────────── */
.fyc-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.fyc-sidebar {
    width: 230px;
    min-width: 230px;
    background: #fff;
    border-right: 1px solid #e8ecf0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    box-shadow: 2px 0 12px rgba(0,0,0,.04);
}

/* ── Brand / Logo ── */
.fyc-sidebar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1.4rem 1.25rem 1.2rem;
    border-bottom: 1px solid #f0f2f5;
    text-decoration: none;
}

.fyc-sidebar-brand:hover { text-decoration: none; opacity: .85; }

.fyc-logo-wordmark {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
}

.fyc-logo-icon {
    display: none;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* ── Nav ── */
.fyc-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem .75rem;
    flex: 1;
    gap: .15rem;
}

.fyc-nav-group-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: .9rem 0 .35rem .5rem;
    padding: 0;
}

.fyc-nav-group-label:first-child { margin-top: .25rem; }

.fyc-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .75rem;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: background .14s, color .14s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.fyc-nav-link:hover { background: #f1f5f9; color: #1a1a2e; text-decoration: none; }

.fyc-nav-link.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.fyc-nav-icon {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    color: #6b7280;       /* always grey, no colour */
    transition: color .14s;
}

.fyc-nav-link:hover   .fyc-nav-icon { color: #374151; }
.fyc-nav-link.active  .fyc-nav-icon { color: #2563eb; }

.fyc-nav-spacer { flex: 1; }

.fyc-nav-logout { color: #6b7280; margin-bottom: .5rem; }
.fyc-nav-logout:hover { background: #f9fafb; color: #374151; }
.fyc-nav-logout .fyc-nav-icon { color: #9ca3af; }
.fyc-nav-logout:hover .fyc-nav-icon { color: #374151; }

/* ── Release / version button ── */
.fyc-release-btn {
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;
    gap:            .15rem;
    padding:        .55rem .75rem;
    margin:         .35rem 0 .25rem;
    border-radius:  8px;
    border:         1px solid #e8ecf0;
    background:     #f8fafc;
    text-decoration: none;
    cursor:         pointer;
    transition:     background .14s, border-color .14s;
}

.fyc-release-btn:hover {
    background:     #eff6ff;
    border-color:   #bfdbfe;
    text-decoration: none;
}

.fyc-release-btn-company {
    font-size:   .78rem;
    font-weight: 700;
    color:       #374151;
    letter-spacing: .01em;
}

.fyc-release-btn-meta {
    font-size:  .72rem;
    color:      #94a3b8;
    display:    flex;
    align-items: center;
    gap:        .3rem;
}

.fyc-release-btn-dot { color: #d1d5db; }

/* ── Release notes page ── */
.fyc-release-list {
    display:        flex;
    flex-direction: column;
    gap:            1.5rem;
    max-width:      700px;
}

.fyc-release-entry {
    background:    #fff;
    border-radius: 12px;
    border:        1px solid #e8ecf0;
    padding:       1.5rem 1.75rem;
    box-shadow:    0 1px 4px rgba(0,0,0,.05);
}

.fyc-release-entry-header {
    display:     flex;
    align-items: center;
    gap:         .75rem;
    margin-bottom: 1rem;
    flex-wrap:   wrap;
}

.fyc-release-version {
    font-size:   1.05rem;
    font-weight: 700;
    color:       #1a1a2e;
}

.fyc-release-date {
    font-size: .85rem;
    color:     #64748b;
}

.fyc-release-badge {
    background:    #dcfce7;
    color:         #15803d;
    font-size:     .72rem;
    font-weight:   700;
    padding:       .15rem .55rem;
    border-radius: 99px;
    letter-spacing: .03em;
}

.fyc-release-notes {
    margin:      0;
    padding-left: 1.25rem;
    display:     flex;
    flex-direction: column;
    gap:         .4rem;
}

.fyc-release-notes li {
    font-size:   .9rem;
    color:       #374151;
    line-height: 1.5;
}

/* ── Content area (offset for sidebar) ── */
.fyc-content-area {
    margin-left: 230px;
    flex: 1;
    min-width: 0;
}

.fyc-main {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.fyc-hero {
    text-align: center;
    padding: 4rem 1rem 2.5rem;
}

.fyc-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: .75rem;
}

.fyc-hero p {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.fyc-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
    --fyc-input-radius: 8px;
    --fyc-input-border: 1px solid #d1d5db;
    --fyc-input-focus:  #2563eb;
    --fyc-input-shadow: 0 0 0 3px rgba(37,99,235,.13);
    --fyc-logo-letter:  #0D1B2A;
    --fyc-logo-accent:  #059669;
}

/* ─── Native input / select / textarea ──────────────────────── */
.fyc-input {
    display:       block;
    width:         100%;
    height:        38px;
    padding:       .45rem .75rem;
    font-size:     .9rem;
    font-family:   inherit;
    color:         #1a1a2e;
    background:    #fff;
    border:        var(--fyc-input-border);
    border-radius: var(--fyc-input-radius);
    line-height:   1.4;
    appearance:    auto;
    transition:    border-color .15s, box-shadow .15s;
}

.fyc-input:focus {
    outline:      none;
    border-color: var(--fyc-input-focus);
    box-shadow:   var(--fyc-input-shadow);
}

.fyc-input::placeholder { color: #9ca3af; }

.fyc-input:disabled {
    background: #f9fafb;
    opacity: .65;
    cursor: not-allowed;
}

/* textarea overrides */
.fyc-textarea,
textarea.fyc-input {
    height:     auto;
    min-height: 90px;
    resize:     vertical;
    line-height: 1.55;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.fyc-btn-primary,
.fyc-btn-secondary,
.fyc-btn-danger {
    display:        inline-block;
    padding:        .65rem 1.6rem;
    border-radius:  8px;
    border:         none;
    font-weight:    600;
    font-size:      1rem;
    font-family:    inherit;
    cursor:         pointer;
    transition:     opacity .15s, transform .1s;
    text-decoration: none;
    line-height:    1.4;
}

.fyc-btn-primary {
    background: #2563eb;
    color: #fff;
}

.fyc-btn-secondary {
    background: #e2e8f0;
    color: #1a1a2e;
}

.fyc-btn-danger {
    background: #dc2626;
    color: #fff;
}

.fyc-btn-primary:hover,
.fyc-btn-secondary:hover,
.fyc-btn-danger:hover {
    opacity: .88;
    transform: translateY(-1px);
    text-decoration: none;
}

.fyc-btn-primary:disabled,
.fyc-btn-secondary:disabled,
.fyc-btn-danger:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.fyc-btn-full { width: 100%; }

/* ─── Stats row ─────────────────────────────────────────────── */
.fyc-stats-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5rem 0;
}

.fyc-stat {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    min-width: 200px;
}

.fyc-stat-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: .5rem;
}

.fyc-stat span:last-child {
    color: #475569;
    font-size: .95rem;
}

/* ─── Topbar (user card) ────────────────────────────────────── */
.fyc-topbar {
    display:         flex;
    justify-content: flex-end;
    align-items:     center;
    gap:             .75rem;
    padding:         .75rem 2rem .25rem;
}

.fyc-topbar-messages {
    display:       flex;
    align-items:   center;
    gap:           .45rem;
    padding:       .4rem .85rem;
    border-radius: 99px;
    border:        1px solid #e5e7eb;
    background:    #fff;
    font-size:     .82rem;
    font-weight:   500;
    color:         #374151;
    cursor:        pointer;
    position:      relative;
    transition:    background .12s, border-color .12s;
    white-space:   nowrap;
}

.fyc-topbar-messages:hover {
    background:    #f3f4f6;
    border-color:  #d1d5db;
}

.fyc-topbar-messages i {
    font-size: 1rem;
    color:     #2563eb;
}

.fyc-topbar-messages-dot {
    width:         8px;
    height:        8px;
    border-radius: 50%;
    background:    #ef4444;
    flex-shrink:   0;
}

.fyc-user-card-wrapper {
    position: relative;
}

.fyc-user-card {
    display:      flex;
    align-items:  center;
    gap:          .65rem;
    padding:      .45rem .85rem .45rem .5rem;
    background:   #fff;
    border:       1px solid #e8ecf0;
    border-radius: 999px;
    box-shadow:   0 1px 6px rgba(0,0,0,.06);
    cursor:       pointer;
    transition:   box-shadow .15s, border-color .15s;
    /* reset button styles */
    font-family:  inherit;
    font-size:    inherit;
    color:        inherit;
    text-align:   left;
}

.fyc-user-card:hover {
    border-color: #c7d2fe;
    box-shadow:   0 2px 10px rgba(37,99,235,.12);
}

.fyc-user-chevron {
    font-size:   .75rem;
    color:       #94a3b8;
    margin-left: .1rem;
    transition:  transform .2s ease;
    flex-shrink: 0;
}

.fyc-user-chevron-open { transform: rotate(180deg); }

/* ── Dropdown panel ── */
.fyc-user-dropdown {
    position:      absolute;
    top:           calc(100% + .5rem);
    right:         0;
    min-width:     220px;
    background:    #fff;
    border:        1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow:    0 8px 24px rgba(0,0,0,.12);
    padding:       1rem 1.1rem .75rem;
    z-index:       1000;
    /* slide-down animation */
    overflow:      hidden;
    max-height:    0;
    opacity:       0;
    transform:     translateY(-6px);
    transition:    max-height .22s ease, opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.fyc-user-dropdown-open {
    max-height:    300px;
    opacity:       1;
    transform:     translateY(0);
    pointer-events: auto;
}

.fyc-user-dropdown-name {
    font-size:   .95rem;
    font-weight: 700;
    color:       #1a1a2e;
}

.fyc-user-dropdown-email {
    font-size:    .82rem;
    color:        #64748b;
    margin-top:   .15rem;
    word-break:   break-all;
}

.fyc-user-dropdown-role { margin-top: .5rem; }

.fyc-user-dropdown-divider {
    height:     1px;
    background: #f0f2f5;
    margin:     .75rem 0 .5rem;
}

.fyc-user-dropdown-link {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    font-size:   .875rem;
    color:       #374151;
    padding:     .3rem .1rem;
    transition:  color .12s;
    text-decoration: none;
}

.fyc-user-dropdown-link:hover { color: #2563eb; text-decoration: none; }

/* ── Language switcher in dropdown ── */
.fyc-user-dropdown-lang {
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         6px 14px;
    gap:             8px;
}
.fyc-lang-label {
    font-size:   12px;
    color:       #64748b;
    display:     flex;
    align-items: center;
    gap:         5px;
}
.fyc-lang-btns { display: flex; gap: 4px; }
.fyc-lang-btn {
    padding:       3px 5px;
    line-height:   0;
    border:        1px solid #cbd5e1;
    border-radius: 4px;
    background:    transparent;
    cursor:        pointer;
    transition:    background .15s, border-color .15s, box-shadow .15s;
}
.fyc-lang-btn img {
    display:       block;
    border-radius: 2px;
}
.fyc-lang-btn:hover { background: #f1f5f9; }
.fyc-lang-btn-active {
    border-color: #1a56db;
    box-shadow:   0 0 0 2px #bfdbfe;
    background:   #eff6ff;
}

.fyc-user-avatar {
    width:           34px;
    height:          34px;
    border-radius:   50%;
    background:      #2563eb;
    color:           #fff;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       .8rem;
    font-weight:     700;
    flex-shrink:     0;
    letter-spacing:  .02em;
}

.fyc-user-info {
    display:        flex;
    flex-direction: column;
    gap:            .05rem;
    line-height:    1.2;
}

.fyc-user-name {
    font-size:   .875rem;
    font-weight: 600;
    color:       #1a1a2e;
    white-space: nowrap;
}

.fyc-user-role {
    font-size:  .72rem;
    color:      #64748b;
    white-space: nowrap;
}

/* ─── Page header ───────────────────────────────────────────── */
.fyc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.fyc-page-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

/* ─── Filter bar ────────────────────────────────────────────── */
.fyc-filter-bar {
    display:       flex;
    gap:           .65rem;
    align-items:   center;
    flex-wrap:     wrap;
    background:    #fff;
    padding:       .85rem 1.1rem;
    border-radius: 12px 12px 0 0;
    box-shadow:    0 1px 4px rgba(0,0,0,.07);
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
}

/* only round all corners when the advanced panel is NOT showing */
.fyc-filter-bar:last-child {
    border-radius:  12px;
    border-bottom:  none;
    margin-bottom:  1.5rem;
}

.fyc-filter-bar > select,
.fyc-filter-bar > input { flex: 1 1 160px; }

.fyc-filter-search { flex: 2 1 200px !important; }

/* Advanced toggle button */
.fyc-btn-icon {
    position:        relative;
    width:           38px;
    min-width:       38px;
    height:          38px;
    border:          1px solid #e2e8f0;
    border-radius:   8px;
    background:      #f8fafc;
    color:           #64748b;
    cursor:          pointer;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       1rem;
    transition:      background .15s, color .15s, border-color .15s;
    flex:            0 0 38px !important;
}
.fyc-btn-icon:hover   { background: #e2e8f0; color: #1e293b; }
.fyc-btn-icon-active  { background: #dbeafe; color: #2563eb; border-color: #93c5fd; }

.fyc-filter-badge {
    position:    absolute;
    top:         -5px;
    right:       -5px;
    background:  #2563eb;
    color:       #fff;
    font-size:   .6rem;
    font-weight: 700;
    width:       16px;
    height:      16px;
    border-radius: 50%;
    display:     flex;
    align-items: center;
    justify-content: center;
}

/* ── Advanced filter panel ── */
.fyc-filter-advanced {
    background:    #fff;
    border-radius: 0 0 12px 12px;
    box-shadow:    0 4px 12px rgba(0,0,0,.07);
    padding:       1.1rem 1.25rem 1rem;
    margin-bottom: 1.5rem;
    border-top:    none;
}

.fyc-filter-advanced-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap:                   .85rem 1rem;
    margin-bottom:         1rem;
}

.fyc-filter-group             { display: flex; flex-direction: column; gap: .3rem; }
.fyc-filter-group-full        { grid-column: 1 / -1; }

.fyc-radius-slider {
    -webkit-appearance: none;
    appearance:         none;
    width:              100%;
    height:             4px;
    border-radius:      2px;
    background:         #e2e8f0;
    outline:            none;
    cursor:             pointer;
}
.fyc-radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance:         none;
    width:              18px;
    height:             18px;
    border-radius:      50%;
    background:         #1d4ed8;
    cursor:             pointer;
    box-shadow:         0 1px 3px rgba(0,0,0,.2);
    transition:         background .15s;
}
.fyc-radius-slider::-webkit-slider-thumb:hover { background: #1e40af; }
.fyc-radius-slider::-moz-range-thumb {
    width:         18px;
    height:        18px;
    border:        none;
    border-radius: 50%;
    background:    #1d4ed8;
    cursor:        pointer;
}
.fyc-radius-hint {
    font-size:   .72rem;
    color:       #94a3b8;
    margin-top:  .1rem;
}

.fyc-filter-label {
    font-size:      .72rem;
    font-weight:    700;
    color:          #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fyc-filter-advanced-actions {
    display:         flex;
    justify-content: flex-end;
    gap:             .6rem;
    padding-top:     .75rem;
    border-top:      1px solid #f1f5f9;
}

/* Syncfusion input inside filter matches fyc-input height */
.fyc-sf-input.e-control-wrapper,
.fyc-sf-input .e-numerictextbox {
    height: 38px !important;
    font-size: .88rem !important;
}

.fyc-btn-ghost {
    background:    transparent;
    border:        1px solid #e2e8f0;
    border-radius: 8px;
    padding:       .45rem .9rem;
    font-size:     .85rem;
    color:         #64748b;
    cursor:        pointer;
    display:       flex;
    align-items:   center;
    gap:           .35rem;
    transition:    background .15s;
}
.fyc-btn-ghost:hover { background: #f1f5f9; color: #1e293b; }

/* ─── Posts grid ────────────────────────────────────────────── */
.fyc-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* ── Infinite scroll ─────────────────────────────────────────── */
.fyc-feed-sentinel { height: 1px; }   /* invisible — just a scroll trigger */

.fyc-feed-loading-more {
    display:         flex;
    justify-content: center;
    align-items:     center;
    padding:         2rem 0 1rem;
}

.fyc-feed-spinner {
    width:            32px;
    height:           32px;
    border:           3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius:    50%;
    animation:        fyc-spin .7s linear infinite;
}

.fyc-feed-all-loaded {
    text-align:    center;
    color:         #94a3b8;
    font-size:     .82rem;
    padding:       1.5rem 0 .75rem;
    letter-spacing: .03em;
}
.fyc-feed-all-loaded::before,
.fyc-feed-all-loaded::after { content: ' — '; }

/* dark mode */
[data-theme="dark"] .fyc-feed-spinner { border-color: #334155; border-top-color: #60a5fa; }

/* ─── Post card ─────────────────────────────────────────────── */
.fyc-post-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: box-shadow .15s, transform .15s;
}

.fyc-post-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.fyc-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.fyc-post-meta {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .82rem;
    color: #64748b;
}

.fyc-badge {
    background: #e0edff;
    color: #2563eb;
    border-radius: 6px;
    padding: .15rem .6rem;
    font-size: .78rem;
    font-weight: 600;
}

.fyc-badge.contract { background: #dcfce7; color: #15803d; }
.fyc-badge.status-active { background: #dcfce7; color: #15803d; }
.fyc-badge.status-closed { background: #fee2e2; color: #b91c1c; }
.fyc-badge.status-draft  { background: #fef9c3; color: #854d0e; }

.fyc-post-desc {
    color: #475569;
    font-size: .9rem;
    line-height: 1.5;
    flex: 1;
}

.fyc-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5rem;
    font-size: .82rem;
    color: #94a3b8;
}

/* ─── Pagination ────────────────────────────────────────────── */
.fyc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.fyc-pagination span { font-weight: 600; color: #475569; }

/* ─── Loading / empty states ────────────────────────────────── */
.fyc-loading,
.fyc-empty {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    font-size: 1.05rem;
}

/* ─── Auth forms ────────────────────────────────────────────── */
.fyc-auth-logo-link {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-decoration: none;
}
.fyc-auth-logo-link:hover { opacity: .85; }

.fyc-auth-logo {
    height: 56px;
    width: auto;
}

.fyc-auth-container {
    max-width: 440px;
    margin: 3rem auto;
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.09);
}

.fyc-auth-container h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.fyc-auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    color: #64748b;
    font-size: .9rem;
}

.fyc-form-group {
    margin-bottom: 1.1rem;
}

.fyc-form-group label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: .35rem;
    color: #374151;
}

/* .fyc-select kept as alias — use .fyc-input on new elements */
.fyc-select {
    display:       block;
    width:         100%;
    height:        38px;
    padding:       .45rem .75rem;
    font-size:     .9rem;
    font-family:   inherit;
    border:        var(--fyc-input-border);
    border-radius: var(--fyc-input-radius);
    background:    #fff;
    color:         #1a1a2e;
    appearance:    auto;
    cursor:        pointer;
    line-height:   1.4;
    transition:    border-color .15s, box-shadow .15s;
}

.fyc-select:focus {
    outline:      none;
    border-color: var(--fyc-input-focus);
    box-shadow:   var(--fyc-input-shadow);
}

/* ─── Multi-select dropdown (checkbox mode) ─────────────────── */
.fyc-multiselect {
    position: relative;
}

/* hide the default triangle marker */
.fyc-multiselect summary { list-style: none; }
.fyc-multiselect summary::-webkit-details-marker { display: none; }

.fyc-multiselect-trigger {
    display:        flex;
    align-items:    center;
    justify-content: space-between;
    width:          100%;
    height:         38px;
    padding:        .45rem .75rem;
    font-size:      .9rem;
    font-family:    inherit;
    color:          #1a1a2e;
    background:     #fff;
    border:         var(--fyc-input-border);
    border-radius:  var(--fyc-input-radius);
    cursor:         pointer;
    user-select:    none;
    white-space:    nowrap;
    overflow:       hidden;
    text-overflow:  ellipsis;
    transition:     border-color .15s, box-shadow .15s;
}

/* chevron via pseudo-element */
.fyc-multiselect-trigger::after {
    content:      "▾";
    font-size:    .75rem;
    color:        #6b7280;
    flex-shrink:  0;
    margin-left:  .5rem;
    transition:   transform .15s;
}

.fyc-multiselect[open] .fyc-multiselect-trigger {
    border-color: var(--fyc-input-focus);
    box-shadow:   var(--fyc-input-shadow);
    border-radius: var(--fyc-input-radius) var(--fyc-input-radius) 0 0;
}

.fyc-multiselect[open] .fyc-multiselect-trigger::after {
    transform: rotate(180deg);
}

.fyc-multiselect-panel {
    position:      absolute;
    top:           100%;
    left:          0;
    right:         0;
    z-index:       500;
    background:    #fff;
    border:        var(--fyc-input-border);
    border-top:    none;
    border-radius: 0 0 var(--fyc-input-radius) var(--fyc-input-radius);
    box-shadow:    0 6px 18px rgba(0,0,0,.10);
    max-height:    220px;
    overflow-y:    auto;
    padding:       .35rem 0;
}

.fyc-multiselect-option {
    display:     flex;
    align-items: center;
    gap:         .6rem;
    padding:     .45rem .85rem;
    font-size:   .875rem;
    color:       #374151;
    cursor:      pointer;
    transition:  background .1s;
}

.fyc-multiselect-option:hover { background: #f1f5f9; }

/* Level 1 — top group header e.g. "Fut 5" */
.fyc-ms-group-header {
    padding:        .45rem .85rem .25rem;
    font-size:      .7rem;
    font-weight:    700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color:          #2563eb;
    background:     #f0f6ff;
    border-top:     1px solid #e2eaf8;
    user-select:    none;
}

.fyc-ms-group-header:first-child { border-top: none; }

/* Level 2 — sub-category selectable label e.g. "Petizes" */
.fyc-ms-subgroup-label {
    display:     flex;
    align-items: center;
    gap:         .6rem;
    padding:     .4rem .85rem .35rem 1.25rem;
    font-size:   .83rem;
    font-weight: 600;
    color:       #1a1a2e;
    background:  #f8fafc;
    cursor:      pointer;
    transition:  background .1s;
}

.fyc-ms-subgroup-label:hover { background: #eff6ff; }

.fyc-ms-subgroup-label input[type="checkbox"] {
    width:        15px;
    height:       15px;
    accent-color: #2563eb;
    cursor:       pointer;
    flex-shrink:  0;
}

/* Level 3 — individual division items e.g. "Sub 6" */
.fyc-ms-division { padding-left: 2.75rem; }

.fyc-multiselect-option input[type="checkbox"] {
    width:        15px;
    height:       15px;
    accent-color: #2563eb;
    cursor:       pointer;
    flex-shrink:  0;
}

/* ─── Alerts ────────────────────────────────────────────────── */
.fyc-alert {
    padding: .75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.fyc-alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.fyc-alert-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.fyc-alert-warning {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.fyc-alert-warning i {
    flex-shrink: 0;
    margin-top: .1rem;
}

/* ─── Profile page ──────────────────────────────────────────── */
.fyc-profile-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    max-width: 700px;
    margin: 0 auto;
}

.fyc-profile-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* ─── Utility ───────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.text-muted { color: #94a3b8; }

/* ─── Blazor error overlay ──────────────────────────────────── */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after { content: "An error has occurred."; }

/* ─── Loading spinner ───────────────────────────────────────── */
/* ── Boot / WASM loading screen ─────────────────────────────── */
.fyc-boot {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    height:          100vh;
    gap:             1.25rem;
    background:      #f8fafc;
}

.fyc-boot-brand {
    font-size:   1.6rem;
    font-weight: 800;
    color:       #1e293b;
    letter-spacing: -.5px;
}

.fyc-boot-ring {
    position: relative;
    width:    128px;
    height:   128px;
}

.loading-progress {
    display: block;
    width:   128px;
    height:  128px;
}

.loading-progress circle {
    fill:             none;
    stroke:           #e2e8f0;
    stroke-width:     .55rem;
    transform-origin: 50% 50%;
    transform:        rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke:            #2563eb;
    stroke-dasharray:  calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%;
    transition:        stroke-dasharray .6s cubic-bezier(.4, 0, .2, 1);
}

/* Percentage text centred inside the ring */
.loading-progress-text {
    position:   absolute;
    inset:      0;
    display:    flex;
    align-items:     center;
    justify-content: center;
    font-size:   1.05rem;
    font-weight: 700;
    color:       #1e293b;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "0%");
}

.fyc-boot-label {
    font-size:  .85rem;
    color:      #94a3b8;
    font-weight: 500;
}

/* ─── Featured section (Home) ───────────────────────────────── */
.fyc-featured-section {
    margin-top: 2rem;
}

.fyc-featured-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-bottom:   1rem;
    gap:             1rem;
}

.fyc-featured-title {
    font-size:   1.15rem;
    font-weight: 700;
    color:       #0f172a;
    margin:      0 0 .15rem;
}

.fyc-featured-subtitle {
    font-size: .82rem;
    color:     #94a3b8;
    margin:    0;
}

/* ─── Highlighted post card ─────────────────────────────────── */
.fyc-post-card-highlighted {
    position: relative;
    overflow: hidden;
}

/* Left-side accent stripe */
.fyc-post-rank-stripe {
    position: absolute;
    left:     0;
    top:      0;
    bottom:   0;
    width:    4px;
    border-radius: 4px 0 0 4px;
}
.fyc-post-rank-stripe-gold     { background: #d97706; }
.fyc-post-rank-stripe-platinum { background: #0891b2; }
.fyc-post-rank-stripe-diamond  { background: #7c3aed; }

/* Very subtle background tint */
.fyc-post-card-highlighted-gold     { background: linear-gradient(135deg, #fffbeb 0%, #fff 60%); }
.fyc-post-card-highlighted-platinum { background: linear-gradient(135deg, #ecfeff 0%, #fff 60%); }
.fyc-post-card-highlighted-diamond  { background: linear-gradient(135deg, #f5f3ff 0%, #fff 60%); }

/* Title row */
.fyc-post-title-row { }

/* Small rank badge on the card */
.fyc-post-rank-badge {
    display:       inline-flex;
    align-items:   center;
    font-size:     .65rem;
    font-weight:   700;
    letter-spacing:.4px;
    text-transform: uppercase;
    padding:       2px 7px;
    border-radius: 999px;
    white-space:   nowrap;
    flex-shrink:   0;
    margin-top:    2px;
}
.fyc-post-rank-badge-gold     { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.fyc-post-rank-badge-platinum { background: #cffafe; color: #0e7490; border: 1px solid #67e8f9; }
.fyc-post-rank-badge-diamond  { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }

/* ─── Store ──────────────────────────────────────────────────── */
.fyc-store-notice {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    margin-bottom: 1.5rem;
}

/* ── Dashboard ────────────────────────────────────────────────────── */
.fyc-dash-kpi-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap:                   1.1rem;
    margin-bottom:         2rem;
}

.fyc-dash-kpi-card {
    background:    #fff;
    border:        1px solid #e2e8f0;
    border-radius: 14px;
    padding:       1.4rem 1.5rem;
    display:       flex;
    gap:           1.1rem;
    align-items:   flex-start;
    box-shadow:    0 1px 4px rgba(0,0,0,.05);
    transition:    box-shadow .15s, transform .15s;
}
.fyc-dash-kpi-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.09);
    transform:  translateY(-1px);
}

.fyc-dash-kpi-icon-wrap {
    width:           44px;
    height:          44px;
    min-width:       44px;
    border-radius:   10px;
    background:      #eff6ff;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       1.45rem;
}

.fyc-dash-kpi-body    { flex: 1; min-width: 0; }
.fyc-dash-kpi-label   { font-size: .72rem; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.fyc-dash-kpi-value   { font-size: 2.1rem; font-weight: 800; line-height: 1; color: #0f172a; margin-bottom: .4rem; }
.fyc-dash-kpi-sub     { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .79rem; }
.fyc-dash-kpi-last    { color: #94a3b8; }
.fyc-dash-kpi-sub-neutral { color: #94a3b8; font-size: .79rem; }

/* Trend badges */
.fyc-trend-badge  { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.fyc-trend-up     { background: #dcfce7; color: #15803d; }
.fyc-trend-down   { background: #fee2e2; color: #dc2626; }
.fyc-trend-same   { background: #f1f5f9; color: #64748b; }

/* ── Dashboard section card (breakdown + future panels) ── */
.fyc-dash-section-card {
    background:    #fff;
    border:        1px solid #e2e8f0;
    border-radius: 14px;
    overflow:      hidden;
    box-shadow:    0 1px 4px rgba(0,0,0,.05);
    margin-bottom: 2rem;
}

.fyc-dash-section-header {
    display:         flex;
    align-items:     flex-start;
    justify-content: space-between;
    padding:         1.25rem 1.5rem 1rem;
    border-bottom:   1px solid #f1f5f9;
}

.fyc-dash-section-title {
    font-size:   1rem;
    font-weight: 700;
    color:       #0f172a;
    margin:      0 0 .2rem;
}

.fyc-dash-section-sub {
    font-size: .82rem;
    color:     #64748b;
    margin:    0;
}

/* Post breakdown table */
.fyc-dash-breakdown-table  { width: 100%; }
.fyc-dash-breakdown-header,
.fyc-dash-breakdown-row    {
    display:               grid;
    grid-template-columns: 1fr 100px 100px 90px;
    padding:               .8rem 1.5rem;
    align-items:           center;
    gap:                   .75rem;
}
.fyc-dash-breakdown-header {
    background:     #f8fafc;
    font-size:      .72rem;
    font-weight:    700;
    color:          #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom:  1px solid #e2e8f0;
}
.fyc-dash-breakdown-row    { border-bottom: 1px solid #f8fafc; font-size: .88rem; transition: background .1s; }
.fyc-dash-breakdown-row:hover { background: #f8fafc; }
.fyc-dash-breakdown-row:last-child { border-bottom: none; }
.fyc-dash-breakdown-title a { color: #2563eb; text-decoration: none; font-weight: 500; }
.fyc-dash-breakdown-title a:hover { text-decoration: underline; }
.fyc-dash-breakdown-num  { font-weight: 700; color: #0f172a; }
.fyc-text-muted { color: #94a3b8; font-weight: 400 !important; }

.fyc-dash-empty {
    padding:    2.5rem 1.5rem;
    text-align: center;
    color:      #94a3b8;
    font-size:  .9rem;
}

/* ── Store ────────────────────────────────────────────────────────── */
.fyc-store-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap:                   1.25rem;
    padding-bottom:        2rem;
}

.fyc-store-card {
    position:       relative;
    background:     #fff;
    border:         2px solid #e2e8f0;
    border-radius:  16px;
    padding:        1.5rem 1.25rem 1.25rem;
    display:        flex;
    flex-direction: column;
    gap:            1rem;
    overflow:       hidden;
    opacity:        .82;
    transition:     box-shadow .2s, opacity .2s;
}
.fyc-store-card:hover { opacity: .95; }

.fyc-store-card-owned {
    opacity:    1 !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}

/* Rank accent bar */
.fyc-store-card-bronze   { border-top: 4px solid #b87333; }
.fyc-store-card-silver   { border-top: 4px solid #94a3b8; }
.fyc-store-card-gold     { border-top: 4px solid #d97706; }
.fyc-store-card-platinum { border-top: 4px solid #0891b2; }
.fyc-store-card-diamond  { border-top: 4px solid #7c3aed; }

/* Coming-soon corner ribbon */
.fyc-store-ribbon {
    position:        absolute;
    top:             14px;
    right:           -26px;
    background:      #64748b;
    color:           #fff;
    font-size:       .6rem;
    font-weight:     700;
    letter-spacing:  .6px;
    text-transform:  uppercase;
    padding:         3px 32px;
    transform:       rotate(45deg);
}

.fyc-store-card-top {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             .4rem;
    text-align:      center;
}

.fyc-store-rank-icon { font-size: 2.6rem; line-height: 1; }

.fyc-store-rank-name {
    font-size:   1.15rem;
    font-weight: 800;
    letter-spacing: -.3px;
}
.fyc-store-rank-name-bronze   { color: #b87333; }
.fyc-store-rank-name-silver   { color: #7c8fa6; }
.fyc-store-rank-name-gold     { color: #d97706; }
.fyc-store-rank-name-platinum { color: #0891b2; }
.fyc-store-rank-name-diamond  { color: #7c3aed; }

.fyc-store-owned-badge,
.fyc-store-included-badge {
    display:       inline-flex;
    align-items:   center;
    gap:           .3rem;
    border-radius: 999px;
    font-size:     .75rem;
    font-weight:   700;
    padding:       2px 10px;
}
.fyc-store-owned-badge    { background: #f0fdf4; border: 1px solid #86efac; color: #16a34a; }
.fyc-store-included-badge { background: #f8fafc; border: 1px solid #cbd5e1; color: #64748b; }

/* Dim cards for lower/included tiers */
.fyc-store-card-included { opacity: .65; }

.fyc-store-btn-included { opacity: .6; cursor: default; }

/* Spinner inside a button */
.fyc-spinner-sm {
    display:       inline-block;
    width:         14px;
    height:        14px;
    border:        2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation:     fyc-spin .6s linear infinite;
    margin-right:  .3rem;
    vertical-align: middle;
}
@keyframes fyc-spin { to { transform: rotate(360deg); } }

/* ── Payment result pages ──────────────────────────────────────── */
.fyc-payment-result {
    max-width:       480px;
    margin:          4rem auto;
    text-align:      center;
    background:      #fff;
    border:          1px solid #e2e8f0;
    border-radius:   18px;
    padding:         2.5rem 2rem;
    box-shadow:      0 4px 24px rgba(0,0,0,.07);
}

.fyc-payment-result-icon {
    font-size:     3.5rem;
    line-height:   1;
    margin-bottom: 1rem;
}
.fyc-payment-result-icon-success { color: #16a34a; }
.fyc-payment-result-icon-cancel  { color: #dc2626; }

.fyc-payment-result-title {
    font-size:     1.5rem;
    font-weight:   800;
    color:         #0f172a;
    margin-bottom: .6rem;
}

.fyc-payment-result-body {
    color:         #64748b;
    font-size:     .95rem;
    line-height:   1.6;
    margin-bottom: 1.75rem;
}

.fyc-payment-result-actions {
    display:         flex;
    gap:             .75rem;
    justify-content: center;
    flex-wrap:       wrap;
}

.fyc-store-price-block {
    text-align: center;
}
.fyc-store-price-row {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             .5rem;
    margin-bottom:   .15rem;
}
.fyc-store-price-was {
    font-size:       1rem;
    color:           #94a3b8;
    text-decoration: line-through;
    font-weight:     500;
}
.fyc-store-discount-badge {
    font-size:    .72rem;
    font-weight:  700;
    color:        #15803d;
    background:   #dcfce7;
    border:       1px solid #86efac;
    border-radius: 999px;
    padding:      2px 8px;
}
.fyc-store-price {
    display:     block;
    font-size:   1.7rem;
    font-weight: 800;
    color:       #0f172a;
    line-height: 1.1;
}
.fyc-store-price-sub {
    font-size:  .78rem;
    color:      #94a3b8;
    font-weight: 500;
}

.fyc-store-perks {
    list-style:     none;
    padding:        0;
    margin:         0;
    display:        flex;
    flex-direction: column;
    gap:            .45rem;
    flex:           1;
    border-top:     1px solid #f1f5f9;
    padding-top:    .75rem;
}
.fyc-store-perk {
    display:     flex;
    align-items: center;
    gap:         .45rem;
    font-size:   .83rem;
    color:       #374151;
}
.fyc-store-perk i { color: #22c55e; font-size: .9rem; flex-shrink: 0; }

.fyc-store-action { margin-top: auto; }

.fyc-store-btn {
    width:       100%;
    justify-content: center;
    opacity:     1;
}
.fyc-store-btn-soon {
    cursor:      not-allowed !important;
    opacity:     .55;
}

/* ─── Validation ────────────────────────────────────────────── */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid red; }
.validation-message { color: red; font-size: .85rem; }

/* ─── Post card wrapper ─────────────────────────────────────── */
.fyc-post-card-wrapper {
    display:        flex;
    flex-direction: column;
    background:     #fff;
    border-radius:  12px;
    box-shadow:     0 2px 8px rgba(0,0,0,.07);
    overflow:       hidden;
    transition:     box-shadow .15s, transform .15s;
}

.fyc-post-card-wrapper:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform:  translateY(-2px);
}

/* ─── Post card link wrapper ────────────────────────────────── */
.fyc-post-card-link {
    text-decoration: none;
    color:           inherit;
    display:         flex;
    flex-direction:  column;
    flex:            1;
}

.fyc-post-card-link:hover { text-decoration: none; }

/* Remove shadow/radius from inner card — wrapper owns them */
.fyc-post-card-wrapper .fyc-post-card {
    box-shadow:    none;
    border-radius: 0;
    flex:          1;
    display:       flex;
    flex-direction: column;
}

/* Card header / body inside wrapper */
.fyc-post-card-header {
    padding:       .5rem .75rem .25rem;
}

.fyc-post-card-top-badges {
    display:     flex;
    align-items: center;
    flex-wrap:   wrap;
    gap:         .35rem;
    margin-bottom: .35rem;
}

.fyc-post-card-body {
    padding: 0 .75rem .5rem;
    flex:    1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ─── Post card action bar ───────────────────────────────────── */
.fyc-post-card-actions {
    display:     flex;
    align-items: center;
    padding:     .5rem 1rem;
    border-top:  1px solid #f0f2f5;
    gap:         .5rem;
}

.fyc-post-card-actions .fyc-post-expiry {
    margin-right: auto;
}

.fyc-applied-tag {
    font-size:   .82rem;
    font-weight: 600;
    color:       #15803d;
}

/* ── Verified organisation badge ──────────────────────────── */
.fyc-verified-badge {
    display:       inline-flex;
    align-items:   center;
    gap:           .2rem;
    font-size:     .75rem;
    font-weight:   700;
    color:         #1d4ed8;
    background:    #dbeafe;
    border:        1px solid #93c5fd;
    border-radius: 999px;
    padding:       2px 8px;
    white-space:   nowrap;
    vertical-align: middle;
}
/* Compact icon-only variant used inside post-card footer */
.fyc-verified-badge-sm {
    font-size:  .7rem;
    padding:    1px 5px;
}
.fyc-unverified-note {
    font-size:  .78rem;
    color:      #94a3b8;
}
/* Verify button in admin table */
.fyc-btn-verify {
    font-size:     .78rem;
    font-weight:   600;
    color:         #1d4ed8;
    background:    #dbeafe;
    border:        1px solid #93c5fd;
    border-radius: 6px;
    padding:       3px 10px;
    cursor:        pointer;
    white-space:   nowrap;
}
.fyc-btn-verify:hover:not(:disabled) {
    background: #bfdbfe;
}
.fyc-btn-verify:disabled {
    opacity: .5;
    cursor:  not-allowed;
}

/* ─── Quick apply panel ─────────────────────────────────────── */
.fyc-quick-apply-panel {
    overflow:   hidden;
    max-height: 0;
    opacity:    0;
    transition: max-height .22s ease, opacity .18s ease;
}

.fyc-quick-apply-panel-open {
    max-height: 200px;
    opacity:    1;
}

.fyc-quick-apply-msg {
    border-radius: 0;
    border-left:   none;
    border-right:  none;
    border-top:    1px solid #e8ecf0;
    border-bottom: none;
    min-height:    70px;
    resize:        none;
}

.fyc-quick-apply-footer {
    display:         flex;
    justify-content: flex-end;
    gap:             .5rem;
    padding:         .5rem 1rem;
    border-top:      1px solid #f0f2f5;
}

/* ─── Post card sub-elements ────────────────────────────────── */
.fyc-location { color: #64748b; font-size: .82rem; }

.fyc-post-excerpt {
    color: #475569;
    font-size: .9rem;
    line-height: 1.5;
    margin: .5rem 0;
}

.fyc-post-card-footer {
    display:        flex;
    flex-direction: column;
    gap:            .25rem;
    font-size:      .82rem;
    color:          #64748b;
}

.fyc-post-footer-row {
    display:     flex;
    align-items: center;
    gap:         .5rem;
}

.fyc-post-footer-row .fyc-badge-contract {
    margin-left: auto;
    flex-shrink: 0;
}

.fyc-wage { font-weight: 600; color: #15803d; }
.fyc-app-count { margin-left: auto; color: #94a3b8; }

.fyc-badge-type    { background: #ede9fe; color: #6d28d9; }
.fyc-badge-contract { background: #dcfce7; color: #15803d; }
.fyc-badge-green   { background: #dcfce7; color: #15803d; }
.fyc-badge-gray    { background: #f1f5f9; color: #64748b; }
.fyc-badge-role    { background: #fef3c7; color: #92400e; font-size: .78rem; padding: .15rem .55rem; border-radius: 6px; }

/* AppRole (system role) badges */
.fyc-badge-approle              { font-size: .75rem; padding: .15rem .55rem; border-radius: 6px; font-weight: 600; }
.fyc-badge-approle-admin        { background: #fee2e2; color: #991b1b; }
.fyc-badge-approle-moderator    { background: #ede9fe; color: #5b21b6; }
.fyc-badge-approle-user         { background: #e0f2fe; color: #0369a1; }

/* ─── Post detail page ──────────────────────────────────────── */
.fyc-post-detail {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fyc-post-detail h2 { font-size: 1.8rem; font-weight: 800; }

.fyc-post-meta { display: flex; gap: .5rem; flex-wrap: wrap; }

.fyc-post-author {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    color: #64748b;
}

.fyc-post-description { line-height: 1.7; color: #374151; }

.fyc-post-details {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .9rem;
}

.fyc-apply-section {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: .5rem;
}

.fyc-owner-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-top: .5rem;
}

.fyc-post-expiry {
    display:        inline-flex;
    align-items:    center;
    gap:            .3rem;
    font-size:      .75rem;
    white-space:    nowrap;
    color:          #92400e;
    background:     #fef3c7;
    border:         1px solid #fcd34d;
    border-radius:  999px;
    padding:        2px 8px;
}
.fyc-post-expiry-permanent {
    color:          #065f46;
    background:     #d1fae5;
    border-color:   #6ee7b7;
}
.fyc-post-expiry-expired {
    color:          #991b1b;
    background:     #fee2e2;
    border-color:   #fca5a5;
}

.fyc-expired-tag {
    font-size:      .82rem;
    font-weight:    600;
    color:          #991b1b;
    background:     #fee2e2;
    border:         1px solid #fca5a5;
    border-radius:  999px;
    padding:        2px 10px;
}

.fyc-owner-locked {
    display:       inline-flex;
    align-items:   center;
    gap:           .3rem;
    font-size:     .8rem;
    color:         #94a3b8;
    cursor:        default;
    padding:       .3rem .6rem;
    background:    #f8fafc;
    border:        1px solid #e2e8f0;
    border-radius: 6px;
}

/* ─── Edit post — type read-only row ────────────────────────── */
.fyc-edit-type-label {
    display:     flex;
    align-items: center;
    gap:         .75rem;
    padding:     .5rem 0;
}

.fyc-edit-type-hint {
    font-size: .8rem;
    color:     #94a3b8;
}

/* ─── Create / Edit form container ─────────────────────────── */
.fyc-form-container {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    max-width: 640px;
    margin: 0 auto;
}

.fyc-form-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ─── Profile sub-sections ──────────────────────────────────── */
.fyc-profile-info {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.fyc-profile-info h3 { font-size: 1.3rem; font-weight: 700; }

.fyc-my-posts { margin-top: 2rem; }
.fyc-my-posts h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }

/* ─── Notification overlay (error modal) ───────────────────── */
.fyc-notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    animation: fyc-fade-in .15s ease;
}

.fyc-notif-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: fyc-slide-up .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.fyc-notif-dialog-icon { font-size: 2.5rem; }

.fyc-notif-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.fyc-notif-body {
    color: #475569;
    font-size: .95rem;
    line-height: 1.55;
    margin: 0;
}

.fyc-notif-ok {
    margin-top: .5rem;
    min-width: 100px;
    padding: .55rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    cursor: pointer;
}

/* ─── Notification toast (success) ─────────────────────────── */
.fyc-notif-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #fff;
    border-left: 4px solid #16a34a;
    border-radius: 10px;
    padding: .9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    z-index: 9000;
    max-width: 340px;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.fyc-notif-toast.fyc-notif-toast-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fyc-notif-toast-icon { font-size: 1.4rem; flex-shrink: 0; }

.fyc-notif-toast-content {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    flex: 1;
}

.fyc-notif-toast-content strong { font-size: .9rem; color: #1a1a2e; }
.fyc-notif-toast-content span   { font-size: .82rem; color: #64748b; }

.fyc-notif-toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 .25rem;
    flex-shrink: 0;
}

.fyc-notif-toast-close:hover { color: #475569; }

/* ─── Keyframes ─────────────────────────────────────────────── */
@keyframes fyc-fade-in  { from { opacity: 0 } to { opacity: 1 } }
@keyframes fyc-slide-up { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }


/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .fyc-sidebar {
        width: 64px;
        min-width: 64px;
    }

    .fyc-logo-wordmark { display: none; }
    .fyc-logo-icon     { display: block; }

    .fyc-nav-link span:last-child,
    .fyc-nav-group-label {
        display: none;
    }

    .fyc-sidebar-brand {
        justify-content: center;
        padding: 1rem .5rem;
    }

    .fyc-nav-link {
        justify-content: center;
        padding: .65rem;
    }

    .fyc-nav-icon { width: auto; }

    .fyc-content-area { margin-left: 64px; }
    .fyc-user-info    { display: none; }
    .fyc-topbar       { padding: .5rem 1rem .1rem; }

    .fyc-hero h1 { font-size: 2rem; }
    .fyc-main { padding: 1.25rem 1rem; }
    .fyc-posts-grid { grid-template-columns: 1fr; }
    .fyc-form-grid  { grid-template-columns: 1fr; }
    .fyc-col-2      { grid-column: span 1; }
    .fyc-positions-wages { grid-template-columns: 1fr; }
}

/* ─── Profile page — layout additions ───────────────────────── */

/* Section card (same look as fyc-form-container but no max-width) */
.fyc-profile-section {
    background:    #fff;
    border-radius: 14px;
    padding:       1.75rem 2rem;
    box-shadow:    0 2px 12px rgba(0,0,0,.08);
    margin-bottom: 1.75rem;
}

.fyc-profile-section-title {
    font-size:     1rem;
    font-weight:   700;
    color:         #374151;
    margin:        0 0 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #f0f2f5;
}

.fyc-profile-name-row {
    display:     flex;
    align-items: center;
    gap:         .6rem;
    flex-wrap:   wrap;
}

.fyc-profile-name-row h2 { margin: 0; }

.fyc-profile-email {
    color:     #64748b;
    font-size: .875rem;
    margin:    .2rem 0 0;
}

/* 2-column form grid */
.fyc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}

.fyc-col-2 { grid-column: span 2; }

/* 4-column form grid modifier */
.fyc-form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.fyc-form-grid-4 .fyc-col-2 { grid-column: span 2; }
.fyc-col-4                   { grid-column: span 4; }

/* Positions + Wages side by side */
.fyc-positions-wages {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   0 1.5rem;
    align-items:           start;
}

.fyc-wages-stack {
    display:        flex;
    flex-direction: column;
}

/* Submit button row */
.fyc-form-actions {
    margin-top:      1.5rem;
    display:         flex;
    justify-content: flex-end;
}

/* Available / looking-for checkboxes */
.fyc-toggle-label {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    font-size:   .9rem;
    color:       #374151;
    cursor:      pointer;
    user-select: none;
}

.fyc-toggle-label input[type="checkbox"] {
    width:        16px;
    height:       16px;
    accent-color: #2563eb;
    cursor:       pointer;
}

.fyc-toggle-row {
    display:        flex;
    flex-direction: column;
    gap:            .6rem;
}

/* Checkbox cell aligned to the bottom of its grid row (sits level with inputs) */
.fyc-available-cell {
    display:         flex;
    align-items:     flex-end;
    padding-bottom:  .2rem;
}

/* ─── Rank badges ───────────────────────────────────────────── */
.fyc-badge-rank {
    font-size:     .72rem;
    font-weight:   700;
    padding:       .2rem .55rem;
    border-radius: 999px;
    letter-spacing: .03em;
    display:       inline-flex;
    align-items:   center;
    gap:           .25rem;
}

.fyc-badge-rank-bronze   { background: #b87333; color: #fff; }
.fyc-badge-rank-silver   { background: #94a3b8; color: #fff; }
.fyc-badge-rank-gold     { background: #d97706; color: #fff; }
.fyc-badge-rank-platinum { background: #0891b2; color: #fff; }
.fyc-badge-rank-diamond  { background: #7c3aed; color: #fff; }

/* ─── Checkbox label (coach mode toggle) ───────────────────── */
.fyc-checkbox-label {
    display:     flex;
    align-items: center;
    gap:         .6rem;
    font-size:   .92rem;
    font-weight: 500;
    color:       #1a1a2e;
    cursor:      pointer;
    user-select: none;
}

.fyc-checkbox-label input[type="checkbox"] {
    width:  1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: #2563eb;
}

.fyc-input-hint {
    display:    block;
    margin-top: .35rem;
    font-size:  .78rem;
    color:      #94a3b8;
}

/* ─── Segmented radio control ───────────────────────────────── */
.fyc-segmented {
    display:       flex;
    align-items:   stretch;
    gap:           0;
    border-radius: 8px;
    overflow:      hidden;
    background:    #f1f5f9;
}

.fyc-segment {
    flex:            1;
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             .4rem;
    padding:         .55rem .75rem;
    font-size:       .88rem;
    font-weight:     500;
    color:           #64748b;
    background:      transparent;
    cursor:          pointer;
    user-select:     none;
    transition:      background .12s, color .12s;
    text-align:      center;
    box-sizing:      border-box;
    border-radius:   6px;
    margin:          6px;
}

.fyc-segment:hover { background: #e2e8f0; color: #1e293b; }

.fyc-segment-active {
    background:  #e2e8f0;
    color:       #1e293b;
    font-weight: 600;
}

.fyc-segment-active:hover {
    background: #cbd5e1;
    color:      #1e293b;
}

.fyc-segment input[type="radio"] { display: none; }

/* ─── Post detail — read-only links ─────────────────────────── */
.fyc-post-links {
    display:        flex;
    flex-direction: column;
    gap:            .4rem;
    padding:        .75rem 1rem;
    background:     #f8fafc;
    border:         1px solid #e8ecf0;
    border-radius:  8px;
}

.fyc-post-links-label {
    font-size:   .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color:       #64748b;
    margin-bottom: .1rem;
}

.fyc-post-link {
    display:     flex;
    align-items: center;
    gap:         .4rem;
    font-size:   .88rem;
    color:       #2563eb;
    word-break:  break-all;
}

.fyc-post-link:hover { text-decoration: underline; }

/* ─── Apply section — links ─────────────────────────────────── */
.fyc-apply-links {
    display:        flex;
    flex-direction: column;
    gap:            .5rem;
    padding:        .75rem 1rem;
    background:     #f8fafc;
    border:         1px solid #e8ecf0;
    border-radius:  8px;
}

.fyc-apply-links-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
}

.fyc-apply-links-label {
    font-size:   .85rem;
    font-weight: 600;
    color:       #374151;
}

.fyc-btn-add-link {
    background:    none;
    border:        1px solid #2563eb;
    color:         #2563eb;
    border-radius: 6px;
    padding:       .25rem .75rem;
    font-size:     .82rem;
    font-weight:   600;
    cursor:        pointer;
    transition:    background .12s, color .12s;
}

.fyc-btn-add-link:hover {
    background: #2563eb;
    color:      #fff;
}

.fyc-apply-link-row {
    display: flex;
    gap:     .5rem;
    align-items: center;
}

.fyc-apply-link-row .fyc-input { flex: 1; }

.fyc-btn-remove-link {
    background:    none;
    border:        none;
    color:         #94a3b8;
    font-size:     1rem;
    cursor:        pointer;
    padding:       .2rem .4rem;
    border-radius: 4px;
    flex-shrink:   0;
    transition:    color .12s;
}

.fyc-btn-remove-link:hover { color: #dc2626; }

/* ─── Application status badges ─────────────────────────────── */
.fyc-badge-pending   { background: #fef9c3; color: #854d0e; }
.fyc-badge-accepted  { background: #dcfce7; color: #15803d; }
.fyc-badge-rejected  { background: #fee2e2; color: #b91c1c; }
.fyc-badge-withdrawn { background: #f1f5f9; color: #64748b; }

/* ─── Applications grid ─────────────────────────────────────── */
.fyc-applications-grid {
    background:    #fff;
    border-radius: 12px;
    box-shadow:    0 2px 10px rgba(0,0,0,.07);
    overflow:      hidden;
}

.fyc-appgrid-header,
.fyc-appgrid-row {
    display:               grid;
    grid-template-columns: 1.2fr 110px 2.5fr 110px 130px;
    align-items:           start;
    gap:                   0 1.5rem;
    padding:               .85rem 1.5rem;
}

.fyc-appgrid-header {
    background:  #f8fafc;
    border-bottom: 1px solid #e8ecf0;
    font-size:   .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color:       #64748b;
}

.fyc-appgrid-row {
    border-bottom: 1px solid #f0f2f5;
    font-size:     .88rem;
    transition:    background .12s;
}

.fyc-appgrid-row:last-child  { border-bottom: none; }
.fyc-appgrid-row:hover       { background: #f8fafc; }

.fyc-appgrid-title a {
    font-weight: 600;
    color:       #1a1a2e;
}

.fyc-appgrid-title a:hover { color: #2563eb; text-decoration: underline; }

.fyc-appgrid-date    { color: #64748b; font-size: .82rem; }

.fyc-appgrid-message {
    color:       #475569;
    white-space: normal;
    word-break:  break-word;
    line-height: 1.45;
}

.fyc-appgrid-action { display: flex; justify-content: flex-end; }

/* ─── Received-applications grid (different column layout) ─── */
.fyc-appgrid-received .fyc-appgrid-header,
.fyc-appgrid-received .fyc-appgrid-row {
    grid-template-columns: 1.4fr 1.6fr 110px 1.8fr 130px 130px;
}

.fyc-appgrid-applicant {
    display:     flex;
    align-items: center;
    gap:         .55rem;
    font-weight: 500;
}

.fyc-appgrid-avatar {
    width:         32px;
    height:        32px;
    border-radius: 50%;
    object-fit:    cover;
    flex-shrink:   0;
    border:        2px solid #e8ecf0;
}

.fyc-appgrid-avatar-placeholder {
    width:           32px;
    height:          32px;
    border-radius:   50%;
    background:      linear-gradient(135deg, #1a56db, #3b82f6);
    color:           #fff;
    font-size:       .85rem;
    font-weight:     700;
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
}

.fyc-badge-role-sm {
    font-size:  .7rem;
    padding:    2px 7px;
    background: #f3f4f6;
    color:      #374151;
    border:     1px solid #e5e7eb;
    border-radius: 99px;
    font-weight: 600;
}

/* ─── Page tabs ─────────────────────────────────────────────── */
.fyc-tabs {
    display:       flex;
    gap:           .25rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e8ecf0;
    padding-bottom: 0;
}

.fyc-tab {
    background:    none;
    border:        none;
    cursor:        pointer;
    padding:       .6rem 1.2rem;
    font-size:     .92rem;
    font-weight:   600;
    color:         #64748b;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: 0;
    transition:    color .15s, border-color .15s;
    display:       flex;
    align-items:   center;
    gap:           .45rem;
}

.fyc-tab:hover { color: #1a56db; }

.fyc-tab-active {
    color:        #1a56db;
    border-bottom-color: #1a56db;
}

.fyc-tab-badge {
    background:   #1a56db;
    color:        #fff;
    font-size:    .7rem;
    font-weight:  700;
    padding:      1px 7px;
    border-radius: 99px;
    min-width:    20px;
    text-align:   center;
}

/* Small danger button */
.fyc-btn-sm {
    padding:       .3rem .85rem;
    font-size:     .8rem;
    border-radius: 6px;
}

/* ─── Admin Dashboard — filter bar ─────────────────────────── */
.fyc-admin-filter-bar {
    display:     flex;
    align-items: center;
    gap:         .75rem;
    flex-wrap:   wrap;
    margin-bottom: 1rem;
}

.fyc-admin-filter-bar .fyc-input {
    flex: 1;
    min-width: 160px;
    max-width: 280px;
}

.fyc-admin-filter-count {
    margin-left: auto;
    font-size:   .82rem;
    color:       #94a3b8;
    white-space: nowrap;
}

/* ─── Admin Dashboard — user management table ───────────────── */
.fyc-admin-user-table {
    border-radius: 10px;
    overflow:      hidden;
    border:        1px solid #e8ecf0;
    min-width:     780px;
}

.fyc-admin-user-row {
    display:               grid;
    grid-template-columns: 1.4fr 1.8fr 90px 120px 120px 110px 60px;
    align-items:           center;
    gap:                   0 1.25rem;
    padding:               .8rem 1.25rem;
    border-bottom:         1px solid #f0f2f5;
    font-size:             .87rem;
}

.fyc-admin-user-row:last-child { border-bottom: none; }
.fyc-admin-user-row:hover:not(.fyc-admin-user-header) { background: #f8fafc; }

/* ─── Admin Store Config table (11 columns) ─────────── */
.fyc-store-admin-row {
    display:               grid;
    grid-template-columns: 110px 90px 70px 80px 70px 80px 55px 75px 60px 65px 70px;
    align-items:           center;
    gap:                   0 .6rem;
    padding:               .6rem 1rem;
    border-bottom:         1px solid #f0f2f5;
    font-size:             .87rem;
}

.fyc-store-admin-row:last-child  { border-bottom: none; }
.fyc-store-admin-row:hover:not(.fyc-admin-user-header) { background: #f8fafc; }

.fyc-admin-user-header {
    background:     #f8fafc;
    font-size:      .75rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color:          #64748b;
}

.fyc-admin-user-name  { display: block; font-weight: 600; color: #1a1a2e; }
.fyc-admin-user-email { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fyc-admin-user-date  { display: block; color: #94a3b8; font-size: .78rem; margin-top: .1rem; }

.fyc-admin-user-actions {
    display:     flex;
    gap:         .4rem;
    align-items: center;
}

.fyc-admin-user-actions .fyc-btn-icon {
    width:   36px;
    padding: .3rem 0;
    text-align: center;
}

.fyc-rank-select,
.fyc-role-select {
    padding:    .25rem .4rem;
    font-size:  .8rem;
    height:     auto;
    width:      100%;
    min-width:  80px;
}

/* Verified-column toggle buttons */
.fyc-badge-toggle {
    cursor:      pointer;
    font-family: inherit;
    transition:  filter .15s;
}
.fyc-badge-toggle:disabled {
    cursor:  not-allowed;
    opacity: .5;
}
.fyc-badge-toggle-verified {
    display:       inline-flex;
    align-items:   center;
    gap:           .2rem;
    font-size:     .75rem;
    font-weight:   700;
    color:         #1d4ed8;
    background:    #dbeafe;
    border:        1px solid #93c5fd;
    border-radius: 999px;
    padding:       2px 8px;
    white-space:   nowrap;
}
.fyc-badge-toggle-verified:hover:not(:disabled) { background: #bfdbfe; }
.fyc-badge-toggle-unverified {
    font-size:  .78rem;
    color:      #94a3b8;
    background: none;
    border:     none;
    padding:    0;
}
.fyc-badge-toggle-unverified:hover:not(:disabled) {
    color:            #1d4ed8;
    text-decoration:  underline;
}

/* ─── Admin Posts table ─────────────────────────────────────── */
.fyc-admin-posts-table {
    border-radius: 10px;
    overflow:      hidden;
    border:        1px solid #e8ecf0;
}

.fyc-admin-posts-row {
    display:               grid;
    grid-template-columns: 2fr 1.2fr 130px 100px 50px 110px 100px 80px;
    align-items:           center;
    gap:                   0 1rem;
    padding:               .8rem 1.25rem;
    border-bottom:         1px solid #f0f2f5;
    font-size:             .87rem;
}

.fyc-admin-posts-row:last-child  { border-bottom: none; }
.fyc-admin-posts-row:hover:not(.fyc-admin-posts-header) { background: #f8fafc; }

.fyc-admin-posts-header {
    background:     #f8fafc;
    font-size:      .75rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color:          #64748b;
}

.fyc-admin-posts-title a  { font-weight: 600; color: #1a1a2e; }
.fyc-admin-posts-title a:hover { color: #2563eb; text-decoration: underline; }
.fyc-admin-posts-author   { color: #64748b; font-size: .83rem; }
.fyc-admin-posts-count    { color: #64748b; text-align: center; }
.fyc-admin-posts-actions  { display: flex; gap: .4rem; justify-content: flex-end; }

.fyc-admin-posts-actions .fyc-btn-sm  { width: 90px; text-align: center; }
.fyc-admin-posts-actions .fyc-btn-icon { width: 36px; padding: .3rem 0; text-align: center; }

/* ─── Review Queue ───────────────────────────────────────────── */
.fyc-review-badge {
    display:          inline-flex;
    align-items:      center;
    justify-content:  center;
    min-width:        22px;
    height:           22px;
    padding:          0 6px;
    margin-left:      .5rem;
    background:       #ef4444;
    color:            #fff;
    font-size:        .72rem;
    font-weight:      700;
    border-radius:    999px;
    vertical-align:   middle;
}

.fyc-admin-review-actions {
    display:     flex;
    gap:         .4rem;
    align-items: center;
    flex-wrap:   wrap;
}

.fyc-admin-review-actions .fyc-btn-sm { width: 90px; text-align: center; }

.fyc-reject-inline {
    display:     flex;
    gap:         .4rem;
    align-items: center;
    flex-wrap:   wrap;
}

.fyc-reject-reason {
    width:     200px;
    font-size: .83rem;
    padding:   .3rem .6rem;
}

/* ─── Button variants ────────────────────────────────────────── */
.fyc-btn-success {
    background:    #16a34a;
    color:         #fff;
    border:        none;
    border-radius: 8px;
    padding:       .45rem 1rem;
    font-size:     .85rem;
    font-weight:   600;
    cursor:        pointer;
    transition:    background .15s;
}

.fyc-btn-success:hover:not(:disabled)  { background: #15803d; }
.fyc-btn-success:disabled              { opacity: .55; cursor: not-allowed; }

.fyc-btn-sm.fyc-btn-success {
    padding: .3rem .6rem;
    font-size: .8rem;
}

/* Post status badge variants */
.fyc-badge-status-active        { background: #dcfce7; color: #15803d; }
.fyc-badge-status-draft         { background: #f1f5f9; color: #64748b; }
.fyc-badge-status-closed        { background: #e2e8f0; color: #475569; }
.fyc-badge-status-pendingreview { background: #fef9c3; color: #854d0e; }
.fyc-badge-status-rejected      { background: #fee2e2; color: #991b1b; }
.fyc-badge-status-expired       { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ─── Admin Applications table ──────────────────────────────── */
.fyc-admin-apps-table {
    border-radius: 10px;
    overflow:      hidden;
    border:        1px solid #e8ecf0;
}

.fyc-admin-apps-row {
    display:               grid;
    grid-template-columns: 1.2fr 1.6fr 120px 110px 110px 1.5fr;
    align-items:           center;
    gap:                   0 1rem;
    padding:               .8rem 1.25rem;
    border-bottom:         1px solid #f0f2f5;
    font-size:             .87rem;
}

.fyc-admin-apps-row:last-child  { border-bottom: none; }
.fyc-admin-apps-row:hover:not(.fyc-admin-apps-header) { background: #f8fafc; }

.fyc-admin-apps-header {
    background:     #f8fafc;
    font-size:      .75rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color:          #64748b;
}

.fyc-admin-apps-post a { font-weight: 600; color: #1a1a2e; }
.fyc-admin-apps-post a:hover { color: #2563eb; text-decoration: underline; }

.fyc-admin-apps-message {
    color:         #475569;
    white-space:   nowrap;
    overflow:      hidden;
    text-overflow: ellipsis;
    font-size:     .83rem;
}

/* ─── Application status badge variants ─────────────────────── */
.fyc-badge-pending    { background: #fef9c3; color: #854d0e; }
.fyc-badge-accepted   { background: #dcfce7; color: #15803d; }
.fyc-badge-rejected   { background: #fee2e2; color: #991b1b; }
.fyc-badge-withdrawn  { background: #f1f5f9; color: #64748b; }

/* Alert — info variant */
.fyc-alert-info {
    background: #eff6ff;
    color:      #1d4ed8;
    border:     1px solid #bfdbfe;
}

/* Alert — danger variant */
.fyc-alert-danger {
    background: #fee2e2;
    color:      #991b1b;
    border:     1px solid #fecaca;
}

/* Post detail status banners */
.fyc-post-rejected-banner,
.fyc-post-pending-banner {
    margin-bottom: 1.25rem;
}

/* Post card rejection reason line */
.fyc-post-card-rejection {
    margin-top:  .4rem;
    font-size:   .8rem;
    color:       #991b1b;
    font-weight: 500;
}

/* ─── Profile avatar section ────────────────────────────────── */
.fyc-avatar-section {
    display:     flex;
    align-items: center;
    gap:         1.5rem;
    background:  #fff;
    border:      1px solid #e8ecf0;
    border-radius: 12px;
    padding:     1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow:  0 1px 4px rgba(0,0,0,.04);
}

.fyc-avatar-wrapper {
    position:      relative;
    width:         88px;
    height:        88px;
    flex-shrink:   0;
}

.fyc-avatar-img {
    width:         88px;
    height:        88px;
    border-radius: 50%;
    object-fit:    cover;
    border:        3px solid #e8ecf0;
    display:       block;
}

.fyc-avatar-placeholder {
    width:           88px;
    height:          88px;
    border-radius:   50%;
    background:      linear-gradient(135deg, #1a56db, #3b82f6);
    color:           #fff;
    font-size:       2rem;
    font-weight:     700;
    display:         flex;
    align-items:     center;
    justify-content: center;
    user-select:     none;
    border:          3px solid #e8ecf0;
}

.fyc-avatar-overlay {
    position:        absolute;
    inset:           0;
    border-radius:   50%;
    background:      rgba(0,0,0,.45);
    display:         flex;
    align-items:     center;
    justify-content: center;
}

.fyc-avatar-spinner {
    width:  22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fyc-spin .7s linear infinite;
}

@keyframes fyc-spin { to { transform: rotate(360deg); } }

.fyc-avatar-info {
    display:        flex;
    flex-direction: column;
    gap:            .3rem;
}

.fyc-avatar-name {
    font-size:   1.15rem;
    font-weight: 700;
    color:       #1a1a2e;
}

.fyc-avatar-role-row {
    display:     flex;
    align-items: center;
    gap:         .45rem;
    flex-wrap:   wrap;
    margin-bottom: .25rem;
}

.fyc-avatar-role {
    font-size:  .85rem;
    color:      #6b7280;
    text-transform: capitalize;
}

.fyc-badge-approle {
    font-size:   .72rem;
    padding:     2px 8px;
    background:  #f3f4f6;
    color:       #374151;
    border:      1px solid #d1d5db;
    border-radius: 99px;
    font-weight: 600;
    text-transform: capitalize;
}

.fyc-avatar-upload-btn {
    cursor:      pointer;
    display:     inline-flex;
    align-items: center;
    gap:         .4rem;
    width:       fit-content;
}

.fyc-avatar-hint {
    font-size: .75rem;
    color:     #9ca3af;
}

/* ── Chat panel ────────────────────────────────────────────── */

.fyc-chat-backdrop {
    position:   fixed;
    inset:      0;
    background: rgba(0,0,0,.35);
    z-index:    200;
}

.fyc-chat-panel {
    position:       fixed;
    top:            0;
    right:          0;
    width:          420px;
    max-width:      100vw;
    height:         100vh;
    background:     #fff;
    z-index:        201;
    display:        flex;
    flex-direction: column;
    box-shadow:     -4px 0 24px rgba(0,0,0,.12);
}

.fyc-chat-header {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    padding:     1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    gap:         .5rem;
    flex-shrink: 0;
}

.fyc-chat-header-info {
    display:        flex;
    flex-direction: column;
    gap:            .15rem;
    min-width:      0;
}

.fyc-chat-title {
    font-weight:   700;
    font-size:     .95rem;
    color:         #111827;
    white-space:   nowrap;
    overflow:      hidden;
    text-overflow: ellipsis;
}

.fyc-chat-subtitle {
    font-size: .8rem;
    color:     #6b7280;
}

.fyc-chat-close {
    background: none;
    border:     none;
    font-size:  1.1rem;
    color:      #6b7280;
    cursor:     pointer;
    padding:    .25rem .4rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.fyc-chat-close:hover { background: #f3f4f6; color: #111827; }

.fyc-chat-messages {
    flex:       1;
    overflow-y: auto;
    padding:    1rem;
    display:    flex;
    flex-direction: column;
    gap:        .75rem;
}

.fyc-chat-empty {
    margin:     auto;
    color:      #9ca3af;
    font-size:  .875rem;
    text-align: center;
}

/* Message rows */
.fyc-chat-msg {
    display:    flex;
    gap:        .5rem;
    max-width:  85%;
}

.fyc-chat-msg--own {
    align-self:     flex-end;
    flex-direction: row-reverse;
}

.fyc-chat-msg--other {
    align-self: flex-start;
}

.fyc-chat-avatar-sm {
    width:         32px;
    height:        32px;
    border-radius: 50%;
    background:    #e5e7eb;
    display:       flex;
    align-items:   center;
    justify-content: center;
    font-weight:   700;
    font-size:     .8rem;
    color:         #374151;
    flex-shrink:   0;
    overflow:      hidden;
}

.fyc-chat-avatar-sm img {
    width:  100%;
    height: 100%;
    object-fit: cover;
}

.fyc-chat-bubble-wrap {
    display:        flex;
    flex-direction: column;
    gap:            .2rem;
}

.fyc-chat-msg--own .fyc-chat-bubble-wrap { align-items: flex-end; }

.fyc-chat-sender {
    font-size:   .75rem;
    font-weight: 600;
    color:       #6b7280;
    padding:     0 .5rem;
}

.fyc-chat-bubble {
    background:    #f3f4f6;
    border-radius: 16px 16px 16px 4px;
    padding:       .55rem .85rem;
    font-size:     .875rem;
    color:         #111827;
    line-height:   1.45;
    word-break:    break-word;
}

.fyc-chat-msg--own .fyc-chat-bubble {
    background:    #2563eb;
    color:         #fff;
    border-radius: 16px 16px 4px 16px;
}

.fyc-chat-time {
    font-size: .7rem;
    color:     #9ca3af;
    padding:   0 .5rem;
}

/* Input row */
.fyc-chat-input-row {
    display:      flex;
    gap:          .5rem;
    padding:      .75rem 1rem;
    border-top:   1px solid #e5e7eb;
    align-items:  flex-end;
    flex-shrink:  0;
}

.fyc-chat-textarea {
    flex:      1;
    resize:    none;
    font-size: .875rem;
    line-height: 1.4;
    min-height: 42px;
}

.fyc-chat-send {
    flex-shrink: 0;
    align-self:  flex-end;
    height:      42px;
    padding:     0 1.1rem;
}

.fyc-appgrid-status-cell {
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;
    gap:            .4rem;
}

.fyc-chat-row-btn {
    font-size:  .78rem;
    padding:    .2rem .55rem;
}

/* ─── Deny / generic modal ───────────────────────────────────── */
.fyc-modal-backdrop {
    position:   fixed;
    inset:      0;
    background: rgba(0,0,0,.45);
    z-index:    500;
}

.fyc-modal {
    position:      fixed;
    top:           50%;
    left:          50%;
    transform:     translate(-50%, -50%);
    z-index:       510;
    background:    #fff;
    border-radius: 12px;
    box-shadow:    0 8px 32px rgba(0,0,0,.18);
    width:         min(480px, 94vw);
    display:       flex;
    flex-direction: column;
    overflow:      hidden;
}

.fyc-modal-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         1rem 1.25rem .75rem;
    border-bottom:   1px solid #e8ecf0;
}

.fyc-modal-header h3 {
    margin:      0;
    font-size:   1.05rem;
    font-weight: 600;
    color:       #1e293b;
}

.fyc-modal-body {
    padding:    1rem 1.25rem;
    display:    flex;
    flex-direction: column;
    gap:        .6rem;
}

.fyc-modal-body p { margin: 0; font-size: .9rem; }

.fyc-deny-textarea {
    width:      100%;
    resize:     vertical;
    min-height: 90px;
    font-size:  .9rem;
}

.fyc-modal-footer {
    display:         flex;
    align-items:     center;
    justify-content: flex-end;
    gap:             .5rem;
    padding:         .75rem 1.25rem 1rem;
    border-top:      1px solid #e8ecf0;
}

/* Accept/Deny action cell button group */
.fyc-appgrid-action {
    display:        flex;
    flex-direction: column;
    gap:            .35rem;
    align-items:    flex-start;
}

/* ── Affiliate ──────────────────────────────────────────────── */

.fyc-affiliate-desc {
    color:       #6b7280;
    margin-bottom: 1rem;
    font-size:   .9rem;
}

.fyc-affiliate-link-row {
    display:     flex;
    gap:         .5rem;
    align-items: center;
    flex-wrap:   wrap;
}

.fyc-affiliate-link-input {
    flex:        1;
    min-width:   200px;
    font-family: monospace;
    font-size:   .85rem;
    background:  #f9fafb;
}

.fyc-affiliate-code-hint {
    margin-top:  .5rem;
    font-size:   .85rem;
    color:       #6b7280;
}

/* Stats overview cards */
.fyc-affiliate-stats-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap:                   1rem;
}

.fyc-affiliate-stat-card {
    background:    #f9fafb;
    border:        1px solid #e5e7eb;
    border-radius: 10px;
    padding:       1.25rem 1rem;
    display:       flex;
    flex-direction: column;
    align-items:   center;
    gap:           .25rem;
    text-align:    center;
}

.fyc-affiliate-stat-card--highlight {
    background:  #ecfdf5;
    border-color: #6ee7b7;
}

.fyc-affiliate-stat-value {
    font-size:   1.75rem;
    font-weight: 700;
    color:       #111827;
    line-height: 1;
}

.fyc-affiliate-stat-label {
    font-size: .75rem;
    color:     #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Referrals table */
.fyc-affiliate-table {
    display:  flex;
    flex-direction: column;
    border:   1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    font-size: .875rem;
}

.fyc-affiliate-table-header,
.fyc-affiliate-table-row {
    display:               grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr;
    gap:                   .5rem;
    padding:               .65rem 1rem;
    align-items:           center;
}

.fyc-affiliate-table-header {
    background:  #f3f4f6;
    font-weight: 600;
    font-size:   .78rem;
    color:       #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fyc-affiliate-table-row {
    border-top: 1px solid #f3f4f6;
}

.fyc-affiliate-table-row:hover {
    background: #fafafa;
}

.fyc-affiliate-earned {
    color: #059669;
}

/* Admin affiliate table */
.fyc-affiliate-admin-table {
    display:  flex;
    flex-direction: column;
    border:   1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    font-size: .875rem;
}

.fyc-affiliate-admin-header,
.fyc-affiliate-admin-row {
    display:               grid;
    grid-template-columns: 2.5fr 1.2fr 1fr 1fr 1fr;
    gap:                   .5rem;
    padding:               .65rem 1rem;
    align-items:           center;
}

.fyc-affiliate-admin-header {
    background:  #f3f4f6;
    font-weight: 600;
    font-size:   .78rem;
    color:       #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fyc-affiliate-admin-row {
    border-top: 1px solid #f3f4f6;
}

.fyc-affiliate-admin-row:hover {
    background: #fafafa;
}

.fyc-affiliate-user-name {
    font-weight: 600;
    color:       #111827;
}

.fyc-affiliate-user-email {
    font-size: .78rem;
    color:     #9ca3af;
}

.fyc-affiliate-code {
    background:    #f3f4f6;
    border:        1px solid #e5e7eb;
    border-radius: 4px;
    padding:       .15rem .4rem;
    font-size:     .8rem;
    letter-spacing: .05em;
}

/* Referred-by badge on register page */
.fyc-affiliate-referred-badge {
    display:       flex;
    align-items:   center;
    gap:           .4rem;
    background:    #ecfdf5;
    border:        1px solid #6ee7b7;
    border-radius: 8px;
    padding:       .5rem .85rem;
    font-size:     .85rem;
    color:         #065f46;
    margin-bottom: .75rem;
}

/* ─── Blocked link indicator ────────────────────────────────── */
.fyc-input-blocked {
    border-color: #dc2626 !important;
    background:   #fff5f5 !important;
}

.fyc-link-blocked-msg {
    margin:     .2rem 0 .4rem;
    font-size:  .8rem;
    color:      #dc2626;
    font-weight: 500;
}

[data-theme="dark"] .fyc-input-blocked { background: #2d0f0f !important; }

/* ─── Theme toggle button ────────────────────────────────────── */
.fyc-theme-toggle {
    display:       flex;
    align-items:   center;
    justify-content: center;
    width:         34px;
    height:        34px;
    border-radius: 50%;
    border:        1px solid #e5e7eb;
    background:    #fff;
    color:         #64748b;
    cursor:        pointer;
    font-size:     .95rem;
    transition:    background .15s, border-color .15s, color .15s;
    flex-shrink:   0;
}

.fyc-theme-toggle:hover {
    background:   #f3f4f6;
    border-color: #d1d5db;
    color:        #1a1a2e;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE  —  html[data-theme="dark"]
   ═══════════════════════════════════════════════════════════════ */

[data-theme="dark"] body {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] a:not(.fyc-btn-primary):not(.fyc-btn-secondary):not(.fyc-btn-danger) { color: #60a5fa; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: #f1f5f9; }

/* ── Sidebar ── */
[data-theme="dark"] .fyc-sidebar {
    background:        #1e293b;
    border-right-color: #334155;
}
[data-theme="dark"] .fyc-sidebar-brand { border-bottom-color: #334155; }
[data-theme="dark"] { --fyc-logo-letter: #FFFFFF; --fyc-logo-accent: #10B981; }
[data-theme="dark"] .fyc-nav-group-label      { color: #64748b; }
[data-theme="dark"] .fyc-nav-link             { color: #94a3b8; }
[data-theme="dark"] .fyc-nav-link:hover       { background: #334155; color: #f1f5f9; text-decoration: none; }
[data-theme="dark"] .fyc-nav-link.active      { background: rgba(37,99,235,.18); color: #60a5fa; }
[data-theme="dark"] .fyc-nav-icon             { color: #64748b; }
[data-theme="dark"] .fyc-nav-link:hover .fyc-nav-icon  { color: #94a3b8; }
[data-theme="dark"] .fyc-nav-link.active .fyc-nav-icon { color: #60a5fa; }
[data-theme="dark"] .fyc-nav-logout           { color: #64748b; }
[data-theme="dark"] .fyc-nav-logout:hover     { background: #334155; color: #94a3b8; }
[data-theme="dark"] .fyc-release-btn          { background: #162032; border-color: #334155; }
[data-theme="dark"] .fyc-release-btn:hover    { background: #1e2e44; border-color: #475569; }
[data-theme="dark"] .fyc-release-btn-company  { color: #cbd5e1; }
[data-theme="dark"] .fyc-release-btn-meta     { color: #64748b; }
[data-theme="dark"] .fyc-release-entry        { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .fyc-release-version      { color: #f1f5f9; }
[data-theme="dark"] .fyc-release-notes li     { color: #94a3b8; }

/* ── Topbar ── */
[data-theme="dark"] .fyc-theme-toggle {
    background:   #1e293b;
    border-color: #334155;
    color:        #94a3b8;
}
[data-theme="dark"] .fyc-theme-toggle:hover {
    background:   #293548;
    border-color: #475569;
    color:        #f1f5f9;
}
[data-theme="dark"] .fyc-topbar-messages {
    background:   #1e293b;
    border-color: #334155;
    color:        #94a3b8;
}
[data-theme="dark"] .fyc-topbar-messages:hover { background: #293548; border-color: #475569; }
[data-theme="dark"] .fyc-user-card            { background: #1e293b; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .fyc-user-card:hover      { border-color: #3b82f6; }
[data-theme="dark"] .fyc-user-name            { color: #f1f5f9; }
[data-theme="dark"] .fyc-user-role            { color: #94a3b8; }
[data-theme="dark"] .fyc-user-dropdown        { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .fyc-user-dropdown-name   { color: #f1f5f9; }
[data-theme="dark"] .fyc-user-dropdown-email  { color: #94a3b8; }
[data-theme="dark"] .fyc-user-dropdown-divider { background: #334155; }
[data-theme="dark"] .fyc-user-dropdown-link   { color: #94a3b8; }
[data-theme="dark"] .fyc-user-dropdown-link:hover { color: #60a5fa; text-decoration: none; }
[data-theme="dark"] .fyc-lang-label          { color: #94a3b8; }
[data-theme="dark"] .fyc-lang-btn            { border-color: #475569; background: transparent; }
[data-theme="dark"] .fyc-lang-btn:hover      { background: #1e293b; }
[data-theme="dark"] .fyc-lang-btn-active     { border-color: #3b82f6; box-shadow: 0 0 0 2px #1e3a5f; background: #1e293b; }

/* ── Store ── */
/* Featured + highlighted dark mode */
[data-theme="dark"] .fyc-featured-title                  { color: #f1f5f9; }
[data-theme="dark"] .fyc-post-card-highlighted-gold      { background: linear-gradient(135deg, #1c1a0f 0%, #1e293b 60%); }
[data-theme="dark"] .fyc-post-card-highlighted-platinum  { background: linear-gradient(135deg, #0a1f24 0%, #1e293b 60%); }
[data-theme="dark"] .fyc-post-card-highlighted-diamond   { background: linear-gradient(135deg, #150f2a 0%, #1e293b 60%); }
[data-theme="dark"] .fyc-post-rank-badge-gold            { background: #422006; color: #fcd34d; border-color: #78350f; }
[data-theme="dark"] .fyc-post-rank-badge-platinum        { background: #0a2a31; color: #67e8f9; border-color: #0e7490; }
[data-theme="dark"] .fyc-post-rank-badge-diamond         { background: #1e0f45; color: #c4b5fd; border-color: #6d28d9; }

[data-theme="dark"] .fyc-dash-kpi-card           { background: #1e293b; border-color: #334155; box-shadow: none; }
[data-theme="dark"] .fyc-dash-kpi-card:hover    { box-shadow: 0 4px 16px rgba(0,0,0,.3); }
[data-theme="dark"] .fyc-dash-kpi-icon-wrap     { background: #1e3a5f; }
[data-theme="dark"] .fyc-dash-kpi-value         { color: #f1f5f9; }
[data-theme="dark"] .fyc-dash-section-card      { background: #1e293b; border-color: #334155; box-shadow: none; }
[data-theme="dark"] .fyc-dash-section-header    { border-bottom-color: #334155; }
[data-theme="dark"] .fyc-dash-section-title     { color: #f1f5f9; }
[data-theme="dark"] .fyc-dash-section-sub       { color: #64748b; }
[data-theme="dark"] .fyc-dash-breakdown-header  { background: #162032; border-bottom-color: #334155; color: #64748b; }
[data-theme="dark"] .fyc-dash-breakdown-row     { border-bottom-color: #1e2e44; }
[data-theme="dark"] .fyc-dash-breakdown-row:hover { background: #162032; }
[data-theme="dark"] .fyc-dash-breakdown-num     { color: #f1f5f9; }
[data-theme="dark"] .fyc-dash-empty             { color: #475569; }
[data-theme="dark"] .fyc-trend-up               { background: #052e16; color: #86efac; }
[data-theme="dark"] .fyc-trend-down             { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .fyc-trend-same             { background: #1e293b; color: #64748b; }
[data-theme="dark"] .fyc-trend-same            { background: #1e293b; color: #64748b; }

[data-theme="dark"] .fyc-store-card          { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .fyc-store-price         { color: #f1f5f9; }
[data-theme="dark"] .fyc-store-price-was    { color: #475569; }
[data-theme="dark"] .fyc-store-discount-badge { background: #052e16; border-color: #166534; color: #4ade80; }
[data-theme="dark"] .fyc-store-perk          { color: #cbd5e1; }
[data-theme="dark"] .fyc-store-perks         { border-top-color: #334155; }
[data-theme="dark"] .fyc-store-owned-badge    { background: #14532d; border-color: #166534; color: #86efac; }
[data-theme="dark"] .fyc-store-included-badge { background: #1e293b; border-color: #334155; color: #475569; }
[data-theme="dark"] .fyc-store-rank-name-silver { color: #94a3b8; }
[data-theme="dark"] .fyc-payment-result      { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .fyc-payment-result-title { color: #f1f5f9; }

/* ── Advanced filters ── */
[data-theme="dark"] .fyc-filter-advanced     { background: #1e293b; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
[data-theme="dark"] .fyc-filter-advanced-actions { border-top-color: #334155; }
[data-theme="dark"] .fyc-filter-label        { color: #475569; }
[data-theme="dark"] .fyc-btn-icon            { background: #1e293b; border-color: #334155; color: #64748b; }
[data-theme="dark"] .fyc-btn-icon:hover      { background: #334155; color: #f1f5f9; }
[data-theme="dark"] .fyc-btn-icon-active     { background: #1e3a5f; border-color: #3b82f6; color: #60a5fa; }
[data-theme="dark"] .fyc-btn-ghost           { border-color: #334155; color: #64748b; }
[data-theme="dark"] .fyc-btn-ghost:hover     { background: #334155; color: #f1f5f9; }

/* ── Surfaces / cards ── */
[data-theme="dark"] .fyc-filter-bar,
[data-theme="dark"] .fyc-post-card,
[data-theme="dark"] .fyc-post-card-wrapper,
[data-theme="dark"] .fyc-stat,
[data-theme="dark"] .fyc-auth-container,
[data-theme="dark"] .fyc-profile-card,
[data-theme="dark"] .fyc-profile-section,
[data-theme="dark"] .fyc-form-container,
[data-theme="dark"] .fyc-post-detail,
[data-theme="dark"] .fyc-applications-grid,
[data-theme="dark"] .fyc-admin-user-table,
[data-theme="dark"] .fyc-admin-posts-table,
[data-theme="dark"] .fyc-admin-apps-table {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

[data-theme="dark"] .fyc-filter-bar         { border-bottom-color: #334155; }

/* ── Page text ── */
[data-theme="dark"] .fyc-post-title      { color: #f1f5f9; }
[data-theme="dark"] .fyc-post-desc,
[data-theme="dark"] .fyc-post-excerpt,
[data-theme="dark"] .fyc-post-description { color: #94a3b8; }
[data-theme="dark"] .fyc-post-meta,
[data-theme="dark"] .fyc-post-footer,
[data-theme="dark"] .fyc-post-card-footer { color: #64748b; }
[data-theme="dark"] .fyc-hero h1         { color: #f1f5f9; }
[data-theme="dark"] .fyc-hero p          { color: #94a3b8; }
[data-theme="dark"] .fyc-text-muted,
[data-theme="dark"] .text-muted          { color: #64748b !important; }

/* ── Inputs ── */
[data-theme="dark"] .fyc-input,
[data-theme="dark"] .fyc-select,
[data-theme="dark"] .fyc-multiselect-trigger {
    background:   #0f172a;
    border-color: #334155;
    color:        #f1f5f9;
}
[data-theme="dark"] .fyc-input::placeholder { color: #475569; }
[data-theme="dark"] .fyc-input:disabled     { background: #1e293b; }
[data-theme="dark"] .fyc-multiselect-panel  { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .fyc-multiselect-option { color: #cbd5e1; }
[data-theme="dark"] .fyc-multiselect-option:hover { background: #293548; }
[data-theme="dark"] .fyc-ms-group-header   { background: #0f172a; color: #60a5fa; border-top-color: #334155; }
[data-theme="dark"] .fyc-ms-subgroup-label { background: #1e293b; color: #f1f5f9; }
[data-theme="dark"] .fyc-ms-subgroup-label:hover { background: #293548; }

/* ── Buttons ── */
[data-theme="dark"] .fyc-btn-secondary    { background: #334155; color: #f1f5f9; }
[data-theme="dark"] .fyc-btn-secondary:hover { background: #3e526a; }

/* ── Form labels ── */
[data-theme="dark"] .fyc-form-group label,
[data-theme="dark"] .fyc-label           { color: #94a3b8; }
[data-theme="dark"] .fyc-input-hint      { color: #64748b; }

/* ── Post card borders / inner sections ── */
[data-theme="dark"] .fyc-post-card-actions  { border-top-color: #334155; }
[data-theme="dark"] .fyc-quick-apply-msg    { border-top-color: #334155; }
[data-theme="dark"] .fyc-quick-apply-footer { border-top-color: #334155; }
[data-theme="dark"] .fyc-post-details       { background: #0f172a; }
[data-theme="dark"] .fyc-post-links,
[data-theme="dark"] .fyc-apply-links        { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .fyc-post-expiry              { background: #292524; border-color: #78350f; color: #fbbf24; }
[data-theme="dark"] .fyc-post-expiry-permanent    { background: #052e16; border-color: #065f46; color: #6ee7b7; }
[data-theme="dark"] .fyc-post-expiry-expired      { background: #450a0a; border-color: #991b1b; color: #fca5a5; }
[data-theme="dark"] .fyc-expired-tag              { background: #450a0a; border-color: #991b1b; color: #fca5a5; }
[data-theme="dark"] .fyc-owner-locked             { background: #0f172a; border-color: #334155; color: #64748b; }

/* ── Applications grid ── */
[data-theme="dark"] .fyc-appgrid-header     { background: #162032; border-bottom-color: #334155; color: #64748b; }
[data-theme="dark"] .fyc-appgrid-row        { border-bottom-color: #1e2e44; }
[data-theme="dark"] .fyc-appgrid-row:hover  { background: #162032; }
[data-theme="dark"] .fyc-appgrid-title a    { color: #f1f5f9; }
[data-theme="dark"] .fyc-appgrid-title a:hover { color: #60a5fa; }
[data-theme="dark"] .fyc-appgrid-date       { color: #64748b; }
[data-theme="dark"] .fyc-appgrid-message    { color: #94a3b8; }
[data-theme="dark"] .fyc-badge-role-sm      { background: #334155; color: #94a3b8; border-color: #475569; }

/* ── Admin tables ── */
[data-theme="dark"] .fyc-admin-user-header,
[data-theme="dark"] .fyc-admin-posts-header,
[data-theme="dark"] .fyc-admin-apps-header  { background: #162032; color: #64748b; }
[data-theme="dark"] .fyc-admin-user-row,
[data-theme="dark"] .fyc-admin-posts-row,
[data-theme="dark"] .fyc-admin-apps-row     { border-bottom-color: #1e2e44; }
[data-theme="dark"] .fyc-admin-user-row:hover:not(.fyc-admin-user-header),
[data-theme="dark"] .fyc-admin-posts-row:hover:not(.fyc-admin-posts-header),
[data-theme="dark"] .fyc-admin-apps-row:hover:not(.fyc-admin-apps-header) { background: #162032; }

[data-theme="dark"] .fyc-store-admin-row            { border-bottom-color: #1e2e44; }
[data-theme="dark"] .fyc-store-admin-row:hover:not(.fyc-admin-user-header) { background: #162032; }
[data-theme="dark"] .fyc-admin-user-name    { color: #f1f5f9; }
[data-theme="dark"] .fyc-admin-user-email   { color: #64748b; }
[data-theme="dark"] .fyc-admin-posts-title a { color: #f1f5f9; }
[data-theme="dark"] .fyc-admin-posts-author  { color: #64748b; }
[data-theme="dark"] .fyc-rank-select,
[data-theme="dark"] .fyc-role-select         { background: #0f172a; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .fyc-reject-reason       { background: #0f172a; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .fyc-verified-badge      { background: #1e3a5f; border-color: #3b82f6; color: #93c5fd; }
[data-theme="dark"] .fyc-unverified-note     { color: #475569; }
[data-theme="dark"] .fyc-btn-verify          { background: #1e3a5f; border-color: #3b82f6; color: #93c5fd; }
[data-theme="dark"] .fyc-btn-verify:hover:not(:disabled) { background: #1d4ed8; color: #fff; }
[data-theme="dark"] .fyc-badge-toggle-verified { background: #1e3a5f; border-color: #3b82f6; color: #93c5fd; }
[data-theme="dark"] .fyc-badge-toggle-verified:hover:not(:disabled) { background: #1d4ed8; color: #fff; }
[data-theme="dark"] .fyc-badge-toggle-unverified { color: #475569; }
[data-theme="dark"] .fyc-badge-toggle-unverified:hover:not(:disabled) { color: #93c5fd; }

/* ── Tabs ── */
[data-theme="dark"] .fyc-tabs              { border-bottom-color: #334155; }
[data-theme="dark"] .fyc-tab              { color: #64748b; }
[data-theme="dark"] .fyc-tab:hover        { color: #60a5fa; }
[data-theme="dark"] .fyc-tab-active       { color: #60a5fa; border-bottom-color: #60a5fa; }

/* ── Segmented control ── */
[data-theme="dark"] .fyc-segmented        { background: #0f172a; }
[data-theme="dark"] .fyc-segment          { color: #64748b; }
[data-theme="dark"] .fyc-segment:hover    { background: #334155; color: #f1f5f9; }
[data-theme="dark"] .fyc-segment-active   { background: #334155; color: #f1f5f9; }
[data-theme="dark"] .fyc-segment-active:hover { background: #3e526a; }

/* ── Profile sections ── */
[data-theme="dark"] .fyc-profile-section-title { color: #94a3b8; border-bottom-color: #334155; }
[data-theme="dark"] .fyc-avatar-section        { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .fyc-avatar-img            { border-color: #334155; }
[data-theme="dark"] .fyc-avatar-placeholder    { border-color: #334155; }
[data-theme="dark"] .fyc-avatar-name           { color: #f1f5f9; }
[data-theme="dark"] .fyc-avatar-role           { color: #94a3b8; }

/* ── Chat panel ── */
[data-theme="dark"] .fyc-chat-panel          { background: #1e293b; box-shadow: -4px 0 24px rgba(0,0,0,.45); }
[data-theme="dark"] .fyc-chat-header         { border-bottom-color: #334155; }
[data-theme="dark"] .fyc-chat-title          { color: #f1f5f9; }
[data-theme="dark"] .fyc-chat-subtitle       { color: #94a3b8; }
[data-theme="dark"] .fyc-chat-close          { color: #64748b; }
[data-theme="dark"] .fyc-chat-close:hover    { background: #334155; color: #f1f5f9; }
[data-theme="dark"] .fyc-chat-bubble         { background: #293548; color: #f1f5f9; }
[data-theme="dark"] .fyc-chat-avatar-sm      { background: #334155; color: #94a3b8; }
[data-theme="dark"] .fyc-chat-input-row      { border-top-color: #334155; }
[data-theme="dark"] .fyc-chat-empty          { color: #475569; }
[data-theme="dark"] .fyc-chat-sender         { color: #94a3b8; }
[data-theme="dark"] .fyc-chat-time           { color: #64748b; }

/* ── Modal (deny/generic) ── */
[data-theme="dark"] .fyc-modal              { background: #1e293b; box-shadow: 0 8px 32px rgba(0,0,0,.55); }
[data-theme="dark"] .fyc-modal-header       { border-bottom-color: #334155; }
[data-theme="dark"] .fyc-modal-header h3    { color: #f1f5f9; }
[data-theme="dark"] .fyc-modal-footer       { border-top-color: #334155; }

/* ── Notifications ── */
[data-theme="dark"] .fyc-notif-dialog       { background: #1e293b; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
[data-theme="dark"] .fyc-notif-title        { color: #f1f5f9; }
[data-theme="dark"] .fyc-notif-body         { color: #94a3b8; }
[data-theme="dark"] .fyc-notif-toast        { background: #1e293b; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
[data-theme="dark"] .fyc-notif-toast-content strong { color: #f1f5f9; }
[data-theme="dark"] .fyc-notif-toast-content span   { color: #94a3b8; }
[data-theme="dark"] .fyc-notif-toast-close  { color: #64748b; }
[data-theme="dark"] .fyc-notif-toast-close:hover { color: #94a3b8; }

/* ── Affiliate ── */
[data-theme="dark"] .fyc-affiliate-stat-card           { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .fyc-affiliate-stat-card--highlight { background: #0d2d1e; border-color: #166534; }
[data-theme="dark"] .fyc-affiliate-stat-value          { color: #f1f5f9; }
[data-theme="dark"] .fyc-affiliate-table,
[data-theme="dark"] .fyc-affiliate-admin-table          { border-color: #334155; }
[data-theme="dark"] .fyc-affiliate-table-header,
[data-theme="dark"] .fyc-affiliate-admin-header         { background: #162032; }
[data-theme="dark"] .fyc-affiliate-table-row,
[data-theme="dark"] .fyc-affiliate-admin-row            { border-top-color: #334155; }
[data-theme="dark"] .fyc-affiliate-table-row:hover,
[data-theme="dark"] .fyc-affiliate-admin-row:hover      { background: #162032; }
[data-theme="dark"] .fyc-affiliate-user-name            { color: #f1f5f9; }
[data-theme="dark"] .fyc-affiliate-link-input           { background: #0f172a; }
[data-theme="dark"] .fyc-affiliate-code                 { background: #0f172a; border-color: #334155; color: #94a3b8; }

/* ── Alerts ── */
[data-theme="dark"] .fyc-alert-warning { background: #2d2007; color: #fde68a; border-color: #92400e; }

/* ── Misc ── */
[data-theme="dark"] .fyc-loading,
[data-theme="dark"] .fyc-empty              { color: #64748b; }
[data-theme="dark"] .fyc-pagination span    { color: #94a3b8; }
[data-theme="dark"] .fyc-post-card-rejection { color: #fca5a5; }
[data-theme="dark"] .fyc-wage               { color: #4ade80; }

.fyc-affiliate-referred-badge i {
    font-size: 1rem;
}

/* ─── Ratings ──────────────────────────────────────────────────────────────── */

/* Star picker (modal) */
.fyc-star-picker {
    display: flex;
    gap: .25rem;
    margin: .25rem 0 .5rem;
}

.fyc-star {
    background: none;
    border: none;
    padding: .15rem .2rem;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #cbd5e1;
    transition: color .15s, transform .1s;
}

.fyc-star:hover,
.fyc-star-active {
    color: #d97706;
    transform: scale(1.15);
}

/* Average score line (profile) */
.fyc-ratings-avg {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    color: #475569;
    margin-bottom: .75rem;
}

.fyc-ratings-stars {
    font-size: 1.25rem;
    color: #d97706;
    letter-spacing: .05em;
}

/* Rating card list */
.fyc-ratings-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.fyc-rating-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: .75rem;
    padding: 1rem 1.125rem;
}

.fyc-rating-card-header {
    display: flex;
    align-items: center;
    gap: .625rem;
    flex-wrap: wrap;
    margin-bottom: .375rem;
}

.fyc-rating-name {
    font-weight: 600;
    color: #1e293b;
    font-size: .9rem;
}

.fyc-rating-stars-sm {
    font-size: .85rem;
    color: #d97706;
    letter-spacing: .04em;
}

.fyc-rating-date {
    font-size: .78rem;
    color: #64748b;
    margin-left: auto;
}

.fyc-rating-comment {
    font-size: .875rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* Small badge variant ("⭐ Rated") */
.fyc-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    white-space: nowrap;
}

/* ─── Ratings – dark mode ───────────────────────────────────────────────────── */

[data-theme="dark"] .fyc-star                   { color: #475569; }
[data-theme="dark"] .fyc-star:hover,
[data-theme="dark"] .fyc-star-active             { color: #fbbf24; }
[data-theme="dark"] .fyc-ratings-avg             { color: #94a3b8; }
[data-theme="dark"] .fyc-ratings-stars           { color: #fbbf24; }
[data-theme="dark"] .fyc-rating-card             { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .fyc-rating-name             { color: #f1f5f9; }
[data-theme="dark"] .fyc-rating-stars-sm         { color: #fbbf24; }
[data-theme="dark"] .fyc-rating-date             { color: #64748b; }
[data-theme="dark"] .fyc-rating-comment          { color: #94a3b8; }
[data-theme="dark"] .fyc-badge-sm                { background: #2d1d00; color: #fde68a; border-color: #78350f; }

/* ─── Welcome Banner ────────────────────────────────────────────────────────── */
.fyc-welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
    color: #fff;
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.fyc-welcome-banner-body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .9rem;
}
.fyc-welcome-banner-body strong { font-size: 1rem; }
.fyc-welcome-banner .fyc-btn-secondary {
    white-space: nowrap;
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.4);
    color: #fff;
    flex-shrink: 0;
}
.fyc-welcome-banner .fyc-btn-secondary:hover { background: rgba(255,255,255,.3); }

/* ─── Profile Progress Bar ──────────────────────────────────────────────────── */
.fyc-profile-progress {
    margin-bottom: 1.5rem;
}
.fyc-profile-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: #374151;
}
.fyc-progress-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.fyc-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width .4s ease;
}
.fyc-progress-green { background: #22c55e; }
.fyc-progress-amber { background: #f59e0b; }
.fyc-progress-red   { background: #ef4444; }

[data-theme="dark"] .fyc-welcome-banner       { background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%); }
[data-theme="dark"] .fyc-profile-progress-header { color: #94a3b8; }
[data-theme="dark"] .fyc-progress-track       { background: #334155; }

/* ─── Video Highlights ──────────────────────────────────────────────────────── */
.fyc-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: .75rem;
}
.fyc-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: .5rem;
    background: #000;
}
.fyc-video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.fyc-video-link-row {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: .5rem;
}
.fyc-video-link-row .fyc-input { flex: 1; }
[data-theme="dark"] .fyc-video-embed { background: #0f172a; }

/* ─── Post Pin Badge ────────────────────────────────────────────────────────── */

.fyc-post-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
    white-space: nowrap;
    letter-spacing: .01em;
}

[data-theme="dark"] .fyc-post-pin-badge { background: #2d1d00; color: #fde68a; border-color: #78350f; }

/* ─── Coming Soon Page ──────────────────────────────────────────────────────── */

.fyc-cs-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 55%, #eff6ff 100%);
}

.fyc-cs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.fyc-cs-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.fyc-cs-logo {
    height: 64px;
    width: auto;
}

.fyc-cs-header-controls {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.fyc-cs-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.fyc-cs-pill {
    display: inline-block;
    padding: .35rem 1.1rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #eff6ff;
    color: #2563eb;
    border: 1.5px solid #bfdbfe;
    margin-bottom: 1.75rem;
}

.fyc-cs-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.1;
    margin: 0 0 .75rem;
    letter-spacing: -.02em;
}

.fyc-cs-launch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2563eb;
    margin: 0 0 1.25rem;
}

.fyc-cs-subtitle {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 2.75rem;
    max-width: 460px;
}

.fyc-cs-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    text-align: left;
    box-shadow: 0 4px 28px rgba(37, 99, 235, .08);
}

.fyc-cs-card-logo {
    display: flex;
    justify-content: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #f0f2f5;
}

.fyc-cs-card-logo svg {
    height: 48px;
    width: auto;
}

[data-theme="dark"] .fyc-cs-card-logo {
    border-bottom-color: #334155;
}

.fyc-cs-card-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .85rem;
}

.fyc-cs-card-icon { font-size: 1.4rem; color: #2563eb; }

.fyc-cs-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.fyc-cs-card-body {
    font-size: .95rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

.fyc-cs-notice {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .9rem;
    border-radius: .6rem;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-size: .85rem;
    font-weight: 500;
}

.fyc-cs-notice i { color: #d97706; font-size: .85rem; }

.fyc-cs-footer {
    text-align: center;
    padding: 1.25rem;
    font-size: .8rem;
    color: #94a3b8;
    border-top: 1px solid #e5e7eb;
}

/* Dark mode */
[data-theme="dark"] .fyc-cs-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
}

[data-theme="dark"] .fyc-cs-header {
    background: rgba(15, 23, 42, 0.85);
    border-color: #334155;
}


[data-theme="dark"] .fyc-cs-pill {
    background: #1e3a5f;
    color: #60a5fa;
    border-color: #3b82f6;
}

[data-theme="dark"] .fyc-cs-title { color: #f1f5f9; }
[data-theme="dark"] .fyc-cs-launch { color: #60a5fa; }
[data-theme="dark"] .fyc-cs-subtitle { color: #94a3b8; }

[data-theme="dark"] .fyc-cs-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 28px rgba(0, 0, 0, .25);
}

[data-theme="dark"] .fyc-cs-card-icon { color: #60a5fa; }
[data-theme="dark"] .fyc-cs-card-title { color: #f1f5f9; }
[data-theme="dark"] .fyc-cs-card-body { color: #94a3b8; }

[data-theme="dark"] .fyc-cs-notice {
    background: #2d1d00;
    color: #fde68a;
    border-color: #78350f;
}

[data-theme="dark"] .fyc-cs-notice i { color: #fbbf24; }

[data-theme="dark"] .fyc-cs-footer {
    color: #64748b;
    border-color: #334155;
}

@media (max-width: 520px) {
    .fyc-cs-title { font-size: 2.2rem; }
    .fyc-cs-header { padding: 1rem; }
    .fyc-cs-card { padding: 1.25rem; }
}

