:root {
  --cyan: #08d9d6;
  --cyan-dark: #04aaa8;
  --charcoal: #252a34;
  --charcoal-2: #1d2129;
  --pink: #ff2e63;
  --pink-dark: #d9184b;
  --light: #eaeaea;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --text: #252a34;
  --muted: #687080;
  --border: #dde2e8;
  --success: #0d9f6e;
  --warning: #bf7b00;
  --danger: #d92d4f;
  --shadow: 0 24px 70px rgba(37, 42, 52, 0.12);
  --shadow-sm: 0 10px 30px rgba(37, 42, 52, 0.08);
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--surface-2); color: var(--text); font-family: Tajawal, "Segoe UI", Arial, sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 34px)); margin-inline: auto; }
.narrow-container { width: min(760px, calc(100% - 34px)); }
.ltr-text { direction: ltr; text-align: left; }
.inline-form { display: inline-flex; margin: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.18rem; font-weight: 900; letter-spacing: -0.04em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--cyan), #75f1e9); color: var(--charcoal); box-shadow: 0 8px 24px rgba(8, 217, 214, .3); font-weight: 950; }

.public-header, .app-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.public-header { background: rgba(37, 42, 52, .9); color: #fff; }
.app-header { background: rgba(255,255,255,.94); border-bottom-color: var(--border); }
.nav-row { min-height: 76px; display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.public-nav, .app-nav { display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: .94rem; }
.public-nav > a:not(.button), .app-nav > a { opacity: .82; }
.public-nav > a:hover, .app-nav > a:hover { opacity: 1; color: var(--cyan-dark); }
.app-nav { flex: 1; justify-content: center; flex-wrap: wrap; }

.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 9px 17px; font-weight: 800; line-height: 1.2; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--pink); color: #fff; box-shadow: 0 10px 24px rgba(255,46,99,.2); }
.button-primary:hover { background: var(--pink-dark); }
.button-light { background: var(--white); border-color: var(--border); color: var(--text); }
.button-light:hover { border-color: var(--cyan-dark); }
.button-ghost { background: transparent; border-color: rgba(255,255,255,.28); color: inherit; }
.app-header .button-ghost { border-color: var(--border); }
.button-danger { background: #fff0f3; border-color: #ffc7d3; color: var(--danger); }
.button-danger:hover { background: #ffe1e8; }
.button-large { min-height: 52px; padding-inline: 24px; font-size: 1rem; }
.button-small { min-height: 35px; padding: 7px 11px; border-radius: 9px; font-size: .84rem; }

.public-body { background: #fff; }
.hero { position: relative; overflow: hidden; background: var(--charcoal); color: #fff; padding: 92px 0 105px; }
.hero::before { position: absolute; width: 620px; height: 620px; content: ""; inset: -250px auto auto -210px; border-radius: 50%; background: radial-gradient(circle, rgba(8,217,214,.22), transparent 66%); }
.hero::after { position: absolute; width: 480px; height: 480px; content: ""; right: -180px; bottom: -210px; border-radius: 50%; background: radial-gradient(circle, rgba(255,46,99,.22), transparent 65%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; margin-bottom: 11px; color: var(--cyan-dark); font-size: .82rem; font-weight: 900; letter-spacing: .04em; }
.hero .eyebrow, .eyebrow-light { color: var(--cyan); }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(2.6rem, 5.8vw, 5.3rem); line-height: 1.05; letter-spacing: -.055em; }
.hero-copy > p { max-width: 650px; margin: 27px 0; color: rgba(255,255,255,.74); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 27px; color: rgba(255,255,255,.62); font-size: .86rem; }
.trust-row span::before { margin-left: 7px; color: var(--cyan); content: "●"; }
.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.phone-card { width: min(340px, 84%); min-height: 510px; padding: 44px 26px; border: 1px solid rgba(255,255,255,.16); border-radius: 46px; background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.05)); box-shadow: 0 40px 80px rgba(0,0,0,.28); transform: rotate(-4deg); backdrop-filter: blur(14px); }
.demo-avatar { width: 88px; height: 88px; margin: 0 auto 22px; border: 5px solid rgba(255,255,255,.15); border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--pink)); }
.demo-line { width: 45%; height: 10px; margin: 10px auto; border-radius: 999px; background: rgba(255,255,255,.24); }
.demo-line-lg { width: 68%; height: 15px; background: rgba(255,255,255,.72); }
.demo-link { height: 70px; display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.92); }
.demo-link i { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, var(--cyan), #86efe7); }
.demo-link span { width: 55%; height: 10px; border-radius: 999px; background: #cfd5dc; }
.floating-stat { position: absolute; min-width: 142px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(29,33,41,.84); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.floating-stat b, .floating-stat span { display: block; }
.floating-stat b { color: var(--cyan); font-size: 1.25rem; }
.floating-stat span { color: rgba(255,255,255,.65); font-size: .78rem; }
.floating-stat-one { top: 80px; right: 0; }
.floating-stat-two { bottom: 55px; left: 0; }
.section { padding: 100px 0; }
.section-heading { max-width: 660px; margin-bottom: 42px; }
.section-heading h2, .split-section h2, .cta-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.13; letter-spacing: -.045em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { min-height: 260px; padding: 31px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.feature-icon { display: grid; width: 54px; height: 54px; margin-bottom: 35px; place-items: center; border-radius: 16px; background: #dffbfa; color: var(--charcoal); font-size: 1.3rem; font-weight: 950; }
.feature-card:nth-child(2) .feature-icon { background: #ffe3ea; color: var(--pink); }
.feature-card h3 { margin: 0 0 9px; font-size: 1.34rem; }
.feature-card p { margin: 0; color: var(--muted); }
.section-dark { background: var(--charcoal); color: #fff; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.split-section p { color: rgba(255,255,255,.67); font-size: 1.03rem; }
.check-list { display: grid; gap: 14px; }
.check-list div { display: flex; gap: 13px; align-items: center; padding: 19px 21px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.05); }
.check-list span { color: var(--cyan); font-weight: 950; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 45px; border-radius: var(--radius-lg); background: linear-gradient(130deg, #e9fffe, #fff1f5); }
.cta-panel p { margin-bottom: 0; color: var(--muted); }
.page-shell { min-height: calc(100vh - 150px); padding: 75px 0 100px; }
.page-heading { margin-bottom: 31px; }
.page-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; letter-spacing: -.045em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); }
.center-heading { text-align: center; }
.heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }

.app-body { background: var(--surface-2); }
.app-shell { min-height: calc(100vh - 150px); padding: 52px 0 90px; }
.panel { margin-bottom: 24px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.panel-heading h2 { margin: 0; font-size: 1.38rem; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: .91rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.compact-form { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.field { display: grid; align-content: start; gap: 7px; }
.field > span, .check-field span { font-size: .88rem; font-weight: 800; }
.field small { color: var(--muted); font-weight: 500; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea, .field select, .reject-form input { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--text); padding: 10px 13px; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .reject-form input:focus { border-color: var(--cyan-dark); box-shadow: 0 0 0 4px rgba(8,217,214,.12); }
.input-prefix { display: flex; direction: ltr; align-items: stretch; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; background: #fff; }
.input-prefix:focus-within { border-color: var(--cyan-dark); box-shadow: 0 0 0 4px rgba(8,217,214,.12); }
.input-prefix b { display: flex; align-items: center; padding: 0 12px; background: #f1f4f6; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.input-prefix input { border: 0; border-radius: 0; box-shadow: none !important; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.align-end { align-self: end; justify-content: flex-end; }
.check-field { display: flex; align-items: center; gap: 9px; padding-top: 29px; }
.check-field input { width: 18px; height: 18px; accent-color: var(--pink); }
.color-fields { display: flex; align-items: end; gap: 12px; }
.color-fields label { flex: 1; display: grid; gap: 6px; font-size: .78rem; font-weight: 800; }
.color-fields input { width: 100%; height: 46px; padding: 3px; }
.alert { margin-bottom: 22px; padding: 14px 17px; border: 1px solid; border-radius: 12px; font-weight: 700; overflow-wrap: anywhere; }
.alert-success { border-color: #aee7d3; background: #eafaf4; color: #08704d; }
.alert-error { border-color: #ffc0ce; background: #fff0f3; color: #9e1738; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; margin-bottom: 24px; }
.admin-stats { grid-template-columns: repeat(5, minmax(0,1fr)); }
.stat-card { min-height: 155px; display: flex; flex-direction: column; justify-content: center; padding: 23px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
a.stat-card:hover { border-color: var(--cyan-dark); }
.stat-card span { color: var(--muted); font-size: .88rem; font-weight: 800; }
.stat-card strong { margin: 5px 0; font-size: 2.15rem; line-height: 1.15; letter-spacing: -.04em; }
.stat-card small { color: var(--cyan-dark); font-weight: 800; }
.chart-panel { overflow: hidden; }
.chart-bars { height: 270px; display: grid; grid-template-columns: repeat(30, minmax(8px,1fr)); align-items: end; gap: 6px; padding: 18px 3px 0; border-bottom: 1px solid var(--border); }
.chart-day { height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.bar-stack { width: 100%; height: calc(100% - 26px); display: flex; align-items: end; justify-content: center; gap: 2px; }
.bar { width: 42%; min-height: 3px; display: block; border-radius: 5px 5px 1px 1px; }
.bar-views { background: var(--cyan); }
.bar-clicks { background: var(--pink); }
.chart-day small { color: var(--muted); font-size: .63rem; }
.chart-legend { display: flex; gap: 18px; margin-top: 16px; color: var(--muted); font-size: .85rem; }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 11px; height: 11px; border-radius: 3px; }
.legend-views { background: var(--cyan); }
.legend-clicks { background: var(--pink); }

.item-list, .admin-card-list { display: grid; gap: 16px; }
.item-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 17px; align-items: start; padding: 18px; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
.item-thumb { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #effafa; color: var(--cyan-dark); font-size: 1.5rem; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-main h3 { margin: 0; font-size: 1.06rem; }
.item-main p { margin: 5px 0; color: var(--muted); font-size: .9rem; }
.item-main small { color: var(--cyan-dark); font-weight: 800; }
.item-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; background: #fff; font-weight: 900; }
.icon-button:disabled { opacity: .35; cursor: default; }
.item-editor { grid-column: 2 / -1; border-top: 1px dashed var(--border); padding-top: 12px; }
details summary { cursor: pointer; color: var(--cyan-dark); font-weight: 800; }
.rejection-box, .note-box, .message-box { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: .86rem; }
.rejection-box { background: #fff0f3; color: #9e1738; }
.note-box { background: #fff8e8; color: #835600; }
.message-box { background: #f3f6f8; color: var(--text); white-space: pre-wrap; }
.danger-form { display: flex; align-items: end; gap: 10px; margin-top: 13px; }
.danger-details { margin-top: 16px; padding-top: 12px; border-top: 1px dashed #ffc3cf; }

.status-pill { display: inline-flex; width: fit-content; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: #eef1f4; color: #606a78; font-size: .73rem; font-weight: 900; white-space: nowrap; }
.status-success { background: #e5f8f1; color: #08714d; }
.status-warning { background: #fff5da; color: #875c00; }
.status-danger { background: #ffe9ee; color: #aa1d40; }
.verified-badge { display: inline-grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #1688f8; color: #fff; font-size: .75rem; vertical-align: middle; }
.empty-state { padding: 35px 20px; border: 1px dashed var(--border); border-radius: 13px; color: var(--muted); text-align: center; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
th { background: #f7f9fa; color: var(--muted); font-size: .78rem; font-weight: 900; }
td { font-size: .88rem; }
td strong, td small, td a { display: block; }
td a { color: var(--cyan-dark); font-weight: 800; }
td small { margin-top: 4px; color: var(--muted); }
.truncate-cell { max-width: 330px; overflow-wrap: anywhere; }
.table-actions, .card-action-row, .approval-actions, .stack-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.stack-actions { flex-direction: column; }
.copy-link { font-size: .78rem; overflow-wrap: anywhere; }

.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 17px; }
.quick-card { min-height: 155px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border-radius: var(--radius); background: var(--charcoal); color: #fff; }
.quick-card:nth-child(even) { background: linear-gradient(145deg, #24333b, #1f252d); }
.quick-card b { font-size: 1.1rem; }
.quick-card span { margin-top: 7px; color: rgba(255,255,255,.62); font-size: .86rem; }
.admin-user-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.admin-user-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.admin-user-head h2, .admin-user-head h3 { margin: 0; }
.admin-user-head p { margin: 2px 0 0; color: var(--muted); }
.metadata-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.metadata-row span { padding: 7px 10px; border-radius: 9px; background: #f2f5f7; color: var(--muted); font-size: .79rem; }
.card-action-row { margin-top: 15px; }
.application-card { margin-bottom: 0; }
.approval-compare { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin: 20px 0; }
.approval-compare > div { padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: #fafbfc; }
.approval-compare h3 { margin-top: 0; }
dl { margin: 0; }
dt { color: var(--muted); font-size: .76rem; font-weight: 900; }
dd { margin: 2px 0 12px; overflow-wrap: anywhere; }
.approval-image { width: 110px; height: 80px; object-fit: cover; border-radius: 10px; }
.reject-form { display: flex; gap: 7px; flex: 1; min-width: 250px; }
.reject-form input { min-height: 40px; }
.big-percent { font-size: 2.2rem; color: var(--pink); }
.comparison-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.comparison-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.comparison-card h2 { margin: 0 0 15px; font-size: 1rem; }
.comparison-card > div { display: grid; gap: 2px; padding: 11px 0; }
.comparison-card span { color: var(--muted); font-size: .76rem; font-weight: 900; }
.comparison-card strong { font-size: 1.05rem; }
.comparison-card small { color: var(--muted); }
.displayed-box { border-top: 1px solid var(--border); color: var(--pink); }

.auth-body { display: flex; min-height: 100vh; flex-direction: column; background: radial-gradient(circle at top right, rgba(8,217,214,.16), transparent 35%), var(--charcoal); }
.auth-shell { flex: 1; display: grid; place-items: center; padding: 50px 17px; }
.auth-card { width: min(470px,100%); padding: 36px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 45px 90px rgba(0,0,0,.28); }
.auth-brand { margin-bottom: 30px; }
.auth-heading h1 { margin: 0; font-size: 2rem; }
.auth-heading p { margin: 6px 0 25px; color: var(--muted); }
.auth-note { margin: 23px 0 0; color: var(--muted); text-align: center; }
.auth-note a { color: var(--pink); font-weight: 900; }

.profile-body { background: #111; }
.profile-shell { min-height: 100vh; display: grid; place-items: start center; padding: 54px 17px; background: var(--profile-bg); color: var(--profile-text); }
.profile-card { width: min(620px,100%); text-align: center; }
.profile-avatar { width: 118px; height: 118px; display: grid; place-items: center; margin: 0 auto 18px; border: 5px solid color-mix(in srgb, var(--profile-text) 18%, transparent); border-radius: 50%; object-fit: cover; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.profile-avatar-placeholder { background: var(--profile-accent); color: var(--profile-bg); font-size: 2.7rem; font-weight: 950; }
.profile-title-row { display: flex; align-items: center; justify-content: center; gap: 9px; }
.profile-title-row h1 { margin: 0; font-size: 2rem; }
.profile-bio { max-width: 520px; margin: 9px auto 18px; opacity: .74; white-space: pre-wrap; }
.social-row { display: flex; justify-content: center; gap: 10px; margin: 17px 0 26px; }
.social-row a { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid color-mix(in srgb, var(--profile-text) 22%, transparent); border-radius: 50%; font-size: .74rem; font-weight: 950; }
.public-links { display: grid; gap: 13px; }
.public-link-card { min-height: 78px; display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 14px; padding: 11px 15px; border: 1px solid color-mix(in srgb, var(--profile-text) 18%, transparent); border-radius: 17px; background: color-mix(in srgb, var(--profile-text) 9%, transparent); color: var(--profile-text); text-align: right; backdrop-filter: blur(10px); transition: transform .18s ease, background .18s ease; }
.public-link-card:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--profile-accent) 23%, transparent); }
.public-link-card img, .link-placeholder { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 13px; object-fit: cover; background: var(--profile-accent); color: var(--profile-bg); font-weight: 900; }
.public-link-copy { display: grid; }
.public-link-copy strong { font-size: .99rem; }
.public-link-copy small { opacity: .7; }
.public-link-arrow { color: var(--profile-accent); font-size: 1.2rem; }
.empty-profile { padding: 25px; opacity: .65; }

.status-body { min-height: 100vh; background: var(--charcoal); }
.status-shell { min-height: 90vh; display: grid; place-items: center; padding: 40px 17px; }
.status-card { width: min(520px,100%); padding: 40px; border-radius: var(--radius-lg); background: #fff; text-align: center; box-shadow: var(--shadow); }
.status-card h1 { margin: 15px 0 8px; }
.status-card p { color: var(--muted); }
.status-card small { display: block; margin: 16px 0; color: var(--muted); }
.status-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto; border-radius: 22px; background: #ffe8ee; color: var(--pink); font-size: 1.35rem; font-weight: 950; }

.site-footer { margin-top: auto; padding: 24px 0; border-top: 1px solid var(--border); background: #fff; color: var(--muted); font-size: .8rem; }
.profile-body .site-footer, .auth-body .site-footer, .status-body .site-footer { display: none; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 1050px) {
  .public-nav > a:not(.button), .app-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { min-height: 430px; }
  .phone-card { min-height: 440px; }
  .feature-grid, .quick-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid, .admin-stats, .comparison-grid { grid-template-columns: repeat(2,1fr); }
  .split-section { gap: 45px; }
}

@media (max-width: 760px) {
  .nav-row { min-height: 66px; }
  .public-header .button-ghost { display: none; }
  .public-header .button-primary { min-height: 38px; padding: 7px 11px; font-size: .8rem; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding: 65px 0 78px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .hero-visual { min-height: 360px; }
  .phone-card { width: 290px; min-height: 390px; padding: 32px 20px; }
  .floating-stat { min-width: 120px; padding: 11px 13px; }
  .section { padding: 72px 0; }
  .feature-grid, .quick-grid, .split-section, .form-grid, .approval-compare { grid-template-columns: 1fr; }
  .cta-panel { align-items: stretch; flex-direction: column; padding: 30px; }
  .field-full { grid-column: auto; }
  .heading-row { align-items: stretch; flex-direction: column; }
  .stats-grid, .admin-stats, .comparison-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-card { min-height: 130px; padding: 17px; }
  .stat-card strong { font-size: 1.7rem; }
  .panel { padding: 20px; }
  .item-card { grid-template-columns: 58px 1fr; }
  .item-thumb { width: 58px; height: 58px; }
  .item-actions { grid-column: 1 / -1; justify-content: start; }
  .item-editor { grid-column: 1 / -1; }
  .admin-user-head, .panel-heading { align-items: stretch; flex-direction: column; }
  .chart-bars { gap: 3px; overflow-x: auto; }
  .chart-day { min-width: 12px; }
  .chart-day small { display: none; }
  .color-fields { flex-wrap: wrap; }
  .reject-form, .danger-form { align-items: stretch; flex-direction: column; }
  .profile-shell { padding-top: 38px; }
  .public-link-card { min-height: 72px; }
}

@media (max-width: 480px) {
  .container, .narrow-container { width: min(100% - 22px, 1180px); }
  .public-nav .button-primary { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .feature-grid, .stats-grid, .admin-stats, .comparison-grid, .quick-grid { grid-template-columns: 1fr; }
  .floating-stat-one { right: -5px; }
  .floating-stat-two { left: -4px; }
  .auth-card { padding: 25px 20px; }
  .panel { padding: 17px; border-radius: 15px; }
  .app-shell { padding-top: 35px; }
  .page-heading h1 { font-size: 2rem; }
  .footer-row { flex-direction: column; text-align: center; }
}

/* ShortLinx V1.1 — agency landing page and link-page themes */
.section-heading > p { max-width: 660px; margin: 15px 0 0; color: var(--muted); font-size: 1.02rem; }
.agency-hero .hero-copy > p { max-width: 690px; }
.agency-phone-card { position: relative; animation: hero-card-float 6s ease-in-out infinite; }
.demo-socials { display: flex; justify-content: center; gap: 9px; margin: 20px 0 10px; }
.demo-socials i { width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.09); }
.hero-orbit { position: absolute; border: 1px solid rgba(8,217,214,.2); border-radius: 50%; pointer-events: none; }
.hero-orbit-one { width: 430px; height: 430px; animation: orbit-spin 24s linear infinite; }
.hero-orbit-two { width: 360px; height: 360px; border-color: rgba(255,46,99,.17); animation: orbit-spin 18s linear infinite reverse; }
.agency-feature-grid .feature-card { position: relative; overflow: hidden; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.agency-feature-grid .feature-card::after { position: absolute; width: 130px; height: 130px; content: ""; inset: auto -55px -65px auto; border-radius: 50%; background: radial-gradient(circle, rgba(8,217,214,.13), transparent 70%); transition: transform .35s ease; }
.agency-feature-grid .feature-card:nth-child(2)::after { background: radial-gradient(circle, rgba(255,46,99,.14), transparent 70%); }
.agency-feature-grid .feature-card:hover { transform: translateY(-7px); border-color: rgba(8,217,214,.55); box-shadow: 0 24px 55px rgba(37,42,52,.13); }
.agency-feature-grid .feature-card:hover::after { transform: scale(1.45); }
.content-section { background: linear-gradient(180deg, #f8fafb 0%, #fff 100%); }
.center-section-heading { margin-inline: auto; text-align: center; }
.center-section-heading > p { margin-inline: auto; }
.content-pill-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }
.content-pill { min-height: 120px; display: flex; align-items: center; gap: 13px; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .22s ease, border-color .22s ease; }
.content-pill:hover { transform: translateY(-4px); border-color: var(--cyan); }
.content-pill span { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: #e6fbfa; font-size: 1.2rem; }
.content-pill b { line-height: 1.4; }
.content-pill-accent { border-color: transparent; background: linear-gradient(135deg, var(--charcoal), #303744); color: #fff; }
.content-pill-accent span { background: var(--pink); color: #fff; }
.section-heading-light > p { color: rgba(255,255,255,.67); }
.workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; }
.workflow-card { position: relative; min-height: 245px; padding: 27px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: rgba(255,255,255,.055); transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.workflow-card:hover { transform: translateY(-6px); border-color: rgba(8,217,214,.42); background: rgba(255,255,255,.085); }
.workflow-card > span { display: inline-flex; margin-bottom: 42px; color: var(--cyan); font-size: 1.7rem; font-weight: 950; letter-spacing: -.05em; }
.workflow-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.workflow-card p { margin: 0; color: rgba(255,255,255,.64); font-size: .92rem; }
.partnership-section { background: #fff; }
.partnership-panel { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 60px; padding: 58px; border: 1px solid var(--border); border-radius: 32px; background: linear-gradient(135deg, #f4ffff 0%, #fff 48%, #fff2f6 100%); box-shadow: var(--shadow); }
.partnership-copy h2 { margin: 0; font-size: clamp(2rem,4vw,3.45rem); line-height: 1.1; letter-spacing: -.045em; }
.partnership-copy p { color: var(--muted); }
.revenue-split { display: grid; grid-template-columns: 7fr 3fr; gap: 13px; }
.revenue-card { min-height: 235px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; border-radius: 24px; color: #fff; transition: transform .25s ease; }
.revenue-card:hover { transform: translateY(-5px); }
.revenue-card strong { font-size: clamp(3.2rem,6vw,5.7rem); line-height: .95; letter-spacing: -.07em; }
.revenue-card span { margin-top: 14px; font-size: 1.05rem; font-weight: 900; }
.revenue-card small { margin-top: 5px; color: rgba(255,255,255,.65); }
.revenue-card-creator { background: linear-gradient(145deg, var(--charcoal), #34414d 62%, #176b75); }
.revenue-card-agency { background: linear-gradient(145deg, var(--pink), #bb1c4b); }
.agency-cta-panel { overflow: hidden; position: relative; }
.agency-cta-panel::after { position: absolute; width: 190px; height: 190px; content: ""; left: -55px; bottom: -90px; border-radius: 50%; background: rgba(8,217,214,.16); }
.agency-cta-panel > * { position: relative; z-index: 1; }
.admin-stats-four { grid-template-columns: repeat(4,1fr); }

/* Gradient and color selector */
.theme-picker { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.theme-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.theme-picker-heading > div { display: grid; }
.theme-picker-heading > div > span { font-weight: 900; }
.theme-picker-heading small { color: var(--muted); }
.theme-picker-status { padding: 6px 10px; border-radius: 999px; background: #e2fafa; color: #087b79; font-size: .74rem; font-weight: 900; white-space: nowrap; }
.theme-options-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.custom-color-option { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border: 2px solid transparent; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.custom-color-option:hover { transform: translateY(-2px); }
.custom-color-option.is-selected { border-color: var(--pink); }
.custom-color-swatch { width: 38px; height: 38px; display: block; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: var(--swatch-color); box-shadow: 0 0 0 1px var(--border); }
.custom-color-swatch input { width: 52px; height: 52px; margin: -7px; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.custom-color-option b { font-size: .82rem; }
.gradient-presets { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.gradient-option { width: 42px; height: 42px; display: grid; place-items: center; padding: 3px; border: 2px solid transparent; border-radius: 50%; background: transparent; transition: transform .18s ease, border-color .18s ease; }
.gradient-option span { width: 32px; height: 32px; display: block; border: 2px solid #fff; border-radius: 50%; background: var(--preset-gradient); box-shadow: 0 2px 9px rgba(37,42,52,.18); }
.gradient-option:hover { transform: translateY(-3px) scale(1.06); }
.gradient-option.is-selected { border-color: var(--pink); }
.identity-colors { align-items: flex-end; }

/* Public creator page */
.profile-shell { position: relative; overflow: hidden; isolation: isolate; background: var(--profile-bg); background-attachment: fixed; }
.profile-ambient { position: fixed; z-index: -1; border-radius: 50%; opacity: .24; filter: blur(3px); pointer-events: none; }
.profile-ambient-one { width: 330px; height: 330px; top: -170px; right: -120px; background: var(--profile-accent); animation: ambient-drift-one 13s ease-in-out infinite; }
.profile-ambient-two { width: 260px; height: 260px; bottom: -130px; left: -90px; background: color-mix(in srgb, var(--profile-text) 32%, transparent); animation: ambient-drift-two 15s ease-in-out infinite; }
.profile-card { position: relative; z-index: 2; animation: profile-enter .72s cubic-bezier(.2,.8,.2,1) both; }
.profile-avatar-wrap { width: 118px; height: 118px; margin: 0 auto 18px; animation: avatar-float 5.5s ease-in-out infinite; }
.profile-avatar-wrap .profile-avatar { margin: 0; }
.profile-verified { animation: verified-pulse 2.8s ease-in-out infinite; }
.social-row a { position: relative; overflow: hidden; transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease; }
.social-row a::before { position: absolute; content: ""; inset: 50%; border-radius: 50%; background: var(--profile-text); opacity: .12; transform: translate(-50%,-50%) scale(0); transition: transform .25s ease; }
.social-row a:hover { transform: translateY(-4px) scale(1.06); border-color: color-mix(in srgb, var(--profile-accent) 65%, transparent); background: color-mix(in srgb, var(--profile-accent) 18%, transparent); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.social-row a:hover::before { transform: translate(-50%,-50%) scale(1); }
.social-row svg { position: relative; z-index: 1; width: 20px; height: 20px; fill: currentColor; }
.public-link-card { position: relative; overflow: hidden; animation: link-card-enter .55s cubic-bezier(.2,.8,.2,1) both, link-card-idle 6s ease-in-out calc(1.4s + var(--link-index) * .3s) infinite; animation-delay: calc(.13s + var(--link-index) * .08s), calc(1.4s + var(--link-index) * .3s); }
.public-link-card::after { position: absolute; width: 85px; height: 160%; content: ""; top: -30%; right: -120px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--profile-text) 14%, transparent), transparent); transform: skewX(-18deg); transition: right .55s ease; }
.public-link-card:hover { transform: translateY(-5px) scale(1.012); border-color: color-mix(in srgb, var(--profile-accent) 68%, transparent); background: color-mix(in srgb, var(--profile-accent) 22%, transparent); box-shadow: 0 16px 35px rgba(0,0,0,.19); animation-play-state: paused; }
.public-link-card:hover::after { right: calc(100% + 40px); }
.public-link-card:hover .public-link-arrow { transform: translateX(-4px); }
.public-link-arrow { transition: transform .22s ease; }

@keyframes hero-card-float { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-11px); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes profile-enter { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes avatar-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes verified-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(53,126,243,0); } 50% { box-shadow: 0 0 0 6px rgba(53,126,243,.12); } }
@keyframes ambient-drift-one { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-35px,45px) scale(1.12); } }
@keyframes ambient-drift-two { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-35px) scale(1.1); } }
@keyframes link-card-enter { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }
@keyframes link-card-idle { 0%,92%,100% { box-shadow: 0 0 0 rgba(0,0,0,0); } 96% { box-shadow: 0 10px 28px rgba(0,0,0,.12); } }

@media (max-width: 1050px) {
  .content-pill-grid, .workflow-grid { grid-template-columns: repeat(2,1fr); }
  .partnership-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .content-pill-grid, .workflow-grid, .revenue-split { grid-template-columns: 1fr; }
  .partnership-panel { padding: 31px 22px; }
  .revenue-card { min-height: 190px; }
  .theme-picker-heading { align-items: flex-start; flex-direction: column; }
  .theme-options-row { align-items: flex-start; flex-direction: column; }
  .profile-avatar-wrap { width: 104px; height: 104px; }
  .profile-avatar { width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .agency-phone-card, .hero-orbit, .profile-card, .profile-avatar-wrap, .profile-verified, .profile-ambient, .public-link-card, .mini-profile-glow { animation: none !important; }
  .public-link-card, .social-row a, .feature-card, .content-pill, .workflow-card, .revenue-card { transition-duration: .01ms !important; }
}
.profile-avatar-placeholder, .link-placeholder { color: #252A34; }

/* ShortLinx V1.1.1 — secure client-password controls */
.password-input-row { position: relative; }
.password-input-row input { padding-left: 52px; direction: ltr; text-align: left; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; letter-spacing: .025em; }
.password-icon-button { position: absolute; top: 50%; left: 7px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); transform: translateY(-50%); transition: background .16s ease, color .16s ease, transform .16s ease; }
.password-icon-button:hover { background: #edfafa; color: var(--cyan-dark); }
.password-icon-button:active { transform: translateY(-50%) scale(.94); }
.password-eye { width: 20px; height: 20px; fill: currentColor; }
.password-eye-closed { display: none; }
.password-icon-button.is-visible .password-eye-open { display: none; }
.password-icon-button.is-visible .password-eye-closed { display: block; }
.password-actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.password-action-button { min-height: 37px; padding: 7px 11px; font-size: .8rem; }
.password-status { min-height: 24px; display: block; }
.password-status[data-state="success"] { color: var(--success); font-weight: 800; }
.password-status[data-state="error"] { color: var(--danger); font-weight: 800; }

@media (max-width: 480px) {
  .password-actions-row { display: grid; grid-template-columns: 1fr; }
  .password-action-button { width: 100%; }
}

/* ShortLinx V1.2 — internal dashboard and application workflow */
.heading-actions, .attention-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.status-info { background: #e5f8fb; color: #08727d; }
.flash-with-action { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.flash-with-action > span { flex: 1; }
.button.is-copied, .text-copy-button.is-copied { border-color: var(--success); color: var(--success); }
.attention-banner { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 24px; padding: 20px 22px; border: 1px solid #ffd9a0; border-radius: var(--radius); background: linear-gradient(110deg, #fff9ec, #fff); box-shadow: var(--shadow-sm); }
.attention-banner > div:first-child { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.attention-banner p { grid-column: 2; margin: 2px 0 0; color: var(--muted); }
.attention-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 6px rgba(191,123,0,.11); }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.dashboard-queue-card { margin: 0; padding: 22px; }
.dashboard-queue-card .panel-heading { margin-bottom: 13px; }
.dashboard-queue-card .panel-heading a { color: var(--cyan-dark); font-size: .82rem; font-weight: 900; }
.compact-list { display: grid; gap: 8px; }
.compact-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfd; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.compact-list-item:hover { transform: translateY(-2px); border-color: #aee8e6; background: #f7ffff; }
.compact-list-item > div:first-child { min-width: 0; display: grid; }
.compact-list-item b, .compact-list-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-list-item span, .compact-list-item small { color: var(--muted); font-size: .75rem; }
.compact-list-meta { flex: 0 0 auto; display: grid; justify-items: end; gap: 4px; }
.compact-empty { padding: 22px 12px; }
.admin-quick-grid { margin-top: 0; }

.applications-toolbar { padding-bottom: 20px; }
.application-search { display: grid; grid-template-columns: minmax(260px,1fr) auto auto; align-items: end; gap: 10px; }
.application-status-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.application-status-tab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: #fafbfc; color: var(--muted); font-size: .82rem; font-weight: 900; }
.application-status-tab b { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 999px; background: #edf0f3; color: var(--text); }
.application-status-tab.is-active { border-color: var(--cyan-dark); background: #effdfc; color: #087b79; }
.application-status-tab.is-active b { background: var(--cyan); color: var(--charcoal); }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0 15px; }
.results-heading span { color: var(--muted); font-size: .84rem; }
.application-card-v2 { padding: 24px; }
.application-card-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.application-person { display: flex; align-items: center; gap: 13px; }
.application-person h2 { margin: 0; font-size: 1.25rem; }
.application-person p { margin: 1px 0 0; color: var(--muted); font-size: .8rem; }
.application-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #dffbfa, #ffe4eb); color: var(--charcoal); font-size: 1.2rem; font-weight: 950; }
.application-contact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.application-contact-grid > div { position: relative; min-width: 0; display: grid; gap: 3px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: #fafbfc; }
.application-contact-grid span { color: var(--muted); font-size: .72rem; font-weight: 900; }
.application-contact-grid b, .application-contact-grid a { overflow-wrap: anywhere; font-size: .86rem; }
.application-contact-grid a { color: var(--cyan-dark); font-weight: 900; }
.text-copy-button { width: fit-content; margin-top: 4px; padding: 0; border: 0; background: transparent; color: var(--pink); font-size: .72rem; font-weight: 900; }
.application-message { padding: 15px; border: 1px solid #e1e6ea; border-radius: 12px; background: #f6f8fa; }
.application-message span { color: var(--muted); font-size: .74rem; font-weight: 900; }
.application-message p { margin: 5px 0 0; white-space: pre-wrap; }
.application-workspace { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.application-workspace details { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.application-workspace details[open] { grid-column: 1 / -1; background: #fbfcfd; }
.application-workspace summary { color: var(--text); }
.details-description { color: var(--muted); font-size: .84rem; }
.success-note { background: #eaf9f3; color: #08714d; }
.large-empty { display: grid; gap: 4px; padding: 55px 20px; }
.large-empty b { color: var(--text); font-size: 1.05rem; }

.client-overview-card { margin-bottom: 18px; padding: 23px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(120deg, #fff, #effdfc 56%, #fff2f6); box-shadow: var(--shadow-sm); }
.client-overview-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.client-page-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.client-page-identity > img, .client-page-identity > span { width: 62px; height: 62px; flex: 0 0 62px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 19px; object-fit: cover; background: var(--charcoal); color: #fff; box-shadow: var(--shadow-sm); font-size: 1.35rem; font-weight: 950; }
.client-page-identity > div { min-width: 0; display: grid; }
.client-page-identity small { color: var(--muted); font-weight: 800; }
.client-page-identity b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-page-identity p { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }
.client-mini-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 20px; }
.client-mini-stats > div { display: grid; gap: 2px; padding: 13px; border: 1px solid rgba(37,42,52,.08); border-radius: 12px; background: rgba(255,255,255,.72); }
.client-mini-stats span { color: var(--muted); font-size: .73rem; font-weight: 900; }
.client-mini-stats strong { font-size: 1.35rem; }
.client-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 24px; }
.client-step { display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.client-step > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #edf0f3; color: var(--muted); font-weight: 950; }
.client-step > div { display: grid; }
.client-step small { color: var(--muted); font-size: .75rem; }
.client-step.is-complete { border-color: #bce9d9; background: #f6fffb; }
.client-step.is-complete > span { background: var(--success); color: #fff; }
.client-layout-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 18px; align-items: start; }
.client-settings-panel, .client-preview-panel { margin-bottom: 24px; }
.client-preview-panel { position: sticky; top: 96px; overflow: hidden; }
.mini-profile-preview { position: relative; min-height: 520px; padding: 36px 20px; border: 1px solid color-mix(in srgb, var(--preview-text, #eaeaea) 15%, transparent); border-radius: 20px; background: var(--preview-bg, #252a34); color: var(--preview-text, #eaeaea); text-align: center; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 38px rgba(37,42,52,.16); transition: background .25s ease, color .2s ease; }
.mini-profile-content { position: relative; z-index: 2; }
.mini-profile-glow { position: absolute; z-index: 1; border-radius: 50%; background: var(--preview-accent, #08d9d6); opacity: .18; filter: blur(18px); pointer-events: none; animation: mini-preview-float 7s ease-in-out infinite; }
.mini-profile-glow-one { width: 190px; height: 190px; top: -75px; right: -70px; }
.mini-profile-glow-two { width: 150px; height: 150px; bottom: -65px; left: -55px; animation-delay: -3.5s; }
.mini-profile-avatar { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 12px; border: 4px solid color-mix(in srgb, var(--preview-text, #eaeaea) 24%, transparent); border-radius: 50%; object-fit: cover; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.mini-profile-placeholder { background: var(--preview-accent, #08d9d6); color: #252a34; font-size: 1.8rem; font-weight: 950; }
.mini-profile-preview h3 { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: inherit; }
.mini-profile-preview h3 [data-preview-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-profile-preview [data-preview-bio] { min-height: 48px; margin: 5px 0 14px; opacity: .78; font-size: .82rem; line-height: 1.65; }
.mini-social-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.mini-social-row span { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--preview-text, #eaeaea) 24%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--preview-text, #eaeaea) 6%, transparent); transition: transform .18s ease, background .18s ease; }
.mini-social-row span:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--preview-accent, #08d9d6) 25%, transparent); }
.mini-social-row svg { width: 15px; height: 15px; fill: currentColor; }
.mini-link-stack { display: grid; gap: 10px; }
.mini-link-stack > div { min-height: 62px; display: grid; grid-template-columns: 43px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--preview-text, #eaeaea) 19%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--preview-text, #eaeaea) 9%, transparent); color: inherit; text-align: right; backdrop-filter: blur(9px); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.mini-link-stack > div:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--preview-accent, #08d9d6) 60%, transparent); background: color-mix(in srgb, var(--preview-accent, #08d9d6) 20%, transparent); }
.mini-link-stack > div > img, .mini-link-stack > div > span:first-child { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; object-fit: cover; background: var(--preview-accent, #08d9d6); color: #252a34; font-weight: 950; }
.mini-link-copy { min-width: 0; display: grid; gap: 2px; }
.mini-link-copy b, .mini-link-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-link-copy b { font-size: .8rem; }
.mini-link-copy small { color: inherit; opacity: .68; font-size: .68rem; }
.mini-link-stack i { color: var(--preview-accent, #08d9d6); font-style: normal; font-size: 1rem; }
@keyframes mini-preview-float { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(8px,-9px,0) scale(1.06); } }
.panel-count { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #e8fafa; color: #087b79; font-weight: 950; }
.enhanced-item-card { transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease; }
.enhanced-item-card:hover { transform: translateY(-2px); border-color: #b9e8e6; box-shadow: var(--shadow-sm); }

@media (max-width: 1050px) {
  .admin-dashboard-grid { grid-template-columns: 1fr 1fr; }
  .client-layout-grid { grid-template-columns: 1fr; }
  .client-preview-panel { position: static; }
  .mini-profile-preview { min-height: 430px; }
}

@media (max-width: 760px) {
  .heading-row, .attention-banner, .client-overview-main, .application-card-top, .results-heading { align-items: stretch; flex-direction: column; }
  .heading-actions, .attention-actions { width: 100%; }
  .heading-actions .button, .attention-actions .button { flex: 1; }
  .admin-dashboard-grid, .application-status-tabs, .client-mini-stats, .client-steps, .application-contact-grid, .application-workspace { grid-template-columns: 1fr; }
  .application-search { grid-template-columns: 1fr; }
  .application-status-tabs { grid-template-columns: 1fr 1fr; }
  .application-workspace details[open] { grid-column: auto; }
  .client-page-identity { align-items: flex-start; }
  .client-overview-main > .button { width: 100%; }
  .flash-with-action { align-items: stretch; flex-direction: column; }
  .flash-with-action .button { width: 100%; }
}

/* Agency application trash */
.application-trash-link { gap: 8px; }
.application-trash-link b { min-width: 25px; height: 25px; display: inline-grid; place-items: center; border-radius: 999px; background: #ffe7ed; color: var(--danger); font-size: .76rem; }
.application-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.application-card-actions form { margin: 0; }
.status-trash { background: #edf0f3; color: #4d5964; }
.application-card-trashed { border-color: #d7dde2; background: linear-gradient(180deg, #fff, #fbfcfd); }
.trash-retention-note { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid #f4cbd4; border-radius: 13px; background: #fff5f7; }
.trash-retention-note > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #ffe3ea; font-size: 1.25rem; }
.trash-retention-note b { display: block; color: #96203b; }
.trash-retention-note p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.trash-expiry-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: center; gap: 10px; margin: 17px 0 0; padding: 13px; border: 1px solid #e0e5e9; border-radius: 12px; background: #f6f8fa; }
.trash-expiry-strip > div { display: grid; gap: 2px; }
.trash-expiry-strip span { color: var(--muted); font-size: .72rem; font-weight: 900; }
.trash-expiry-strip b { font-size: .84rem; }
.trash-expiry-strip strong { padding: 8px 11px; border-radius: 999px; background: #ffe7ed; color: #a22140; font-size: .8rem; white-space: nowrap; }
.application-admin-note { margin-top: 10px; border-color: #cfecea; background: #f1fcfb; }
.trash-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 15px; border-top: 1px dashed #d8dde2; }
.trash-actions form { margin: 0; }

@media (max-width: 720px) {
  .application-card-actions { width: 100%; justify-content: space-between; }
  .trash-expiry-strip { grid-template-columns: 1fr; }
  .trash-expiry-strip strong { justify-self: start; }
  .trash-actions { flex-direction: column; }
  .trash-actions .button { width: 100%; }
}
