/* ICACE 2026 — Registration & Payment Portal
   Navy / blue with a subtle cyan accent on clean white. */
:root {
  /* Palette of the main ICACE site (mainv2.css): deep navy-teal #051922 + orange #F28123 */
  --ic-navy-900: #051922;
  --ic-navy-800: #051922;
  --ic-navy-700: #0c2c3b;
  --ic-blue-600: #F28123;   /* primary accent (orange) */
  --ic-blue-500: #f39a4d;
  --ic-blue-100: #fde3cc;
  --ic-blue-50: #fff5ec;
  --ic-cyan-500: #F28123;
  --ic-cyan-400: #f6a462;
  --ic-cyan-50: #eef2f4;
  --ic-ink: #051922;
  --ic-body: #555555;
  --ic-muted: #6f6f6f;
  --ic-line: #e4e4e4;
  --ic-surface: #ffffff;
  --ic-bg: #f5f5f5;
  --ic-success: #059669;
  --ic-warning: #d97706;
  --ic-danger: #dc2626;
  --ic-radius: 14px;
  --ic-radius-sm: 10px;
  --ic-shadow-sm: 0 1px 2px rgba(5, 25, 34, .05), 0 1px 3px rgba(5, 25, 34, .06);
  --ic-shadow: 0 10px 30px -12px rgba(5, 25, 34, .22), 0 2px 6px rgba(5, 25, 34, .05);
  --ic-shadow-lg: 0 24px 60px -20px rgba(5, 25, 34, .45);
  --ic-gradient: linear-gradient(135deg, #F28123 0%, #f5994a 100%);
  --ic-dark: linear-gradient(135deg, #051922 0%, #0c2c3b 100%);
  --ic-dark-photo: linear-gradient(rgba(5, 25, 34, .82), rgba(5, 25, 34, .82)), url("../img/breadcrumb-bg.jpg") center / cover no-repeat;
  --bs-primary: #F28123;
  --bs-primary-rgb: 242, 129, 35;
  --bs-body-font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: #555555;
  --bs-border-color: #e4e4e4;
  --bs-link-color: #F28123;
  --bs-link-hover-color: #051922;
}

html { scroll-behavior: smooth; }
body { background: var(--ic-bg); color: var(--ic-body); font-size: .95rem; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6, .btn, .navbar-brand, .small-caps, .ic-badge { font-family: "Poppins", sans-serif; }
h1, h2, h3, h4, h5, h6 { color: var(--ic-ink); font-weight: 700; letter-spacing: 0; }
.font-display { font-family: "Poppins", sans-serif; font-weight: 700; }
a { color: var(--ic-blue-600); }
a:hover { color: var(--ic-navy-700); }
.text-muted { color: var(--ic-muted) !important; }
.small-caps { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--ic-muted); }
:focus-visible { outline: 3px solid rgba(242, 129, 35, .45); outline-offset: 2px; }

/* ---------- Navbar ---------- */
.ic-nav { background: #051922; border-bottom: 3px solid #F28123; }
.ic-nav .navbar-toggler { color: #fff; }
.ic-nav .navbar-brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; color: #fff; }
.ic-nav .navbar-brand img { height: 40px; width: auto; }
.ic-nav .brand-sub { display: block; font-size: .68rem; font-weight: 600; color: rgba(255, 255, 255, .65); letter-spacing: .06em; text-transform: uppercase; }
.ic-nav .nav-link { color: #fff; font-weight: 600; font-family: "Poppins", sans-serif; border-radius: 999px; padding: .45rem .9rem !important; transition: background .15s, color .15s; }
.ic-nav .nav-link:hover { color: #F28123; background: rgba(255, 255, 255, .06); }
.ic-nav .nav-link.active { color: #F28123; background: transparent; }
.ic-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ic-gradient); color: #fff; font-weight: 700; font-size: .85rem; }
.btn-signin { border: 1.5px solid #F28123; color: #fff; font-weight: 700; border-radius: 999px; padding: .45rem 1.1rem; }
.btn-signin:hover { background: rgba(242, 129, 35, .15); color: #fff; }
.btn-signup { background: var(--ic-gradient); color: #fff; font-weight: 700; border: 0; border-radius: 999px; padding: .5rem 1.2rem; box-shadow: 0 6px 18px -6px rgba(242, 129, 35, .55); }
.btn-signup:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--ic-radius-sm); font-weight: 600; transition: transform .12s ease, box-shadow .15s ease, filter .15s; }
.btn-primary { background: var(--ic-blue-600); border-color: var(--ic-blue-600); }
.btn-primary:hover, .btn-primary:focus { background: #051922; border-color: #051922; }
.btn { border-radius: 50px; }
.btn-gradient { background: var(--ic-gradient); color: #fff; border: 0; box-shadow: 0 10px 24px -10px rgba(242, 129, 35, .6); }
.btn-gradient:hover, .btn-gradient:focus { color: #fff; background: #051922; filter: none; transform: translateY(-1px); }
.btn-gradient:disabled { filter: grayscale(.4); opacity: .65; transform: none; }
.btn-soft { background: var(--ic-blue-50); color: var(--ic-blue-600); border: 1px solid var(--ic-blue-100); }
.btn-soft:hover { background: var(--ic-blue-100); color: #051922; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }

/* ---------- Cards ---------- */
.ic-card { background: var(--ic-surface); border: 1px solid var(--ic-line); border-radius: var(--ic-radius); box-shadow: var(--ic-shadow-sm); }
.ic-card-elevated { box-shadow: var(--ic-shadow); }
.ic-card-header { padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--ic-line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ic-card-header h2, .ic-card-header h3 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: .55rem; }
.ic-card-body { padding: 1.35rem; }
.ic-icon-chip { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--ic-blue-50); color: var(--ic-blue-600); font-size: 1.05rem; flex: none; }
.ic-icon-chip.cyan { background: var(--ic-cyan-50); color: #051922; }
.ic-icon-chip.green { background: #ecfdf5; color: var(--ic-success); }
.ic-icon-chip.amber { background: #fffbeb; color: var(--ic-warning); }

/* ---------- Page header ---------- */
.ic-hero { background: var(--ic-dark-photo); color: #fff; position: relative; overflow: hidden; }
.ic-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #F28123; pointer-events: none; }
.ic-hero > .container { position: relative; z-index: 1; }
.ic-hero h1 { color: #fff; }
.ic-hero .lead { color: rgba(255, 255, 255, .85); }
.ic-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); }
.ic-hero .breadcrumb a { color: #fff; text-decoration: none; opacity: .85; }
.ic-hero-pull { margin-top: -3.2rem; position: relative; z-index: 2; }

/* ---------- Stats ---------- */
.ic-stat { padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; }
.ic-stat .value { font-size: 1.45rem; font-weight: 800; color: var(--ic-ink); line-height: 1.1; }
.ic-stat .label { font-size: .78rem; color: var(--ic-muted); font-weight: 600; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; color: var(--ic-ink); font-size: .88rem; margin-bottom: .4rem; }
.form-control, .form-select { border-radius: var(--ic-radius-sm); border: 1.5px solid var(--ic-line); padding: .68rem .9rem; transition: border-color .15s, box-shadow .15s; }
.form-control:focus, .form-select:focus { border-color: var(--ic-blue-500); box-shadow: 0 0 0 4px rgba(242, 129, 35, .15); }
.form-control[readonly], .form-control:disabled { background: #f8fafc; color: var(--ic-muted); }
.input-group-text { border-radius: var(--ic-radius-sm); border: 1.5px solid var(--ic-line); background: #f8fafc; color: var(--ic-muted); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--ic-muted); pointer-events: none; z-index: 5; }
.input-icon > .form-control { padding-left: 2.6rem; }
.input-icon > textarea.form-control + i, .input-icon.textarea > i { top: 1.1rem; transform: none; }
.invalid-feedback { font-weight: 500; }
.form-text { color: var(--ic-muted); }
.ic-required::after { content: " *"; color: var(--ic-danger); }

/* Option pills (radio groups) */
.ic-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; }
.ic-option { position: relative; }
.ic-option input { position: absolute; opacity: 0; pointer-events: none; }
.ic-option label { display: flex; align-items: center; gap: .6rem; padding: .8rem .95rem; border: 1.5px solid var(--ic-line); border-radius: 12px; cursor: pointer; background: #fff; font-weight: 600; color: var(--ic-ink); transition: border-color .15s, background .15s, box-shadow .15s; height: 100%; }
.ic-option label i { font-size: 1.15rem; color: var(--ic-muted); transition: color .15s; }
.ic-option label small { display: block; font-weight: 500; color: var(--ic-muted); font-size: .74rem; }
.ic-option label:hover { border-color: #f8c49a; background: var(--ic-blue-50); }
.ic-option input:checked + label { border-color: var(--ic-blue-600); background: var(--ic-blue-50); box-shadow: 0 0 0 3px rgba(242, 129, 35, .15); }
.ic-option input:checked + label i { color: var(--ic-blue-600); }
.ic-option input:focus-visible + label { outline: 3px solid rgba(242, 129, 35, .45); outline-offset: 2px; }
.is-invalid-group .ic-option label { border-color: rgba(220, 38, 38, .45); }

.ic-section { padding: 1.35rem; border-bottom: 1px dashed var(--ic-line); }
.ic-section:last-child { border-bottom: 0; }
.ic-section-title { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.ic-section-title .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ic-navy-800); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.ic-section-title h3 { font-size: 1rem; margin: 0; }
.ic-tip { color: var(--ic-muted); cursor: help; }

/* Dropzone */
.ic-dropzone { border: 2px dashed #f8c49a; border-radius: 14px; background: var(--ic-blue-50); padding: 1.4rem; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.ic-dropzone:hover, .ic-dropzone.dragover { border-color: var(--ic-blue-600); background: var(--ic-blue-100); }
.ic-dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ic-dropzone .dz-icon { font-size: 2rem; color: var(--ic-blue-600); }
.ic-dropzone.has-file { border-style: solid; border-color: var(--ic-success); background: #f0fdf4; }
.ic-dropzone.has-file .dz-icon { color: var(--ic-success); }

/* Paper cards */
.ic-paper { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--ic-line); border-radius: 12px; background: #fff; animation: icFadeIn .25s ease; }
.ic-paper + .ic-paper { margin-top: .6rem; }
.ic-paper .pid { background: var(--ic-navy-800); color: #fff; border-radius: 8px; padding: .25rem .55rem; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.ic-paper .ptitle { color: var(--ic-ink); font-weight: 600; line-height: 1.35; flex: 1; }
.ic-paper-preview { border: 1px dashed #F28123; background: var(--ic-blue-50); border-radius: 12px; padding: .75rem 1rem; }
.ic-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--ic-line); border-radius: 12px; box-shadow: var(--ic-shadow); max-height: 280px; overflow-y: auto; }
.ic-suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .6rem .9rem; font-size: .85rem; }
.ic-suggest button:hover, .ic-suggest button.active { background: var(--ic-blue-50); }
.ic-suggest b { color: var(--ic-navy-800); margin-right: .4rem; }

/* Fee summary */
.ic-fee { position: sticky; top: 90px; }
.ic-fee .total { font-size: 2rem; font-weight: 800; color: var(--ic-navy-800); line-height: 1; }
.ic-fee dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; font-size: .87rem; }
.ic-fee dt { color: var(--ic-muted); font-weight: 500; }
.ic-fee dd { margin: 0; text-align: right; font-weight: 600; color: var(--ic-ink); }

/* Tables */
.ic-table { margin: 0; }
.ic-table thead th { background: #f8fafc; color: var(--ic-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-bottom: 1px solid var(--ic-line); padding: .8rem 1rem; white-space: nowrap; }
.ic-table td { padding: .85rem 1rem; vertical-align: middle; border-color: var(--ic-line); }
.ic-table tbody tr:hover { background: #fffaf5; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }

/* Badges */
.ic-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.ic-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ic-badge.success { background: #ecfdf5; color: #047857; }
.ic-badge.warning { background: #fffbeb; color: #b45309; }
.ic-badge.danger { background: #fef2f2; color: #b91c1c; }
.ic-badge.info { background: #e7f1f5; color: #0c4a5e; }
.ic-badge.secondary { background: #f1f5f9; color: #475569; }

/* Empty states */
.ic-empty { text-align: center; padding: 2.5rem 1rem; }
.ic-empty .icon { width: 64px; height: 64px; border-radius: 18px; background: var(--ic-blue-50); color: var(--ic-blue-600); display: inline-grid; place-items: center; font-size: 1.7rem; margin-bottom: .9rem; }
.ic-empty h4 { font-size: 1.05rem; }

/* Auth */
.auth-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-shell { grid-template-columns: 5fr 6fr; } }
.auth-aside { display: none; background: linear-gradient(rgba(5, 25, 34, .86), rgba(5, 25, 34, .9)), url("../img/hero-bg.jpg") center / cover no-repeat; color: #fff; padding: 3.5rem; position: relative; overflow: hidden; }
@media (min-width: 992px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 129, 35, .28), transparent 65%); }
.auth-aside::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, transparent, #000 60%); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: 2.3rem; line-height: 1.15; }
.auth-aside .feature { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.1rem; color: rgba(255, 255, 255, .88); }
.auth-aside .feature i { width: 34px; height: 34px; border-radius: 50%; background: #F28123; display: grid; place-items: center; flex: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1rem; }
.auth-card { width: 100%; max-width: 480px; }
.auth-card.wide { max-width: 640px; }
.auth-steps { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.auth-steps span { flex: 1; height: 5px; border-radius: 999px; background: var(--ic-line); }
.auth-steps span.done { background: var(--ic-gradient); }

/* CAPTCHA */
.ic-captcha { display: flex; gap: .6rem; align-items: stretch; }
.ic-captcha img { height: 50px; border-radius: 10px; border: 1.5px solid var(--ic-line); background: #fff5ec; }
.ic-captcha .btn { flex: none; }

/* OTP */
.otp-inputs { display: flex; gap: .55rem; justify-content: center; }
.otp-inputs input { width: 52px; height: 60px; text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--ic-navy-800); border-radius: 12px; border: 1.5px solid var(--ic-line); }
.otp-inputs input:focus { border-color: var(--ic-blue-500); box-shadow: 0 0 0 4px rgba(242, 129, 35, .15); outline: 0; }
@media (max-width: 400px) { .otp-inputs { gap: .35rem; } .otp-inputs input { width: 42px; height: 52px; font-size: 1.25rem; } }
.otp-timer { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px; background: var(--ic-blue-50); color: var(--ic-navy-800); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.otp-timer.expired { background: #fef2f2; color: var(--ic-danger); }
.otp-email { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 10px; background: #f8fafc; border: 1px solid var(--ic-line); font-weight: 600; color: var(--ic-ink); }

/* Password strength */
.pw-rules { list-style: none; padding: 0; margin: .65rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .8rem; font-size: .8rem; }
.pw-rules li { display: flex; align-items: center; gap: .4rem; color: var(--ic-muted); transition: color .15s; }
.pw-rules li i { font-size: .95rem; }
.pw-rules li.ok { color: var(--ic-success); }
.pw-meter { height: 6px; border-radius: 999px; background: var(--ic-line); overflow: hidden; margin-top: .55rem; }
.pw-meter > span { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }
@media (max-width: 420px) { .pw-rules { grid-template-columns: 1fr; } }

/* Completion widget */
.ic-progress-widget { position: fixed; right: 18px; bottom: 18px; z-index: 1040; }
.ic-progress-fab { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--ic-line); border-radius: 999px; padding: .4rem .95rem .4rem .45rem; box-shadow: var(--ic-shadow-lg); cursor: pointer; font-weight: 700; color: var(--ic-ink); font-size: .82rem; }
.ic-progress-fab:hover { border-color: #f8c49a; }
.ic-ring { --p: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#F28123 calc(var(--p) * 1%), var(--ic-line) 0); transition: background .4s; }
.ic-ring > span { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--ic-navy-800); }
.ic-progress-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: 300px; background: #fff; border: 1px solid var(--ic-line); border-radius: 16px; box-shadow: var(--ic-shadow-lg); padding: 1rem 1.1rem; display: none; }
.ic-progress-widget.open .ic-progress-panel { display: block; animation: icFadeIn .18s ease; }
.ic-progress-panel ul { list-style: none; padding: 0; margin: .7rem 0 0; }
.ic-progress-panel li { display: flex; gap: .55rem; align-items: center; padding: .32rem 0; font-size: .83rem; color: var(--ic-muted); }
.ic-progress-panel li.done { color: var(--ic-ink); }
.ic-progress-panel li i { font-size: 1rem; }
.ic-progress-panel li.done i { color: var(--ic-success); }
.ic-progress-bar { height: 7px; border-radius: 999px; background: var(--ic-line); overflow: hidden; }
.ic-progress-bar > span { display: block; height: 100%; background: var(--ic-gradient); transition: width .4s; }
@media (max-width: 575px) { .ic-progress-fab .lbl { display: none; } .ic-progress-fab { padding: .35rem; } .ic-progress-panel { width: calc(100vw - 36px); } }

/* Receipt (HTML view) */
.receipt { background: #fff; border-radius: var(--ic-radius); box-shadow: var(--ic-shadow); overflow: hidden; border: 1px solid var(--ic-line); }
.receipt-head { background: var(--ic-dark); border-bottom: 4px solid #F28123; color: #fff; padding: 1.6rem 1.8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.receipt-head h2 { color: #fff; margin: 0; }
.receipt-body { padding: 1.6rem 1.8rem; }
.receipt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem 1.5rem; }
.receipt-grid .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ic-muted); font-weight: 700; }
.receipt-grid .v { font-weight: 600; color: var(--ic-ink); word-break: break-word; }
.paid-stamp { border: 3px solid #F28123; color: #F28123; padding: .35rem 1rem; border-radius: 10px; font-weight: 800; letter-spacing: .12em; transform: rotate(-6deg); align-self: center; }

/* Timeline (payment events) */
.ic-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.ic-timeline li { position: relative; padding: 0 0 .9rem 1.4rem; font-size: .84rem; }
.ic-timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--ic-blue-600); }
.ic-timeline li::after { content: ""; position: absolute; left: 7.5px; top: 16px; bottom: 0; width: 1px; background: var(--ic-line); }
.ic-timeline li:last-child::after { display: none; }

/* Loading overlay */
.ic-loading { position: fixed; inset: 0; background: rgba(5, 25, 34, .6); backdrop-filter: blur(3px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.ic-loading.show { display: flex; }
.ic-loading .box { background: #fff; border-radius: 18px; padding: 1.6rem 2rem; text-align: center; box-shadow: var(--ic-shadow-lg); max-width: 340px; }
.ic-loading .spinner-border { width: 2.6rem; height: 2.6rem; color: var(--ic-blue-600); }

/* Footer */
.ic-footer { background: #051922; color: rgba(255, 255, 255, .7); padding: 1.6rem 0; font-size: .85rem; margin-top: 3rem; border-top: 3px solid #F28123; }
.ic-footer a { color: #F28123; text-decoration: none; }

@keyframes icFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Admin */
.admin-filter .form-control, .admin-filter .form-select { padding: .5rem .8rem; }

/* Print (receipts) */
@media print {
  .ic-nav, .ic-footer, .ic-progress-widget, .btn, .ic-loading { display: none !important; }
  body { background: #fff; }
  .receipt { box-shadow: none; border: 0; }
  .receipt-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Signed-in user button on the dark navbar */
.ic-user-btn { color: #fff; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.ic-user-btn:hover, .ic-user-btn:focus, .ic-user-btn.show { color: #fff; border-color: #F28123; background: rgba(242, 129, 35, .12); }
.ic-nav .navbar-brand img { height: 40px; width: 100px; object-fit: contain; }
.dropdown-item:active { background: #F28123; }
.form-check-input:checked { background-color: #F28123; border-color: #F28123; }
.pagination { --bs-pagination-active-bg: #F28123; --bs-pagination-active-border-color: #F28123; --bs-pagination-color: #051922; --bs-pagination-hover-color: #F28123; }
.text-primary { color: #F28123 !important; }
.btn-primary { --bs-btn-bg: #F28123; --bs-btn-border-color: #F28123; --bs-btn-hover-bg: #051922; --bs-btn-hover-border-color: #051922; --bs-btn-active-bg: #051922; }
.spinner-border.text-primary { color: #F28123 !important; }
.badge.text-bg-primary { background-color: #F28123 !important; }
.h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--ic-ink); }
.input-group > .btn { border-radius: 0 var(--ic-radius-sm) var(--ic-radius-sm) 0; border: 1.5px solid var(--ic-line); border-left: 0; color: var(--ic-muted); background: #fff; }
.input-group > .btn:hover { color: #F28123; background: #fff; }

/* =====================================================================
   Compact layout — denser, more professional sizing; less scrolling.
   ===================================================================== */
body { font-size: .875rem; }
.form-label { font-size: .8rem; margin-bottom: .3rem; }
.form-control, .form-select { padding: .5rem .75rem; font-size: .875rem; border-width: 1px; border-radius: 8px; }
.input-icon > i { left: .75rem; font-size: .85rem; }
.input-icon > .form-control { padding-left: 2.1rem; }
.input-group-text { padding: .5rem .7rem; border-width: 1px; border-radius: 8px; font-size: .85rem; }
.input-group > .btn { border-width: 1px; padding: .45rem .75rem; }
.form-text, .invalid-feedback { font-size: .75rem; margin-top: .25rem; }
.btn { font-size: .85rem; padding: .45rem 1rem; }
.btn-sm { font-size: .78rem; padding: .3rem .7rem; }
.btn-lg { font-size: .9rem; padding: .6rem 1.2rem; }
.small-caps { font-size: .68rem; }

/* Navbar */
.ic-nav { padding-top: .35rem !important; padding-bottom: .35rem !important; }
.ic-nav .navbar-brand img { height: 32px; width: 80px; }
.ic-nav .navbar-brand { font-size: 1rem; gap: .5rem; }
.ic-nav .brand-sub { font-size: .6rem; }
.ic-nav .nav-link { font-size: .84rem; padding: .35rem .75rem !important; }
.btn-signin, .btn-signup { padding: .32rem .9rem; font-size: .82rem; }
.ic-avatar { width: 28px; height: 28px; font-size: .75rem; }

/* Page header banner */
.ic-hero { padding-top: 1.1rem !important; padding-bottom: 1.6rem !important; }
.ic-hero > .container { padding-bottom: 1.4rem !important; }
.ic-hero h1, .ic-hero .h2 { font-size: 1.35rem; margin-bottom: .15rem !important; }
.ic-hero .lead { font-size: .85rem !important; }
.ic-hero .breadcrumb { font-size: .75rem; margin-bottom: .35rem !important; }
.ic-hero-pull { margin-top: -1.6rem; }

/* Cards, stats, tables */
.ic-card { border-radius: 12px; }
.ic-card-header { padding: .7rem 1rem; gap: .6rem; }
.ic-card-header h2, .ic-card-header h3 { font-size: .9rem; gap: .45rem; }
.ic-card-body { padding: 1rem; }
.ic-icon-chip { width: 28px; height: 28px; border-radius: 8px; font-size: .85rem; }
.ic-stat { padding: .75rem .9rem; gap: .7rem; }
.ic-stat .value { font-size: 1.1rem; }
.ic-stat .label { font-size: .72rem; }
.ic-table thead th { padding: .55rem .75rem; font-size: .66rem; }
.ic-table td { padding: .55rem .75rem; font-size: .82rem; }
.ic-badge { padding: .2rem .55rem; font-size: .7rem; }
.ic-empty { padding: 1.5rem 1rem; }
.ic-empty .icon { width: 46px; height: 46px; font-size: 1.25rem; border-radius: 12px; margin-bottom: .6rem; }
.ic-empty h4 { font-size: .95rem; }
.row.g-4 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.mb-4 { margin-bottom: 1rem !important; }
hr { margin: .75rem 0; }

/* Registration form */
.ic-section { padding: .8rem 1rem; }
.ic-section-title { margin-bottom: .55rem; gap: .45rem; }
.ic-section-title h3 { font-size: .85rem; }
.ic-section-title .num { width: 20px; height: 20px; font-size: .68rem; }
.ic-options { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .45rem; }
.ic-option label { padding: .5rem .7rem; gap: .5rem; font-size: .82rem; border-width: 1px; border-radius: 8px; }
.ic-option label i { font-size: .95rem; }
.ic-option label small { font-size: .68rem; }
.ic-section-row { border-bottom: 1px dashed var(--ic-line); }
.ic-section-row > [class*="col"] > .ic-section { border-bottom: 0; height: 100%; }
@media (min-width: 768px) { .ic-section-row > [class*="col"] + [class*="col"] > .ic-section { border-left: 1px dashed var(--ic-line); } }
.ic-dropzone { padding: .9rem; border-radius: 10px; }
.ic-dropzone .dz-icon { font-size: 1.4rem; }
.ic-paper { padding: .55rem .75rem; gap: .65rem; border-radius: 10px; }
.ic-paper + .ic-paper { margin-top: .4rem; }
.ic-paper .pid { font-size: .72rem; padding: .18rem .45rem; }
.ic-paper .ptitle { font-size: .82rem; }
.ic-fee { top: 70px; }
.ic-fee .total { font-size: 1.5rem; }
.ic-fee dl { font-size: .8rem; gap: .3rem .8rem; }

/* Auth pages */
.auth-shell { min-height: calc(100vh - 56px); }
@media (min-width: 992px) { .auth-shell { grid-template-columns: 4fr 7fr; } }
.auth-aside { padding: 2.2rem 2.4rem; }
.auth-aside h2 { font-size: 1.55rem; }
.auth-aside p { font-size: .85rem; }
.auth-aside .feature { margin-top: .8rem; font-size: .8rem; gap: .6rem; }
.auth-aside .feature i { width: 28px; height: 28px; font-size: .8rem; }
.auth-main { padding: 1.5rem 1rem; }
.auth-card { max-width: 420px; }
.auth-card.wide { max-width: 580px; }
.auth-card h1 { font-size: 1.35rem; }
.auth-card .mb-4 { margin-bottom: .9rem !important; }
.auth-card .mb-3 { margin-bottom: .7rem !important; }
.auth-card .row.g-3 { --bs-gutter-y: .7rem; --bs-gutter-x: .8rem; }
.auth-card .mt-4 { margin-top: .9rem !important; }
.auth-steps { margin-bottom: .9rem; }
.auth-steps span { height: 4px; }
.ic-captcha img { height: 40px; width: 144px; border-width: 1px; }
.ic-captcha .btn { padding: .3rem .65rem; }
.otp-inputs input { width: 44px; height: 50px; font-size: 1.25rem; border-width: 1px; border-radius: 10px; }
.otp-timer { font-size: .9rem; padding: .3rem .8rem; }
.otp-email { padding: .35rem .7rem; font-size: .82rem; }
.pw-rules { font-size: .74rem; }

/* Receipt view */
.receipt-head { padding: 1.1rem 1.3rem; }
.receipt-body { padding: 1.1rem 1.3rem; }
.receipt-grid { gap: .6rem 1.2rem; }

/* Completion widget & footer */
.ic-progress-fab { padding: .3rem .8rem .3rem .35rem; font-size: .75rem; }
.ic-ring { width: 34px; height: 34px; }
.ic-ring > span { width: 26px; height: 26px; font-size: .62rem; }
.ic-progress-panel { width: 270px; padding: .8rem .9rem; }
.ic-progress-panel li { font-size: .78rem; padding: .2rem 0; }
.ic-footer { padding: 1rem 0; margin-top: 2rem; font-size: .78rem; }
/* Every question has exactly two answers: always lay them out side by side. */
.ic-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ic-option label span { min-width: 0; }

/* =====================================================================
   Validation messages, acknowledgement card, "still required" panel
   ===================================================================== */
.invalid-feedback.d-block, .js-client-error {
  display: flex !important; align-items: flex-start; gap: .4rem;
  margin-top: .45rem; padding: .4rem .65rem;
  background: #fef2f2; border: 1px solid #fecaca; border-left: 3px solid #dc2626; border-radius: 8px;
  color: #b91c1c; font-size: .76rem; font-weight: 600; line-height: 1.35;
  animation: icFadeIn .2s ease;
}
.invalid-feedback.d-block::before, .js-client-error::before {
  content: "\F33A"; font-family: "bootstrap-icons"; font-weight: normal; font-size: .85rem; line-height: 1.2; flex: none;
}
.form-control.is-invalid, .form-select.is-invalid { border-color: #dc2626; background-image: none; padding-right: .75rem; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }

/* Missing question: tinted panel around its answers */
.ic-options.is-invalid-group { padding: .35rem; margin: -.35rem; border-radius: 10px; background: #fff5f5; box-shadow: inset 0 0 0 1.5px #fca5a5; }
.is-invalid-group .ic-option label { border-color: #fca5a5; background: #fff; }
.ic-dropzone.border-danger { border-color: #dc2626 !important; background: #fff5f5; }
.ic-dropzone.border-danger .dz-icon { color: #dc2626; }

@keyframes icShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.ic-shake { animation: icShake .38s ease; }

/* Acknowledgement (declaration) card */
.ic-ack { position: relative; display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem .85rem 1rem; margin-left: 0;
  background: #fff; border: 1.5px solid #f8c49a; border-left: 4px solid #F28123; border-radius: 12px; box-shadow: var(--ic-shadow-sm); transition: border-color .2s, background .2s; }
.ic-ack .form-check-input { float: none; margin: .1rem 0 0; width: 1.3rem; height: 1.3rem; flex: none; border: 2px solid #F28123; cursor: pointer; }
.ic-ack .form-check-input:checked { background-color: #059669; border-color: #059669; }
.ic-ack .form-check-label { cursor: pointer; display: flex; flex-direction: column; gap: .15rem; }
.ic-ack-title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: .82rem; color: var(--ic-ink); }
.ic-ack-text { font-size: .8rem; color: var(--ic-body); line-height: 1.45; }
.ic-ack:has(.form-check-input:checked) { border-color: #a7f3d0; border-left-color: #059669; background: #f0fdf4; }
.ic-ack:has(.form-check-input:checked) .ic-ack-title i { color: #059669; }
.ic-ack.is-invalid { border-color: #fca5a5; border-left-color: #dc2626; background: #fff5f5; }
.ic-ack.is-invalid .form-check-input { border-color: #dc2626; }
.ic-ack { flex-wrap: wrap; }
.ic-ack > .invalid-feedback, .ic-ack > .js-client-error { flex-basis: 100%; margin-top: .1rem; }

/* "Still required" panel under Pay Now */
.ic-pay-hint { margin-top: .7rem; font-size: .78rem; border-radius: 10px; }
.ic-pay-hint:empty { display: none; }
.ic-pay-hint.is-missing { padding: .65rem .7rem; background: #fff7ed; border: 1px solid #fed7aa; }
.ic-pay-hint-head { font-weight: 700; color: #9a3412; margin-bottom: .45rem; display: flex; align-items: center; gap: .35rem; }
.ic-pay-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.ic-chip { border: 1px solid #fdba74; background: #fff; color: #9a3412; border-radius: 999px; padding: .15rem .55rem; font-size: .72rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.ic-chip:hover, .ic-chip:focus-visible { background: #F28123; border-color: #F28123; color: #fff; }
.ic-pay-hint-show { margin-top: .5rem; border: 0; background: none; padding: 0; color: #c2410c; font-weight: 700; font-size: .74rem; text-decoration: underline; cursor: pointer; }
.ic-pay-hint.is-waiting { padding: .55rem .7rem; background: var(--ic-cyan-50); color: var(--ic-ink); text-align: center; }
.ic-pay-hint.is-ready { padding: .55rem .7rem; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-weight: 700; text-align: center; }
.ic-ack .form-check-label { flex: 1 1 0; min-width: 0; }

/* =====================================================================
   Paper title corrections
   ===================================================================== */
.ic-corr-wrap { margin-top: .35rem; }
.ic-corr-toggle { border: 0; background: none; padding: 0; color: #c2410c; font-size: .74rem; font-weight: 600; cursor: pointer; }
.ic-corr-toggle:hover { text-decoration: underline; color: #9a3412; }
.ic-corr-box { margin-top: .4rem; padding: .6rem .7rem; background: #fff7ed; border: 1px solid #fed7aa; border-left: 3px solid #F28123; border-radius: 10px; }
.ic-corr-box .form-label { font-size: .74rem; color: #9a3412; }
.ic-corr-box textarea { font-size: .8rem; background: #fff; }
.ic-corr-counter { font-size: .68rem; color: var(--ic-muted); }
.ic-corr-cancel { border: 0; background: none; padding: 0; font-size: .72rem; color: var(--ic-muted); text-decoration: underline; cursor: pointer; }
.ic-corr-cancel:hover { color: #dc2626; }
.ic-corr-same { margin-top: .3rem; font-size: .72rem; color: var(--ic-muted); font-style: italic; }
.ic-corr-warn { display: flex; gap: .45rem; align-items: flex-start; margin-top: .5rem; padding: .45rem .6rem; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px; color: #92400e; font-size: .74rem; line-height: 1.4; }
.ic-corr-warn i { color: #d97706; margin-top: .1rem; }

/* Read-only display (portal pages) */
.ic-correction { font-size: .78rem; padding: .3rem .55rem; background: #fff7ed; border-left: 3px solid #F28123; border-radius: 6px; }
.ic-correction-label { font-weight: 700; color: #c2410c; }
.ic-correction-text { color: var(--ic-ink); font-weight: 600; }

/* Confirmation dialog */
.ic-confirm-corr { margin-top: .9rem; padding: .7rem .8rem; text-align: left; font-size: .8rem; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; }
.ic-confirm-corr-item { padding: .35rem 0; border-top: 1px dashed #fde3cc; line-height: 1.45; }
.ic-confirm-corr-new { color: #c2410c; font-weight: 700; }
.ic-confirm-corr-warn { margin-top: .5rem; padding: .4rem .55rem; background: #fef3c7; border-radius: 6px; color: #92400e; font-weight: 600; font-size: .76rem; }

/* Paper ID 0 instruction (non-author participants / visitors) */
.ic-visitor-note { display: flex; gap: .55rem; align-items: flex-start; margin-top: .55rem; padding: .55rem .7rem;
  background: #eef6fb; border: 1px solid #c7e0ee; border-left: 3px solid #0c4a5e; border-radius: 8px; font-size: .78rem; color: #0c3a4a; line-height: 1.45; }
.ic-visitor-note > i { font-size: 1rem; color: #0c4a5e; margin-top: .05rem; }
.ic-visitor-id { display: inline-block; min-width: 1.6rem; padding: 0 .45rem; margin: 0 .1rem; border: 1px solid #0c4a5e; border-radius: 6px;
  background: #fff; color: #0c4a5e; font-weight: 800; font-family: ui-monospace, Consolas, monospace; cursor: pointer; line-height: 1.45; }
.ic-visitor-id:hover, .ic-visitor-id:focus-visible { background: #0c4a5e; color: #fff; }
