/* ============================================================
   Crypto Licensing Authority (CLA) — crypto-license.online
   Kurumsal tema · açık/koyu · navy + altın
   ============================================================ */
:root {
    --bg-body: #eef1f5;
    --bg-soft: #f6f8fb;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-hero: #ffffff;
    --bg-footer: #0a1b2e;
    --text-main: #0f1b2d;
    --text-soft: #334155;
    --text-muted: #64748b;
    --primary: #0a2540;
    --primary-2: #123a63;
    --primary-ink: #ffffff;
    --accent: #c8a84b;          /* altın mühür */
    --accent-soft: #f3ecd6;
    --success: #0f7a46;
    --success-soft: #dcf3e6;
    --danger: #b4232f;
    --danger-soft: #fbe3e3;
    --warn: #9a6b11;
    --warn-soft: #fbeecf;
    --info: #1e5aa8;
    --info-soft: #e4eefb;
    --border: #dde4ec;
    --border-soft: #eaeff4;
    --ring: rgba(10, 37, 64, 0.14);

    --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(10, 23, 45, 0.06);
    --shadow: 0 10px 30px -12px rgba(10, 23, 45, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(10, 23, 45, 0.30);
    --maxw: 1180px;
}
:root[data-theme="dark"] {
    --bg-body: #0b1420;
    --bg-soft: #101d2d;
    --bg-card: #101f31;
    --bg-header: #0c1a29;
    --bg-hero: #0c1a29;
    --bg-footer: #070f18;
    --text-main: #eaf1f8;
    --text-soft: #c2d0de;
    --text-muted: #8aa0b5;
    --primary: #d7e3f0;        /* koyuda metin/aksan açılır */
    --primary-2: #9fc0e6;
    --primary-ink: #0a2540;
    --accent: #e4c874;
    --accent-soft: #2a2410;
    --success: #4cd08a;
    --success-soft: #11321f;
    --danger: #ef6b74;
    --danger-soft: #341315;
    --warn: #e6b34a;
    --warn-soft: #2d2410;
    --info: #74aef0;
    --info-soft: #102137;
    --border: #22344a;
    --border-soft: #1a2a3c;
    --ring: rgba(159, 192, 230, 0.22);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}
a { text-decoration: none; color: inherit; transition: color .18s ease; }
img, svg { vertical-align: middle; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-main); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

/* ---- Layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1 0 auto; }
.section { padding: 4rem 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }
.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .72rem 1.5rem; border-radius: var(--radius); font-weight: 600;
    cursor: pointer; border: 1px solid transparent; font-size: .95rem;
    font-family: var(--font-main); transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--accent); color: #2a2208; border-color: var(--accent); }
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-soft); border-color: var(--border); }
.btn-outline:hover { color: var(--primary); border-color: var(--primary); background: var(--bg-soft); }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* ---- Navbar ---- */
.navbar { background: var(--bg-header); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.1); }
.navbar::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 55%, var(--primary) 100%); }
.nav-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--primary); }
.brand svg { width: 38px; height: 38px; color: var(--primary); }
.brand-txt { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; letter-spacing: .01em; line-height: 1; }
.brand-txt small { display: block; font-family: var(--font-main); font-weight: 600; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: .92rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: .6rem; }

.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-soft); cursor: pointer; font-size: 1rem; transition: all .18s; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lang-switch a { padding: .4rem .7rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--text-muted); background: var(--bg-card); }
.lang-switch a.active { background: var(--primary); color: var(--primary-ink); }

/* hamburger */
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--bg-hero); border-bottom: 1px solid var(--border); padding: 4.5rem 0 3.5rem; text-align: center; }
.hero-grid-bg { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0); background-size: 26px 26px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 40%, transparent 78%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 40%, transparent 78%); pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; background: var(--accent-soft); color: var(--warn); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.hero h1 { margin: 1.3rem auto .9rem; max-width: 16ch; }
.hero h1 .accent { color: var(--primary-2); }

/* ---- Search ---- */
.search-box { max-width: 680px; margin: 2rem auto .5rem; position: relative; }
.search-box input { width: 100%; padding: 1.05rem 3.4rem 1.05rem 1.4rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 1.02rem; background: var(--bg-card); color: var(--text-main); font-family: inherit; box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s; }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.search-icon { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
/* anlık arama açılır sonuç */
.ac-panel { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 40; text-align: left; display: none; }
.ac-panel.open { display: block; }
.ac-item { display: flex; align-items: center; gap: .85rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--border-soft); cursor: pointer; }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.sel { background: var(--bg-soft); }
.ac-item .nm { font-weight: 600; color: var(--text-main); }
.ac-item .dm { font-size: .82rem; color: var(--text-muted); font-family: var(--font-mono); }
.ac-empty { padding: 1rem 1.1rem; color: var(--text-muted); font-size: .9rem; }

/* ---- Stat counters ---- */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 2.6rem; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--primary); line-height: 1; }
.stat .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-top: .4rem; }
.stat .num .plus { color: var(--accent); }

/* trust row */
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 2.2rem; color: var(--text-muted); font-weight: 500; font-size: .9rem; }
.trust-badges span { display: inline-flex; align-items: center; gap: .5rem; }

/* ---- Cards / features ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; position: relative; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--info-soft); color: var(--primary); margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .4rem; }

/* section heading */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }

/* ---- Status badges ---- */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .34rem .8rem; border-radius: 999px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 1px solid transparent; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-active { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.badge-suspended { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.badge-revoked { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.badge-pending { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); }

/* ---- Result list ---- */
.result-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; transition: border-color .18s, box-shadow .18s; }
.result-row:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); box-shadow: var(--shadow-sm); }
.result-row .meta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; color: var(--text-muted); font-size: .88rem; }
.result-row .meta span { display: inline-flex; align-items: center; gap: .4rem; }
.result-row .co { display: flex; align-items: center; gap: .6rem; }
.result-row .co h3 { font-size: 1.15rem; margin: 0; }

/* ---- Filters (directory) ---- */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.8rem; }
.filters select, .filters input { padding: .6rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-main); font-family: inherit; font-size: .9rem; }
.filters select:focus, .filters input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.filters .grow { flex: 1 1 220px; }
.count-pill { font-size: .85rem; color: var(--text-muted); }

/* ---- Certificate (license.php) ---- */
.cert { max-width: 920px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.cert-bar { height: 8px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.cert-body { padding: 2.6rem; position: relative; }
.cert-wm { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); font-size: 19rem; color: var(--text-main); opacity: .035; pointer-events: none; z-index: 0; }
.cert-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; position: relative; z-index: 1; margin-bottom: 2rem; }
.cert-kicker { color: var(--accent); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: .5rem; }
.cert-head h1 { font-size: 2rem; margin-bottom: .35rem; }
.cert-seal { text-align: center; }
.cert-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.3rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.8rem; }
.detail-label { text-transform: uppercase; font-size: .72rem; font-weight: 700; color: var(--text-muted); margin-bottom: .3rem; letter-spacing: .06em; }
.detail-value { color: var(--text-main); font-weight: 600; font-size: 1.05rem; }
.detail-value.mono { font-family: var(--font-mono); }
.cert-scope { position: relative; z-index: 1; margin-bottom: 1.8rem; }
.cert-scope h3 { border-bottom: 2px solid var(--border); padding-bottom: .7rem; margin-bottom: 1.2rem; color: var(--primary); }
.scope-item { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; font-size: 1.02rem; }
.scope-item i { color: var(--success); }
.cert-note { position: relative; z-index: 1; background: var(--info-soft); padding: 1.1rem 1.25rem; border-left: 4px solid var(--info); font-size: .92rem; color: var(--text-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cert-verify { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px dashed var(--border); }
.cert-qr { width: 108px; height: 108px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px; background: #fff; flex-shrink: 0; }
.cert-verify .vtext { font-size: .88rem; color: var(--text-muted); }
.cert-verify .vtext strong { color: var(--text-main); }
.cert-verify .vurl { font-family: var(--font-mono); font-size: .82rem; color: var(--primary-2); word-break: break-all; }
.cert-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-left: auto; }

/* ---- Forms ---- */
.form-card { max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-soft); margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .95rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-main); font-family: inherit; font-size: .95rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.field textarea { min-height: 120px; resize: vertical; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.4rem; font-size: .92rem; border: 1px solid transparent; }
.alert-ok { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }

/* ---- Content pages ---- */
.doc { max-width: 820px; margin: 0 auto; }
.doc p { color: var(--text-soft); margin-bottom: 1.1rem; }
.doc h2 { margin: 2rem 0 1rem; }
.doc h3 { margin: 1.5rem 0 .7rem; }
.doc ul { margin: 0 0 1.1rem 1.3rem; color: var(--text-soft); }
.doc li { margin-bottom: .5rem; }

/* ---- Footer ---- */
.footer { background: var(--bg-footer); color: #9fb2c6; padding: 3.5rem 0 1.8rem; margin-top: auto; font-size: .92rem; }
.footer .brand { color: #fff; }
.footer .brand svg { color: #fff; }
.footer .brand-txt small { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer h4 { color: #fff; font-family: var(--font-main); margin-bottom: 1.1rem; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.footer a { color: #8ea3b9; display: block; margin-bottom: .6rem; }
.footer a:hover { color: #fff; }
.footer-about { color: #8ea3b9; font-size: .9rem; margin: 1rem 0 1.2rem; max-width: 34ch; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.4rem; }
.trust-strip span { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: #7f94aa; }
.trust-strip i { color: var(--accent); }
.ftr-rozet { display: inline-block; margin-top: 1.4rem; transition: transform .18s, filter .18s; }
.ftr-rozet img { height: 62px; width: auto; display: block; }
.ftr-rozet:hover { transform: translateY(-2px); filter: brightness(1.06); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.6rem; margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: .82rem; color: #7f94aa; }
.footer-bottom .links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-bottom .links a { display: inline; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .nav-links { position: fixed; inset: 61px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-header); border-bottom: 1px solid var(--border); padding: .5rem 1.5rem 1rem; box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .22s ease; z-index: 49; }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--border-soft); font-size: 1rem; }
    .nav-links a.active::after { display: none; }
    .nav-toggle { display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
    .cert-body { padding: 1.6rem; }
    .cert-wm { font-size: 12rem; }
    .cert-actions { margin-left: 0; width: 100%; }
    .cert-actions .btn { flex: 1; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats { gap: 1.6rem; }
    .section { padding: 2.8rem 0; }
    .result-row { flex-direction: column; align-items: flex-start; }
    .result-row .r-right { width: 100%; display: flex; align-items: center; justify-content: space-between; }
}

/* ---- Print (PDF indir) ---- */
@media print {
    .navbar, .footer, .cert-actions, .no-print { display: none !important; }
    body { background: #fff; }
    .cert { box-shadow: none; border: 1px solid #ccc; max-width: 100%; }
    .section { padding: 0; }
    @page { margin: 1.4cm; }
}
