/* =========================
   ROOT THEME
========================= */

:root{
    --green:#198754;
    --green-dark:#0d5c45;
    --green-soft:#eaf8f0;
    --blue:#0b7fc3;
    --blue-dark:#0d3b66;
    --blue-soft:#eaf7ff;
    --cyan:#17a9d6;
    --warning:#f4b942;
    --coral:#f26b5e;
    --ink:#1f2d3d;
    --muted:#667085;
    --line:#d9e7ef;
}

/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    color:var(--ink);
    background:#fbfdff;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* =========================
   HEADER
========================= */

.site-header{
    background:white;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
    position:sticky;
    top:0;
    z-index:100;
    border-bottom:1px solid rgba(11,127,195,.12);
}

.header-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.brand{
    display:flex;
    gap:10px;
    text-decoration:none;
}

.brand-mark{
    width:90px;
    height:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.brand-mark img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.brand-title{
    font-size:24px;
    font-weight:700;
    background:linear-gradient(90deg,var(--green),var(--blue));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.brand-tagline{
    font-size:12px;
    color:#666;
}

.nav-links{
    display:flex;
    gap:25px;
    list-style:none;
}

.nav-links a{
    position:relative;
    text-decoration:none;
    color:#333;
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:3px;
    background:linear-gradient(90deg,var(--green),var(--blue));
    transition:.3s;
}

.nav-links a:hover,
.nav-links a.active{
    color:var(--blue);
}

.nav-links a:hover::after,
.nav-links a.active::after{
    width:100%;
}

/* =========================
   BUTTONS
========================= */

.btn-primary{
    display:inline-block;
    margin-top:30px;
    background:linear-gradient(135deg,var(--green),var(--blue));
    color:white;
    padding:12px 24px;
    text-decoration:none;
    border:none;
    border-radius:8px;
    cursor:pointer;
    box-shadow:0 10px 22px rgba(11,127,195,.18);
    transition:.3s;
}

.btn-primary:hover{
    background:linear-gradient(135deg,var(--green-dark),var(--blue-dark));
    transform:translateY(-2px);
}

.btn-ghost{
    display:inline-block;
    margin-top:30px;
    background:transparent;
    color:white;
    padding:12px 24px;
    text-decoration:none;
    border:2px solid white;
    border-radius:8px;
    cursor:pointer;
}

.btn-secondary{
    display:inline-block;
    margin-top:0px;
    background:linear-gradient(135deg,var(--green),var(--blue));
    color:white;
    padding:6px 12px;
    text-decoration:none;
    border:none;
    border-radius:8px;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(11,127,195,.18);
    transition:.3s;
}

.btn-secondary:hover{
    background:linear-gradient(135deg,var(--green-dark),var(--blue-dark));
}

.btn-outline{
    display:inline-block;
    padding:12px 24px;
    border:2px solid var(--blue);
    border-radius:8px;
    text-decoration:none;
    color:var(--blue);
    font-weight:600;
    transition:.3s;
}

.btn-outline:hover{
    background:var(--blue);
    color:white;
}

/* =========================
   HERO SECTION
========================= */

.hero{
    padding:60px 0;
    background:linear-gradient(110deg,#ffffff 0%,#f3fbf7 48%,#eaf7ff 100%);
}

.hero-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
}

.hero-text{
    flex:1;
}

.hero-text h1{
    font-size:35px;
    line-height:1.25;
    color:var(--blue-dark);
    font-weight:700;
    margin-bottom:25px;
}

.hero-text h1::first-line{
    color:var(--green-dark);
}

.hero-text p{
    font-size:15px;
    line-height:1.8;
    color:#444;
    max-width:650px;
    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    gap:20px;
}

.hero-buttons .btn-primary{
    margin-top:0;
}

.hero-image{
    flex:1;
}

.hero-image img{
    width:100%;
    max-width:700px;
    display:block;
    border-radius:0;
    object-fit:cover;
}

/* =========================
   GENERAL SECTION
========================= */

.section{
    padding:80px 0;
}

.section h2{
    text-align:center;
    margin-bottom:40px;
    color:var(--blue-dark);
}

.gray{
    background:linear-gradient(180deg,var(--blue-soft),#f7fbf9);
}

.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

/* =========================
   CLIMATE ALERT
========================= */

.climate-alert{
    background:linear-gradient(180deg,#f7fcff,var(--blue-soft));
}

.alert-header{
    text-align:center;
    margin-bottom:45px;
}

.alert-header h2{
    font-size:34px;
    color:var(--blue-dark);
    margin-bottom:10px;
}

.alert-header p{
    color:#666;
}

.alert-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
}

.alert-card{
    background:#fff;
    border-radius:18px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
    border:1px solid rgba(13,59,102,.08);
}

.alert-card:hover{
    transform:translateY(-6px);
}

.alert-card h3{
    color:var(--blue-dark);
    margin-bottom:18px;
}

.alert-card p{
    line-height:1.8;
}

.alert-card ul{
    padding-left:20px;
    line-height:2;
}

.status-badge{
    display:inline-block;
    padding:10px 22px;
    border-radius:30px;
    font-weight:700;
    margin-bottom:20px;
}

.warning{
    background:#fff7dd;
    color:#9a6500;
    border:1px solid rgba(244,185,66,.35);
}

.safe{
    background:#dff6e4;
    color:var(--green);
}

.danger{
    background:#ffe4e4;
    color:#d62828;
}

.alert-card small{
    display:block;
    margin-top:18px;
    color:#888;
}

/* =========================
   INFO CARDS
========================= */

.card1{
    background:linear-gradient(135deg,#eaf7ff,#ffffff);
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

.card2{
    background:linear-gradient(135deg,#e6fbff,#ffffff);
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

.card3{
    background:linear-gradient(135deg,#fff8e8,#ffffff);
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

.card4{
    background:linear-gradient(135deg,#fff0ee,#ffffff);
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

.card5{
    background:linear-gradient(135deg,#eaf8f0,#ffffff);
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

.card6{
    background:linear-gradient(135deg,#eefbf7,#ffffff);
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

.card7{
    background:linear-gradient(135deg,#edf5ff,#ffffff);
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

/* =========================
   CHECK FORM
========================= */

.check-form{
    max-width:600px;
    margin:auto;
}

.check-form label{
    display:block;
    margin-top:15px;
}

.check-form input,
.check-form select{
    width:100%;
    padding:12px;
    margin-top:8px;
    border:1px solid #ccc;
    border-radius:8px;
}

.center-text{
    text-align:center;
    max-width:800px;
    margin:auto;
    margin-bottom:40px;
}

/* =========================
   EDUCATION
========================= */

.education{
    background:linear-gradient(180deg,#ffffff,var(--green-soft));
}

.section-heading{
    text-align:center;
    margin-bottom:60px;
}

.section-heading h2{
    font-size:38px;
    color:var(--blue-dark);
    margin-bottom:15px;
}

.section-heading p{
    max-width:700px;
    margin:auto;
    color:#666;
    line-height:1.8;
}

.education-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.edu-card{
    background:#fff;
    border-radius:20px;
    padding:35px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
    position:relative;
    overflow:hidden;
    border:1px solid rgba(13,59,102,.08);
}

.edu-card:hover{
    transform:translateY(-10px);
}

.edu-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:6px;
    background:linear-gradient(90deg,var(--green),var(--cyan),var(--blue));
}

.edu-icon{
    font-size:55px;
    margin-bottom:20px;
    color:var(--blue);
}

.edu-card h3{
    color:var(--blue-dark);
    margin-bottom:15px;
}

.edu-card p{
    color:#555;
    line-height:1.8;
    margin-bottom:20px;
}

.lesson{
    display:inline-block;
    background:var(--blue-soft);
    color:var(--blue-dark);
    border:1px solid rgba(11,127,195,.14);
    padding:8px 16px;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
    margin-bottom:25px;
}

.btn-learn{
    display:inline-block;
    padding:12px 24px;
    border-radius:8px;
    background:var(--blue);
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.btn-learn:hover{
    background:var(--blue-dark);
}

.btn-learn.is-started{
    background:var(--blue-dark);
}

/* =========================
   AI ASSISTANT
========================= */

.ai-box{
    background:white;
    padding:30px;
    border-radius:12px;
    max-width:800px;
    margin:auto;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

.chat-window{
    display:flex;
    flex-direction:column;
    gap:14px;
    min-height:220px;
    max-height:340px;
    overflow-y:auto;
    padding:18px;
    background:linear-gradient(180deg,#f6fbff,#f7fbf9);
    border:1px solid var(--line);
    border-radius:12px;
}

.chat-window::-webkit-scrollbar{
    width:8px;
}

.chat-window::-webkit-scrollbar-thumb{
    background:rgba(11,127,195,.25);
    border-radius:999px;
}

.chat-message{
    max-width:82%;
    padding:12px 14px;
    border-radius:12px;
    line-height:1.6;
    font-size:14px;
    white-space:pre-line;
    overflow-wrap:anywhere;
}

.chat-message.bot{
    align-self:flex-start;
    background:#ffffff;
    color:#333;
    border:1px solid #d8eee3;
}

.chat-message.user{
    align-self:flex-end;
    background:linear-gradient(135deg,var(--blue),var(--green));
    color:white;
}

.quick-prompts{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:18px 0;
}

.quick-prompts button{
    background:var(--blue-soft);
    color:var(--blue-dark);
    border:1px solid rgba(11,127,195,.14);
    border-radius:20px;
    padding:9px 14px;
    font-weight:600;
    cursor:pointer;
}

.quick-prompts button:hover{
    background:#d1fae5;
}

.ai-form{
    display:flex;
    gap:12px;
}

.ai-form input{
    flex:1;
    padding:14px;
    border:1px solid #dcdcdc;
    border-radius:10px;
    font-size:15px;
}

.ai-form input:focus{
    outline:none;
    border-color:var(--blue);
    box-shadow:0 0 0 4px rgba(11,127,195,.14);
}

.ai-form button{
    background:linear-gradient(135deg,var(--green),var(--blue));
    color:white;
    border:none;
    padding:0 24px;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 10px 22px rgba(11,127,195,.18);
}

.ai-form button:hover{
    background:linear-gradient(135deg,var(--green-dark),var(--blue-dark));
}

/* =========================
   JS MESSAGE
========================= */

.js-message{
    margin-top:14px;
    padding:12px 14px;
    border-radius:10px;
    font-size:14px;
    line-height:1.6;
}

.js-message.success{
    background:var(--green-soft);
    color:var(--green-dark);
}

.js-message.error{
    background:#fff0ee;
    color:#b42318;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

/* =========================
   FOOTER GLOBAL
========================= */

footer{
    background:linear-gradient(135deg,var(--green),var(--blue));
    color:white;
    text-align:center;
    padding:25px;
}

/* =========================
   LOGIN SECTION
========================= */

#login{
    background:white;
}

#login .login-form{
    max-width:600px;
    margin:0 auto;
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

#login .section-title{
    color:var(--blue-dark);
    margin-bottom:10px;
}

#login .section-subtitle{
    text-align:center;
    color:#666;
    margin-bottom:30px;
}

#login .form-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}

#login .field{
    display:flex;
    flex-direction:column;
}

#login .field label{
    margin-bottom:8px;
    font-weight:500;
}

#login .field input{
    padding:14px;
    border:1px solid #dcdcdc;
    border-radius:10px;
    font-size:15px;
}

#login .field input:focus{
    outline:none;
    border-color:var(--blue);
    box-shadow:0 0 0 4px rgba(11,127,195,.14);
}

#login .form-actions{
    text-align:center;
    margin-top:25px;
}

#login .btn-login{
    background:linear-gradient(135deg,var(--green),var(--blue));
    color:white;
    border:none;
    padding:14px 40px;
    border-radius:10px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 10px 22px rgba(11,127,195,.18);
}

#login .btn-login:hover{
    background:linear-gradient(135deg,var(--green-dark),var(--blue-dark));
}

#login .form-note{
    margin-top:12px;
    color:#666;
    font-size:14px;
}

#login .form-note a{
    color:var(--green);
    text-decoration:none;
    font-weight:600;
}

/* =========================
   SIGNUP SECTION
========================= */

#signup{
    background:white;
}

#signup .signup-card{
    max-width:900px;
    margin:auto;
    background:#fff;
    padding:40px;
    border-radius:20px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

#signup .section-title{
    color:var(--blue-dark);
    margin-bottom:10px;
}

#signup .section-subtitle{
    text-align:center;
    color:#666;
    margin-bottom:35px;
}

#signup .form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

#signup .field{
    display:flex;
    flex-direction:column;
}

#signup .field-full{
    grid-column:1 / -1;
}

#signup .field label{
    margin-bottom:8px;
    font-weight:500;
}

#signup .field input,
#signup .field textarea{
    padding:14px;
    border:1px solid #dcdcdc;
    border-radius:10px;
    font-size:15px;
}

#signup .field input:focus,
#signup .field textarea:focus{
    outline:none;
    border-color:var(--blue);
    box-shadow:0 0 0 4px rgba(11,127,195,.14);
}

#signup textarea{
    resize:vertical;
}

#signup .form-actions{
    margin-top:30px;
    text-align:center;
}

#signup .btn-signup{
    background:linear-gradient(135deg,var(--green),var(--blue));
    color:white;
    border:none;
    padding:14px 40px;
    border-radius:10px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 10px 22px rgba(11,127,195,.18);
}

#signup .btn-signup:hover{
    background:linear-gradient(135deg,var(--green-dark),var(--blue-dark));
}

#signup .form-note{
    margin-top:15px;
    color:#666;
}

#signup .form-note a{
    color:var(--green);
    text-decoration:none;
    font-weight:600;
}

/* =========================
   DASHBOARD
========================= */

.dashboard{
    background:linear-gradient(180deg,var(--blue-soft),#f7fbf9);
}

.dashboard-header{
    display:grid;
    grid-template-columns:300px 1fr;
    gap:25px;
    margin-bottom:30px;
}

.profile-card,
.score-card{
    background:white;
    padding:25px;
    border-radius:16px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

.profile-avatar{
    width:90px;
    height:90px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--green),var(--blue));
    color:white;
    font-size:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 15px;
}

.member-badge{
    display:inline-block;
    margin-top:10px;
    padding:6px 12px;
    background:var(--green-soft);
    color:var(--green-dark);
    border-radius:20px;
    font-size:14px;
    font-weight:600;
}

.score-circle{
    width:140px;
    height:140px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--green),var(--blue));
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:20px auto;
    font-size:42px;
    font-weight:bold;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.dashboard-card{
    background:white;
    padding:25px;
    border-radius:16px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border:1px solid rgba(13,59,102,.08);
}

.dashboard-card h3{
    margin-bottom:15px;
}

.progress-bar{
    width:100%;
    height:12px;
    background:#e5e7eb;
    border-radius:20px;
    overflow:hidden;
    margin-bottom:10px;
}

.progress-fill{
    width:75%;
    height:100%;
    background:linear-gradient(135deg,var(--green),var(--blue));
}

.stat-number{
    font-size:42px;
    font-weight:bold;
    color:var(--blue-dark);
    margin:10px 0;
}

.badge-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.badge-item{
    background:var(--blue-soft);
    color:var(--blue-dark);
    padding:8px 12px;
    border-radius:20px;
    border:1px solid rgba(11,127,195,.14);
    font-size:14px;
}

/* =========================
   DASHBOARD ACTION CENTER
========================= */

.dashboard-action{
    text-align:center;
    margin-top:36px;
}

.dashboard-action .btn-primary{
    margin-top:0;
}

/* =========================
   DASHBOARD FOOTER
========================= */

.dashboard-footer{
    margin-top:44px;
    padding:24px 0 28px;
    background:#ffffff;
    border-top:1px solid rgba(13,59,102,.08);
    text-align:center;
}

.dashboard-footer p{
    margin:0;
    color:#667085;
    font-size:14px;
}

/* =========================
   FLOATING CHAT WIDGET
========================= */

.floating-chat-toggle{
    position:fixed;
    right:24px;
    bottom:24px;
    width:62px;
    height:62px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,var(--blue),var(--green));
    color:#ffffff;
    font-size:28px;
    cursor:pointer;
    box-shadow:0 14px 30px rgba(11,127,195,.35);
    z-index:9999;
    transition:transform .25s ease, box-shadow .25s ease;
}

.floating-chat-toggle:hover{
    transform:translateY(-4px) scale(1.05);
    box-shadow:0 18px 40px rgba(11,127,195,.45);
}

.floating-chat-icon{
    display:inline-block;
}

.floating-chat-panel{
    position:fixed;
    right:24px;
    bottom:calc(62px + 24px);
    width:min(380px, calc(100vw - 32px));
    height:min(620px, calc(100vh - 62px - 48px));
    max-height:calc(100vh - 62px - 48px);
    min-height:0;
    border-radius:22px;
    overflow:hidden;
    background:#101827;
    color:#ffffff;
    box-shadow:0 24px 60px rgba(0,0,0,.35);
    z-index:9999;
    display:flex;
    flex-direction:column;
    opacity:0;
    pointer-events:none;
    transform:translateY(18px) scale(.96);
    transition:opacity .25s ease, transform .25s ease;
}

.floating-chat-panel.is-open{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0) scale(1);
}

.floating-chat-header{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px;
    background:linear-gradient(135deg,#17213a,#0d1322);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.floating-chat-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--blue),var(--green));
    color:#ffffff;
    font-weight:700;
    box-shadow:0 8px 18px rgba(0,168,120,.3);
}

.floating-chat-title h3{
    margin:0;
    font-size:16px;
    font-weight:700;
}

.floating-chat-title p{
    margin:3px 0 0;
    font-size:12px;
    color:rgba(255,255,255,.72);
}

.floating-online-dot{
    display:inline-block;
    width:8px;
    height:8px;
    margin-right:5px;
    border-radius:50%;
    background:#32d583;
    box-shadow:0 0 10px rgba(50,213,131,.8);
}

.floating-chat-close{
    margin-left:auto;
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    color:#ffffff;
    font-size:22px;
    cursor:pointer;
}

.floating-chat-close:hover{
    background:rgba(255,255,255,.16);
}

.floating-chat-window{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow-y:auto;
    padding:16px;
    background:
        radial-gradient(circle at top left, rgba(0,168,120,.08), transparent 35%),
        #101827;
}

.floating-chat-window::-webkit-scrollbar{
    width:8px;
}

.floating-chat-window::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.25);
    border-radius:999px;
}

.floating-chat-message{
    max-width:86%;
    margin-bottom:12px;
    padding:11px 13px;
    border-radius:16px;
    font-size:14px;
    line-height:1.55;
    white-space:pre-line;
    overflow-wrap:anywhere;
}

.floating-chat-message.bot{
    background:#1b263d;
    color:#e9eefb;
    border-bottom-left-radius:5px;
}

.floating-chat-message.user{
    margin-left:auto;
    background:linear-gradient(135deg,var(--blue),var(--green));
    color:#ffffff;
    border-bottom-right-radius:5px;
}

.floating-chat-form{
    flex:0 0 auto;
    display:flex;
    gap:10px;
    padding:14px;
    background:#0d1322;
    border-top:1px solid rgba(255,255,255,.08);
}

.floating-chat-form input{
    flex:1;
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    padding:12px 14px;
    background:rgba(255,255,255,.08);
    color:#ffffff;
    outline:none;
    font-size:14px;
}

.floating-chat-form input::placeholder{
    color:rgba(255,255,255,.5);
}

.floating-chat-form input:focus{
    border-color:var(--green);
    box-shadow:0 0 0 3px rgba(0,168,120,.18);
}

.floating-chat-form button{
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,var(--blue),var(--green));
    color:#ffffff;
    font-size:18px;
    cursor:pointer;
    transition:transform .2s ease;
}

.floating-chat-form button:hover{
    transform:translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){
    .header-inner{
        flex-wrap:wrap;
        gap:18px;
    }

    .header-inner nav{
        order:3;
        width:100%;
    }

    .nav-links{
        justify-content:center;
        flex-wrap:wrap;
        gap:14px 22px;
    }

    .hero-content{
        flex-direction:column-reverse;
        text-align:center;
    }

    .hero-text h1{
        font-size:32px;
    }

    .hero-text p{
        margin-left:auto;
        margin-right:auto;
    }

    .hero-buttons{
        justify-content:center;
        flex-wrap:wrap;
    }

    .hero-image img{
        max-width:100%;
    }
}

@media(max-width:768px){
    .brand-mark{
        width:64px;
        height:64px;
    }

    .brand-title{
        font-size:20px;
    }

    .brand-tagline{
        font-size:11px;
    }

    .header-inner{
        justify-content:center;
        text-align:center;
    }

    .brand{
        align-items:center;
        justify-content:center;
        width:100%;
    }

    .btn-secondary{
        margin:auto;
    }

    .section{
        padding:60px 0;
    }

    .hero-text h1{
        font-size:28px;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:stretch;
    }

    .hero-buttons a{
        text-align:center;
    }

    .alert-grid,
    .education-grid{
        grid-template-columns:1fr;
    }

    #signup .form-grid{
        grid-template-columns:1fr;
    }

    #signup .signup-card,
    #login .login-form{
        padding:25px;
    }

    .dashboard-header{
        grid-template-columns:1fr;
    }

    .ai-form{
        flex-direction:column;
    }

    .ai-form button{
        padding:12px 24px;
    }
}

@media(max-width:480px){
    .floating-chat-toggle{
        right:16px;
        bottom:16px;
        width:56px;
        height:56px;
    }

    .floating-chat-panel{
        right:12px;
        left:12px;
        bottom:calc(56px + 16px);
        width:auto;
        height:min(680px, calc(100vh - 56px - 32px));
        max-height:calc(100vh - 56px - 32px);
        border-radius:20px;
    }
}

@media(max-width:420px){
    .container{
        width:92%;
    }

    .nav-links{
        gap:12px;
        font-size:14px;
    }

    .alert-card,
    .edu-card,
    .dashboard-card,
    .profile-card,
    .score-card{
        padding:22px;
    }
}