/* Ortak tasarım sistemi: kayıt, giriş ve panel */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f1f3f6; --text: #0f1729; --text-2: #4b5565; --muted: #6b7280;
  --line: #e6e9ef; --line-2: #d6dbe3;
  --brand: #0e7c66; --brand-600: #0b6a57; --brand-50: #e8f6f2; --brand-100: #cdeee5;
  --accent: #6d5efc; --accent-50: #efedff;
  --warn: #b45309; --warn-50: #fff7e6; --danger: #c0352b; --danger-50: #fdeceb; --ok: #138a4a;
  --wa-bg: #efeae2; --wa-out: #d9fdd3; --wa-head: #075e54;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05); --sh-2: 0 4px 16px rgba(16, 24, 40, .07), 0 1px 3px rgba(16, 24, 40, .05);
  --sh-3: 0 24px 60px rgba(16, 24, 40, .14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; font-weight: 600; } a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.02em; margin: 0; }
[hidden] { display: none !important; }

/* marka */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #10a37f, #0e7c66 55%, #6d5efc); box-shadow: 0 6px 16px rgba(14, 124, 102, .35); }
.logo-mark svg { width: 18px; height: 18px; }

/* formlar */
.field { margin-top: 16px; } .field:first-child { margin-top: 0; }
.label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.label .hint, .hint { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.input, .textarea, .select { width: 100%; font: inherit; font-size: 14.5px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.textarea { resize: vertical; min-height: 84px; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.input::placeholder, .textarea::placeholder { color: #a3abb8; }
.input.missing { border-color: #f0b429; background: #fffbeb; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent; border-radius: 11px; padding: 11px 18px; cursor: pointer; transition: transform .05s, background .15s, box-shadow .15s;
  white-space: nowrap; color: var(--text); background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(14, 124, 102, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover:not(:disabled) { background: var(--brand-600); }
.btn-secondary { border-color: var(--line-2); box-shadow: var(--sh-1); } .btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); } .btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger-50); color: var(--danger); } .btn-danger:hover { background: #fbd9d6; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 13px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-magic { background: linear-gradient(135deg, #0e7c66, #10a37f 50%, #6d5efc); color: #fff; box-shadow: 0 8px 24px rgba(14, 124, 102, .3); }
.btn-magic:hover { filter: brightness(1.05); }

/* kart, rozet, anahtar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.pill-brand { background: var(--brand-50); color: var(--brand); } .pill-warn { background: var(--warn-50); color: var(--warn); }
.pill-danger { background: var(--danger-50); color: var(--danger); } .pill-accent { background: var(--accent-50); color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.err { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 1.2em; margin-top: 12px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--text); color: #fff; padding: 11px 18px;
  border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 99; box-shadow: var(--sh-3); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* WhatsApp benzeri sohbet (önizleme ve panel) */
.wa { background: var(--wa-bg); background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 14px 14px; }
.bubble { max-width: 82%; padding: 7px 11px 6px; border-radius: 10px; font-size: 14px; line-height: 1.45; box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  white-space: pre-wrap; word-wrap: break-word; position: relative; }
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.bubble.out { background: var(--wa-out); align-self: flex-end; border-top-right-radius: 3px; }
.bubble.owner { background: #fff1c2; align-self: flex-end; border-top-right-radius: 3px; }
.bubble time { display: block; text-align: right; font-size: 10.5px; color: #4b5a63; margin-top: 2px; }
.bubble .who { display: block; font-size: 11px; font-weight: 700; color: var(--brand); margin-bottom: 1px; }
.typing { display: inline-flex; gap: 4px; padding: 11px 13px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5ad; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* telefon çerçevesi */
.phone { width: 300px; height: 600px; border-radius: 44px; background: #0b0f17; padding: 11px; box-shadow: var(--sh-3), inset 0 0 0 2px #2a3140; }
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; background: var(--wa-bg); }
.phone-head { background: var(--wa-head); color: #fff; padding: 34px 14px 10px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none;
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; }
.phone-head b { display: block; font-size: 14.5px; line-height: 1.2; } .phone-head small { font-size: 11.5px; opacity: .85; }
.phone-body { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; justify-content: flex-end; }
.phone-foot { background: #f0f2f5; padding: 8px 10px; display: flex; gap: 8px; align-items: center; }
.phone-foot div { flex: 1; background: #fff; border-radius: 20px; padding: 8px 14px; color: #5b6770; font-size: 13px; }
.phone-foot span { width: 36px; height: 36px; border-radius: 50%; background: #00a884; display: grid; place-items: center; color: #fff; }
.pop { animation: pop .35s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } .card-pad { padding: 18px; } }
