* {
    -webkit-tap-highlight-color: transparent;
}
body {
    margin: 0;
    font-family: "Poppins";
    background: #181921;
    height: 100%;
    padding: 0;
    overflow: auto;
    overflow-x: hidden;
}

body.subscription-success-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.subscription-success-page #footer-container {
    margin-top: auto;
}

h1 {
    margin: 0;
    color: #a73335;
    font-family: 'Orbitron';
}
h2 {
    margin: 0;
    color: #a73335;
    font-family: 'Urbanist';
}
p {
    margin: 0;
    padding: 10px;
    color: #fff;
    line-height: 1.5;
}
span{
    color: #fff;
}
.container {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    height: calc(100vh - 160px);
    justify-content: space-between;
    margin: 0 auto 20px auto;
    overflow: visible;
    background: #181921;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.titles {
    position: relative;
    z-index: 1;
    gap: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    background: #e2e2e2;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.ticket-buttons {
    position: relative;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.titles img {
    max-width: 70px;
}

.titles span {
    color: #a73335 ;
    font-family: 'Orbitron'
}


.tagline {
    color: #a73335;
    font-family: 'Orbitron';
}

#startup-overlay {
    position: fixed;
    inset: 0;
    background: #181921;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
}

/* APPLY ONLY WHEN PLAYING ANIMATION */
#startup-overlay.play {
    animation: overlayFadeOut 1s ease forwards;
    animation-delay: 1s;
}

/* SKIP CLASS */
#startup-overlay.skip {
    opacity: 0 !important;
    display: none !important;
}

/* Logo animation — apply ONLY if parent has .play */
#startup-overlay.play .startup-logo {
    animation: startupPulse 1s ease-out forwards;
}

@keyframes startupPulse {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    40% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes overlayFadeOut {
    0% {
        opacity: 1;
        pointer-events: all;
    }
    100% {
        opacity: 0;
        pointer-events: none;
    }
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-logo {
    height: 50px; 
    width: auto;
    transform: scale(3.5);
    transform-origin: left center;
    cursor: pointer;
}


.nav-title h1 {
    font-family: 'Orbitron';
    font-size: 1.5rem;
    margin: 0;
    color: #a73335;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-icon-btn {
    background: white;
    color: #a73335;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 55px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.nav-icon-btn .nav-icon {
    width: 30px;
    height: 30px;
    display: block;
    flex-shrink: 0;

    background-color: currentColor;

    color: #a73335; /* Fallback color if mask fails */

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}


.nav-icon-home {
    -webkit-mask-image: url("/assets/App_Home_Page.svg");
    mask-image: url("/assets/App_Home_Page.svg");
}

.nav-icon-ai {
    -webkit-mask-image: url("/assets/App_AI_Page.svg");
    mask-image: url("/assets/App_AI_Page.svg");
}

.nav-icon-support {
    -webkit-mask-image: url("/assets/Support_Tickets.svg");
    mask-image: url("/assets/Support_Tickets.svg");
}

.nav-icon-services {
    -webkit-mask-image: url("/assets/SOM_Solutions_Icon_V3.svg");
    mask-image: url("/assets/SOM_Solutions_Icon_V3.svg");
}

.nav-icon-admin {
    -webkit-mask-image: url("/assets/Admin_Page.svg");
    mask-image: url("/assets/Admin_Page.svg");
}

.nav-icon-btn .nav-label {
    opacity: 1;
    max-width:100px;
    height:  auto;
    padding-top: 0;
    overflow: hidden;
    white-space: nowrap;
    /*transition: opacity 0.25s ease, max-width 0.25s ease, height 0.25s ease;*/
    color: #a73335;
    font-size: 0.9rem;
}

.nav-icon-btn:hover .nav-label {
    opacity: 1;
    max-width: 100px;
    height: auto;
    color: white;
}

.nav-icon-btn:hover {
    background: #c04142;
    color: white;
    transform: translateY(-2px);
}
.nav-icon-btn:hover .nav-icon {
    width: 20px;
    height: 20px;
    color: white;
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right button {
    background-color: #a73335;
    color: white;
    border-radius: 24px;
    padding: 8px 16px;
}

.nav-icon-btn .nav-icon {
    width: 20px;
    height: 20px;
}


.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    min-height: calc(100% - 160px);
}
.empty-chat {
    text-align: center;
    margin: auto;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
}

.empty-chat.hidden {
    display: none;
}
.center-section-logo {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    padding: 12px 0;
    max-height: 120px;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background-color: #e2e2e2;
}



.center-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center;*/
    min-height: calc(100vh - 150px);
    height: auto;
    text-align: center;
    gap: 30px;
    padding-top: 10px;
}

.app-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    cursor: pointer;
}

.logo {
    height: 80px;           
    max-width: 90vw;
}

.welcome-message {
    background: #232530;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.welcome-message h2 {
    margin-bottom: 10px;
}

.welcome-message h3,
.welcome-message h4 {
    margin: 0;
    font-family: "Urbanist";
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.welcome-message h3 {
    margin-top: 4px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #d7dde8;
}

.welcome-message h4 {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #c04142;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.welcome-message h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #a73335;
}

.welcome-section {
    margin: 28px auto;
    padding: 12px 28px 22px;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.welcome-section p {
    margin: 0;
    line-height: 1.7;
    color: #ccc;
}

.welcome-section p:last-child {
    margin-bottom: 0;
}

.message {
    margin-bottom: 20px;
    max-width: 85%;
    word-wrap: break-word;
}
.user-message {
    align-self: flex-end;
    background-color: #a73335;
    color: white;
    border-radius: 18px 18px 0 18px;
    padding: 12px 16px;
}

.bot-message {
    align-self: flex-start;
    background-color: #232530;
    color: white;
    border-radius: 18px 18px 18px 0;
    padding: 12px 16px;
}

.message-text {
    margin: 0;
    padding: 0;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    text-align: right;
}

.bot-message a {
    color: #60a5fa;
    text-decoration: none;
}

.bot-message a:hover {
    text-decoration: underline;
}

.sources {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sources h3 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.sources ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.sources li {
    margin-bottom: 5px;
}


.chat-input-form {
    display: flex;
    padding: 15px;
    bottom: 0;
    flex-shrink: 0;
    /*background-color: #232530;*/
    z-index: 1000;
    /*border-top: 1px solid rgba(255, 255, 255, 0.1);*/
    flex-shrink: 0;   
    position: relative;
}

#questionInput {
    background: #2f3243;
    color: white;
    border: 0;
    padding: 12px 15px;
    border-radius: 24px;
    flex: 1;
    margin: 0 10px 0 0;
    font-size: 16px;
    resize: none;
    min-height: 48px;
    max-height: 150px;
    overflow-y: auto;
}

#submitButton {
    flex-shrink: 0; 
    height: 48px; 
    align-self: flex-end; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px; 
}

#questionInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#questionInput:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(167, 51, 53, 0.5);
}


button {
    background-color: #a73335;
    color: white;
    border-radius: 24px;
    border: 0;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 16px;
}

#signUpBtn {
    background-color: white;
    color: #a73335;
}

#forgotBtn,
#resendVerifyBtn {
    background-color: transparent;
    color: #a73335;
    padding: 0;
    font-size: 0.9rem;
}

.ticket-text {
    border: 1;
    padding: 12px 15px;
    border-radius: 24px;
    flex: 1;
    margin: 0 10px 0 0;
    font-size: 16px;
    resize: none;
    min-height: 48px;
    max-height: 150px;
    overflow-y: auto;
}

.hidden-btn {
    display: none !important;
}

button:hover {
    background-color: #c04142;
    transform: translateY(-2px);
}


button:active {
    transform: translateY(0);
}

#toggleContainer {
    position: sticky;
    top: 0;
    padding: 10px 15px;
    display: flex;
    background: #181921;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#toggleContainer > p {
    position: absolute;
    left: 15px;
    top: 50%;
    margin: 0;
    color: #a73335;
    font-family: 'Orbitron';
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    white-space: nowrap;
    pointer-events: none;
}

#toggleContainer > #tokenDisplay {
    position: absolute;
    left: 135px; 
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    pointer-events: none;
}

#toggleContainer > button {
    flex: 0 0 auto;
}

.toggle-button {
    background-color: #323548;
    color: white;
    font-size: 14px;
}

.toggle-button:hover {
    background-color: #424868;
}

.admin-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#adminPage {
    background-color: #323548;
}

#adminPage:hover {
    background-color: #424868;
}

.thinking {
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.logo-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

.thinking-logo {
    width: 40px;
    height: 60px;
    animation: pulseOnly 3s ease-in-out infinite;
    overflow: visible;
}

#leftRight-circle,
#topBottom-circle {
    transform-origin: 50% 50%;
    transform-box: fill-box;
    animation: spinPulseRest 3s ease-in-out infinite;
}

/*
.startup-svg .orbit {
transform-box: view-box;
    transform-origin: 55px 67.5px; 
    /*animation: orbit 2.6s linear infinite; 
    will-change: transform;
    overflow: visible;
}

#leftRight-circle2 path,
#topBottom-circle2 path {
    transform-origin: center;
    transform-box: view-box;
    animation: snakeOrbit 2.4s linear infinite;
    will-change: transform;
}


.startup-svg #leftRight-circle2 .seg-a { animation-delay: 0s; }
.startup-svg #leftRight-circle2 .seg-b { animation-delay: -1.3s; } 

.startup-svg #topBottom-circle2 .seg-a { animation-delay: -0.65s; }
.startup-svg #topBottom-circle2 .seg-b { animation-delay: -1.95s; }

#topBottom-circle2 {
    animation-delay: -0.65s; 
}


#leftRight-circle2,
#topBottom-circle2 { animation-timing-function: linear; }

@keyframes snakeOrbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
*/



@keyframes orbitPulse {
    0%   { transform: rotate(0deg)   scale(1);   opacity: 1; }
    35%  { transform: rotate(220deg) scale(1.08); opacity: 0.85; }
    60%  { transform: rotate(360deg) scale(1);   opacity: 1; }
    100% { transform: rotate(360deg) scale(1);   opacity: 1; }
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes pulseOnly {
    0%{
        opacity: 1;
        transform: scale(1);
    }
    30% {
        opacity: 0.8;
        transform: scale(1.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    80%, 100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Spin + pulse + rest (for circle groups only) */
@keyframes spinPulseRest {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    
    30% {
        transform: rotate(360deg) scale(1.2);
        opacity: 0.8;
    }
    
    50% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
    80%, 100% {
        transform: rotate(360deg) scale(1);
        opacity: 1; /* rest phase */
    }
}


#loginContainer, .loginContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px auto 0 auto; 
    padding: 32px 32px 24px 32px;
    background: #232530;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    max-width: 350px;
    min-width: 260px;
    gap: 14px;
}

.loginContainer input {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: none;
    background: #2f3243;
    color: #fff;
    font-size: 16px;
}

.loginContainer input::placeholder {
    color: #aaa;
}

.loginContainer input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 4px;
    background-color: transparent;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loginContainer input[type="checkbox"]:checked {
    background-color: #a73335; /* SOM red */
    border-color: #a73335;
}

.loginContainer input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #fff;
    font-size: 12px;
}

.loginContainer label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;             
    margin-top: 10px;
    cursor: pointer;
}

.loginContainer label p {
    color: #fff;
    font-size: 0.95rem;
    padding: 0;
    margin: 0;
}

.login-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.login-buttons button {
    flex: 1 1 auto;
    min-width: 120px;
}


.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.custom-table th, .custom-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: center;
}
.custom-table th {
    background-color: #222;
    color: #fff;
}
.custom-table td {
    background-color: #111;
    color: #eee;
}

.user-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #a73335;          /* SOM red */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 1001;
}

.user-avatar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;   
}

.user-avatar:hover {
    background-color: #c04142;
    transform: scale(1.05);
}

/* --- Dropdown panel --- */
.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: #232530;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    min-width: 220px;
    padding: 12px 16px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-dropdown.show-dropdown {
    display: block;
}

.user-avatar:hover .user-dropdown,
.user-avatar .user-dropdown:hover  {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s; 
}

/* --- Dropdown text & link --- */
.user-dropdown p {
    color: #fff;
    font-size: 0.85rem;
    margin: 0 0 10px 0;
    word-break: break-all;
}

.user-dropdown a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    text-decoration: underline;
}

.dropdown-signout-btn {
    background-color: #a73335;
    color: white;
    border: none;
    width: 100%;
    padding: 8px 14px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}


.dropdown-signout-btn:hover {
    background-color: #c04142;
}


.dropdown-signout-btn:active {
    transform: scale(0.97);
}

/* --- Personalization Card --- */
.personalization {
    width: min(1100px, 92vw);
    background: #232530;
    border-radius: 8px;
    padding: 18px 18px 16px 18px;
    box-sizing: border-box;
    text-align: left;
}

.personalization--bar {
    width: 100%;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 0 10px 0;
    background: #232530;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.personalization h2 {
    text-align: center;
    margin-bottom: 14px;
}

/* Use a grid so fields don't run in one long row */
.personalization-form {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px 14px;
    align-items: end;
}

/* Each field becomes a "stack" (label above control) */
.personalization-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Default: two columns on desktop */
.personalization-form .col-6 { grid-column: span 6; }
.personalization-form .col-4 { grid-column: span 4; }
.personalization-form .col-8 { grid-column: span 8; }
.personalization-form .col-12 { grid-column: span 12; }

/* Labels */
.personalization-form label {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.required {
    margin: 0;
    padding: 2px 8px !important;
    min-height: auto !important;

    display: inline-flex;
    align-items: center;

    background: rgba(167, 51, 53, 0.14);
    border: 1px solid rgba(167, 51, 53, 0.45);
    border-radius: 999px;

    color: #ffb3b5 !important;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Inputs + Selects (match your chat input feel) */
.personalization-form input[type="text"],
.personalization-form select {
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #2f3243;
    color: #fff;
    padding: 0 12px;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
}

.personalization-form input::placeholder {
    color: rgba(255,255,255,0.45);
}

.personalization-form input:focus,
.personalization-form select:focus {
    border-color: rgba(167, 51, 53, 0.55);
    box-shadow: 0 0 0 2px rgba(167, 51, 53, 0.25);
}

/* Make dropdown arrow look consistent */
.personalization-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%),
        linear-gradient(135deg, rgba(255,255,255,0.6) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

/* "Other" inputs should align nicely when shown */
.personalization-form .other-input {
    margin-top: 8px;
}

.setup-sheet #personalization .personalization-form {
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
}


.setup-sheet #personalization .personalization-form .field.col-6 {
    grid-column: span 4;
}


.setup-sheet #personalization .personalization-form .field.col-6:last-of-type {
    position: relative;
}


.setup-sheet #savePersonalizationBtn {
    grid-column: span 4;
    justify-self: stretch;
    width: 100%;
    height: 42px;
    border-radius: 24px;
    margin-top: 0;
}

.setup-sheet #personalization .personalization-form .field.col-6:last-of-type #savePersonalizationBtn {
    margin-top: 12px;
}

/* Save button aligned to the right, full-width on mobile */
#savePersonalization {
    height: 42px;
    border-radius: 24px;
    justify-self: end;
    grid-column: 9 / -1; /* right side on desktop */
}

/* Optional: tighten the Feedback button spacing to feel intentional */
#reportButton {
    margin-top: 8px;
}

.composer {
    position: relative;
}

/* Small tag/pill above input */
.setup-pill {
    background: #a73335 !important; /* match SOM red like your screenshot */
    border: 0 !important;
    border-radius: 999px !important;
    width: fit-content !important;
    margin: 10px 0 0 !important;
    padding: 10px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    transform: none !important; /* cancel button:hover transform */
}

.setup-pill__chev {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Backdrop */
.setup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 4000;
}

/* Bottom sheet */
.setup-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 4100;
    background: #232530;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -16px 40px rgba(0,0,0,0.45);

    max-height: 75vh;
    overflow: hidden;

    transform: translateY(105%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
}

/* Open state */
.setup-sheet.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.setup-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.setup-sheet__header span {
    color: #a73335;
    font-family: 'Urbanist';
    font-weight: 600;
    font-size: 1.1rem;
}

.setup-sheet__close {
    background: #a73335 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    font-size: 22px !important;
    line-height: 1 !important;
    transform: none !important;
}

.setup-sheet__body {
    padding: 14px 16px 18px 16px;
    overflow: auto;
    max-height: calc(75vh - 58px);
}

/* Inside the sheet: you already have a "Your setup" title, hide it since the sheet header handles it */
.setup-sheet #existingPersonalization h2 {
    display: none;
}

/* Tighten personalization card inside sheet */
.setup-sheet .personalization {
    width: 100%;
    padding: 0;
    background: transparent;
}

.field-label {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.personalization-form .field p {
    padding: 8px 12px;
    background: #2f3243;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 42px;

    display: flex;
    align-items: center;
}

#ticketContainer {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #232530;
    border: 1px solid rgba(255,255,255,0.10);
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 10px;

    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;

  /* prevent long strings pushing container */
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Conversation cards */
.ticketCard {
    background: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px 14px;
    padding-top: 12px;
    box-sizing: border-box;
    color: #111010;

    display: flex;
    flex-direction: column;
    gap: 8px;

    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Header/meta line  */
.ticketMeta {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ticketMeta .ticketDate {
    margin-left: auto;
}

.ticketMeta span {
    color: #111010;
    padding: 0; 
}

.staffLabel {
    display: inline-flex;        
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;

    color: rgba(17, 16, 16, 0.55);           
}

/* Message content */
.ticketMessage {
    color: #111010;
    line-height: 1.45;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
    white-space: pre-wrap; /* keeps line breaks from comments */
}

.convo-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
}

.convo-left,
.convo-right {
    align-items: center;
}

.convo-left {
    display: flex;
}

.convo-right {
    margin-left: auto;   
    display: flex;
}

.convo-subject {
    font-size: 20px;          
    font-weight: 600;
    color: #ffffff;           
    text-align: center;

    flex: 1;                  
    min-width: 0;             
    
    white-space: nowrap;      
    overflow: hidden;
    text-overflow: ellipsis;  
}

.app-navigation {
    width: min(1100px, 92vw);
    margin: 18px auto 0 auto;
    padding: 0;
    box-shadow: none;
    gap: 14px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.app-navigation-whatsapp {
    width: min(1100px, 92vw);
    margin: 18px auto 0 auto;
    padding: 0;
    box-shadow: none;
    gap: 14px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.app-icon-btn {
    background: #232530; 
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;

    padding: 18px 18px;
    min-height: 90px;

    display: flex;
    flex-direction: row;     
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    cursor: pointer;
    transition: none !important;
    transform: none !important;
    color: #ffffff;
}



.app-icon-btn .app-icon {
    width: 34px;
    height: 34px;
    display: block;
    flex: 0 0 auto;

    background-color: #a73335;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.app-icon-createTicket {
    -webkit-mask-image: url("/assets/Create_Support_Ticket.svg");
    mask-image: url("/assets/Create_Support_Ticket.svg");
}


.app-icon-btn .app-icon-whatsapp {
    height: 34px;
    flex: 0 0 auto;
}

.app-icon-btn .app-label {
    max-width: none !important;
    height: auto !important;
    overflow: visible !important;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
}

.app-icon-btn:hover,
.app-icon-btn:active,
.app-icon-btn:focus {
    background: #232530 !important;
    color: #ffffff !important;
    transform: none !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    border-color: rgba(167, 51, 53, 0.35);
}

.app-icon-btn:focus-visible {
    outline: 2px solid rgba(167, 51, 53, 0.65);
    outline-offset: 3px;
}

/* -----------Policy Checks------*/
.policy-check {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
    text-align: left;
}

.policy-check input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
}

.policy-check span {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
}

.policy-check a {
    color: #a73335;
    text-decoration: none;
    font-weight: 500;
}

.policy-check a:hover {
    color: #c04142;
    text-decoration: underline;
}

/* -----------Footer------------*/
#footer-container {
    width: 100%;
    background: #ffffff;
    margin-top: 16px;
    padding: 24px 20px 28px;
    box-sizing: border-box;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.08);
}

#footerInner {
    position: relative;
    min-height: 150px;
    width: 100%;
}

.footer-contact {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.footer-contact h3 {
    margin: 0 0 4px 0;
    font-family: "Urbanist";
    font-size: 1rem;
    font-weight: 700;
    color: #a73335;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-label {
    font-family: "Urbanist";
    font-size: 0.9rem;
    font-weight: 600;
    color: #a73335;
}

.footer-contact a {
    color: #111;
    text-decoration: none;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.footer-contact a:hover {
    color: #c04142;
    text-decoration: underline;
}

#footerContent {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-align: center;
}

#footerContent label {
    margin: 0;
    padding: 0;
    display: block;
}

#footerContent p {
    margin: 0;
    padding: 0;
}

#footerContent a {
    display: block;
    color: #a73335;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

#footerContent a:hover {
    color: #c04142;
    text-decoration: underline;
}

.footer-spacer {
    display: none;
}

#signInButton {
    display: block;
    margin: 0 auto;
}

.status{
    padding-bottom: 12px;
}


/* adjust for mobile */
@media (max-width: 768px) {
    
    .container {
        width: 95%;
        border-radius: 0;
    }
    
    .logo {
        height: 60px;
    }
    
    .message {
        max-width: 90%;
    }

    .video-responsive {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; 
        height: 0;
        overflow: hidden;
    }
    
    .video-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .video-title {
        font-size: 20px;
        font-weight: bold;
        color: #fff;
        margin-bottom: 10px;
    }

    .loginContainer {
        max-width: 95vw;
        min-width: unset;
        padding: 18px 8px;
    }

    .login-buttons {
        flex-direction: column;
        gap: 10px;
    }

    #questionInput {
        font-size: 14px;
        padding: 10px 12px;
    }

    .chat-input-form {
        padding: 0px;
    }

    .signout-wrapper {
        margin-top: 6px;
        padding: 10px 10px 0 10px;
    }


    .code-block {
        background: #1e1e1e;
        color: #f8f8f2;
        padding: 10px;
        border-radius: 8px;
        font-family: monospace;
        overflow-x: auto;
        font-size: 0.9rem;
    }

    .nav-logo {
        height: 40px;
        transform: scale(1.3);
        transform-origin: left center;
        margin-right: 6px;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 10px;
        gap: 6px;
    }

    .nav-left { flex: 0 0 auto; }
    .nav-right { flex: 0 0 auto;
        order: 2;
        margin-left: auto; }
    .nav-links{
        order: 3;
        flex: 1 1 100%;
        display: flex;
        width: 100%;
        justify-content: space-evenly;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap;      
        min-width: 0;
        overflow-x: auto;
        padding-top: 0;
        scrollbar-width: none;          
    }


    .nav-icon-btn {
        height: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 6px !important;
        width: 72px;
        min-width: 0;
        gap: 4px !important;
        overflow: visible !important;
        border-radius: 14px;
    }

    .nav-icon-btn .nav-icon{
        width: 18px !important;
        height: 18px !important;
    }

    .nav-icon-btn .nav-label {
        font-size: 0.62rem !important;
        line-height: 1.05;
        opacity: 1 !important;
        height: auto !important;
        max-width: none !important;
        display: block !important;
        padding-top: 3px !important;
        color: #a73335 !important;
        white-space: nowrap;
        text-align: center;
    }

    .nav-icon-btn:active {
        background: #c04142 !important;
        color: white !important;
        transform: translateY(-2px) !important;
    }

    .nav-icon-btn:active .nav-label {
        color: white !important;   /* FIXED */
    }

    .nav-icon-btn:hover {
        transform: none !important;
    }

    .nav-right button {
        padding: 6px 10px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .personalization-form {
        grid-template-columns: 1fr;
    }
    .personalization-form .col-4,
    .personalization-form .col-6,
    .personalization-form .col-8,
    .personalization-form .col-12 {
        grid-column: auto;
    }
    #savePersonalization {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
        margin-top: 6px;
    }

    #ticketContainer {
    padding: 12px;
    max-height: 65vh;
    }

    .ticketButtons {
        gap: 10px;
    }

    .ticketButtons button {
        padding: 10px 14px;
        font-size: 15px;
    }

    .convo-buttons {
        padding: 10px 15px;
        flex-wrap: nowrap;          
    }

    .convo-left,
    .convo-right {
        display: flex;
        align-items: center;
    }

    .convo-right {
        margin-left: auto;         
    }

    .convo-buttons button {
        padding: 8px 14px;
        font-size: 14px;
        white-space: nowrap;       
    }

    .convo-subject {
        font-size: 16px;
    }

    .app-navigation {
        grid-template-columns: 1fr;
    }

    .app-icon-btn {
        min-height: 76px;
    }

    .app-icon-btn .app-label {
        font-size: 1rem;
    }

    #toggleContainer {
        position: sticky;
        top: 0;
        padding: 10px 12px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        box-sizing: border-box;
    }

    #toggleContainer > p {
        position: static;
        left: 12px;
        top: 50%;
        transform: none;
        margin: 0;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    #toggleContainer > #tokenDisplay {
        position: static;
        margin-left: 6px; 
        top: 50%;
        transform: none;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    #toggleContainer > button {
        margin-left: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    #footerInner {
        position: static;
        min-height: unset;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .footer-contact {
        position: static;
        order: 1;
    }

    #footer-container {
        padding: 20px 16px 24px;
        margin-top: 12px;
    }

    #footerContent {
        position: static;
        transform: none;
        order: 2;
        align-items: center;
        text-align: center;
    }

    .footer-spacer {
        display: none;
    }

    .policy-check {
        align-items: flex-start;
    }

    .policy-check span {
        font-size: 0.9rem;
    }
    
    .setup-pill {
        margin: 10px 0 8px 0 !important;
    }

}