/* Fleur de Lys: omersevkisevil.com ile aynı renk değişkenleri */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --color-background: #0a0e16;
  --color-background-alt: #0e1420;
  --color-surface: #131a28;
  --color-surface-2: #1a2336;
  --color-text: #e8ecf4;
  --color-text-muted: #9aa5ba;
  --color-primary: #5aa2ff;
  --color-accent: #8b7bff;
  --color-border: #232d44;
  --color-on-primary: #06101f;
  --color-success: #3ecf8e;
  --color-danger: #ff7a7a;
  --color-overlay: rgba(10, 14, 22, .86);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .28);
  --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-accent));

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --container: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="light"] {
  --color-background: #f6f8fc;
  --color-background-alt: #edf1f8;
  --color-surface: #ffffff;
  --color-surface-2: #f1f4fa;
  --color-text: #101828;
  --color-text-muted: #51607a;
  --color-primary: #1b63d6;
  --color-accent: #6a4cff;
  --color-border: #d9e0ec;
  --color-on-primary: #ffffff;
  --color-success: #12805a;
  --color-danger: #c62f2f;
  --color-overlay: rgba(246, 248, 252, .9);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 28px rgba(16, 24, 40, .07);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.65;
  color: var(--color-text); background: var(--color-background);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: .8rem; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0 0 1rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; margin-bottom: .35rem; }
ul { padding: 0; list-style: none; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--font-mono); font-size: .92em; background: var(--color-surface-2); padding: .15em .45em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--color-text-muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--color-primary); color: var(--color-on-primary); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.stack { display: grid; gap: 1rem; }
.stack > * { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--color-accent); font-weight: 700; margin-bottom: .6rem; }
.lead { font-size: 1.125rem; max-width: 56ch; }

/* ---------- Logo ---------- */
.logo-mark {
  display: inline-block; width: 22px; height: 27px; background: var(--gradient-brand);
  -webkit-mask: url(../img/logo.svg) center / contain no-repeat; mask: url(../img/logo.svg) center / contain no-repeat;
}
.logo-mark--lg { width: 56px; height: 69px; }
.logo-mark--xl { width: min(60vw, 260px); height: min(74vw, 320px); }

/* ---------- Header ---------- */
.demo-bar { background: var(--color-surface-2); color: var(--color-text-muted); text-align: center; font-size: .82rem; padding: .35rem 1rem; border-bottom: 1px solid var(--color-border); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-overlay); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--color-text); font-weight: 800; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 1.25rem; margin-right: auto; }
.nav a { color: var(--color-text-muted); font-weight: 600; padding: .4rem .1rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-text); text-decoration: none; border-bottom-color: var(--color-primary); }
.tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.seg a { padding: .25rem .65rem; font-size: .8rem; font-weight: 700; color: var(--color-text-muted); }
.seg a:hover { text-decoration: none; color: var(--color-text); }
.seg a[aria-current="true"] { background: var(--gradient-brand); color: var(--color-on-primary); }
.icon-btn { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; font-size: 1rem; position: relative; }
.icon-btn:hover { text-decoration: none; border-color: var(--color-primary); }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--color-accent); color: #fff; border-radius: 999px; font-size: .68rem; min-width: 18px; height: 18px; display: grid; place-items: center; font-weight: 700; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .7rem .2rem .25rem; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text); font-weight: 600; font-size: .9rem; max-width: 190px; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip img { border-radius: 50%; }
.user-chip:hover { text-decoration: none; border-color: var(--color-primary); }
.nav-toggle { display: none; background: none; border: 1px solid var(--color-border); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; padding: 10px 9px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--color-text); margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--gradient-brand); color: var(--color-on-primary); box-shadow: 0 8px 22px rgba(90, 162, 255, .25); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); }
.btn--sm { padding: .45rem .9rem; font-size: .85rem; }

/* ---------- Sections / grid / cards ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0; background: radial-gradient(900px 400px at 80% 0%, rgba(139, 123, 255, .16), transparent 60%), radial-gradient(700px 360px at 0% 100%, rgba(90, 162, 255, .12), transparent 60%); }
.hero__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.5rem 0; }
.hero__art { display: grid; place-items: center; opacity: .95; filter: drop-shadow(0 18px 40px rgba(90, 162, 255, .25)); }
.server-box { display: inline-flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .6rem .9rem; border: 1px dashed var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section--alt { background: var(--color-background-alt); border-block: 1px solid var(--color-border); }
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 1.25rem; }
.tile { color: var(--color-text); transition: transform .2s var(--ease), border-color .2s; }
.tile:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--color-primary); }
.group-title { margin-top: 2rem; }
.product { display: flex; flex-direction: column; gap: .5rem; }
.product__top { display: flex; gap: .4rem; flex-wrap: wrap; }
.product__name a { color: var(--color-text); }
.product__desc { flex: 1; font-size: .94rem; }
.product__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.price { font-size: 1.2rem; font-weight: 800; }
.price--lg { font-size: 1.7rem; }
.badge { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--color-surface-2); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.badge--accent { color: var(--color-accent); }
.badge--paid { color: var(--color-success); border-color: var(--color-success); }
.badge--failed, .badge--cancelled { color: var(--color-danger); border-color: var(--color-danger); }
.badge--pending { color: var(--color-primary); border-color: var(--color-primary); }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.tabs a { padding: .4rem .95rem; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-muted); font-weight: 600; font-size: .9rem; }
.tabs a:hover { text-decoration: none; color: var(--color-text); }
.tabs a[aria-current="page"] { background: var(--gradient-brand); color: var(--color-on-primary); border-color: transparent; }
.chips { display: flex; gap: .6rem; flex-wrap: wrap; margin: .5rem 0 1.2rem; }
.chip { display: grid; gap: 0; padding: .55rem .9rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text); font-weight: 700; }
.chip small { color: var(--color-text-muted); font-weight: 500; }
.chip:hover { text-decoration: none; border-color: var(--color-primary); }
.chip[aria-current="page"] { border-color: var(--color-accent); background: var(--color-surface-2); }
.small-title { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.product-detail > * + * { margin-top: .8rem; }

/* ---------- Cart / checkout / orders ---------- */
.lines { display: grid; gap: .7rem; margin: 1rem 0; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; }
.line > div { flex: 1; }
.total-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--color-border); margin-bottom: 1rem; }
.user-line { display: flex; align-items: center; gap: .9rem; }
.user-line img { border-radius: 50%; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.recent { display: grid; gap: .6rem; }
.recent__item { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; }
.recent__item > div { flex: 1; }
.recent__item img { border-radius: 50%; }
.row-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.prose h2 { margin-top: 1.6rem; font-size: 1.2rem; }
.prose p { color: var(--color-text-muted); }

/* ---------- Forms ---------- */
.field { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--color-text); background: var(--color-background-alt); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: .65rem .8rem; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: .3rem; accent-color: var(--color-accent); }
.form-grid { grid-template-columns: repeat(2, 1fr); }
.form-grid > p, .form-grid > .row-actions, .form-grid > .check { grid-column: 1 / -1; }

/* ---------- Flash ---------- */
.flashes { padding-top: 1rem; display: grid; gap: .5rem; }
.flash { padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface); margin: .6rem 0; }
.flash--success { border-color: var(--color-success); }
.flash--error { border-color: var(--color-danger); }
.flash--info { border-color: var(--color-primary); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); margin-bottom: 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.table th { color: var(--color-text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; background: var(--color-surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: 2rem 0 1.5rem; margin-top: 2rem; background: var(--color-background-alt); }
.footer-row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links { display: grid; gap: .4rem; align-content: start; }

/* ---------- Admin ---------- */
.admin-main { padding: 1.6rem 0 3rem; }
.admin-main h1 { margin-bottom: 1rem; }
.admin-main section { margin-top: 1.8rem; }
.nav--admin { gap: 1rem; flex-wrap: wrap; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.stats { margin-bottom: 1.5rem; }
.stat { display: grid; gap: .15rem; align-content: start; }
.stat__num { font-size: 1.6rem; letter-spacing: -.01em; }
.days { font-weight: 700; }
.days--ok { color: var(--color-success); }
.days--warn { color: var(--color-danger); }
.admin--bare main { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-box { width: min(100%, 400px); display: grid; gap: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; flex-direction: column; width: 100%; gap: .2rem; order: 3; margin: 0; padding-bottom: .6rem; }
  .nav.is-open { display: flex; }
  .tools { width: 100%; order: 4; padding-bottom: .7rem; }
  .grid--2, .grid--3, .grid--4, .form-grid { grid-template-columns: 1fr; }
  .line { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
