/* ============================================================
   TELMO Al — al.css (collab tasarım sistemi) üstüne eklenen
   sohbet uygulaması + landing + hesap + admin bileşenleri.
   Token'lar al.css'ten gelir: --brand --grad --bg --surface
   --border --text --text-soft --r --shadow --glow.
   ============================================================ */

.grad-text{ background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.nav__logo{ display:flex; align-items:center; gap:8px; }
.nav__logo img{ height:30px; width:auto; }
.nav__logo-tag{ font-weight:800; font-size:1.05rem; background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; letter-spacing:-.02em; }
.al-page-top{ padding-top:48px; }
.al-note{ max-width:680px; margin:28px auto 0; text-align:center; color:var(--text-soft); font-size:.92rem; }

/* ---------- Bölümler ---------- */
.al-section{ padding:64px 0; }
.al-section--alt{ background:linear-gradient(180deg, transparent, rgba(143,30,174,.05), transparent); }
.al-section__head{ text-align:center; max-width:680px; margin:0 auto 38px; }
.al-section__sub{ color:var(--text-soft); margin-top:10px; font-size:1.02rem; }

/* ---------- HERO ---------- */
.al-hero{ padding:60px 0 30px; }
.al-hero__grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.al-hero__badge{ display:inline-block; padding:7px 14px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); font-size:.8rem; font-weight:600; color:var(--text-soft); margin-bottom:20px; }
.al-hero__title{ font-size:clamp(2.3rem,5vw,3.8rem); line-height:1.05; letter-spacing:-.03em; font-weight:800; }
.al-hero__sub{ color:var(--text-soft); font-size:1.12rem; margin:20px 0 28px; max-width:560px; }
.al-hero__cta{ display:flex; gap:14px; flex-wrap:wrap; }
.al-hero__trust{ display:flex; gap:20px; flex-wrap:wrap; margin-top:26px; color:var(--text-soft); font-size:.88rem; font-weight:550; }

.al-preview{ background:var(--bg-2); border:1px solid var(--border-strong); border-radius:var(--r-lg); box-shadow:var(--shadow); overflow:hidden; }
.al-preview__top{ display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--border); background:var(--surface); }
.al-preview__top img{ width:26px; height:26px; border-radius:7px; }
.al-preview__top span{ font-weight:700; }
.al-preview__top em{ margin-left:auto; color:var(--green); font-style:normal; font-size:.78rem; }
.al-preview__body{ padding:20px; display:flex; flex-direction:column; gap:12px; }
.al-bubble{ padding:12px 15px; border-radius:16px; font-size:.92rem; line-height:1.55; max-width:88%; }
.al-bubble--user{ align-self:flex-end; background:var(--grad); color:#fff; border-bottom-right-radius:5px; }
.al-bubble--ai{ align-self:flex-start; background:var(--surface-2); border:1px solid var(--border); border-bottom-left-radius:5px; }

/* ---------- Personalar ---------- */
.al-personas{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.al-pcard{ display:flex; flex-direction:column; gap:8px; padding:22px; border-radius:var(--r); background:var(--surface); border:1px solid var(--border); transition:.2s; position:relative; overflow:hidden; }
.al-pcard::before{ content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--pa,var(--brand)); opacity:.85; }
.al-pcard:hover{ transform:translateY(-4px); border-color:var(--border-strong); box-shadow:var(--shadow); }
.al-pcard__icon{ font-size:1.9rem; }
.al-pcard__name{ font-weight:750; font-size:1.08rem; }
.al-pcard__desc{ color:var(--text-soft); font-size:.9rem; flex:1; }
.al-pcard__go{ color:var(--brand); font-weight:650; font-size:.86rem; }

/* ---------- Özellikler ---------- */
.al-features{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.al-fcard{ padding:26px; border-radius:var(--r); background:var(--surface); border:1px solid var(--border); }
.al-fcard__icon{ font-size:1.8rem; display:block; margin-bottom:12px; }
.al-fcard h3{ font-size:1.12rem; font-weight:750; margin-bottom:8px; }
.al-fcard p{ color:var(--text-soft); font-size:.92rem; }

/* ---------- Nasıl çalışır ---------- */
.al-how{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.al-step{ text-align:center; padding:24px; }
.al-step__n{ display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:50%; background:var(--grad); color:#fff; font-weight:800; font-size:1.2rem; margin-bottom:14px; box-shadow:var(--glow); }
.al-step h3{ font-weight:750; margin-bottom:6px; }
.al-step p{ color:var(--text-soft); font-size:.92rem; }

/* ---------- Planlar ---------- */
.al-plans{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:980px; margin:0 auto; align-items:start; }
.al-plan{ position:relative; padding:30px 26px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border); display:flex; flex-direction:column; }
.al-plan--featured{ border-color:var(--brand); box-shadow:var(--glow); transform:scale(1.03); }
.al-plan__badge{ position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--grad); color:#fff; font-size:.72rem; font-weight:700; padding:5px 14px; border-radius:999px; }
.al-plan__name{ font-size:1.25rem; font-weight:800; }
.al-plan__price{ margin:12px 0 18px; display:flex; align-items:baseline; gap:5px; }
.al-plan__amount{ font-size:2.1rem; font-weight:800; letter-spacing:-.02em; }
.al-plan__per{ color:var(--text-soft); font-size:.9rem; }
.al-plan__feats{ list-style:none; padding:0; margin:0 0 22px; display:flex; flex-direction:column; gap:9px; flex:1; }
.al-plan__feats li{ font-size:.92rem; color:var(--text-soft); }
.al-plan__current{ opacity:.7; pointer-events:none; }

/* ---------- CTA ---------- */
.al-cta{ padding:70px 0; }
.al-cta__box{ text-align:center; max-width:720px; margin:0 auto; padding:46px 28px; border-radius:var(--r-xl); background:var(--grad-soft); border:1px solid var(--border-strong); }
.al-cta__box p{ color:var(--text-soft); margin:12px 0 24px; }

/* ---------- SSS ---------- */
.al-faq{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.al-faq__item{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:4px 20px; }
.al-faq__item summary{ cursor:pointer; padding:16px 0; font-weight:650; list-style:none; }
.al-faq__item summary::-webkit-details-marker{ display:none; }
.al-faq__item[open] summary{ color:var(--brand); }
.al-faq__a{ padding:0 0 16px; color:var(--text-soft); line-height:1.65; }

/* ---------- Hesap paneli ---------- */
.al-account{ max-width:860px; margin:0 auto; }
.al-account__head{ display:flex; align-items:center; gap:16px; margin-bottom:28px; }
.al-account__head h1{ margin:0; }
.al-account__head .btn{ margin-left:auto; }
.al-avatar{ display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; background:var(--grad); color:#fff; font-weight:800; font-size:.95rem; flex-shrink:0; }
.al-avatar--lg{ width:64px; height:64px; font-size:1.3rem; }
.al-acc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:28px; }
.al-acc-card{ padding:22px; border-radius:var(--r); background:var(--surface); border:1px solid var(--border); display:flex; flex-direction:column; gap:6px; }
.al-acc-card__label{ font-size:.82rem; color:var(--text-soft); }
.al-acc-card__big{ font-size:1.7rem; font-weight:800; letter-spacing:-.02em; }
.al-acc-section{ padding:24px; border-radius:var(--r); background:var(--surface); border:1px solid var(--border); }
.al-acc-section__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.al-mem-add{ display:flex; gap:10px; margin:16px 0; flex-wrap:wrap; }
.al-mem-add .input{ flex:1; min-width:140px; }
.al-mem-list{ display:flex; flex-direction:column; gap:8px; }
.al-mem{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-radius:12px; background:var(--surface-2); border:1px solid var(--border); }
.al-mem.is-off{ opacity:.5; }
.al-mem__txt{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.al-mem__txt strong{ font-size:.9rem; }
.al-mem__txt span{ font-size:.88rem; color:var(--text-soft); }
.al-mem__src{ font-size:.72rem; color:var(--text-faint); font-style:normal; }
.al-mem__actions{ display:flex; gap:6px; flex-shrink:0; }
.al-mem__btn{ background:var(--surface); border:1px solid var(--border); color:var(--text-soft); border-radius:8px; padding:5px 10px; font-size:.78rem; font-weight:600; }
.al-mem__btn--del{ color:#f87171; }

/* ============================================================
   SOHBET UYGULAMASI
   ============================================================ */
.al-chat-body{ height:100vh; height:100dvh; overflow:hidden; }
.al-app{ display:flex; height:100vh; height:100dvh; position:relative; }

/* Kenar çubuğu */
.al-sidebar{ width:288px; flex-shrink:0; background:var(--bg-2); border-right:1px solid var(--border); display:flex; flex-direction:column; z-index:30; }
.al-sidebar__head{ display:flex; align-items:center; justify-content:space-between; padding:16px 16px 8px; }
.al-sidebar__brand{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:1.05rem; }
.al-sidebar__brand img{ width:26px; height:26px; border-radius:7px; }
.al-sidebar__close{ display:none; background:none; border:none; color:var(--text-soft); font-size:1.2rem; }
.al-newchat{ margin:8px 14px; padding:12px; border-radius:12px; background:var(--grad); color:#fff; border:none; font-weight:700; font-size:.92rem; box-shadow:var(--glow); }
.al-search{ padding:4px 14px 10px; }
.al-search input{ width:100%; padding:9px 12px; border-radius:10px; background:var(--surface); border:1px solid var(--border); color:var(--text); font-size:.85rem; }
.al-convs{ flex:1; overflow-y:auto; padding:4px 10px; display:flex; flex-direction:column; gap:2px; }
.al-convs__empty{ text-align:center; color:var(--text-faint); font-size:.85rem; padding:24px 8px; }
.al-conv{ display:flex; align-items:center; border-radius:10px; }
.al-conv:hover{ background:var(--surface); }
.al-conv.is-active{ background:var(--surface-2); }
.al-conv__open{ flex:1; text-align:left; background:none; border:none; color:var(--text); padding:10px 10px; font-size:.88rem; min-width:0; }
.al-conv__title{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.al-conv__menu{ background:none; border:none; color:var(--text-faint); padding:6px 10px; font-size:1rem; opacity:0; }
.al-conv:hover .al-conv__menu{ opacity:1; }
.al-sidebar__foot{ padding:12px 14px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:10px; }
.al-usage__bar{ height:6px; border-radius:99px; background:var(--surface-2); overflow:hidden; }
.al-usage__bar span{ display:block; height:100%; background:var(--grad); width:100%; }
.al-usage__txt{ font-size:.76rem; color:var(--text-soft); }
.al-upgrade{ display:block; text-align:center; padding:9px; border-radius:10px; background:var(--surface-2); border:1px solid var(--brand); color:var(--brand); font-weight:700; font-size:.82rem; }
.al-sidebar__account{ display:flex; align-items:center; gap:10px; font-size:.86rem; font-weight:600; padding:4px; }

/* Ana panel */
.al-main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.al-topbar{ display:flex; align-items:center; gap:12px; padding:12px 18px; border-bottom:1px solid var(--border); background:var(--bg); }
.al-burger{ display:none; background:none; border:none; color:var(--text); font-size:1.4rem; }
.al-selects{ display:flex; gap:8px; }
.al-select{ padding:8px 12px; border-radius:10px; background:var(--surface); border:1px solid var(--border); color:var(--text); font-size:.84rem; font-weight:550; cursor:pointer; max-width:170px; }
.al-topbar__right{ margin-left:auto; display:flex; align-items:center; gap:12px; }
.al-remain{ font-size:.82rem; font-weight:650; color:var(--text-soft); padding:5px 11px; border-radius:99px; background:var(--surface); border:1px solid var(--border); }

.al-scroll{ flex:1; overflow-y:auto; }
.al-thread{ max-width:820px; margin:0 auto; padding:26px 20px 10px; display:flex; flex-direction:column; gap:22px; }
.al-msg{ display:flex; gap:14px; }
.al-msg__av{ width:34px; height:34px; border-radius:9px; flex-shrink:0; object-fit:cover; }
.al-msg__av--user{ display:flex; align-items:center; justify-content:center; background:var(--grad); color:#fff; font-weight:700; font-size:.8rem; }
.al-msg__body{ min-width:0; flex:1; }
.al-msg__name{ font-weight:700; font-size:.82rem; color:var(--text-soft); margin-bottom:4px; }
.al-msg__content{ font-size:.97rem; line-height:1.7; word-wrap:break-word; }
.al-msg__content p{ margin:0 0 10px; }
.al-msg__content p:last-child{ margin-bottom:0; }
.al-msg__content h3{ font-size:1.05rem; font-weight:750; margin:14px 0 6px; }
.al-msg__content h4{ font-size:.98rem; font-weight:700; margin:12px 0 5px; }
.al-ul,.al-ol{ margin:6px 0 10px; padding-left:22px; display:flex; flex-direction:column; gap:4px; }
.al-ic{ background:var(--surface-2); padding:2px 6px; border-radius:6px; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:.86em; }
.al-code{ background:#0c0814; border:1px solid var(--border); border-radius:12px; padding:14px 16px; overflow-x:auto; margin:10px 0; }
.al-code code{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:.85rem; color:#e6dcf2; white-space:pre; }
.al-msg__atts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.al-att-img{ max-width:200px; max-height:200px; border-radius:12px; border:1px solid var(--border); }
.al-att-doc{ display:inline-flex; align-items:center; gap:6px; padding:7px 11px; border-radius:9px; background:var(--surface-2); border:1px solid var(--border); font-size:.82rem; }
.al-copy{ margin-top:8px; background:none; border:1px solid var(--border); color:var(--text-faint); border-radius:8px; padding:4px 10px; font-size:.76rem; }
.al-error{ color:#f87171; background:rgba(248,113,113,.1); border:1px solid rgba(248,113,113,.25); padding:10px 13px; border-radius:10px; font-size:.9rem; }
.al-typing{ display:inline-flex; gap:4px; }
.al-typing i{ width:7px; height:7px; border-radius:50%; background:var(--text-faint); animation:aldot 1.2s infinite; }
.al-typing i:nth-child(2){ animation-delay:.2s; }
.al-typing i:nth-child(3){ animation-delay:.4s; }
@keyframes aldot{ 0%,60%,100%{opacity:.25; transform:translateY(0);} 30%{opacity:1; transform:translateY(-3px);} }

/* Boş durum */
.al-empty{ max-width:640px; margin:0 auto; padding:8vh 20px; text-align:center; }
.al-empty__logo{ width:64px; height:64px; border-radius:16px; margin:0 auto 18px; box-shadow:var(--glow); }
.al-empty h2{ font-size:1.6rem; font-weight:800; }
.al-empty p{ color:var(--text-soft); margin:8px 0 24px; }
.al-suggest{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.al-chip{ padding:10px 16px; border-radius:99px; background:var(--surface); border:1px solid var(--border); color:var(--text); font-size:.86rem; font-weight:550; transition:.15s; }
.al-chip:hover{ border-color:var(--brand); color:var(--brand); }

/* Composer */
.al-composer{ border-top:1px solid var(--border); background:var(--bg); padding:14px 20px 16px; }
.al-attachments{ max-width:820px; margin:0 auto 8px; display:flex; flex-wrap:wrap; gap:8px; }
.al-attachments:empty{ display:none; }
.al-chip-att{ display:flex; align-items:center; gap:7px; padding:6px 9px; border-radius:9px; background:var(--surface-2); border:1px solid var(--border); font-size:.8rem; }
.al-chip-att.is-pending{ opacity:.6; }
.al-chip-att__ic img{ width:22px; height:22px; border-radius:5px; object-fit:cover; }
.al-chip-att__x{ background:none; border:none; color:var(--text-faint); font-size:.85rem; }
.al-inputbar{ max-width:820px; margin:0 auto; display:flex; align-items:flex-end; gap:8px; background:var(--surface); border:1px solid var(--border-strong); border-radius:20px; padding:8px 8px 8px 12px; }
.al-inputbar:focus-within{ border-color:var(--brand); }
.al-attach{ background:none; border:none; color:var(--text-soft); padding:8px; flex-shrink:0; }
.al-attach svg{ width:21px; height:21px; }
.al-inputbar textarea{ flex:1; background:none; border:none; color:var(--text); resize:none; font-size:.97rem; line-height:1.5; max-height:200px; padding:8px 0; font-family:inherit; }
.al-inputbar textarea:focus{ outline:none; }
.al-send{ flex-shrink:0; width:40px; height:40px; border-radius:50%; background:var(--grad); border:none; color:#fff; display:flex; align-items:center; justify-content:center; }
.al-send svg{ width:19px; height:19px; }
.al-send.is-stop{ background:var(--text-soft); }
.al-send.is-stop svg{ display:none; }
.al-send.is-stop::after{ content:""; width:13px; height:13px; border-radius:3px; background:#fff; }
.al-composer__hint{ max-width:820px; margin:8px auto 0; text-align:center; font-size:.74rem; color:var(--text-faint); }

.al-overlay{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:25; }

/* ---------- Admin ekleri ---------- */
.admin-body{ padding:24px; }
.admin-burger{ display:none; background:none; border:none; color:var(--text); font-size:1.4rem; margin-right:6px; }
.admin-topbar__user{ font-size:.85rem; font-weight:550; color:var(--text-soft); }
.admin-nav__back{ margin-top:auto; }
.admin-stat-card{ display:flex; flex-direction:column; gap:4px; padding:20px; border-radius:var(--r); background:var(--surface); border:1px solid var(--border); }
.admin-stat-card__ic{ font-size:1.4rem; }
.admin-stat-card__num{ font-size:1.7rem; font-weight:800; letter-spacing:-.02em; }
.admin-stat-card__lbl{ font-size:.8rem; color:var(--text-soft); }
.admin-h2{ font-size:1.15rem; font-weight:750; margin:26px 0 14px; }
.admin-table{ display:flex; flex-direction:column; gap:8px; }
.admin-row{ display:flex; align-items:center; gap:14px; padding:13px 16px; border-radius:12px; background:var(--surface); border:1px solid var(--border); }
.admin-row--head{ background:none; border:none; padding:4px 16px; color:var(--text-faint); font-size:.78rem; font-weight:650; text-transform:uppercase; }
.admin-row__main{ flex:1; min-width:0; font-weight:600; font-size:.92rem; display:flex; flex-direction:column; }
.admin-row__main small{ color:var(--text-soft); font-weight:400; font-size:.8rem; }
.admin-row__sub{ color:var(--text-soft); font-size:.84rem; }
.admin-inline{ display:flex; align-items:center; gap:8px; }
.admin-search{ display:flex; gap:8px; margin-bottom:18px; max-width:420px; }
.admin-search .input{ flex:1; }
.admin-badge--free{ background:var(--surface-2); color:var(--text-soft); }
.admin-badge--plus{ background:rgba(143,30,174,.15); color:#b44fd8; }
.admin-badge--pro{ background:var(--grad); color:#fff; }
.admin-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:14px 18px; margin-bottom:10px; }
.admin-card--open{ display:block; }
.admin-card__sum{ cursor:pointer; font-weight:650; display:flex; justify-content:space-between; gap:12px; align-items:center; }
.admin-card__title{ font-weight:750; margin-bottom:12px; }
.admin-form{ display:flex; flex-direction:column; gap:12px; margin-top:14px; }
.admin-form label{ display:flex; flex-direction:column; gap:5px; font-size:.82rem; color:var(--text-soft); font-weight:550; }
.admin-form__row{ display:flex; gap:12px; flex-wrap:wrap; }
.admin-form__row > label{ flex:1; min-width:140px; }
.admin-check{ flex-direction:row !important; align-items:center; gap:7px !important; }
.admin-pagination{ margin-top:18px; }
.admin-conv{ max-width:760px; display:flex; flex-direction:column; gap:14px; margin-top:18px; }
.admin-conv__msg{ padding:12px 16px; border-radius:12px; background:var(--surface); border:1px solid var(--border); }
.admin-conv__msg--user{ background:var(--surface-2); }
.admin-conv__role{ font-size:.74rem; font-weight:700; color:var(--brand); text-transform:uppercase; }
.admin-conv__txt{ white-space:pre-wrap; font-size:.92rem; margin-top:4px; line-height:1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
    .al-hero__grid{ grid-template-columns:1fr; }
    .al-hero__visual{ order:-1; }
    .al-personas,.al-features,.al-how{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:860px){
    .al-sidebar{ position:fixed; inset:0 auto 0 0; transform:translateX(-100%); transition:transform .25s; box-shadow:4px 0 30px rgba(0,0,0,.4); }
    .al-app.sidebar-open .al-sidebar{ transform:translateX(0); }
    .al-app.sidebar-open .al-overlay{ display:block; }
    .al-sidebar__close{ display:block; }
    .al-burger{ display:block; }
    .admin-burger{ display:block; }
    .al-select{ max-width:120px; }
}
@media (max-width:680px){
    .al-personas,.al-features,.al-how,.al-acc-grid,.al-plans{ grid-template-columns:1fr; }
    .al-plan--featured{ transform:none; }
    .al-section{ padding:46px 0; }
    .al-thread{ padding:18px 14px 8px; }
    .al-composer{ padding:10px 12px 14px; }
    .al-account__head{ flex-wrap:wrap; }
    .al-account__head .btn{ margin-left:0; }
}
