/* Podcaster – Global Styles */

/* ============================================================
   Home Layout  (HomeLayout.razor)
   ============================================================ */
.home-root { min-height: 100vh; background: #ffffff; color: #1a1a2e; }

.home-topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px; padding: 0 2rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.home-topnav-brand {
    display: flex; align-items: center; gap: 8px;
    color: #1a1a2e; text-decoration: none;
    font-size: 1.2rem; font-weight: 800; letter-spacing: .3px;
}
.home-topnav-brand .material-icons { font-size: 26px; color: #2E7D32; }

.home-topnav-btn {
    padding: 8px 22px; border-radius: 20px;
    background: #2E7D32; color: #fff;
    text-decoration: none; font-weight: 600; font-size: .875rem;
    transition: background .2s, box-shadow .2s;
    box-shadow: 0 2px 10px rgba(46,125,50,.25);
}
.home-topnav-btn:hover { background: #388E3C; box-shadow: 0 4px 16px rgba(46,125,50,.4); }

/* ============================================================
   Home / Landing Page
   ============================================================ */
.hp-hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 100px 1.5rem 3rem;
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #f0fdf4 0%, #e8f5e9 40%, #f8fafc 100%);
}

.hp-hero-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 700px; height: 700px; pointer-events: none;
    background: radial-gradient(circle, rgba(46,125,50,.08) 0%, transparent 65%);
}

.hp-mic-container {
    position: relative; display: inline-flex;
    align-items: center; justify-content: center;
    margin-bottom: 2rem;
}

.hp-mic-icon {
    font-size: 88px !important; color: #2E7D32;
    position: relative; z-index: 2;
    animation: hp-float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(46,125,50,.3));
}

@keyframes hp-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.hp-wave {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(46,125,50,.2);
    animation: hp-ring 3.5s ease-out infinite;
}
.hp-wave.wave-1 { width: 130px; height: 130px; animation-delay: 0s; }
.hp-wave.wave-2 { width: 200px; height: 200px; animation-delay: .8s; }
.hp-wave.wave-3 { width: 270px; height: 270px; animation-delay: 1.6s; }

@keyframes hp-ring {
    0%   { opacity: .6; transform: scale(.8); }
    100% { opacity: 0;  transform: scale(1.15); }
}

.hp-title {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 900; letter-spacing: -3px; margin: 0 0 .4rem;
    color: #1B5E20;
}
.hp-title:focus, .hp-title:focus-visible { outline: none; }

.hp-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #388E3C; margin: 0 0 1.5rem;
    font-weight: 400; letter-spacing: 3px; text-transform: uppercase;
}

.hp-description {
    max-width: 640px; margin: 0 auto 2.5rem;
    font-size: 1.1rem; line-height: 1.85;
    color: #4b5563;
}

.hp-cta-row { margin-top: .5rem; }

.hp-btn-primary, .hp-btn-secondary {
    display: inline-flex; align-items: center;
    padding: 15px 36px; border-radius: 50px;
    font-size: 1.05rem; font-weight: 700; letter-spacing: .4px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.hp-btn-primary {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    box-shadow: 0 6px 24px rgba(46,125,50,.35);
}
.hp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(46,125,50,.5);
    color: #fff; text-decoration: none;
}
.hp-btn-secondary {
    background: rgba(255,255,255,.85);
    color: #1B5E20;
    border: 2px solid #2E7D32;
    backdrop-filter: blur(4px);
}
.hp-btn-secondary:hover {
    transform: translateY(-3px);
    background: #fff;
    color: #1B5E20; text-decoration: none;
}

.hp-waveform {
    display: flex; align-items: center; gap: 5px;
    margin-top: 4rem; opacity: .4;
}
.hp-waveform-bar {
    width: 5px; border-radius: 3px;
    background: linear-gradient(to top, #2E7D32, #81C784);
    animation: hp-wv 1.8s ease-in-out infinite alternate;
}
@keyframes hp-wv {
    from { transform: scaleY(.4); opacity: .5; }
    to   { transform: scaleY(1);  opacity: 1; }
}

.hp-podcasts { padding: 7rem 1.5rem; background: #f8fafc; }

.hp-section-header { text-align: center; margin-bottom: 4rem; }
.hp-section-header h2 { font-size: 2.4rem; font-weight: 800; margin: 0 0 .8rem; color: #1a1a2e; }
.hp-section-header p  { font-size: 1.05rem; color: #6b7280; margin: 0; }

.hp-podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; max-width: 960px; margin: 0 auto;
}

.hp-podcast-card {
    border-radius: 22px; overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.hp-podcast-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,.12); }

.hp-podcast-card-inner { padding: 2.5rem; }

.hp-podcast-icon {
    width: 58px; height: 58px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.4rem;
}
.hp-podcast-icon .material-icons { font-size: 30px; }

.hp-podcast-card h3 { font-size: 1.55rem; font-weight: 800; margin: 0 0 .4rem; color: #1a1a2e; }

.hp-podcast-tag {
    font-size: .8rem; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; margin: 0 0 1.2rem;
}

.hp-podcast-desc {
    font-size: .97rem; line-height: 1.75;
    color: #4b5563; margin: 0 0 1.4rem;
}

.hp-hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }

.hp-hash {
    padding: 4px 12px; border-radius: 20px;
    font-size: .78rem; font-weight: 600;
    background: rgba(0,0,0,.05);
}

.hp-podcast-meta {
    display: flex; align-items: center; gap: 4px;
    font-size: .82rem; color: #9ca3af;
}

.hp-podcast-card-dynamic {
    background: linear-gradient(145deg, #f8fffe 0%, #f0f9f0 55%, #f8fffe 100%);
    border: 2px solid #e0e0e0;
    box-shadow: 0 6px 30px rgba(0,0,0,.07);
    display: block;
}
.hp-podcast-card-dynamic:hover { color: inherit; }

.hp-alhaqq {
    background: linear-gradient(145deg, #fffbf0 0%, #fff8e1 55%, #fffbf0 100%);
    border: 1px solid rgba(255,193,7,.3);
    box-shadow: 0 6px 30px rgba(255,193,7,.12);
}
.hp-icon-gold { background: rgba(255,193,7,.12); }
.hp-icon-gold .material-icons { color: #f59e0b; }
.hp-tag-gold  { color: #b45309; }
.hp-hash-gold { border: 1px solid rgba(245,158,11,.35); color: #92400e; background: rgba(255,193,7,.08); }

.hp-imanah {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 55%, #f0fdf4 100%);
    border: 1px solid rgba(76,175,80,.25);
    box-shadow: 0 6px 30px rgba(76,175,80,.1);
}
.hp-icon-green { background: rgba(76,175,80,.12); }
.hp-icon-green .material-icons { color: #16a34a; }
.hp-tag-green  { color: #15803d; }
.hp-hash-green { border: 1px solid rgba(76,175,80,.35); color: #166534; background: rgba(76,175,80,.08); }

.hp-workflow { padding: 7rem 1.5rem; background: #ffffff; }

.hp-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .9rem; max-width: 1100px; margin: 0 auto;
}

.hp-step {
    display: flex; align-items: center; gap: .9rem;
    padding: .9rem 1.1rem;
    background: rgba(46,125,50,.04);
    border: 1px solid rgba(46,125,50,.15);
    border-radius: 12px;
    transition: background .2s, border-color .2s;
}
.hp-step:hover { background: rgba(46,125,50,.1); border-color: rgba(46,125,50,.3); }

.hp-step-num {
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800; color: #fff;
}

.hp-step-label { font-size: .88rem; color: #374151; font-weight: 500; }

.hp-footer {
    padding: 2rem; text-align: center;
    background: #f1f5f9;
    color: #9ca3af; font-size: .82rem;
    border-top: 1px solid #e2e8f0;
}

/* ============================================================
   Login Page
   ============================================================ */
.lp-root { display: flex; min-height: 100vh; padding-top: 60px; }

.lp-brand {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 4rem 3rem;
    background: linear-gradient(145deg, #1b5e20 0%, #2e7d32 60%, #0d3b1a 100%);
    position: relative; overflow: hidden;
}

.lp-brand-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 500px; height: 500px; pointer-events: none;
    background: radial-gradient(circle, rgba(165,214,167,.18) 0%, transparent 65%);
}

.lp-brand-content { position: relative; z-index: 2; max-width: 400px; color: #fff; }

.lp-brand-icon { font-size: 64px !important; color: #81C784; display: block; margin-bottom: 1rem; }

.lp-brand-content h1 {
    font-size: 3rem; font-weight: 900; margin: 0 0 1rem;
    background: linear-gradient(135deg, #fff 0%, #81C784 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.lp-brand-tagline { font-size: 1.05rem; color: rgba(255,255,255,.68); line-height: 1.75; margin: 0 0 2.5rem; }

.lp-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }

.lp-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: .95rem; color: rgba(255,255,255,.85);
}
.lp-features .material-icons { color: #a5d6a7; font-size: 18px; flex-shrink: 0; }

.lp-form-panel {
    width: 480px; background: #fafafa;
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 2.5rem;
}

.lp-form-box { width: 100%; max-width: 360px; }

.lp-form-box h2 { font-size: 2rem; font-weight: 800; color: #111827; margin: 0 0 .4rem; }

.lp-form-sub { color: #6b7280; font-size: .93rem; margin: 0 0 2rem; }

.lp-error {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px; border-radius: 10px;
    background: #fef2f2; border: 1px solid #fecaca;
    color: #dc2626; font-size: .88rem; margin-bottom: 1.5rem;
}
.lp-error .material-icons { font-size: 18px; }

.lp-form { display: flex; flex-direction: column; gap: 1.1rem; }

.lp-field { display: flex; flex-direction: column; gap: 5px; }

.lp-field label { font-size: .84rem; font-weight: 600; color: #374151; }

.lp-field input {
    padding: 11px 15px;
    border: 2px solid #e5e7eb; border-radius: 10px;
    font-size: 1rem; color: #111827; background: #fff;
    font-family: 'Roboto', sans-serif;
    outline: none; transition: border-color .2s, box-shadow .2s;
}
.lp-field input:focus {
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15);
}

.lp-remember { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #374151; }
.lp-remember input[type="checkbox"] { width: 15px; height: 15px; accent-color: #2E7D32; cursor: pointer; }
.lp-remember label { cursor: pointer; }

.lp-submit {
    padding: 13px; border-radius: 10px; border: none; cursor: pointer;
    background: linear-gradient(135deg, #2E7D32, #388E3C);
    color: #fff; font-size: .97rem; font-weight: 700;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 16px rgba(46,125,50,.35);
    transition: transform .15s, box-shadow .15s;
    margin-top: .3rem;
}
.lp-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(46,125,50,.52); }
.lp-submit:active { transform: translateY(0); }

.lp-divider {
    display: flex; align-items: center; gap: .75rem;
    margin: 1.1rem 0 .9rem; color: #9ca3af; font-size: .82rem;
}
.lp-divider::before, .lp-divider::after {
    content: ''; flex: 1; height: 1px; background: #e5e7eb;
}

.lp-google-btn {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    padding: 11px; border-radius: 10px; border: 1.5px solid #e5e7eb;
    background: #fff; color: #374151; font-size: .95rem; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.lp-google-btn:hover { border-color: #d1d5db; box-shadow: 0 2px 8px rgba(0,0,0,.08); color: #374151; }
.lp-google-icon { width: 20px; height: 20px; flex-shrink: 0; }

.lp-register { text-align: center; margin: 1.5rem 0 0; font-size: .88rem; color: #6b7280; }
.lp-register a { color: #2E7D32; font-weight: 600; text-decoration: none; }
.lp-register a:hover { text-decoration: underline; }

.lp-back { text-align: center; margin: .75rem 0 0; font-size: .82rem; }
.lp-back a { color: #9ca3af; text-decoration: none; }
.lp-back a:hover { color: #2E7D32; }

/* ── Responsive: tablet ───────────────────────────────────── */
@media (max-width: 820px) {
    .lp-brand      { display: none; }
    .lp-form-panel { width: 100%; }
    .hp-waveform   { display: none; }
    .home-topnav   { padding: 0 1.25rem; }
}

/* ── Responsive: large phone (≤ 640px) ───────────────────── */
@media (max-width: 640px) {
    /* Nav — shrink buttons and spacing */
    .home-topnav {
        padding: 0 1rem;
        height: 52px;
    }
    .home-topnav-brand {
        font-size: 1.05rem;
        gap: 6px;
    }
    .home-topnav-brand .material-icons { font-size: 22px; }
    .home-topnav-actions   { gap: 8px; }
    .home-topnav-btn {
        padding: 7px 16px;
        font-size: .8rem;
        border-radius: 16px;
    }

    /* Hero — tighten typography and spacing */
    .hp-hero { padding: 90px 1.25rem 2.5rem; }
    .hp-title { letter-spacing: -1px; margin-bottom: .3rem; }
    .hp-subtitle { letter-spacing: 2px; margin-bottom: 1rem; }
    .hp-description { font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; }
    .hp-btn-primary, .hp-btn-secondary {
        padding: 13px 28px;
        font-size: .95rem;
    }
}

/* ── Responsive: phone (≤ 480px) — hide Portfolio to save space ── */
@media (max-width: 480px) {
    .home-topnav-secondary { display: none; }
}

/* ── Responsive: small phone (≤ 400px) ──────────────────── */
@media (max-width: 400px) {
    /* Nav wraps to two rows */
    .home-topnav {
        height: auto;
        flex-wrap: wrap;
        padding: 10px 1rem;
        gap: 8px;
    }
    .home-topnav-actions { width: 100%; justify-content: flex-end; }
    .home-topnav-btn {
        padding: 6px 14px;
        font-size: .78rem;
    }

    /* Hero — extra top padding for the taller stacked nav */
    .hp-hero { padding-top: 120px; }

    /* CTA buttons — stack vertically */
    .hp-cta-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hp-btn-secondary { margin-left: 0 !important; }
}

/* ============================================================
   General
   ============================================================ */
html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0; padding: 0; height: 100%;
}

.mud-table-row:hover { cursor: pointer; }

.mud-chip.status-pending     { background-color: #e0e0e0 !important; }
.mud-chip.status-in-progress { background-color: #bbdefb !important; }
.mud-chip.status-completed   { background-color: #c8e6c9 !important; }
.mud-chip.status-blocked     { background-color: #ffcdd2 !important; }
.mud-chip.status-published   { background-color: #e1bee7 !important; }

.mud-card-content.text-center { text-align: center; }

.timer-running { animation: pulse 1.5s infinite; }

@keyframes pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.6; }
    100% { opacity: 1; }
}

.mud-nav-link.active { font-weight: 600; }

/* Chip input component */
.chip-input-wrap {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    padding: 8px 14px; min-height: 56px; cursor: text;
    border: 1px solid rgba(0,0,0,.23); border-radius: 4px;
    transition: border-color .15s, border-width .1s;
}
.chip-input-wrap.chip-input-focused {
    border: 2px solid var(--mud-palette-primary);
    padding: 7px 13px;
}
.chip-input-chip { margin: 2px 0 !important; }
.chip-input-field {
    border: none; outline: none; flex: 1; min-width: 120px;
    font-family: 'Roboto', sans-serif; font-size: 1rem; background: transparent;
}

/* Quill rich text editor — MudBlazor-consistent styling */
.quill-editor-wrap .ql-toolbar.ql-snow {
    border: 1px solid rgba(0,0,0,.23);
    border-radius: 4px 4px 0 0;
    font-family: 'Roboto', sans-serif;
}
.quill-editor-wrap .ql-container.ql-snow {
    border: 1px solid rgba(0,0,0,.23);
    border-radius: 0 0 4px 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}
.quill-editor-wrap .ql-editor { min-height: inherit; }

.kpi-card { transition: transform .15s, box-shadow .15s; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.15) !important; }

/* ── Home page: Pricing / Tiers ──────────────────────────────────────── */
.hp-pricing {
    padding: 80px 24px 60px;
    background: #f8faf8;
}
.hp-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 28px;
}
.hp-tier-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.hp-tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.hp-tier-featured {
    border-color: #2E7D32;
    box-shadow: 0 4px 24px rgba(46,125,50,.18);
}
.hp-tier-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: #2E7D32; color: #fff;
    font-size: .7rem; font-weight: 700; letter-spacing: 1px;
    padding: 3px 16px; border-radius: 20px; white-space: nowrap;
}
.hp-tier-header { margin-bottom: 12px; }
.hp-tier-header h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 2px; color: #1a1a1a; }
.hp-tier-header .hp-tier-label { font-size: .9rem; color: #555; }
.hp-tier-setup { font-size: 1.7rem; font-weight: 800; color: #1a1a1a; margin-bottom: 2px; }
.hp-tier-setup span { font-size: .9rem; font-weight: 400; color: #666; }
.hp-tier-rate { font-size: .9rem; color: #555; margin-bottom: 20px; }
.hp-tier-rate span { color: #888; }
.hp-tier-features {
    list-style: none; padding: 0; margin: 0 0 20px; flex: 1;
    font-size: .9rem; color: #333;
}
.hp-tier-features li { padding: 4px 0; }
.hp-tier-features li::before { content: "✓ "; color: #2E7D32; font-weight: 700; }
.hp-tier-note { font-size: .8rem; color: #888; font-style: italic; margin-bottom: 20px; }
.hp-tier-btn {
    display: block; text-align: center;
    padding: 12px 20px; border-radius: 8px;
    background: #f5f5f5; color: #333;
    text-decoration: none; font-weight: 600; font-size: .95rem;
    transition: background .2s, color .2s;
    margin-top: auto;
}
.hp-tier-btn:hover { background: #e8f5e9; color: #2E7D32; text-decoration: none; }
.hp-tier-btn-featured {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
}
.hp-tier-btn-featured:hover { background: linear-gradient(135deg, #388E3C, #2E7D32); color: #fff; }
.hp-pricing-note {
    text-align: center; color: #777; font-size: .85rem; max-width: 500px; margin: 0 auto;
}

/* ── Support live-chat widget (ported from IMANAH ChatWidget / AlHaqq Match) ───────── */
.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 2000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-fab { width: 52px; height: 52px; border-radius: 50%; border: none; background: #2E7D32; color: #fff; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(0,0,0,.22); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-fab:hover { background: #1f5d24; }

/* Impersonation bar: collapsed to a thin sliver so it doesn't obscure the page; expands on hover. */
.imp-bar { background:#e65100; color:#fff; display:flex; align-items:center; gap:12px; font-size:.875rem; position:sticky; top:0; z-index:2000; height:5px; padding:0 16px; overflow:hidden; transition:height .18s ease, padding .18s ease; }
.imp-bar > * { opacity:0; transition:opacity .15s ease; }
.imp-bar:hover { height:32px; padding:6px 16px; }
.imp-bar:hover > * { opacity:1; }
.chat-panel { width: 340px; max-width: calc(100vw - 36px); background: #fff; border-radius: 14px; box-shadow: 0 12px 38px rgba(0,0,0,.25); overflow: hidden; display: flex; flex-direction: column; max-height: 72vh; }
.chat-head { background: #2E7D32; color: #fff; padding: 10px 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.chat-x { background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat-choices { padding: 14px; }
.chat-choice { display: block; width: 100%; text-align: left; border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fafafa; cursor: pointer; }
.chat-choice:hover { background: #f0f0f0; }
.chat-choice-ic { font-size: 1.1rem; margin-right: 6px; }
.chat-choice-sub { display: block; font-size: .78rem; color: #777; margin-top: 2px; }
.chat-log { padding: 12px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; background: #fafafa; }
.chat-msg { max-width: 85%; }
.chat-msg.chat-visitor { align-self: flex-end; }
.chat-msg.chat-ai, .chat-msg.chat-agent { align-self: flex-start; }
.chat-msg.chat-system { align-self: center; }
.chat-msg-who { font-size: .72rem; color: #888; margin-bottom: 2px; }
.chat-bubble { padding: 8px 11px; border-radius: 12px; background: #fff; border: 1px solid #e0e0e0; font-size: .9rem; white-space: pre-wrap; }
.chat-visitor .chat-bubble { background: #2E7D32; color: #fff; border-color: #2E7D32; }
.chat-system .chat-bubble { background: transparent; border: none; color: #888; font-style: italic; font-size: .8rem; text-align: center; }
.chat-typing { letter-spacing: 2px; }
.chat-compose { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #eee; }
.chat-input { flex: 1; width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px; font-size: .9rem; box-sizing: border-box; }
.chat-send { border: none; background: #2E7D32; color: #fff; border-radius: 8px; padding: 0 14px; cursor: pointer; font-size: 1rem; }
.chat-tohuman { width: 100%; background: none; border: none; color: #2E7D32; font-size: .82rem; padding: 6px; cursor: pointer; }
.chat-err { color: #c00; font-size: .82rem; margin-top: 6px; }
.chat-closed { padding: 10px; text-align: center; color: #666; }
.chat-send-msg { width: 100%; border: none; background: #2E7D32; color: #fff; border-radius: 8px; padding: 9px; font-weight: 600; cursor: pointer; }
.chat-send-msg:disabled { opacity: .6; cursor: default; }
.chat-rate { padding: 10px 12px; }
.chat-rate-q { font-weight: 600; margin-bottom: 6px; }
.chat-stars { font-size: 1.6rem; line-height: 1; margin-bottom: 8px; }
.chat-star { color: #cfcfcf; cursor: pointer; transition: color .1s; }
.chat-star.on, .chat-star:hover { color: #f5b301; }

/* Report tab (bug / idea / question) */
.chat-tabs { display: flex; gap: 4px; }
.chat-tab { background: transparent; border: none; color: rgba(255,255,255,.72); font-weight: 600; font-size: .9rem; padding: 4px 10px; border-radius: 8px; cursor: pointer; }
.chat-tab.on { background: rgba(255,255,255,.22); color: #fff; }
.chat-report { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-report-intro { color: #555; font-size: .85rem; margin: 0 0 2px; }
.chat-report select.chat-input, .chat-report textarea.chat-input { width: 100%; }
.chat-report-done { padding: 26px 16px; text-align: center; color: #333; }
.chat-report-check { font-size: 2rem; margin-bottom: 6px; }
.chat-hours { background: #f1f7f1; border: 1px solid #d7e8d7; color: #2c5f2c; border-radius: 8px; padding: 8px 10px; font-size: .8rem; line-height: 1.4; margin-bottom: 10px; }
.chat-spin { display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: chat-spin .7s linear infinite; }
@keyframes chat-spin { to { transform: rotate(360deg); } }
.chat-shot { border-top: 1px solid #eee; padding-top: 8px; }
.chat-shot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.chat-shot-head > span { font-size: .8rem; font-weight: 600; color: #2E7D32; }
.chat-shot-btns { display: flex; gap: 4px; }
.chat-shot-btn { background: #fff; border: 1px solid #cdd6cd; color: #2E7D32; border-radius: 6px; padding: 2px 8px; font-size: .78rem; cursor: pointer; }
.chat-shot-btn:hover:not(:disabled) { background: #f1f7f1; }
.chat-shot-btn:disabled { opacity: .5; cursor: default; }
.chat-shot-tip { font-size: .72rem; color: #9aa3a0; margin-top: 4px; }
