/* ── OHub24 Design System ──────────────────────────────────── */
:root {
    --navy:       #0a1628;
    --navy-mid:   #0d2d5e;
    --navy-main:  #0073aa;
    --navy-glow:  #38bdf8;
    --gold:       #f59e0b;
    --gold-light: #fbbf24;
    --green:      #10b981;
    --red:        #ef4444;
    --white:      #ffffff;
    --grey-1:     #f4f6f8;
    --grey-2:     #e5e7eb;
    --grey-3:     #9ca3af;
    --grey-4:     #6b7280;
    --text:       #1f2937;
    --border:     rgba(255,255,255,0.10);
    --card-bg:    rgba(255,255,255,0.05);
}

/* ── Full screen wrapper ──────────────────────────────────── */
#ohub-app.ohub-fullscreen {
    position: relative;
    min-height: 100vh;
    background: var(--navy);
    color: var(--white);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

#ohub-app.ohub-fullscreen::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0,115,170,0.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(0,168,232,0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.ohub-wrap {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── Auth wall ────────────────────────────────────────────── */
.ohub-auth-wall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 40px 24px;
}
.ohub-logo-mark { font-size: 64px; margin-bottom: 20px; }
.ohub-hero-title { font-size: clamp(28px,5vw,48px); font-weight:700; margin-bottom:12px; }
.ohub-hero-sub   { font-size:16px; color: rgba(255,255,255,0.6); max-width:520px; line-height:1.7; margin-bottom:28px; }
.ohub-auth-btns  { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }

/* ── Buttons ──────────────────────────────────────────────── */
.ohub-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.22s ease;
    white-space: nowrap;
}
.ohub-btn--primary {
    background: var(--navy-main);
    color: var(--white);
}
.ohub-btn--primary:hover { background:#005f8f; transform:translateY(-1px); }

.ohub-btn--gold {
    background: linear-gradient(135deg,var(--gold),var(--gold-light));
    color: var(--navy);
    font-weight: 700;
}
.ohub-btn--gold:hover { filter:brightness(1.1); transform:translateY(-1px); }

.ohub-btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
}
.ohub-btn--outline:hover { border-color:var(--gold); color:var(--gold); }

.ohub-btn--sm { padding:6px 14px; font-size:12px; border-radius:8px; }

/* ── Cards ────────────────────────────────────────────────── */
.ohub-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(8px);
}
.ohub-card-hdr {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ohub-card-hdr-note { font-size:11px; font-weight:400; color:rgba(255,255,255,0.4); }

/* ── Dashboard ────────────────────────────────────────────── */
.ohub-dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.ohub-dash-welcome { font-size: clamp(22px,4vw,32px); font-weight:700; margin-bottom:4px; }
.ohub-dash-sub     { color: rgba(255,255,255,0.5); font-size:14px; }

.ohub-stats-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.ohub-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
}
.ohub-stat-num   { font-size: 36px; font-weight:700; color:var(--gold-light); line-height:1; }
.ohub-stat-label { font-size: 12px; color:rgba(255,255,255,0.5); margin-top:6px; text-transform:uppercase; letter-spacing:0.08em; }

/* Progress bar */
.ohub-progress-bar  { background:rgba(255,255,255,0.1); border-radius:999px; height:8px; overflow:hidden; margin:8px 0; }
.ohub-progress-fill { background:linear-gradient(90deg,var(--navy-main),var(--gold)); height:100%; border-radius:999px; transition:width 0.8s ease; }
.ohub-progress-label { font-size:12px; color:rgba(255,255,255,0.5); }
.ohub-progress-label a { color:var(--gold-light); }

/* Type counts */
.ohub-type-grid { display:flex; flex-wrap:wrap; gap:12px; }
.ohub-type-item { display:flex; flex-direction:column; align-items:center; gap:4px; background:rgba(255,255,255,0.06); border-radius:10px; padding:12px 16px; min-width:80px; }
.ohub-type-icon { font-size:22px; }
.ohub-type-num  { font-size:20px; font-weight:700; color:var(--gold-light); }
.ohub-type-name { font-size:11px; color:rgba(255,255,255,0.5); text-transform:capitalize; }

/* App row */
.ohub-app-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.06); }
.ohub-app-name { font-size:13px; color:var(--white); flex:1; margin-right:12px; }
.ohub-app-status { font-size:12px; font-weight:600; text-transform:capitalize; }

/* Quick links */
.ohub-quick-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:20px; }
.ohub-quick-card { display:flex; flex-direction:column; align-items:center; gap:8px; padding:20px 12px;
    background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.10); border-radius:14px;
    text-decoration:none; color:var(--white); transition:all 0.22s ease; }
.ohub-quick-card:hover { background:rgba(255,255,255,0.10); border-color:var(--gold); transform:translateY(-3px); }
.ohub-quick-icon  { font-size:28px; }
.ohub-quick-label { font-size:13px; font-weight:600; }

/* ── Filters ──────────────────────────────────────────────── */
.ohub-filters { margin-bottom:24px; }
.ohub-filter-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

.ohub-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
}
.ohub-select--white { background:rgba(255,255,255,0.12); }
.ohub-select option { background:#0d2d5e; color:var(--white); }

.ohub-search-input {
    flex: 1;
    min-width: 200px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
}
.ohub-search-input::placeholder { color:rgba(255,255,255,0.35); }
.ohub-search-input:focus { outline:none; border-color:var(--gold); }

.ohub-results-info { font-size:13px; color:rgba(255,255,255,0.5); margin-bottom:16px; }

/* ── Opportunity grid ─────────────────────────────────────── */
.ohub-opp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.ohub-opp-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
}
.ohub-opp-card:hover { background:rgba(255,255,255,0.10); border-color:rgba(245,158,11,0.4); transform:translateY(-3px); }
.ohub-opp-card-top   { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.ohub-opp-type-badge { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--gold-light); }
.ohub-opp-name       { font-size:15px; font-weight:600; line-height:1.3; margin-bottom:8px; color:var(--white); }
.ohub-opp-about      { font-size:12px; color:rgba(255,255,255,0.5); line-height:1.6; margin-bottom:12px; }
.ohub-opp-meta       { display:flex; gap:12px; flex-wrap:wrap; }
.ohub-opp-meta span  { font-size:11px; color:rgba(255,255,255,0.4); }

/* Save button */
.ohub-save-btn { background:none; border:none; font-size:20px; cursor:pointer; color:rgba(255,255,255,0.3); transition:color 0.2s; padding:0; }
.ohub-save-btn:hover   { color:var(--gold); }
.ohub-save-btn.ohub-saved { color:var(--gold); }

/* ── Modal ────────────────────────────────────────────────── */
.ohub-modal { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; }
.ohub-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.7); backdrop-filter:blur(4px); }
.ohub-modal-box {
    position:relative; z-index:1; background:#0d2d5e;
    border:1px solid rgba(255,255,255,0.15); border-radius:20px;
    width:100%; max-width:680px; max-height:90vh; overflow-y:auto;
    padding:32px; margin:16px;
}
.ohub-modal-close { position:absolute; top:16px; right:16px; background:rgba(255,255,255,0.1); border:none; color:var(--white); width:32px; height:32px; border-radius:50%; cursor:pointer; font-size:14px; }
.ohub-modal-type  { font-size:12px; font-weight:700; text-transform:uppercase; color:var(--gold-light); margin-bottom:8px; letter-spacing:0.1em; }
.ohub-modal-title { font-size:22px; font-weight:700; margin-bottom:16px; line-height:1.3; }
.ohub-modal-section { margin-bottom:16px; }
.ohub-modal-section strong { font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--gold-light); display:block; margin-bottom:6px; }
.ohub-modal-section p { font-size:14px; color:rgba(255,255,255,0.75); line-height:1.7; }
.ohub-modal-meta-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.ohub-modal-meta-item strong { font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--gold-light); display:block; margin-bottom:4px; }
.ohub-modal-meta-item p { font-size:13px; color:rgba(255,255,255,0.7); }

/* Apply section */
.ohub-apply-section { margin-top:24px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.1); }
.ohub-apply-section h3 { font-size:15px; font-weight:700; margin-bottom:12px; }
.ohub-letter-box  { width:100%; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); color:var(--white); border-radius:10px; padding:14px; font-size:13px; line-height:1.7; resize:vertical; }
.ohub-letter-actions { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.ohub-letter-note { font-size:11px; color:rgba(255,255,255,0.35); margin-top:8px; }

/* ── Profile ──────────────────────────────────────────────── */
.ohub-page-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:28px; flex-wrap:wrap; gap:12px; }
.ohub-page-title  { font-size:clamp(22px,4vw,32px); font-weight:700; }
.ohub-page-sub    { font-size:14px; color:rgba(255,255,255,0.5); margin-top:4px; }

/* Tabs */
.ohub-tabs { display:flex; gap:4px; margin-bottom:24px; border-bottom:1px solid rgba(255,255,255,0.1); padding-bottom:0; }
.ohub-tab  { background:none; border:none; color:rgba(255,255,255,0.5); padding:10px 20px; font-size:14px; font-weight:600; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; transition:all 0.2s; }
.ohub-tab--active { color:var(--gold-light); border-bottom-color:var(--gold); }
.ohub-tab:hover   { color:var(--white); }

/* Form */
.ohub-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ohub-form-group { display:flex; flex-direction:column; gap:6px; }
.ohub-form-group--full { grid-column:1/-1; }
.ohub-label   { font-size:12px; font-weight:600; color:rgba(255,255,255,0.6); text-transform:uppercase; letter-spacing:0.08em; }
.ohub-input   { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); color:var(--white); padding:10px 14px; border-radius:10px; font-size:14px; }
.ohub-input:focus { outline:none; border-color:var(--gold); }
.ohub-textarea { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); color:var(--white); padding:10px 14px; border-radius:10px; font-size:14px; width:100%; resize:vertical; }
.ohub-textarea:focus { outline:none; border-color:var(--gold); }
.ohub-hint    { font-size:11px; color:rgba(255,255,255,0.35); }
.ohub-form-actions { display:flex; align-items:center; gap:12px; margin-top:20px; flex-wrap:wrap; }
.ohub-inline-msg   { font-size:13px; color:var(--green); }
.ohub-checkbox-row { display:flex; flex-wrap:wrap; gap:12px; }
.ohub-checkbox-row label { display:flex; align-items:center; gap:6px; font-size:13px; cursor:pointer; }

/* Document vault */
.ohub-doc-types { display:flex; flex-direction:column; gap:2px; }
.ohub-doc-item  { border-radius:10px; overflow:hidden; margin-bottom:6px; }
.ohub-doc-item-header { display:flex; align-items:center; gap:12px; padding:14px 16px; background:rgba(255,255,255,0.06); cursor:pointer; transition:background 0.2s; border-radius:10px; }
.ohub-doc-item-header:hover { background:rgba(255,255,255,0.10); }
.ohub-doc-icon   { font-size:22px; }
.ohub-doc-info   { flex:1; display:flex; flex-direction:column; gap:2px; }
.ohub-doc-name   { font-size:14px; font-weight:600; }
.ohub-doc-hint   { font-size:11px; color:rgba(255,255,255,0.4); }
.ohub-doc-status { font-size:11px; color:rgba(255,255,255,0.4); white-space:nowrap; }
.ohub-doc-arrow  { color:rgba(255,255,255,0.3); font-size:12px; }
.ohub-doc-editor { padding:16px; background:rgba(255,255,255,0.04); border-radius:0 0 10px 10px; }
.ohub-doc-textarea { min-height:180px; }

/* ── Applications ─────────────────────────────────────────── */
.ohub-status-filter { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.10); color:rgba(255,255,255,0.6); padding:7px 14px; border-radius:20px; font-size:12px; font-weight:600; cursor:pointer; transition:all 0.2s; }
.ohub-status-filter:hover { border-color:var(--gold); color:var(--gold); }
.ohub-status-filter--active { background:var(--gold); border-color:var(--gold); color:var(--navy); }

.ohub-apps-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.ohub-app-card  { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.10); border-radius:14px; padding:20px; }
.ohub-app-card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:10px; }
.ohub-app-opp-name { font-size:15px; font-weight:600; flex:1; line-height:1.3; }
.ohub-app-status-badge { font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; color:var(--white); white-space:nowrap; }
.ohub-app-preview { font-size:12px; color:rgba(255,255,255,0.45); line-height:1.6; margin-bottom:14px; }
.ohub-app-card-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ohub-app-date  { font-size:11px; color:rgba(255,255,255,0.25); margin-top:10px; }

/* Empty states */
.ohub-empty-state { text-align:center; padding:60px 24px; }
.ohub-empty-state h3 { font-size:20px; font-weight:700; margin-bottom:8px; }
.ohub-empty-state p  { color:rgba(255,255,255,0.5); margin-bottom:16px; }
.ohub-empty { font-size:13px; color:rgba(255,255,255,0.4); padding:20px 0; }

/* ── Pagination ───────────────────────────────────────────── */
.ohub-pagination   { display:flex; justify-content:center; margin-top:20px; }
.ohub-pg-inner     { display:flex; align-items:center; gap:10px; }
.ohub-pg-inner button { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); color:var(--white); padding:8px 16px; border-radius:8px; cursor:pointer; font-size:13px; }
.ohub-pg-inner button:hover { border-color:var(--gold); color:var(--gold); }
.ohub-pg-inner span { font-size:13px; color:rgba(255,255,255,0.5); }

/* ── Loading & error ──────────────────────────────────────── */
.ohub-loading { font-size:14px; color:rgba(255,255,255,0.5); text-align:center; padding:40px; }
.ohub-error   { color:#f87171; font-size:13px; }
.ohub-link-sm { font-size:12px; color:var(--gold-light); text-decoration:none; }
.ohub-link-sm:hover { text-decoration:underline; }

/* Browse header */
.ohub-browse-header { text-align:center; margin-bottom:32px; }
.ohub-browse-title  { font-size:clamp(24px,4vw,36px); font-weight:700; margin-bottom:8px; }
.ohub-browse-sub    { font-size:14px; color:rgba(255,255,255,0.5); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width:768px){
    .ohub-stats-row     { grid-template-columns:1fr 1fr; }
    .ohub-quick-grid    { grid-template-columns:1fr 1fr; }
    .ohub-form-grid     { grid-template-columns:1fr; }
    .ohub-form-group--full { grid-column:auto; }
    .ohub-opp-grid      { grid-template-columns:1fr; }
    .ohub-modal-meta-row{ grid-template-columns:1fr; }
    .ohub-dash-header   { flex-direction:column; }
    .ohub-page-header   { flex-direction:column; }
    .ohub-wrap          { padding:20px 16px 60px; }
}
@media (max-width:480px){
    .ohub-stats-row  { grid-template-columns:1fr 1fr; }
    .ohub-quick-grid { grid-template-columns:1fr 1fr; }
}
