html, body {
    height: 100%;
    margin: 0;
    /* font-family: "Inter", arial, sans-serif; */
}

@media (max-width:1400px){
    .question-card-grid{
        grid-template-columns:repeat(4,1fr);
        }
    }

@media (max-width:1100px){
    .question-card-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media (min-width: 1200px) {
    .app-container {
        max-width: 800px;
    }
}
/* Phones only */
@media (max-width: 767px) {

    .nav-tabs {
        justify-content: center;
        gap: 6px;
    }

    .nav-tabs .nav-link {
        font-size: 13px;
        padding: 7px 14px;
    }

    .question-card-grid{
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }

    .question-card-title{
        font-size:16px;
    }
    .question-card-description{
        font-size:12px;
    }

    .banner-wrapper {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .banner-image {
        width: 100%;
        display: block;
    }

    .user-overlay {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;

        width: 100%;

        margin-top: 8px;

        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;

        background: #151515;
        padding: 10px;
        border-radius: 10px;
    }
}

@media (max-width:576px){
    #topicQuestions{
        grid-template-columns:repeat(2,1fr) !important;
        gap:12px;
    }

    .question-card-grid{
        grid-template-columns:repeat(2,1fr) !important;
        gap:14px;
    }
}
/*@media (max-width: 576px) {
    .nav-tabs {
        justify-content: center;
        gap: 6px;
    }

    .nav-tabs .nav-link {
        font-size: 13px;
        padding: 7px 14px;
    }
     .quest-info-card{

        gap:5px;

        padding:5px;
    }

    .quest-info-image img{

        max-width:110px;

        max-height:160px;
    }

    .quest-info-text{

        font-size:.82rem;

        line-height:1.45;
    }

    .quest-info-small{

        display:none;
    } 
}*/

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* background: url('../assets/flash-sm.png') no-repeat center center fixed;  */
    background-size: cover;
    position: relative; 
}
/* body::before {
    content: "";
    position: fixed;
    inset: 0; */

    /* background: */
        /* linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.9)), */
        /* linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.85)); */
        /* url('../assets/bg.png') no-repeat center center; */

    /* background-size: cover; */
    /* z-index: -1; */
/* } */

/* HEADER CONTAINER */
.app-header {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;

    /* remove spacing */
    padding: 0;
    margin: 0;

    /* compact height */
    height: 48px;

    /* layout */
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* subtle polish */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* TITLE */
.app-title {
    font-size: 16px;
    font-weight: 600;
    padding-left: 10px; /* minimal internal spacing */
}

/* USER INFO */
.user-name {
    font-size: 14px;
    font-weight: 600;
}

/* LOGOUT BUTTON */
/* #logoutBtn {
    margin-right: 10px;
    border-radius: 14px;
    padding: 2px 10px;
    border-color: #706f6f;
    color: #706f6f
} */


/* Wrapper handles centering */
.app-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    background:#080808;

    flex-direction: column;
    align-items: center;
}

/* Default (mobile/tablet) */
.app-container {
    width: 100%;
    /* height: 100vh; */
    display: flex;
    flex-direction: column;
    /* overflow: hidden; */
    padding: 10px 14px;
    overflow-y: auto;
    min-height: 100vh;
}

/* Tabs content should take remaining height */
.tab-content{
    display:block;
    overflow:visible;
}

/* Each tab becomes vertical layout */
/* .tab-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow:hidden;
} */
.tab-pane{
    /* flex:none; */
    display:none;
    overflow:visible;
}
.tab-pane.active,
.tab-pane.show{
    display:block;
}

#basicQuestion,
#advQuestion,
#proQuestion {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

#topicSelect,
#basicQuestion:focus,
#advQuestion:focus,
#proQuestion:focus {
    border-color: #ffc107;
    /* box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.4); */
    box-shadow: 0 0 0 0.15rem rgba(255, 193, 7, 0.3);
}
::placeholder {
    color: #8c8c8c;
    opacity: 1;  /* ensures visibility across browsers */
    font-size: 13px;
}

.auto-expand {
    resize: none;
    overflow: hidden;
    min-height: 60px;
    max-height: 200px;  
    line-height: 1.5;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 10px;
}

.answer-box-2 {
    flex: 1;                  /* fills remaining space */
    overflow-y: auto;         /* enables scroll */

    background: rgba(255,255,255,0.9);
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;

    min-height: 0;            /* 🔥 CRITICAL FIX */
    
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 14px;
}
.answer-box {
    background: rgba(255,255,255,0.9);
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;

    height: auto;          /* expand naturally */
    max-height: none;      /* remove scroll limit */
    overflow: visible;     /* no internal scroll */

    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 14px;
}

.btn-reload {
    background-color: #ffc107;
    color: #000;
    border: none;
    width: 100%;
    border-radius: 20px;
    padding: 8px;
    font-weight: 500;
}

.btn-reload:hover {
    background-color: #e0a800;
    color: #000;
}
/* Tabs container */
/* Base tabs */
/*Netflix theme*/
/* .nav-tabs{
    border:none;
}

.nav-link{
    color:#aaa;
    border:none;
    background:#1a1a1a;
    margin-right:6px;
}

.nav-link.active{
    background:#d4af37 !important;
    color:#000 !important;
    font-weight:700;
} */

/*

/* Chip Container */
.nav-tabs {
    border: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 12px;
    margin-bottom: 12px;
}

/* Remove Bootstrap border */
.nav-tabs .nav-item {
    margin: 0;
}

/* Chip Style */
.nav-tabs .nav-link {

    border: 1px solid rgba(212,175,55,.4) !important;

    border-radius: 999px !important;

    background: #1b1b1b !important;

    color: #d0d0d0 !important;

    padding: 8px 18px;

    font-size: 14px;
    font-weight: 500;

    transition: all .2s ease;

    white-space: nowrap;
}

/* Hover */
.nav-tabs .nav-link:hover {

    background: #242424 !important;

    border-color: #d4af37 !important;

    color: #fff !important;
}

/* Selected Chip */
.nav-tabs .nav-link.active {

    background: #d4af37 !important;

    color: #000 !important;

    border-color: #d4af37 !important;

    font-weight: 700;

    box-shadow:
        0 0 12px rgba(212,175,55,.4);
}

/* USER INFO NEW */
.user-info{
    background:#151515;
    border-radius:12px;
    border:1px solid rgba(212,175,55,.35);
    padding:15px;
    color:#ddd;
}


/* .user-info {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.6;
} */

/* Optional label styling */
/* .user-info strong {
    color: #6c4a00;
} */

/* .title-container {
    /* display: flex; */
    justify-content: center;
    /* margin-top: 10px; */
    margin-bottom: 8px;
} */

.title-box {
    background: linear-gradient(135deg, #fff8e1, #ffe082);
    padding: 10px 18px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 193, 7, 0.6);
}

.title-text {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    color: #5a3d00;
    /* letter-spacing: 0.5px; */
}
/* Toggle container (card look) */
.toggle-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Outer pill container */
.toggle-pill {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #fff3cd, #ffe082);
    border-radius: 25px;
    padding: 10px 14px;
    cursor: pointer;
    border: 1px solid rgba(255, 193, 7, 0.6);
    display: flex;
    align-items: center;
}

/* Label text */
.toggle-text {
    font-weight: 600;
    color: #5a3d00;
    font-size: 14px;
}

/* Hide default checkbox */
.toggle-pill input {
    display: none;
}

/* Custom slider */
.toggle-slider {
    position: absolute;
    right: 10px;
    width: 42px;
    height: 22px;
    background: #ddd;
    border-radius: 20px;
    transition: 0.3s;
}

/* Circle inside slider */
.toggle-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

/* ON state */
.toggle-pill input:checked + .toggle-slider {
    background: #ffc107;
}

/* Move circle */
.toggle-pill input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Active glow */
.toggle-pill input:checked ~ .toggle-text {
    color: #000;
    font-weight: 700;
}

.topic-btn {
    background-color: #fffaf0;
    color: #5a3d00;
    border: 1px solid rgba(255, 193, 7, 0.6);
    border-radius: 20px;
    font-size: 13px;
    padding: 6px 12px;
    transition: all 0.2s ease;
    text-align: left;
}

/* Hover */
.topic-btn:hover {
    background-color: #ffe082;
    color: #000;
}

/* ✅ Selected state */
.topic-btn.active {
    background-color: #ffc107;
    color: #000;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255,193,7,0.5);
}

.selected-box {
    min-height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 10px;

    display: flex;
    flex-direction: column;   /* 👈 stack vertically */
    gap: 8px;                 /* spacing between items */
}

/* Placeholder */
.placeholder-text {
    color: #8c8c8c;
    font-size: 13px;
}

/* Selected chip inside box */

.selected-chip {
    display: block;              /* 👈 one per line */
    width: 100%;                 /* full width */
    
    background: #f1f3f5;         /* light gray */
    color: #333;
    
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;

    border: 1px solid #dee2e6;
}

.remove-icon {
    color: #888;
    cursor: pointer;
}

.remove-icon:hover {
    color: #000;
}

/* .btn-clear {
    background-color: #dc3545;
    color: #fff;
} */
/* .btn {
    text-align: left !important;
} */
.btn-clear {
    background-color: #dc3545;   /* gray solid */
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px;
    font-weight: 500;
}

/* Hover */
.btn-clear:hover {
    background-color: #b20a0a;
    color: #fff;
}

/* ===== CHIP UI BASIC TAB===== */
.chip-section {
    margin-top: 10px;
}

.chip-group {
    margin-bottom: 10px;
}

/* Container */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Chip */
.chip {
    background: #fffaf0;
    border: 1px solid rgba(255, 193, 7, 0.6);
    border-radius: 18px;
    /* padding: 6px 12px; */
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

/* Hover */
.chip:hover {
    background: #ffe082;
}

/* Selected */
.chip.active {
    background: #ffc107;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255,193,7,0.5);
}

.chip-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #5a3d00;
    margin-bottom: 8px;
}
/* Main title (outside box) */
.chip-main-title {
    font-size: 14px;
    font-weight: 700;
    color: #976802;
    margin-bottom: 6px;
}

/* Individual section boxes */
.chip-card {
    /* background: linear-gradient(135deg, #fff8e1, #ffe082); */
    border: 1px solid rgba(238, 210, 127, 0.6);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Section title */
.chip-title {
    font-size: 13px;
    font-weight: 600;
    /* color: #5a3d00; */
    color: #ffc107;
    margin-bottom: 2px;
}
.chip.active {
    background-color: #ffc107;
    color: black;
    border: 1px solid #e0a800;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background-color:  #fff;
    color: #444;

    border: 1px solid #ddd;
    border-radius: 10px;

    padding: 10px;
    font-weight: 500;
    
    cursor: pointer;
    transition: 0.2s;
}

/* Google icon */
.google-btn img {
    width: 18px;
    height: 18px;
}

/* Hover */
/* .google-btn:hover {
    background-color: #f7f7f7;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
} */

.google-btn:hover {
    border-color: #ffc107;
    background-color: #ffe082;
    box-shadow: 0 2px 6px rgba(255,193,7,0.4);
}

.section-title {
  margin-top: 15px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #5c5c5c;
  letter-spacing: 0.3px;
}

.status-bar {

    position: fixed;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    min-width: 280px;
    max-width: 520px;
    width: calc(100% - 40px);

    padding: 18px 24px;

    background: #d32f2f;

    color: #fff;

    border-radius: 14px;

    text-align: center;

    font-size: 15px;

    font-weight: 600;

    box-shadow:
        0 10px 30px rgba(0,0,0,.45);

    z-index: 99999;

    display: none;

    animation: fadeIn .25s ease;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

textarea{
    background:#181818 !important;
    color:#fff !important;
    border:1px solid #333 !important;
}

textarea:focus{
    border-color:#d4af37 !important;
    box-shadow:none !important;
}

.btn-warning{
    background:#d4af37;
    border:none;
    color:#000;
    font-weight:700;
}

.btn-warning:hover{
    background:#f0c85a;
}


/* body{
    background:#080808;
    color:#fff;
    font-family:'Inter',sans-serif;
} */

/* .app-wrapper{
    background:#080808;
} */

.app-container{
    background:#111;
    color:#fff;
    /* border-radius:20px; */
    padding:14px 10px;
}
.thumbnail-grid{
    gap:2px;
    padding:4px;
    overflow:visible;
}
.netflix-header{
    font-size:16px;
    font-weight:700;
    color:#d4af37;
    margin-bottom:15px;
}

.thumbnail-title{
    color:#d4af37;
    font-size:20px;
    font-weight:700;
    margin-bottom:12px;
}

.thumbnail-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
    gap:12px;
}

.astro-thumb{
    position:relative;
    overflow:hidden;
    cursor:pointer;
    transition:.25s;
    border:2px solid transparent;
    touch-action: manipulation;
}

.astro-thumb:hover{
    transform:scale(1.01);
    z-index:10;
}

.astro-thumb.selected{
    border:2px solid #d4af37;
    box-shadow:0 0 15px rgba(212,175,55,.7);
    transform: scale(1.01);
    z-index:20;
}

.astro-thumb img{
    width:100%;
    aspect-ratio:3/4;
    height:auto;
    object-fit:contain;
    object-position:center;
    background:#0b0b0b;
}

.thumb-label{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:8px;
    text-align:center;
    font-size:13px;
    font-weight:600;

    background:linear-gradient(
        transparent,
        rgba(0,0,0,.9)
    );
}

.question-card{
    background:#151515;
    border-radius:16px;
    padding:15px;
}
/* ==========================================
   NETFLIX STYLE QUESTION CARDS
   ========================================== */

.question-card-grid{

    display:grid;

    grid-template-columns:repeat(4,minmax(180px,1fr));

    gap:20px;

    width:100%;
}

.question-card-btn {

    display: flex;
    flex-direction: column;

    width: 100%; 
    overflow: hidden;

    background: #111;

    border: 2px solid #9a9a9a;

    border-radius: 16px;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;

    transform: scale(1);
}

.question-card-btn:hover {

    transform:
        translateY(-6px)
        scale(1.01);

    z-index: 10;
}

.question-card-btn.selected {

    transform: scale(1.0);

    border-color: #d4af37;

    box-shadow:
        0 0 22px rgba(212,175,55,.5);

    background: #111;
}

.question-card-btn:not(.selected){

    /* border-color:transparent; */
    border: 2px solid #313030;      /* Debug: unselected border */
}

.question-card-btn img{

    width:100%;

    aspect-ratio:3/4;

    object-fit:cover;


    display:block;
}

.question-card-content{

    background:#111;

    padding:14px;

    min-height:72px;

    display:flex;

    flex-direction:column;

    justify-content:center;
}

.question-card-title{

    color:#fff;

    font-size:18px;

    font-weight:700;

    margin-bottom:4px;
}

.question-card-description{

    color:#bdbdbd;

    font-size:13px;

    line-height:1.4;
}

input[type="text"], textarea, select,
.form-control{
    /* background:#1b1b1b !important; */
    border:1px solid #333 !important;
    /* color:white !important; */
    /* font-family: "Inter", sans-serif !important;
    font-size: 1rem;
    font-weight: 400; */
}

/* Placeholder inherits exactly the same font */
.form-control::placeholder {
    /* font: inherit; */
    font-family: "Inter", sans-serif !important;
    font-size: 1rem;
    font-weight: 400;
    color: #9aa0a6;      /* Optional */
    opacity: 1;          /* Prevent browser from fading/changing appearance */
}

/* Textareas */
textarea.form-control::placeholder {
    font: inherit;
}

.form-control:focus{
    /* background:#1b1b1b !important; */
    /* color:white !important; */
    border-color:#d4af37 !important;
    box-shadow:none !important;
}

.nav-tabs{
    border:none;
}

.nav-link{
    background:#1b1b1b;
    color:#aaa;
    border:none !important;
    margin-right:6px;
}

.nav-link.active{
    background:#d4af37 !important;
    color:#000 !important;
    font-weight:700;
}

.user-info{
    background:#151515;
    border-radius:12px;
    padding:15px;
}

.answer-box{
    background:#151515;
    color:#fff;
    border-radius:12px;
    padding:15px;
}



.title-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.banner-wrapper {
    position: relative;
    width: 100%;
}

.banner-image {
    display: block;
    width: 100%;
    height: auto;

    /* Prevent oversized banners on ultra-wide monitors */
    max-width: 100%;

    /* Remove gaps below image */
    vertical-align: middle;
}

.user-overlay {
    position: absolute;
    top: 12px;
    right: 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 12px;

    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);

    border-radius: 8px;
    color: white;
}

#logoutBtn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

#logoutBtn:hover {
    background-color: #ef4444;
    color: white;
}

/* Topic chips container */
.topic-chip-container {

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    width:100%;
}

.topic-chip-container::-webkit-scrollbar {
    display: none;
}

/* Individual chip */
.topic-chip {

     flex: 0 0 auto;

    background: #1b1b1b;

    color: #f0f0f0;

    border: 2px solid #666;      /* light gray when not selected */

    border-radius: 999px;

    padding: 10px 18px;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    white-space: nowrap;

    transition: all .2s ease;
}

/* Hover */
.topic-chip:hover {

    border-color: #b0b0b0;

    background: #242424;

    color: #fff;}

/* Selected */
.topic-chip.active {

    background: #1b1b1b;          /* keep dark */

    color: #fff;

    border-color: #d4af37;        /* gold */

    box-shadow:
        0 0 12px rgba(212,175,55,.45);

    font-weight: 600;
}

#topicQuestions{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:5px;

    margin-top:16px;
}

.question-thumb {

    width:100%;

    aspect-ratio:3/4;

    object-fit:cover;

    display:block;

}

.question-text {
    padding:4px;
    color:white;
    font-size:13px;
    line-height:1.35;
    text-align:left;
    /* min-height:70px; */
}
.quest-tab {

    min-width: 160px !important;
}

.quest-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    line-height: 1.1;
}

.quest-content .tab-note {

    position: static;

    transform: none;

    font-size: 9px;

    color: #ffff;   /*  #66ccff */

    margin-bottom: 2px;
}

#errorMsg {
    display: none;
}

/* ==========================================
   Quest Hero Card
========================================== */

.quest-info-card{

    display:flex;
    align-items:flex-start;
    gap:24px;
    background:#111;
    border:1px solid rgba(212,175,55,.35);
    border-radius:5px;
    padding:5px;
    margin:4px auto;
    box-shadow:0 8px 25px rgba(0,0,0,.30);
}

.quest-info-image{

    flex:0 0 auto;
    display:flex;
    justify-content:center;
    align-items:center;
}

.quest-info-image img{
    width:auto;
    height:auto;
    max-height:200px;
    border-radius:5ch;
    display:block;
}
.quest-info-divider{

    color:#d4af37;

    font-size:12px;

    margin:12px 0;
}
.quest-info-text{

    font-size:.95rem;

    line-height:1.65;

    color:#ddd;

    margin-bottom:5px;
}

.quest-info-small{

    font-size:.85rem;

    line-height:1.6;

    color:#9e9e9e;
}

/* -----------------------------
   Top Navigation
------------------------------*/

.top-navigation{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:12px;
    margin-bottom:10px;
    flex-wrap:wrap;

    border-bottom:1px solid #a8a5a5;
}


/* Navigation Links */

.nav-link{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 20px;
    text-decoration:none;
    color:#ffffff;
    font-size:15px;
    font-weight:600;

    /* background:#000;
    border:2px solid transparent;
    border-radius:2;

    transition:all .25s ease; */
}

.nav-link i{
    font-size:15px;
    /* color:inherit; */
}

.nav-link:hover{
    background-color:#000 !important;
    color:#a8a5a5 !important;
    border:1px solid #a8a5a5 !important;
}

.nav-link.active{
    background-color:#a8a5a5 !important;
    color:#000 !important;
    border:1px solid #a8a5a5 !important;
}

.nav-link.active i{
    color:#000 !important;
}
/* Optional: keyboard focus */

/* .nav-link:focus-visible{
    outline:none;
    border:1px solid #a8a5a5;
} */

/* Mobile */
.flash-banner{
    margin-top:20px;
    text-align:center;
}

.flash-banner img{
    max-width:100%;
    height:auto;
    border-radius:12px;
    animation:pulseGlow 1.8s infinite;
}

@media (max-width:768px){

    .banner-header{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
    }

    .top-navigation{
        order:2;
        width:100%;
        margin-top:12px;
        margin-bottom:12px;
    }

    .user-panel{
        order:3;
        width:100%;
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .nav-link{
        padding:10px 16px;
        font-size:14px;
    }
}

/* Birth info chart metadata card */
.saved-chart-card{
    background:#1a1a1a;
    border:1px solid rgba(255,193,7,.55);
    border-radius:18px;
    padding:18px;
    margin-bottom:16px;
    transition:.25s;
    box-shadow:
        0 3px 10px rgba(0,0,0,.35);
    width:100%;
}

.saved-chart-card:hover{
    border-color:#ffc107;
    transform:translateY(-2px);
    box-shadow:
        0 10px 30px rgba(255,193,7,.18);
}

.card-header-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.chart-name{
    color:#ffc107;
    font-weight:700;
    font-size:18px;
}

.chart-divider{
    height:1px;
    background:#333;
    margin:12px 0 14px;
}

.chart-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:8px;
    color:#ddd;
    font-size:14px;
}

.chart-row .label{
    color:#999;
    min-width:90px;
}

.chart-row i{
    color:#ffc107;
    margin-right:6px;
}

.open-btn{
    border-radius:20px;
    padding:4px 18px;
    font-weight:600;
}

.person-address{
    color:#bdbdbd;
    font-size:12px;
    margin-top:2px;
    line-height:1.2;
    word-break:break-word;
}
.person-meta{
    color:#ddd;
    font-size:12px;
    font-weight:500;
}

.person-address{
    margin-top:6px;
    color:#b8b8b8;
    font-size:13px;
    word-break:break-word;
}
.status-container{
    display:flex;
    align-items:flex-start;
    justify-content:flex-end;
    min-width:40px;
}

.status-icon{
    font-size:22px;
}

.answer-content{
    /* color:#e8e8e8; */
    /* line-height:1.75; */
    white-space:pre-wrap;
    word-break:break-word;
    font-size:15px; 
}

/* .answer-content{
    color:#e6e6e6;
    font-size:15px;
    line-height:1.8;
    word-break:break-word;
} */

.answer-content > :first-child{
    margin-top:0 !important;
}
.answer-content > :last-child{
    margin-bottom:0 !important;
}

.answer-content h1,
.answer-content h2,
.answer-content h3,
.answer-content h4{
    color:#ffc107;
    margin-top:4px;
    margin-bottom:4px;
    font-weight:700;
}

.answer-content h1{
    font-size:18px !important;
}

.answer-content h2{
    font-size:16px !important;
}

.answer-content h3{

    font-size:16px !important;

}

.answer-content p{
    margin-bottom:4px;
}

.answer-content ul,
.answer-content ol{
    padding-left:4px;
    margin-bottom:2px;

}

.answer-content li{
    margin-bottom:2px;
}

.answer-content blockquote{
    border-left:4px solid #ffc107;
    padding-left:10px;
    color:#d0d0d0;
    margin:16px 0;
}

.answer-content code{
    background:#2a2a2a;
    color:#ffd54f;
    padding:2px 6px;
    border-radius:4px;
    font-size:90%;

}

.answer-content pre{
    background:#111;
    border:1px solid #333;
    border-radius:8px;
    padding:4px;
    overflow:auto;
    margin:4px 0;

}

.answer-content table{
    width:100%;
    border-collapse:collapse;
    margin:10px 0;
}

.answer-content th,
.answer-content td{

    border:1px solid #444;

    padding:4px;

}

.answer-content th{

    background:#242424;

    color:#ffc107;

}

.answer-content a{

    color:#6ab7ff;

}

/* ANSWER CONTENT GENERATED FOR PROPER FORMATITING */
/* Compact prediction answer */
.answer-panel {
    margin-top: 4px;
    /* padding-top: 4px; */
}

.answer-content.markdown-body {
    margin: 0;
    padding: 0;
    line-height: 1.35;
    font-size: 14px;
}

/* Remove excessive Markdown element spacing */
.answer-content.markdown-body h1,
.answer-content.markdown-body h2,
.answer-content.markdown-body h3,
.answer-content.markdown-body h4,
.answer-content.markdown-body h5,
.answer-content.markdown-body h6 {
    margin-top: 2px;
    margin-bottom: 2px;
    line-height: 1.25;
}

.answer-content.markdown-body p {
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.4;
}

.answer-content.markdown-body ul,
.answer-content.markdown-body ol {
    margin-top: 2px;
    margin-bottom: 4px;
    padding-left: 2px;
}

.answer-content.markdown-body li {
    margin-top: 0;
    margin-bottom: 2px;
    line-height: 1.35;
}

.answer-content.markdown-body li > p {
    margin-bottom: 2px;
}

.answer-content.markdown-body strong {
    line-height: inherit;
}

/* Reduce spacing around horizontal rules */
.answer-content.markdown-body hr {
    margin: 2px 0;
}

/* Reduce spacing around code blocks if present */
.answer-content.markdown-body pre {
    margin: 4px 0;
}

.answer-content.markdown-body blockquote {
    margin: 4px 0;
    padding-top: 2px;
    padding-bottom: 2px;
}
/* END ANSWER FORMATTING PROPER */


.language-section{
    margin-top:18px;
}

.language-section .section-title{
    font-size:15px;
    font-weight:600;
    color:#ddd;
    margin-bottom:8px;
}

.language-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.lang-btn{
    padding:8px 16px;
    border-radius:18px;
    border:2px solid #888;
    background:#fff;
    color:#333;
    cursor:pointer;
    font-size:14px;
    transition:.2s;
}

.lang-btn:hover{
    border-color:#ffc107;
}

.lang-btn.selected{
    /* background:#ffc107;
    border-color:#ffc107; */
    background:#f18e7c;
    border-color:#f37963; 
    color:#000;
    font-weight:600;
}

/* DOB wheel picker */
.dob-wheel-picker{
    margin-top:0px;
    margin-bottom:4px;
    display:flex;
    position:relative;
    height:220px;
    overflow:hidden;
}

.wheel{
    flex:1;
    height:220px;
    overflow-y:auto;
    overflow-x:hidden;
    scroll-snap-type:y mandatory;
    -webkit-overflow-scrolling:touch;
}

.wheel-item{
    height:44px;
    line-height:44px;
    text-align:center;
    scroll-snap-align:center;
    font-size:15px;
    color:#aaa;
    user-select:none;
}

.wheel-item:hover{
    background:rgba(134, 134, 133, 0.15);
}

.wheel::-webkit-scrollbar{
    display:none;
}

.wheel-item.selected{
    color:#ce6a18;
    font-weight:bold;
    font-size:18px;
}

.wheel-highlight{
    position:absolute;
    left:0;
    right:0;
    top:88px;
    height:44px;
    border-top:2px solid gold;
    border-bottom:2px solid gold;
    pointer-events:none;
}

/* credit balance card */
.credit-badge{

    display:inline-flex;
    align-items:center;

    margin-left:12px;
    margin-right:12px;

    padding:4px 10px;

    border-radius:16px;

    background:#2b2b2b;

    border:1px solid #d4af37;

    color:#ffd54f;

    font-size:13px;

    font-weight:600;

    white-space:nowrap;

}

/* User info at header level */
.user-info-top{

    display:flex;
    align-items:center;
    gap:12px;

}

.membership-badge{

    padding:3px 10px;

    border-radius:12px;

    background:#004d40;

    color:#fff;

    font-size:12px;

    font-weight:600;

}

.credit-badge{

    padding:3px 10px;
    border-radius:12px;
    background:#1d1d1c;
    color:#ffd54f;
    font-size:12px;
    font-weight:600;

}

/* User Agreement modal popup */
/* =========================================
   Responsible Use Agreement Modal
   ========================================= */

.responsible-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.responsible-modal.show {
    display: flex;
}

.responsible-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.responsible-modal-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 650px;
    max-height: calc(100vh - 40px);

    display: flex;
    flex-direction: column;

    background: #ffffff;
    color: #222222;

    border-radius: 14px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

    overflow: hidden;

    animation: responsibleModalIn 0.2s ease-out;
}

@keyframes responsibleModalIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.responsible-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 20px 24px 14px;

    border-bottom: 1px solid #eeeeee;
}

.responsible-modal-icon {
    font-size: 22px;
}

.responsible-modal-header h2 {
    margin: 0;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.responsible-modal-body {
    padding: 18px 24px 10px;

    overflow-y: auto;
}

.responsible-intro {
    margin: 0 0 15px;

    font-size: 14px;
    line-height: 1.55;
}

.responsible-subtitle {
    margin: 0 0 8px;

    font-size: 14px;
    line-height: 1.5;
}

.responsible-list {
    margin: 0 0 16px;
    padding-left: 21px;

    font-size: 13.5px;
    line-height: 1.48;
}

.responsible-list li {
    margin-bottom: 8px;
    padding-left: 2px;
}

.responsible-disclaimer {
    margin: 12px 0 18px;
    padding: 11px 13px;

    background: #f7f7f7;
    border-left: 3px solid #999999;
    border-radius: 4px;

    font-size: 13px;
    line-height: 1.5;
}

.responsible-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 4px;
    margin-bottom: 10px;

    cursor: pointer;

    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
}

.responsible-checkbox input {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin-top: 1px;

    cursor: pointer;
}

.responsible-modal-footer {
    padding: 15px 24px 20px;

    border-top: 1px solid #eeeeee;

    display: flex;
    justify-content: flex-end;
}

.responsible-agree-button {
    min-width: 170px;

    padding: 11px 20px;

    border: none;
    border-radius: 7px;

    background: #d4d4d4;
    color: #777777;

    font-size: 14px;
    font-weight: 700;

    cursor: not-allowed;

    transition: all 0.2s ease;
}

.responsible-agree-button.enabled {
    background: #c99a2e;
    color: #ffffff;
    cursor: pointer;
}

.responsible-agree-button.enabled:hover {
    background: #b78925;
}

/* Mobile */
@media (max-width: 600px) {

    .responsible-modal {
        padding: 12px;
    }

    .responsible-modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 12px;
    }

    .responsible-modal-header {
        padding: 16px 18px 12px;
    }

    .responsible-modal-header h2 {
        font-size: 18px;
    }

    .responsible-modal-body {
        padding: 15px 18px 8px;
    }

    .responsible-list {
        font-size: 13px;
        padding-left: 19px;
    }

    .responsible-modal-footer {
        padding: 12px 18px 16px;
    }

    .responsible-agree-button {
        width: 100%;
    }
}

  /* Shared astrologi.ai footer */
  .site-footer {
    width: 100%;
    margin-top: 45px;
    padding: 28px 20px 24px;
    background: #111;
    border-top: 1px solid rgba(255, 193, 7, 0.28);
    color: #aaa;
  }

  .site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
  }

  .site-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
  }

  .site-footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .2s ease;
  }

  .site-footer-links a:hover {
    color: #ffc107;
  }

  .footer-divider {
    color: #555;
  }

  .site-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 17px;
  }

  .site-footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    border-radius: 50%;
    color: #ccc;
    background: #181818;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all .2s ease;
  }

  .site-footer-social a:hover {
    color: #111;
    background: #ffc107;
    border-color: #ffc107;
    /* background: #ffc107;
    border-color: #ffc107; */
    transform: translateY(-1px);
  }

  .site-footer-copy {
    color: #777;
    font-size: 0.78rem;
  }

  @media (max-width: 767px) {
    .site-footer {
      margin-top: 30px;
      padding: 24px 12px 20px;
    }

    .site-footer-social {
      gap: 9px;
    }

    .site-footer-social a {
      width: 35px;
      height: 35px;
      font-size: 0.95rem;
    }
  }

.social-youtube  { color: #FF0000; }
.social-instagram { color: #E4405F; }
.social-facebook { color: #1877F2; }
.social-x        { color: #000000; }
.social-tiktok   { color: #000000; }
.social-patreon  { color: #FF424D; }
.social-pinterest { color: #E60023; }