/* Kart sayfası ve ana sayfa ortak tasarımı (templates/card.php, templates/home.php) */
  /* Elementor / tema stillerine karşı koruma */
  body { background: #f2f4f5 !important; margin: 0; }
  #cg-card { position: relative; isolation: isolate; text-align: left; line-height: normal; }
  #cg-card h1, #cg-card h2, #cg-card h3, #cg-card p { margin: 0; font-family: inherit; text-transform: none; }
  #cg-card h1 { color: var(--ink); }
  #cg-card a, #cg-card a:hover, #cg-card a:focus { text-decoration: none; box-shadow: none; }
  #cg-card button, #cg-card button:hover, #cg-card button:focus {
    border: 0; border-radius: 0; padding: 0; background: none; color: inherit;
    font: inherit; text-transform: none; letter-spacing: inherit; line-height: inherit; box-shadow: none;
  }
  #cg-card svg { display: block; }
/* Bu versiyon bilinçli olarak sadece açık tema: cihaz karanlık modda olsa da aynı görünür. */
  #cg-card {
    color-scheme: light;
    --teal: #50c7c4;
    --teal-ink: #23807d;      /* beyaz zeminde okunur koyu turkuaz */
    --teal-tint: #e9f6f6;
    --grey: #767c83;
    --band: #353b42;
    --band-2: #24282d;
    --ink: #2b3036;
    --ink-2: #4a5057;
    --muted: #686d73;         /* WCAG AA: tüm zeminlerde ≥4.5:1 */
    --bg: #f2f4f5;
    --surface: #ffffff;
    --line: #e4e7ea;
    --hover: #f7f9f9;
    --ease: cubic-bezier(.2, .7, .2, 1);
  }

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

  #cg-card { -webkit-text-size-adjust: 100%; }

  #cg-card {
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  #cg-card a { color: inherit; text-decoration: none; }

  #cg-card button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* ---------- Üst bant ---------- */
  #cg-card .band {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--band) 0%, var(--band-2) 100%);
    padding-bottom: 228px;
  }

  #cg-card .band-inner { padding-top: 24px !important; }

  @media (min-width: 560px) {
  #cg-card .band { padding-bottom: 250px; }
 }
/* camdan geçen ışık */
  #cg-card .band::after {
    content: ""; position: absolute; top: -50%; bottom: -50%; width: 120px; left: -30%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
    transform: rotate(25deg);
    animation: sweep 7s var(--ease) infinite 1s;
    pointer-events: none;
  }

  @keyframes sweep { 0% { left: -30%; } 45%, 100% { left: 130%; } }
/* kırık cam yüzeyleri */
  #cg-card .facets { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

  #cg-card .facets polygon { animation: facet 9s ease-in-out infinite alternate; }

  #cg-card .facets polygon:nth-child(2n) { animation-delay: -3s; }

  #cg-card .facets polygon:nth-child(3n) { animation-delay: -6s; }

  @keyframes facet { from { opacity: .55; } to { opacity: 1; } }

  #cg-card .band-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--teal);
    transform-origin: left; animation: grow 1s var(--ease) both .2s; }

  #cg-card .band-inner {
    position: relative; z-index: 1;
    max-width: 520px; margin: 0 auto; padding: 20px 20px 0;
    display: flex; align-items: center; justify-content: space-between;
  }
/* Resmi logo — renkleri korunsun diye koyu bant üzerinde beyaz plaka */
  #cg-card .logo {
    display: inline-flex; align-items: center;
    background: #fff; padding: 9px 12px; border-radius: 4px;
    box-shadow: 0 6px 18px -8px rgba(0,0,0,.45);
  }

  #cg-card .logo svg { display: block; height: 26px; width: auto; }

  #cg-card .lang { display: flex; align-items: center; gap: 2px; font-size: 13px; }

  #cg-card .lang button { min-width: 44px; min-height: 44px; padding: 4px 6px; color: rgba(255,255,255,.55); font-weight: 500; letter-spacing: .04em; transition: color .2s; }

  #cg-card .lang button:hover { color: #fff; }

  #cg-card .lang button[aria-pressed="true"] { color: #fff; font-weight: 600; }

  #cg-card .lang span { color: rgba(255,255,255,.25); }
/* ---------- İçerik ---------- */
  #cg-card .wrap { position: relative; z-index: 2; max-width: 520px; margin: -156px auto 0; padding: 0 16px 40px; }

  #cg-card .panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(20,30,40,.04), 0 8px 24px -12px rgba(20,30,40,.12);
  }

  #cg-card .profile { padding: 24px 24px 24px; }

  #cg-card .identity { display: flex; align-items: center; gap: 18px; }

  #cg-card .avatar {
    flex: none; width: 80px; height: 80px; border-radius: 6px; overflow: hidden;
    background: linear-gradient(145deg, #f4f6f7, #e3e7ea);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-size: 27px; font-weight: 500; color: var(--grey); letter-spacing: .02em;
    position: relative;
  }

  #cg-card .avatar::after { /* alt köşede turkuaz imza */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--teal);
  }

  #cg-card .avatar img { width: 100%; height: 100%; object-fit: cover; }

  #cg-card .avatar.is-logo { background: #fff; }

  #cg-card .avatar.is-logo img { object-fit: contain; }

  #cg-card .name { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }

  #cg-card .role { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--teal-ink); }

  #cg-card .company { margin-top: 2px; font-size: 13px; color: var(--muted); }

  #cg-card .buttons { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  #cg-card .btn {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 16px; border-radius: 6px;
    font-size: 14.5px; font-weight: 500;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s;
  }

  #cg-card .btn svg { width: 18px; height: 18px; color: var(--teal-ink); transition: transform .25s var(--ease); }

  #cg-card .btn:hover { border-color: var(--teal); background: var(--hover); transform: translateY(-1px); }

  #cg-card .btn:hover svg { transform: scale(1.1); }

  #cg-card .btn:active { transform: translateY(0) scale(.98); }

  #cg-card .btn-primary {
    grid-column: 1 / -1; height: 52px;
    justify-content: space-between; padding: 0 12px 0 20px;
    background: linear-gradient(135deg, #3a4047, #2b3036); color: #fff; border-color: transparent; font-weight: 600;
    box-shadow: 0 8px 20px -10px rgba(43,48,54,.7);
  }

  #cg-card .btn-primary:hover { background: linear-gradient(135deg, #40474f, #2b3036); border-color: transparent; box-shadow: 0 12px 24px -10px rgba(43,48,54,.7); }

  #cg-card .btn-primary .ic {
    width: 32px; height: 32px; border-radius: 50%; background: var(--teal);
    display: grid; place-items: center;
    transition: transform .25s var(--ease);
  }

  #cg-card .btn-primary .ic svg { width: 17px; height: 17px; color: #1d3b3a; }

  #cg-card .btn-primary:hover .ic { transform: translateX(-2px) scale(1.06); }

  #cg-card .btn-primary:hover .ic svg { transform: none; }

  #cg-card .btn-primary::after { /* hafif parlama */
    content: ""; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
    animation: shine 5s ease-in-out infinite 2s;
  }

  @keyframes shine { 0%, 75% { left: -50%; } 100% { left: 130%; } }

  #cg-card .label {
    margin: 28px 2px 10px; font-size: 12px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    display: flex; align-items: center; gap: 10px;
  }

  #cg-card .label::before { content: ""; width: 14px; height: 2px; background: var(--teal); }
/* İletişim satırları */
  #cg-card .list { overflow: hidden; }

  #cg-card .row {
    display: flex; align-items: center; gap: 14px;
    padding: 6px 6px 6px 14px; transition: background .2s;
  }

  #cg-card .row + .row { border-top: 1px solid var(--line); }

  #cg-card .row:hover { background: var(--hover); }

  #cg-card .row-icon {
    flex: none; width: 40px; height: 40px; border-radius: 8px;
    display: grid; place-items: center;
    background: var(--teal-tint); color: var(--teal-ink);
    transition: transform .25s var(--ease);
  }

  #cg-card .row:hover .row-icon { transform: scale(1.06); }

  #cg-card .row-icon svg { width: 19px; height: 19px; }

  /* satırın tüm yüksekliği tıklanır (≥44px dokunma alanı) */
  #cg-card .row-body { flex: 1; min-width: 0; align-self: stretch; min-height: 52px; display: flex; flex-direction: column; justify-content: center; }

  #cg-card .row-label { font-size: 12px; color: var(--muted); }

  #cg-card .row-value {
    margin-top: 1px; font-size: 15px; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  #cg-card .copy {
    flex: none; width: 44px; height: 44px; border-radius: 6px;
    display: grid; place-items: center; color: var(--muted);
    transition: background .2s, color .2s;
  }

  #cg-card .copy:hover { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

  #cg-card .copy svg { width: 17px; height: 17px; }

  #cg-card .copy.done { color: var(--teal-ink); }

  #cg-card .copy.done svg { animation: pop .35s var(--ease); }

  @keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
/* QR + paylaş */
  #cg-card .share { display: flex; align-items: center; gap: 18px; padding: 18px 20px; }

  #cg-card .qr {
    flex: none; width: 100px; height: 100px; padding: 7px; background: #fff;
    border: 1px solid var(--line); border-radius: 6px; position: relative;
  }
/* QR köşe işaretleri */
  #cg-card .qr::before {
    content: ""; position: absolute; inset: -5px; pointer-events: none;
    background:
      linear-gradient(var(--teal), var(--teal)) top left / 14px 2px,
      linear-gradient(var(--teal), var(--teal)) top left / 2px 14px,
      linear-gradient(var(--teal), var(--teal)) top right / 14px 2px,
      linear-gradient(var(--teal), var(--teal)) top right / 2px 14px,
      linear-gradient(var(--teal), var(--teal)) bottom left / 14px 2px,
      linear-gradient(var(--teal), var(--teal)) bottom left / 2px 14px,
      linear-gradient(var(--teal), var(--teal)) bottom right / 14px 2px,
      linear-gradient(var(--teal), var(--teal)) bottom right / 2px 14px;
    background-repeat: no-repeat;
  }

  #cg-card .qr canvas, #cg-card .qr img { width: 100% !important; height: 100% !important; image-rendering: pixelated; }

  #cg-card .share-text { flex: 1; min-width: 0; }

  #cg-card .share-text p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

  #cg-card .link-btn {
    margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 600; color: var(--teal-ink);
    min-height: 44px; padding: 6px 0; position: relative;
  }

  #cg-card .link-btn::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
    background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .3s var(--ease);
  }

  #cg-card .link-btn:hover::after { transform: scaleX(1); }

  #cg-card .link-btn svg { width: 15px; height: 15px; }

  #cg-card footer {
    margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
    font-size: 12.5px; color: var(--muted); line-height: 1.7;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  }

  #cg-card footer a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }

  #cg-card footer a:hover { color: var(--teal-ink); }

  #cg-card .credit {
    flex-basis: 100%; margin-top: 14px;
    display: flex; justify-content: center;
  }

  /* NovusID imzası geri planda dursun; üzerine gelince belirginleşir */
  #cg-card .credit a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px;
    opacity: .4; transition: opacity .2s;
  }

  #cg-card .credit a:hover, #cg-card .credit a:focus-visible { opacity: .85; }

  #cg-card .credit svg { height: 15px; width: auto; display: block; }

  #cg-card .toast {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
    background: #2b3036; color: #fff; font-size: 13.5px; font-weight: 500;
    padding: 10px 16px; border-radius: 6px; border-left: 3px solid var(--teal);
    transition: opacity .2s, transform .2s var(--ease); z-index: 10;
  }

  #cg-card .toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ---------- Giriş animasyonları ---------- */
  #cg-card .reveal { opacity: 0; animation: rise .7s var(--ease) forwards; }

  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  #cg-card .band-inner { animation: fade .6s ease both; }

  @keyframes fade { from { opacity: 0; } }

  @media (prefers-reduced-motion: reduce) {
  #cg-card *, #cg-card *::before, #cg-card *::after { animation: none !important; transition: none !important; }

  #cg-card .reveal { opacity: 1; }

  }

  @media (max-width: 380px) {
  #cg-card .profile { padding: 20px 18px; }

  #cg-card .avatar { width: 66px; height: 66px; font-size: 22px; }

  #cg-card .name { font-size: 20px; }

  }



/* ---------- Bağlantı butonları (Dijital Katalog vb.) ---------- */
  #cg-card .links { margin-top: 12px; display: grid; gap: 10px; }

  #cg-card .link {
    display: flex; align-items: center; gap: 14px;
    min-height: 60px; padding: 8px 14px 8px 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 1px 2px rgba(20,30,40,.04);
    transition: border-color .2s, background .2s, transform .2s var(--ease);
  }

  #cg-card .link:hover { border-color: var(--teal); background: var(--hover); transform: translateY(-1px); }

  #cg-card .link:active { transform: scale(.99); }

  #cg-card .link .row-icon { width: 40px; height: 40px; }

  #cg-card .link-text { flex: 1; min-width: 0; }

  #cg-card .link-title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }

  #cg-card .link-sub { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  #cg-card .link-go { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease), color .2s; }

  #cg-card .link:hover .link-go { color: var(--teal-ink); transform: translateX(3px); }

/* ---------- Sosyal medya ---------- */
  #cg-card .social { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; }

  #cg-card .social a {
    flex: 1 1 0; min-width: 52px; height: 52px; border-radius: 8px;
    display: grid; place-items: center;
    background: var(--teal-tint); color: var(--teal-ink);
    transition: background .2s, color .2s, transform .2s var(--ease);
  }

  #cg-card .social a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

  #cg-card .social svg { width: 21px; height: 21px; }

/* ---------- Ana sayfa (şirket tanıtımı) ---------- */
  #cg-card .about { margin-top: 18px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }

  #cg-card .row-value.multi { white-space: pre-line; line-height: 1.4; }

  /* Ana sayfa: telif satırı yok, yalnız NovusID imzası */
  #cg-card footer.no-legal { margin-top: 20px; padding-top: 0; border-top: 0; }

  #cg-card footer.no-legal .credit { margin-top: 0; }

  #cg-card .avatar.brand { width: 80px; background: #fff; padding: 8px; }

  #cg-card .avatar.brand svg, #cg-card .avatar.brand img { width: 100%; height: auto; }

  #cg-card .home-link { color: var(--ink-2); }

  /* display: flex/grid verilen öğeler de hidden ile gizlensin */
  #cg-card [hidden] { display: none !important; }

/* Footer: telif yazısı ve bağlantılar aynı hizada (bağlantıların 44px dokunma alanı var) */
  #cg-card footer { align-items: center; }

  #cg-card footer > span { display: inline-flex; align-items: center; min-height: 44px; }
