:root{
    --ig:#34623d;
    --ig2:#2b5434;
    --ig3:#214229;
    --ig-soft:#eff6f1;
    --ig-line:#e3ebe5;
    --ig-text:#24362a;
    --ig-muted:#78837c;
    --ig-bg:#f5f7f6;
    --ig-white:#fff;
    --ig-danger:#aa4e4e;
    --ig-shadow:0 18px 50px rgba(35,64,42,.10);
}

.igpt-page{
    /* V3 üst menüsü sabit olduğu için içerik menünün altında başlar */
    padding:88px 0 44px;
    min-height:760px;
    background:
        radial-gradient(circle at 8% 0%,rgba(52,98,61,.06),transparent 26%),
        linear-gradient(180deg,#f8faf9 0,#f4f7f5 100%);
    color:var(--ig-text);
}
.igpt-page *{box-sizing:border-box}
.igpt-page a{text-decoration:none!important}
.igpt-page button,.igpt-page textarea{font-family:inherit}

.igpt-title-area{
    margin:0 0 16px;
    padding:17px 20px 18px;
    border:1px solid #dfe7e1;
    border-radius:13px;
    background:#fff;
    box-shadow:0 7px 24px rgba(35,64,42,.045);
}
.igpt-breadcrumb{
    display:flex;align-items:center;gap:8px;
    font-size:10px;color:#929c96;margin:0 0 10px
}
.igpt-breadcrumb a{color:#6c7d72}
.igpt-breadcrumb a:hover{color:var(--ig)}
.igpt-breadcrumb .fa-angle-right{font-size:9px;color:#b2bbb5}

.igpt-title-row{
    display:flex;align-items:flex-end;justify-content:space-between;gap:20px
}
.igpt-title-copy{min-width:0}
.igpt-title-kicker{
    display:inline-flex;align-items:center;gap:6px;
    margin-bottom:4px;color:var(--ig);
    font-size:9px;font-weight:800;letter-spacing:.08em
}
.igpt-title-copy h1{
    margin:0 0 4px;color:#263d2f;
    font-size:24px;line-height:1.2;font-weight:700
}
.igpt-title-copy p{
    margin:0;color:#78847c;font-size:11.5px;line-height:1.45
}
.igpt-title-actions{
    display:flex;align-items:center;gap:7px;flex-shrink:0
}
.igpt-title-link{
    height:34px;padding:0 12px;border:1px solid #dbe5dd;border-radius:8px;
    display:inline-flex;align-items:center;gap:6px;background:#fff;
    color:#57685e!important;font-size:10px;font-weight:700;transition:.15s
}
.igpt-title-link:hover{
    border-color:#b9cdbd;background:#f6faf7;color:var(--ig)!important
}
.igpt-title-link.is-primary{
    background:var(--ig);border-color:var(--ig);color:#fff!important
}
.igpt-title-link.is-primary:hover{
    background:var(--ig3);border-color:var(--ig3);color:#fff!important
}

.igpt-warning{
    margin:0 0 14px;padding:11px 13px;border-radius:10px;
    border:1px solid #f0cf9f;background:#fff8ed;color:#7e5a22;
    display:flex;gap:10px
}
.igpt-warning strong,.igpt-warning span{display:block}
.igpt-warning strong{font-size:12px}
.igpt-warning span{font-size:10px;margin-top:2px}

.igpt-auth-shell{
    display:grid;
    grid-template-columns:minmax(300px,35%) minmax(0,65%);
    min-height:690px;
    height:min(730px,calc(100vh - 245px));
    border:1px solid #dfe7e1;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
    box-shadow:var(--ig-shadow);
}

/* ELEMAN GİRİŞİ TASARIMI - SOL TANITIM */
.igpt-auth-hero{
    position:relative;
    display:flex;
    flex-direction:column;
    min-width:0;
    padding:30px 28px 24px;
    color:#fff;
    background:
        radial-gradient(circle at 85% 12%,rgba(255,255,255,.11),transparent 23%),
        radial-gradient(circle at 5% 95%,rgba(255,255,255,.07),transparent 30%),
        linear-gradient(155deg,#3a6c44 0,#2f5d38 42%,#24492d 100%);
}
.igpt-auth-hero:after{
    content:"";
    position:absolute;right:-70px;bottom:-95px;width:220px;height:220px;
    border:1px solid rgba(255,255,255,.09);border-radius:50%
}
.igpt-auth-brand{display:flex;align-items:center;gap:11px;position:relative;z-index:1}
.igpt-auth-logo{
    width:47px;height:47px;border-radius:13px;background:#fff;color:var(--ig);
    display:flex;align-items:center;justify-content:center;font-size:20px;
    box-shadow:0 10px 22px rgba(0,0,0,.12)
}
.igpt-auth-brand span,.igpt-auth-brand strong{display:block}
.igpt-auth-brand span{font-size:8.5px;font-weight:800;letter-spacing:.15em;opacity:.76}
.igpt-auth-brand strong{font-size:18px;margin-top:2px;color:#fff}

.igpt-auth-copy{margin-top:56px;position:relative;z-index:1}
.igpt-auth-kicker{
    display:inline-block;margin-bottom:9px;padding:5px 8px;border-radius:999px;
    background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.13);
    font-size:9px;font-weight:800;letter-spacing:.08em
}
.igpt-auth-copy h1{
    margin:0 0 12px;color:#fff;font-size:28px;line-height:1.18;font-weight:700;
    max-width:360px
}
.igpt-auth-copy p{margin:0;color:rgba(255,255,255,.82);font-size:12.5px;line-height:1.65;max-width:380px}

.igpt-auth-features{margin-top:28px;display:grid;gap:12px;position:relative;z-index:1}
.igpt-auth-features>div{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.45;color:rgba(255,255,255,.9)}
.igpt-auth-features i{
    width:20px;height:20px;min-width:20px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    background:rgba(255,255,255,.13);font-size:8px;margin-top:-1px
}

.igpt-auth-quick{margin-top:30px;position:relative;z-index:1}
.igpt-auth-quick>span{
    display:block;font-size:8.5px;font-weight:800;letter-spacing:.1em;
    color:rgba(255,255,255,.58);margin:0 0 7px
}
.igpt-side-prompt{
    width:100%;min-height:34px;border:0;border-radius:8px;background:transparent;color:rgba(255,255,255,.86);
    display:flex;align-items:center;gap:7px;padding:7px 4px;font-size:10.5px;text-align:left;cursor:pointer;
    transition:.15s
}
.igpt-side-prompt:hover{background:rgba(255,255,255,.08);padding-left:9px;color:#fff}
.igpt-side-prompt i{font-size:9px;color:rgba(255,255,255,.55)}

.igpt-auth-bottom{
    margin-top:auto;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    position:relative;z-index:1
}
.igpt-auth-bottom span{font-size:8.5px;color:rgba(255,255,255,.67)}
.igpt-auth-bottom i{margin-right:4px}
.igpt-auth-bottom .fa-circle{font-size:6px;color:#8fe0a0}

/* SAĞ SOHBET KARTI */
.igpt-chat-card{
    display:grid;grid-template-rows:auto minmax(0,1fr) auto;
    min-width:0;min-height:0;background:#fff
}
.igpt-chat-head{
    height:68px;padding:0 18px 0 20px;border-bottom:1px solid #ebf0ec;
    display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff
}
.igpt-chat-head-left{display:flex;align-items:center;gap:10px;min-width:0}
.igpt-chat-avatar{
    width:38px;height:38px;min-width:38px;border-radius:10px;background:var(--ig-soft);color:var(--ig);
    display:flex;align-items:center;justify-content:center;font-size:15px;border:1px solid #deebe1
}
.igpt-chat-head-left strong,.igpt-chat-head-left span{display:block}
.igpt-chat-head-left strong{font-size:14px;color:#243a2c}
.igpt-chat-head-left span{font-size:9.5px;color:#8b9690;margin-top:2px}
.igpt-chat-head-actions{display:flex;align-items:center;gap:7px}
.igpt-status{
    padding:6px 9px;border-radius:999px;background:#f3f5f3;color:#7d8781;
    font-size:8.5px;font-weight:800;white-space:nowrap
}
.igpt-status i{font-size:6px;margin-right:4px}
.igpt-status.is-ready{background:#edf8f0;color:#2f7640}
.igpt-status.is-off{background:#fff1e8;color:#9a5827}
.igpt-icon-btn{
    width:34px;height:34px;border:1px solid #e2e9e4;border-radius:9px;background:#fff;color:#637168;
    display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.15s
}
.igpt-icon-btn:hover{background:var(--ig-soft);border-color:#cfdfd3;color:var(--ig)}

.igpt-chat{
    position:relative;overflow:auto;min-height:0;background:
      radial-gradient(circle at 100% 0%,rgba(52,98,61,.025),transparent 27%),
      #fff
}
.igpt-chat::-webkit-scrollbar,.igpt-conversations::-webkit-scrollbar{width:7px}
.igpt-chat::-webkit-scrollbar-thumb,.igpt-conversations::-webkit-scrollbar-thumb{background:#dce5de;border-radius:10px}

.igpt-welcome{
    min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
    padding:34px 34px;text-align:center
}
.igpt-welcome-icon{
    width:58px;height:58px;border-radius:16px;background:var(--ig-soft);color:var(--ig);
    display:flex;align-items:center;justify-content:center;font-size:23px;
    border:1px solid #dfeae2;margin-bottom:10px
}
.igpt-welcome-label{font-size:8.5px;font-weight:800;letter-spacing:.12em;color:#8c9890;margin-bottom:7px}
.igpt-welcome h2{font-size:25px;line-height:1.2;color:#263d2f;margin:0 0 8px}
.igpt-welcome>p{max-width:620px;margin:0 0 20px;color:#727e76;font-size:12.5px;line-height:1.58}

.igpt-prompt-list{width:min(620px,100%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.igpt-prompt{
    min-height:58px;padding:10px 11px;border:1px solid #e1e9e3;border-radius:11px;background:#fff;
    display:grid;grid-template-columns:32px minmax(0,1fr) 12px;gap:8px;align-items:center;
    text-align:left;color:#45564b;font-size:10.8px;font-weight:600;cursor:pointer;transition:.15s
}
.igpt-prompt:hover{border-color:#bcd0c0;background:#fbfdfb;color:var(--ig);transform:translateY(-1px);box-shadow:0 7px 16px rgba(41,73,48,.05)}
.igpt-prompt-icon{
    width:32px;height:32px;border-radius:8px;background:#eef5f0;color:var(--ig);
    display:flex;align-items:center;justify-content:center
}
.igpt-prompt-arrow{font-size:10px;color:#adb5af}
.igpt-welcome-note{
    display:flex;align-items:center;gap:6px;margin-top:16px;color:#9aa39d;font-size:8.5px
}
.igpt-welcome-note i{color:var(--ig)}

/* MESAJLAR */
.igpt-messages{display:none;max-width:820px;margin:0 auto;padding:24px 24px 32px}
.igpt-msg{display:flex;gap:9px;margin-bottom:18px;align-items:flex-start}
.igpt-msg.is-user{flex-direction:row-reverse}
.igpt-avatar{
    width:31px;height:31px;min-width:31px;border-radius:9px;background:#eff5f1;color:var(--ig);
    border:1px solid #e1e9e3;display:flex;align-items:center;justify-content:center;font-size:11px
}
.igpt-msg.is-user .igpt-avatar{background:#f0f2f0;color:#6b786f;border-color:#e4e8e5}
.igpt-bubble{max-width:85%}
.igpt-bubble-text{
    padding:11px 13px;border-radius:5px 13px 13px 13px;background:#f6f9f7;border:1px solid #e5ebe7;
    color:#2f4135;font-size:12.7px;line-height:1.62;word-break:break-word
}
.igpt-msg.is-user .igpt-bubble-text{background:var(--ig);border-color:var(--ig);color:#fff;border-radius:13px 5px 13px 13px;white-space:pre-wrap}
.igpt-bubble-foot{margin-top:4px;padding:0 3px;color:#a1aaa4;font-size:8px}
.igpt-msg.is-user .igpt-bubble-foot{text-align:right}

.igpt-bubble-text h2,.igpt-bubble-text h3,.igpt-bubble-text h4{margin:8px 0 5px;color:#284533;line-height:1.3}
.igpt-bubble-text h2{font-size:15.5px}.igpt-bubble-text h3{font-size:14px}.igpt-bubble-text h4{font-size:13px}
.igpt-bubble-text h2:first-child,.igpt-bubble-text h3:first-child,.igpt-bubble-text h4:first-child{margin-top:0}
.igpt-bubble-text p{margin:0 0 7px}.igpt-bubble-text p:last-child{margin-bottom:0}
.igpt-bubble-text ul,.igpt-bubble-text ol{margin:5px 0 8px;padding-left:20px}
.igpt-bubble-text li{margin:3px 0}
.igpt-bubble-text strong{font-weight:700;color:#263d2f}
.igpt-msg.is-user .igpt-bubble-text strong{color:#fff}
.igpt-bubble-text code{background:#e9efeb;border-radius:4px;padding:1px 4px;color:#355540;font-size:11px}
.igpt-bubble-text a{color:#2f7441!important;text-decoration:underline!important}

.igpt-thinking{height:40px;display:flex;align-items:center;gap:5px;padding:0 13px;background:#f6f9f7;border:1px solid #e5ebe7;border-radius:5px 13px 13px 13px}
.igpt-thinking span{width:6px;height:6px;border-radius:50%;background:#789681;animation:igptDot 1.1s infinite}
.igpt-thinking span:nth-child(2){animation-delay:.15s}.igpt-thinking span:nth-child(3){animation-delay:.3s}
@keyframes igptDot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}

/* FORM GÖRÜNÜMLÜ MESAJ ALANI */
.igpt-composer-wrap{border-top:1px solid #e9efeb;background:#fff;padding:12px 16px 10px}
.igpt-composer{
    max-width:820px;margin:0 auto;border:1px solid #d8e2db;border-radius:11px;background:#fbfdfc;
    display:flex;align-items:flex-end;gap:7px;padding:6px 6px 6px 12px;transition:.15s
}
.igpt-composer:focus-within{border-color:#91b199;box-shadow:0 0 0 3px rgba(52,98,61,.06)}
.igpt-composer textarea{
    flex:1;min-height:35px;max-height:145px;margin:0!important;padding:7px 2px!important;
    border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
    resize:none;color:#314338;font-size:12px;line-height:1.5
}
.igpt-composer textarea::placeholder{color:#a0aaa4}
.igpt-composer button{
    width:37px;height:37px;min-width:37px;border:0;border-radius:9px;background:var(--ig);color:#fff;
    display:flex;align-items:center;justify-content:center;cursor:pointer
}
.igpt-composer button:hover{background:var(--ig3)}
.igpt-composer button:disabled{opacity:.45;cursor:not-allowed}
.igpt-composer-hint{
    max-width:820px;margin:0 auto;padding:5px 4px 0;display:flex;justify-content:space-between;gap:12px;
    color:#a1aaa4;font-size:8px
}

/* SOHBET GEÇMİŞİ ÇEKMECESİ */
.igpt-drawer{
    position:fixed;z-index:100520;top:0;right:0;bottom:0;width:330px;
    background:#fff;box-shadow:-20px 0 55px rgba(18,38,23,.16);
    transform:translateX(105%);transition:.23s ease;
    display:flex;flex-direction:column;padding:18px 14px
}
.igpt-drawer.is-open{transform:translateX(0)}
.igpt-overlay{display:none;position:fixed;inset:0;z-index:100510;background:rgba(17,32,21,.38)}
.igpt-overlay.is-open{display:block}
.igpt-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 4px 14px}
.igpt-drawer-head strong,.igpt-drawer-head span{display:block}
.igpt-drawer-head strong{font-size:15px;color:#2a4031}
.igpt-drawer-head span{font-size:9px;color:#929c95;margin-top:2px}
.igpt-drawer-close{
    width:32px;height:32px;border:1px solid #e3e9e5;border-radius:8px;background:#fff;color:#6c786f;cursor:pointer
}
.igpt-drawer-new{
    width:100%;height:39px;border:0;border-radius:9px;background:var(--ig);color:#fff;font-size:11px;font-weight:700;
    cursor:pointer;margin-bottom:12px
}
.igpt-conversations{overflow:auto;flex:1}
.igpt-conv{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;border-radius:8px;margin:2px 0}
.igpt-conv:hover,.igpt-conv.is-active{background:#eef5f0}
.igpt-conv-title,.igpt-conv-delete{border:0;background:transparent;cursor:pointer}
.igpt-conv-title{padding:8px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#526359;font-size:10.5px;font-weight:600}
.igpt-conv-delete{height:28px;color:#a4ada7;border-radius:7px}
.igpt-conv-delete:hover{color:var(--ig-danger);background:#fff}
.igpt-empty-side,.igpt-side-loading{padding:10px 8px;color:#9ba59f;font-size:10px}

/* responsive */
@media(max-width:991.98px){
    .igpt-page{padding:82px 0 30px}
    .igpt-title-row{align-items:flex-start;flex-direction:column;gap:11px}
    .igpt-title-actions{width:100%;flex-wrap:wrap}
    .igpt-auth-shell{grid-template-columns:1fr;height:auto;min-height:690px}
    .igpt-auth-hero{
        min-height:auto;padding:22px 22px 18px
    }
    .igpt-auth-copy{margin-top:24px}
    .igpt-auth-copy h1{font-size:24px;max-width:600px}
    .igpt-auth-copy p{max-width:700px}
    .igpt-auth-features{grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}
    .igpt-auth-quick{display:none}
    .igpt-auth-bottom{margin-top:18px}
    .igpt-chat-card{min-height:620px}
}
@media(max-width:767.98px){
    .igpt-auth-features{grid-template-columns:1fr}
    .igpt-auth-features>div:nth-child(3){display:none}
    .igpt-auth-shell{border-radius:13px}
    .igpt-welcome{padding:26px 18px}
    .igpt-prompt-list{grid-template-columns:1fr}
    .igpt-chat-head{padding:0 12px}
    .igpt-status{display:none}
}
@media(max-width:575.98px){
    .igpt-page{padding:76px 0 20px}
    .igpt-page>.container{padding-left:10px;padding-right:10px}
    .igpt-title-area{padding:13px 14px 14px;margin-bottom:10px;border-radius:10px}
    .igpt-breadcrumb{font-size:9px;margin-bottom:7px}
    .igpt-title-copy h1{font-size:20px}
    .igpt-title-copy p{font-size:10.5px}
    .igpt-title-link{height:31px;padding:0 9px;font-size:9px}
    .igpt-auth-hero{padding:18px 17px 15px}
    .igpt-auth-logo{width:42px;height:42px}
    .igpt-auth-copy{margin-top:20px}
    .igpt-auth-copy h1{font-size:21px}
    .igpt-auth-copy p{font-size:11.5px}
    .igpt-auth-features{margin-top:16px;gap:8px}
    .igpt-auth-features>div{font-size:10px}
    .igpt-auth-bottom{padding-top:13px}
    .igpt-chat-card{min-height:590px}
    .igpt-chat-head{height:60px}
    .igpt-chat-head-left span{display:none}
    .igpt-welcome{padding:24px 12px}
    .igpt-welcome-icon{width:52px;height:52px}
    .igpt-welcome h2{font-size:21px}
    .igpt-welcome>p{font-size:11.5px}
    .igpt-prompt{min-height:52px}
    .igpt-messages{padding:18px 12px 26px}
    .igpt-bubble{max-width:91%}
    .igpt-bubble-text{font-size:12px}
    .igpt-composer-wrap{padding:9px}
    .igpt-composer-hint{display:none}
    .igpt-drawer{width:min(320px,88vw)}
}
