/* rozana agency — global styles */
:root {
  --bg: #0a0f1d;
  --bg-2: #0f1730;
  --panel: #131c38;
  --panel-2: #182351;
  --line: #233063;
  --text: #e9efff;
  --muted: #8d9bc7;
  --primary: #3b82f6;
  --primary-2: #6366f1;
  --accent: #22d3ee;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-2: 0 20px 60px rgba(20, 30, 80, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 600px at 90% -10%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34,211,238,.10), transparent 60%),
    linear-gradient(180deg, #060a18, #0a0f1d 30%, #070b18);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { display: inline-block; vertical-align: middle; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(10,15,29,.75);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: conic-gradient(from 200deg, #6366f1, #22d3ee, #3b82f6, #6366f1);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-1);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand.small .brand-mark { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; letter-spacing: .3px; }
.brand-name span { color: var(--accent); }
.brand-tag { color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-links a.active { color: #fff; background: rgba(99,102,241,.18); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: transform .05s ease, background .2s ease, border-color .2s ease, color .2s;
  font-family: inherit; font-size: 14.5px; color: #fff; background: transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn.lg { padding: 13px 20px; font-size: 15px; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 8px 24px rgba(59,130,246,.35); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.18); color: var(--text); }
.btn-outline:hover { background: rgba(255,255,255,.06); }
.btn-outline.danger { color: #fda4a4; border-color: rgba(239,68,68,.35); }
.btn-outline.danger:hover { background: rgba(239,68,68,.08); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.05); }
.btn-ghost.danger { color: #fda4a4; }

.flash { margin: 12px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid; font-weight: 600; }
.flash-ok { background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.45); color: #a7f3d0; }
.flash-bad { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.45); color: #fecaca; }

/* Layout */
.main { padding: 22px 18px 60px; }

/* HOME / Hero */
.home .hero { padding: 30px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero-text h1 { font-size: clamp(34px, 5vw, 56px); margin: 12px 0 8px; line-height: 1.1; }
.hero-text h2 { font-weight: 600; color: #c9d3f5; font-size: clamp(16px, 1.7vw, 20px); margin: 0 0 14px; }
.hero-pitch { color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.35); color: #c7d0ff;
  font-weight: 600; font-size: 13px;
}
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; max-width: 520px; }
.hero-stats div {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  padding: 12px 14px; border-radius: 12px;
}
.hero-stats strong { display: block; font-size: 20px; color: #fff; }
.hero-stats span { color: var(--muted); font-size: 12.5px; }
.hero-visual { display: grid; place-items: center; }

/* Visa Card */
.visa-card {
  position: relative; width: 380px; max-width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 20px; padding: 22px 22px 18px;
  color: #fff; isolation: isolate;
  background:
    radial-gradient(160% 120% at 100% 0%, rgba(255,255,255,.18), transparent 50%),
    linear-gradient(135deg, #0b3a8f 0%, #133bbf 35%, #4f46e5 65%, #7c3aed 100%);
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(255,255,255,.12);
  font-family: 'Inter', 'Cairo', sans-serif;
  overflow: hidden;
}
.visa-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(0,0,0,.30), transparent 70%);
  pointer-events: none;
}
.visa-card .vc-row { display: flex; align-items: center; justify-content: space-between; }
.vc-bank { font-weight: 800; letter-spacing: .8px; font-size: 14px; opacity: .95; }
.vc-brand { font-weight: 900; font-size: 22px; letter-spacing: 4px; font-style: italic; }
.vc-chip {
  width: 44px; height: 32px; margin-top: 16px;
  background: linear-gradient(135deg, #d8b14a, #f7e7a3 50%, #b88b21);
  border-radius: 7px; display: grid; place-items: center; color: #5b3e07;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 1px 0 rgba(0,0,0,.2);
}
.vc-chip svg { width: 18px; height: 18px; }
.vc-number {
  margin-top: 18px; font-size: 22px; letter-spacing: 2px; font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,.25); direction: ltr;
}
.vc-bottom { margin-top: 18px; gap: 14px; }
.vc-holder, .vc-exp, .vc-cvv { display: flex; flex-direction: column; gap: 2px; direction: ltr; }
.lbl { font-size: 9.5px; letter-spacing: 1px; opacity: .7; text-transform: uppercase; }
.val { font-size: 14px; font-weight: 700; }
.vc-glow {
  position: absolute; inset: -1px; border-radius: 20px; pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,.12) 75%, transparent 90%);
  mix-blend-mode: screen;
}
.visa-card.frozen { filter: saturate(.6) hue-rotate(190deg); }
.vc-frozen-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.12); padding: 5px 9px; border-radius: 999px;
  font-size: 11px; display: inline-flex; gap: 6px; align-items: center; backdrop-filter: blur(4px);
}

/* Sections */
.section-title { display: flex; align-items: center; gap: 10px; margin: 32px 0 14px; font-size: 22px; }
.section-title svg { width: 22px; height: 22px; color: var(--accent); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px;
  transition: transform .15s ease, border-color .2s;
}
.feature:hover { transform: translateY(-2px); border-color: rgba(99,102,241,.45); }
.feature .ic { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.feature h4 { margin: 6px 0 4px; }
.feature p { color: var(--muted); margin: 0; }

/* How */
.how .steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.how .steps li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px;
}
.step-n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 800;
}
.how .steps .ic { color: var(--accent); }

/* CTA */
.cta { margin: 36px 0 8px; }
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.10));
  border: 1px solid rgba(99,102,241,.35); border-radius: 20px; padding: 22px;
  flex-wrap: wrap;
}

/* Footer */
.footer { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 28px; padding-bottom: 18px; background: rgba(0,0,0,.2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { margin: 0 0 8px; }
.links { list-style: none; padding: 0; display: grid; gap: 6px; color: var(--muted); }
.links a { color: var(--muted); }
.links a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.05); color: var(--muted); }

/* Auth */
.auth-wrap { min-height: calc(100dvh - 220px); display: grid; place-items: center; padding: 40px 0; }
.auth-card {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow-2);
}
.auth-head { text-align: center; margin-bottom: 14px; }
.auth-head .ic-lg { width: 32px; height: 32px; color: var(--accent); }
.auth-foot { text-align: center; margin-top: 12px; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; }
.form label > span { display: inline-flex; gap: 8px; align-items: center; color: #cdd5f5; font-weight: 600; font-size: 13.5px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04); color: var(--text); font-family: inherit; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.form textarea { min-height: 80px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: rgba(99,102,241,.55); background: rgba(255,255,255,.06); }
.form input[disabled] { opacity: .7; }
.form .check { flex-direction: row; gap: 8px; align-items: center; }
.form-section { padding: 14px; border: 1px dashed rgba(255,255,255,.08); border-radius: 12px; }
.form-section h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.pm-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.pm-item { display: flex; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.10); border-radius: 12px; cursor: pointer; }
.pm-item input { margin-top: 5px; }
.pm-item:hover { border-color: rgba(99,102,241,.5); }
.pm-item input:checked + div { color: #fff; }
.pm-item:has(input:checked) { border-color: rgba(99,102,241,.55); background: rgba(99,102,241,.08); }
.pm-item strong { display: flex; gap: 6px; align-items: center; }
.pm-details { white-space: pre-wrap; color: var(--muted); margin: 6px 0 0; font-family: inherit; font-size: 12.5px; }

/* Panels & tables */
.panel { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-head h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 14px; }
.empty { color: var(--muted); padding: 12px; text-align: center; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: start; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.badge { padding: 4px 8px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.08); }
.badge.ok { background: rgba(16,185,129,.18); color: #6ee7b7; }
.badge.bad { background: rgba(239,68,68,.18); color: #fca5a5; }
.badge.warn { background: rgba(245,158,11,.18); color: #fcd34d; }
.badge.pending { background: rgba(99,102,241,.18); color: #c7d0ff; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.stat { display: flex; gap: 12px; align-items: center; padding: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.stat .ic { width: 28px; height: 28px; color: var(--accent); }
.stat span { font-size: 18px; font-weight: 800; }
.stat small { color: var(--muted); display: block; margin-top: 2px; }

/* Dashboard */
.dash-head, .page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 6px; flex-wrap: wrap; }
.dash-head h1, .page-head h1 { margin: 0; display: flex; align-items: center; gap: 8px; }

/* Cards page */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; margin-top: 14px; }
.card-block { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px; display: grid; gap: 12px; }
.card-block .visa-card { width: 100%; max-width: 440px; margin: 0 auto; }
.card-meta { display: grid; gap: 8px; }
.card-meta-row { display: flex; align-items: center; justify-content: space-between; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.card-notifs { border-top: 1px dashed rgba(255,255,255,.10); padding-top: 10px; }
.card-notifs h4 { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.notif-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.notif { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.notif strong { display: block; }
.notif p { margin: 4px 0 4px; color: #d6deff; white-space: pre-wrap; }
.notif .ic { width: 22px; height: 22px; }
.notif-otp { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.35); }
.notif-otp .ic { color: #fcd34d; }
.notif-3ds { background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.35); }
.notif-3ds .ic { color: var(--accent); }
.otp-box { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(0,0,0,.25); border: 1px dashed rgba(245,158,11,.55); border-radius: 10px; margin: 6px 0 4px; }
.otp-box .lbl { color: var(--muted); }
.otp-box .code { letter-spacing: 4px; font-weight: 800; font-size: 22px; color: #fcd34d; direction: ltr; }
.empty-card { text-align: center; padding: 40px 16px; background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.10); border-radius: 18px; }
.ic-xl { width: 44px; height: 44px; color: var(--accent); }

/* Filters / chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.chip { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); color: var(--muted); font-weight: 600; font-size: 13px; }
.chip.on { background: rgba(99,102,241,.18); border-color: rgba(99,102,241,.45); color: #fff; }

/* Admin layout */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.admin-side { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; position: sticky; top: 78px; }
.admin-side h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-nav a.active { background: rgba(99,102,241,.18); color: #fff; }
.admin-main { min-width: 0; }
.admin-main h1 { margin: 0 0 12px; display: flex; gap: 8px; align-items: center; }

/* Inline forms */
.inline { display: inline-flex; gap: 6px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin-inline-end: 6px; }
.inline-form input { width: 110px; }
.row-actions summary { list-style: none; }
.row-actions summary::-webkit-details-marker { display: none; }
.row-actions[open] .row-actions-pop { display: grid; }
.row-actions-pop { display: none; gap: 8px; padding: 10px; margin-top: 6px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; min-width: 280px; }

.app-row { margin-bottom: 12px; }
.small-info div { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 8px 10px; }
.small-info span { display: block; }
.approve-form, .reject-form, .edit-card { margin-top: 8px; }
.approve-form summary, .reject-form summary, .edit-card summary { list-style: none; cursor: pointer; }
.approve-form summary::-webkit-details-marker, .reject-form summary::-webkit-details-marker, .edit-card summary::-webkit-details-marker { display: none; }

.pm-edit { display: grid; gap: 10px; margin-top: 12px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .table { font-size: 13px; }
  .visa-card { padding: 18px; border-radius: 18px; }
  .vc-number { font-size: 19px; }
}
