/* =========================================================
   منصة أفكار — نظام التصميم
   ========================================================= */
:root {
    --ib-primary: #0f766e;          /* teal-700 */
    --ib-primary-dark: #115e59;
    --ib-primary-light: #ccfbf1;
    --ib-accent: #f59e0b;           /* amber-500 */
    --ib-accent-dark: #d97706;
    --ib-navy: #0f172a;
    --ib-navy-2: #1e293b;
    --ib-ink: #0f172a;
    --ib-muted: #64748b;
    --ib-surface: #f8fafc;
    --ib-border: #e2e8f0;

    --bs-primary: var(--ib-primary);
    --bs-primary-rgb: 15, 118, 110;
    --bs-link-color: var(--ib-primary);
    --bs-link-color-rgb: 15, 118, 110;
    --bs-link-hover-color: var(--ib-primary-dark);
    --bs-link-hover-color-rgb: 17, 94, 89;
    --bs-body-color: #1e293b;
    --bs-body-bg: #ffffff;
    --bs-border-color: var(--ib-border);
    --bs-font-sans-serif: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { overflow-x: clip; }
body { font-family: var(--bs-font-sans-serif); letter-spacing: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .navbar-brand {
    font-family: 'Cairo', var(--bs-font-sans-serif);
    font-weight: 800;
    letter-spacing: -0.01em;
}
.bg-body-tertiary { background-color: var(--ib-surface) !important; }

/* ---------- Bootstrap component overrides ---------- */
.btn { font-weight: 600; border-radius: .6rem; padding: .55rem 1.1rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .3rem .7rem; border-radius: .45rem; }
.btn-primary {
    --bs-btn-bg: var(--ib-primary); --bs-btn-border-color: var(--ib-primary);
    --bs-btn-hover-bg: var(--ib-primary-dark); --bs-btn-hover-border-color: var(--ib-primary-dark);
    --bs-btn-active-bg: var(--ib-primary-dark); --bs-btn-active-border-color: var(--ib-primary-dark);
    --bs-btn-disabled-bg: var(--ib-primary); --bs-btn-disabled-border-color: var(--ib-primary);
    --bs-btn-focus-shadow-rgb: 15, 118, 110;
}
.btn-outline-primary {
    --bs-btn-color: var(--ib-primary); --bs-btn-border-color: var(--ib-primary);
    --bs-btn-hover-bg: var(--ib-primary); --bs-btn-hover-border-color: var(--ib-primary);
    --bs-btn-active-bg: var(--ib-primary); --bs-btn-active-border-color: var(--ib-primary);
    --bs-btn-focus-shadow-rgb: 15, 118, 110;
}
.btn-accent {
    --bs-btn-bg: var(--ib-accent); --bs-btn-border-color: var(--ib-accent); --bs-btn-color: #1a1200;
    --bs-btn-hover-bg: var(--ib-accent-dark); --bs-btn-hover-border-color: var(--ib-accent-dark); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--ib-accent-dark); --bs-btn-active-border-color: var(--ib-accent-dark); --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 245, 158, 11;
}
.bg-primary { background-color: var(--ib-primary) !important; }
.text-primary { color: var(--ib-primary) !important; }
.border-primary { border-color: var(--ib-primary) !important; }
.bg-primary.bg-opacity-10 { background-color: rgba(15,118,110,.1) !important; }
.badge.bg-primary { background-color: var(--ib-primary) !important; }
.form-control, .form-select { border-radius: .6rem; padding: .6rem .9rem; border-color: #cbd5e1; }
/* Dropdown popups don't inherit web fonts on Windows — force a readable size and an Arabic-capable system font. */
select option { font-size: 16px; font-family: 'Segoe UI', Tahoma, Arial, sans-serif; padding: 8px 12px; }

/* Custom select dropdown (.afkar-select) — replaces native popups so options render with site fonts */
.afkar-select .afkar-select-btn { width: 100%; text-align: start; background-color: #fff; cursor: pointer; }
.afkar-select .afkar-select-btn .ws-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afkar-select .afkar-select-menu { max-height: 320px; overflow-y: auto; border-radius: .6rem; border-color: var(--ib-border); box-shadow: 0 14px 34px -14px rgba(15,23,42,.3); padding: .35rem; }
.afkar-select .dropdown-item { font-size: 1rem; padding: .55rem .9rem; border-radius: .45rem; }
.afkar-select .dropdown-item:hover { background: var(--ib-primary-light); color: var(--ib-primary-dark); }
.afkar-select .dropdown-item.active { background: var(--ib-primary); color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--ib-primary); box-shadow: 0 0 0 .25rem rgba(15,118,110,.15); }
.form-check-input:checked { background-color: var(--ib-primary); border-color: var(--ib-primary); }
.card { border-radius: 1rem; }
.shadow-sm { box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04) !important; }
.shadow-soft { box-shadow: 0 10px 30px -10px rgba(15,23,42,.15); }
.page-link { color: var(--ib-primary); }
.active > .page-link, .page-link.active { background-color: var(--ib-primary); border-color: var(--ib-primary); }
.nav-pills .nav-link.active { background-color: var(--ib-primary); }
.dropdown-item:active { background-color: var(--ib-primary); }
.list-group-item-action:hover { background-color: var(--ib-surface); }
.alert { border-radius: .75rem; }
.breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: .5rem; padding-right: 0; }

/* ---------- Navbar ---------- */
.ib-navbar { background: #fff; border-bottom: 1px solid var(--ib-border); }
.ib-navbar .nav-link { color: #334155; font-weight: 500; padding-inline: .9rem; }
.ib-navbar .nav-link:hover, .ib-navbar .nav-link.active { color: var(--ib-primary); }
.brand-mark { font-size: 1.5rem !important;
    width: 36px; height: 36px; border-radius: .7rem; display: inline-grid; place-items: center;
    background: linear-gradient(135deg, var(--ib-primary), #14b8a6); color: #fff; font-size: 1.15rem;
    box-shadow: 0 4px 12px -2px rgba(15,118,110,.45);
}
.navbar-brand { color: var(--ib-ink) !important; font-size: 1.25rem; }

/* ---------- Landing ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1200px 600px at 85% -10%, rgba(20,184,166,.35), transparent 60%),
                radial-gradient(800px 500px at 5% 110%, rgba(245,158,11,.18), transparent 60%),
                linear-gradient(160deg, var(--ib-navy) 0%, var(--ib-navy-2) 100%);
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}
.hero > .container { position: relative; z-index: 1; }
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); font-size: .85rem; font-weight: 500;
}
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); line-height: 1.25; }
.hero h1 .hl { color: #5eead4; position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ''; position: absolute; right: 0; left: 0; bottom: .08em; height: .28em; background: rgba(245,158,11,.45); z-index: -1; border-radius: 3px; }
.hero .lead { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 36rem; }
.hero .trust { color: rgba(255,255,255,.65); font-size: .9rem; }
.hero .trust b { color: #fff; }

/* mock app preview in hero */
.mock-stack { position: relative; min-height: 420px; }
.mock-card {
    position: absolute; background: #fff; color: var(--ib-ink); border-radius: 1rem; padding: 1.1rem;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
    width: 320px;
}
.mock-card.main { right: 0; top: 40px; width: 340px; }
.mock-card.req { left: 0; bottom: 40px; width: 290px; animation: float 6s ease-in-out infinite; }
.mock-card.notif { left: 30px; top: 0; width: 260px; animation: float 7s ease-in-out infinite reverse; }
.mock-img { height: 120px; border-radius: .7rem; background: linear-gradient(135deg, #99f6e4, #0f766e); display: grid; place-items: center; color: #fff; font-size: 2.2rem; }
.mock-bar { height: 8px; border-radius: 4px; background: #e2e8f0; }
.mock-progress { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.mock-progress > span { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--ib-primary), #14b8a6); }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@media (max-width: 991.98px) { .mock-stack { display: none; } }

.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-kicker { color: var(--ib-primary); font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.section-sub { color: var(--ib-muted); max-width: 40rem; font-size: 1.05rem; }

.stat-strip { margin-top: -2.5rem; position: relative; z-index: 2; }
.stat-tile { background: #fff; border-radius: 1rem; padding: 1.25rem; border: 1px solid var(--ib-border); box-shadow: 0 10px 30px -15px rgba(15,23,42,.2); }
.stat-tile .num { font-family: 'Cairo'; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--ib-ink); }
.stat-tile .lbl { color: var(--ib-muted); font-size: .9rem; margin-top: .35rem; }
.stat-tile .ico { width: 44px; height: 44px; border-radius: .75rem; display: grid; place-items: center; background: var(--ib-primary-light); color: var(--ib-primary); font-size: 1.25rem; }

.problem-card { border: 1px solid var(--ib-border); border-radius: 1rem; padding: 1.5rem; height: 100%; background: #fff; transition: .2s; }
.problem-card:hover { border-color: var(--ib-primary); transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(15,118,110,.35); }
.problem-card .ico { width: 52px; height: 52px; border-radius: .9rem; display: grid; place-items: center; font-size: 1.4rem; background: #fef3c7; color: #b45309; }
.problem-card.solution .ico { background: var(--ib-primary-light); color: var(--ib-primary); }

.track { border-radius: 1.25rem; padding: 2rem; height: 100%; }
.track.innovator { background: linear-gradient(160deg, #ecfeff, #f0fdfa); border: 1px solid #99f6e4; }
.track.investor { background: linear-gradient(160deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; }
.track .tag { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; }
.track.innovator .tag { background: var(--ib-primary); color: #fff; }
.track.investor .tag { background: var(--ib-accent); color: #1a1200; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step + .step { margin-top: 1.25rem; }
.step .n { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: 'Cairo'; font-weight: 800; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.1); }
.track.innovator .step .n { color: var(--ib-primary); }
.track.investor .step .n { color: var(--ib-accent-dark); }
.step h6 { margin-bottom: .2rem; font-weight: 700; font-family: var(--bs-font-sans-serif); }
.step p { margin: 0; color: var(--ib-muted); font-size: .95rem; }

.feature { display: flex; gap: 1rem; }
.feature .ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: .8rem; display: grid; place-items: center; background: var(--ib-primary-light); color: var(--ib-primary); font-size: 1.3rem; }
.feature h6 { font-weight: 700; font-family: var(--bs-font-sans-serif); margin-bottom: .25rem; }
.feature p { color: var(--ib-muted); margin: 0; font-size: .95rem; }

.cat-chip { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--ib-border); border-radius: .9rem; color: var(--ib-ink); text-decoration: none; transition: .2s; }
.cat-chip:hover { border-color: var(--ib-primary); color: var(--ib-primary); transform: translateY(-2px); }
.cat-chip .ico { width: 40px; height: 40px; border-radius: .7rem; display: grid; place-items: center; background: var(--ib-surface); color: var(--ib-primary); font-size: 1.2rem; }
.cat-chip .cnt { margin-right: auto; font-size: .8rem; color: var(--ib-muted); }

.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { background: var(--ib-primary-light); color: var(--ib-primary-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .25rem rgba(15,118,110,.15); }
.accordion-button::after { margin-left: 0; margin-right: auto; }

.cta-band { border-radius: 1.5rem; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--ib-navy), #134e4a); position: relative; }
.cta-band::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(20,184,166,.25); filter: blur(60px); left: -120px; top: -160px; }
.cta-band::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(245,158,11,.25); filter: blur(60px); right: -100px; bottom: -140px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-split { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; padding: 1.5rem; height: 100%; }

/* ---------- Project cards ---------- */
.project-card { transition: transform .15s ease, box-shadow .15s ease; border: 1px solid var(--ib-border) !important; }
.project-card .card-img-top { height: 180px; object-fit: cover; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(15,23,42,.25) !important; }

/* ---------- Dashboard / misc ---------- */
.stat-card .display-6 { font-weight: 800; }
.chat-box { height: 420px; overflow-y: auto; }
.chat-bubble { max-width: 75%; border-radius: 1rem; padding: .6rem .9rem; }
.chat-bubble.mine { background: var(--ib-primary); color: #fff; margin-right: auto; margin-left: 0; }
.chat-bubble.theirs { background: #e9ecef; margin-left: auto; margin-right: 0; }
.conversation-item.active { background: var(--ib-primary-light); }
.notif-unread { background: #f0fdfa; }
.project-desc { white-space: pre-line; line-height: 1.9; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
    color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
    background: radial-gradient(900px 500px at 90% 0%, rgba(20,184,166,.35), transparent 60%),
                radial-gradient(700px 500px at 0% 100%, rgba(245,158,11,.2), transparent 60%),
                linear-gradient(160deg, var(--ib-navy), var(--ib-navy-2));
}
.auth-side::after { content: ''; position: absolute; inset: 0; opacity: .3; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 80%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font-size: 2rem; line-height: 1.35; }
.auth-point { display: flex; gap: .9rem; align-items: flex-start; color: rgba(255,255,255,.8); }
.auth-point + .auth-point { margin-top: 1.1rem; }
.auth-point .ico { flex: 0 0 38px; width: 38px; height: 38px; border-radius: .7rem; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #5eead4; }
.auth-point b { color: #fff; display: block; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: #fff; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.7rem; }
.role-pick { border: 2px solid var(--ib-border); border-radius: .9rem; padding: 1rem; cursor: pointer; text-align: center; transition: .15s; height: 100%; }
.role-pick i { font-size: 1.6rem; }
.role-pick b { display: block; margin-top: .3rem; }
.role-pick small { color: var(--ib-muted); }
.btn-check:checked + .role-pick { border-color: var(--ib-primary); background: var(--ib-primary-light); }
.btn-check:checked + .role-pick.investor { border-color: var(--ib-accent); background: #fffbeb; }
.role-pick.innovator i { color: var(--ib-primary); }
.role-pick.investor i { color: var(--ib-accent-dark); }
.pw-toggle { cursor: pointer; color: var(--ib-muted); }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--ib-muted); font-size: .85rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--ib-border); }
@media (max-width: 991.98px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-form { min-height: 100vh; }
}

/* ---------- Footer ---------- */
.ib-footer { background: var(--ib-navy); color: rgba(255,255,255,.7); }
.ib-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.ib-footer a:hover { color: #fff; }
.ib-footer h6 { color: #fff; font-family: var(--bs-font-sans-serif); font-weight: 700; }

/* =========================================================
   Inner pages — shared components
   ========================================================= */
.page-head { background: #fff; border-bottom: 1px solid var(--ib-border); padding: 1.5rem 0; margin-bottom: 1.75rem; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head .sub { color: var(--ib-muted); font-size: .95rem; margin-top: .25rem; }
.page-head .breadcrumb { margin-bottom: .35rem; font-size: .85rem; }

.ib-card { background: #fff; border: 1px solid var(--ib-border); border-radius: 1rem; }
.ib-card .card-header { background: transparent; border-bottom: 1px solid var(--ib-border); padding: 1rem 1.25rem; font-weight: 700; border-radius: 1rem 1rem 0 0 !important; }
.ib-card .card-body { padding: 1.25rem; }
.ib-card .table { margin: 0; }
.ib-card .table thead th { background: var(--ib-surface); color: var(--ib-muted); font-weight: 600; font-size: .82rem; border-bottom: 1px solid var(--ib-border); padding: .8rem 1rem; white-space: nowrap; }
.ib-card .table tbody td { padding: .9rem 1rem; vertical-align: middle; border-color: var(--ib-border); }
.ib-card .table tbody tr:last-child td { border-bottom: 0; }
.ib-card .list-group-item { border-color: var(--ib-border); padding: .9rem 1.25rem; }
.ib-card .list-group-flush > .list-group-item:last-child { border-bottom: 0; border-radius: 0 0 1rem 1rem; }

.badge-soft { font-weight: 600; padding: .4em .7em; border-radius: 999px; }
.badge-soft.primary { background: var(--ib-primary-light); color: var(--ib-primary-dark); }
.badge-soft.success { background: #dcfce7; color: #166534; }
.badge-soft.warning { background: #fef3c7; color: #92400e; }
.badge-soft.danger { background: #fee2e2; color: #991b1b; }
.badge-soft.secondary { background: #f1f5f9; color: #475569; }
.badge-soft.info { background: #e0f2fe; color: #075985; }

.kpi { background: #fff; border: 1px solid var(--ib-border); border-radius: 1rem; padding: 1.15rem 1.25rem; display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; transition: .15s; height: 100%; }
.kpi:hover { border-color: var(--ib-primary); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(15,118,110,.35); color: inherit; }
.kpi .ico { width: 50px; height: 50px; border-radius: .85rem; display: grid; place-items: center; font-size: 1.35rem; flex: 0 0 50px; }
.kpi .num { font-family: 'Cairo'; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--ib-ink); }
.kpi .lbl { color: var(--ib-muted); font-size: .85rem; margin-top: .3rem; }
.kpi.primary .ico { background: var(--ib-primary-light); color: var(--ib-primary); }
.kpi.success .ico { background: #dcfce7; color: #15803d; }
.kpi.warning .ico { background: #fef3c7; color: #b45309; }
.kpi.danger .ico { background: #fee2e2; color: #b91c1c; }
.kpi.info .ico { background: #e0f2fe; color: #0369a1; }

.empty { text-align: center; padding: 3.5rem 1.5rem; color: var(--ib-muted); }
.empty .ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ib-surface); color: var(--ib-primary); font-size: 2rem; margin: 0 auto 1rem; }
.empty h5 { color: var(--ib-ink); font-family: var(--bs-font-sans-serif); font-weight: 700; }

.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 72px; height: 72px; }

.filter-card .form-label { font-size: .9rem; font-weight: 600; color: var(--ib-muted); margin-bottom: .3rem; }
.pill-tabs .btn { border-radius: 999px; }
.pill-tabs .btn.active { background: var(--ib-ink); border-color: var(--ib-ink); color: #fff; }

.form-section { background: #fff; border: 1px solid var(--ib-border); border-radius: 1rem; margin-bottom: 1.25rem; }
.form-section > .head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--ib-border); display: flex; align-items: center; gap: .75rem; }
.form-section > .head .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ib-primary-light); color: var(--ib-primary); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.form-section > .head h6 { margin: 0; font-weight: 700; font-family: var(--bs-font-sans-serif); }
.form-section > .body { padding: 1.25rem; }
.form-label { font-weight: 600; font-size: .9rem; }
.form-text { font-size: .8rem; }

.project-hero { border-radius: 1rem; overflow: hidden; position: relative; }
.project-hero img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.project-hero .over { position: absolute; inset: auto 0 0 0; padding: 1.25rem; background: linear-gradient(transparent, rgba(15,23,42,.85)); color: #fff; }
.meta-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.meta-list .item { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: var(--ib-surface); border: 1px solid var(--ib-border); font-size: .85rem; color: #334155; }
.sticky-side { position: sticky; top: 84px; }

.chat-list { max-height: 560px; overflow-y: auto; }
.chat-box { height: 460px; }
.chat-bubble { max-width: 72%; border-radius: 1.1rem; padding: .65rem 1rem; line-height: 1.6; }
.chat-bubble.mine { border-bottom-right-radius: .3rem; }
.chat-bubble.theirs { background: var(--ib-surface); border: 1px solid var(--ib-border); border-bottom-left-radius: .3rem; }

.notif-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; border: 0; border-bottom: 1px solid var(--ib-border); background: #fff; width: 100%; text-align: start; }
.notif-item:hover { background: var(--ib-surface); }
.notif-item.unread { background: #f0fdfa; }
.notif-item .ico { width: 42px; height: 42px; border-radius: .8rem; display: grid; place-items: center; background: var(--ib-surface); font-size: 1.2rem; flex: 0 0 42px; }

.about-hero { background: linear-gradient(160deg, var(--ib-navy), #134e4a); color: #fff; }
.value-card { background: #fff; border: 1px solid var(--ib-border); border-radius: 1rem; padding: 1.5rem; height: 100%; }
.value-card .ico { width: 48px; height: 48px; border-radius: .85rem; display: grid; place-items: center; background: var(--ib-primary-light); color: var(--ib-primary); font-size: 1.3rem; margin-bottom: 1rem; }
.contact-info { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info .ico { width: 44px; height: 44px; border-radius: .8rem; display: grid; place-items: center; background: var(--ib-primary-light); color: var(--ib-primary); flex: 0 0 44px; }

/* ---------- Admin ---------- */
.admin-nav .list-group-item.active { background: var(--ib-primary); border-color: var(--ib-primary); color: #fff; }
.admin-nav .list-group-item.active .badge { background: #fff !important; color: var(--ib-primary) !important; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.gallery-grid .g-item { position: relative; border-radius: .75rem; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--ib-border); }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-grid .g-item form { position: absolute; top: .35rem; left: .35rem; }
.fav-btn.active { color: #dc2626; }
.verified-badge { color: var(--ib-primary); }
.update-item { border-right: 3px solid var(--ib-primary); padding-right: 1rem; }
.update-item + .update-item { margin-top: 1.25rem; }
.deal-steps { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.deal-steps .st { padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; background: var(--ib-surface); border: 1px solid var(--ib-border); color: var(--ib-muted); }
.deal-steps .st.done { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.deal-steps .st.now { background: var(--ib-primary); color: #fff; border-color: var(--ib-primary); }
.profile-hero { background: linear-gradient(160deg, var(--ib-navy), #134e4a); color: #fff; border-radius: 1.25rem; }

/* ---------- Feature tiles (under hero) ---------- */
.feature-tiles { margin-top: -2.5rem; position: relative; z-index: 2; }
.f-tile { background: #fff; border: 1px solid var(--ib-border); border-radius: 1rem; padding: 1.25rem; text-align: center; display: block; color: var(--ib-ink); text-decoration: none; transition: .2s; height: 100%; box-shadow: 0 10px 30px -15px rgba(15,23,42,.2); }
.f-tile:hover { transform: translateY(-4px); border-color: var(--ib-primary); color: var(--ib-ink); box-shadow: 0 16px 34px -16px rgba(15,118,110,.4); }
.f-tile .ico { width: 56px; height: 56px; border-radius: 1rem; display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto .75rem; }
.f-tile b { display: block; font-size: 1rem; }
.f-tile span { color: var(--ib-muted); font-size: .82rem; }
.f-tile.t1 .ico { background: var(--ib-primary-light); color: var(--ib-primary); }
.f-tile.t2 .ico { background: #fef3c7; color: #b45309; }
.f-tile.t3 .ico { background: #ede9fe; color: #6d28d9; }
.f-tile.t4 .ico { background: #e0f2fe; color: #0369a1; }
.f-tile.t5 .ico { background: #dcfce7; color: #15803d; }
@media (min-width: 992px) { .feature-tiles .col-lg { min-width: 0; } .f-tile span { font-size: .78rem; } }

/* ---------- Talent cards ---------- */
.talent-card { background: #fff; border: 1px solid var(--ib-border); border-radius: 1rem; overflow: hidden; transition: .15s; height: 100%; display: flex; flex-direction: column; }
.talent-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(15,23,42,.25); }
.talent-card .cover { height: 160px; object-fit: cover; width: 100%; }
.talent-card .body { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; }
.talent-card .who { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--ib-border); }
.type-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-size: .78rem; font-weight: 600; }
.type-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.type-pills a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--ib-border); background: #fff; color: #334155; font-size: .85rem; text-decoration: none; }
.type-pills a.active, .type-pills a:hover { background: var(--ib-primary); border-color: var(--ib-primary); color: #fff; }

/* ---------- Competition cards ---------- */
.comp-card { background: #fff; border: 1px solid var(--ib-border); border-radius: 1rem; overflow: hidden; transition: .15s; height: 100%; display: flex; flex-direction: column; }
.comp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(15,23,42,.25); }
.comp-card .cover { position: relative; height: 150px; background: linear-gradient(135deg, var(--ib-navy), #134e4a); }
.comp-card .cover img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.comp-card .cover .deadline { position: absolute; bottom: .6rem; right: .6rem; background: rgba(15,23,42,.85); color: #fff; padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; }
.comp-card .cover .prize { position: absolute; top: .6rem; left: .6rem; background: var(--ib-accent); color: #1a1200; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.comp-card .body { padding: 1rem 1.15rem 1.15rem; flex-grow: 1; display: flex; flex-direction: column; }
.comp-closed .cover { filter: grayscale(.6); }
.countdown { display: inline-flex; align-items: center; gap: .4rem; background: #fef3c7; color: #92400e; padding: .35rem .85rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 1rem; overflow: hidden; background: #0f172a; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.winner-badge { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; padding: .3rem .8rem; border-radius: 999px; font-weight: 700; font-size: .8rem; }
