* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Verdana';
    background: #000;
    overflow-x: hidden;
    position: relative;
    color: white;
    height: 100vh;
    margin: 0;
    padding: 0;
}

#dynamicCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
}

.brand-name {
    background: linear-gradient(90deg, #ff9800 0%, #f59e0b 30%, #10b981 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    color: transparent;
    font-family: Georgia, serif;
    font-weight: bold;
}

.tax-section > h1.brand-name,
.chat-section > h1.brand-name {
    margin-bottom: 8px;
    font-size: 2.35em;
    padding-left: 8px;
    padding-right: 8px;
    font-family: Georgia, serif;
    font-weight: bold;
    text-align: center;
}

h1 {
    font-family: 'Georgia';
}

.main-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    padding: 3;
    margin: 0;
    align-items: stretch; 
    background: #000;
}

.tax-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 20px 20px;
    border-right: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden; /* prevent double scroll */
}

.tax-section .container {
    display: flex;
    flex-direction: column;
    height: 100%; 
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: white;
    overflow: hidden; /* clip inner scroll */
}

#gpt-content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  font-family: 'Verdana', sans-serif;
  line-height: 1.6;
  border-radius: 15px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-sizing: border-box;
  scroll-behavior: smooth;
}

#gpt-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    font-family: 'Verdana';
    line-height: 1.6;
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Hide scrollbars - WebKit browsers */
#gpt-content::-webkit-scrollbar,
#chatbox-messages::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Hide scrollbar - Firefox */
#gpt-content,
#chatbox-messages {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.chat-section {
    flex: 1;
    overflow: hidden;
    padding: 30px 20px 20px;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.chatbox-theme {
    display: flex;
    flex-direction: column;
    height: 100%;         
    min-height: 380px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    font-family: 'Verdana', sans-serif;
}

#chatbox-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    font-size: 1em;
}

#chatbox-form {
    display: flex;
    border-top: 1px solid rgba(59,130,246,0.1);
    padding-top: 6px;
    background: rgba(0,0,0,0.18);
}

#chatbox-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 0 0 0 16px;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1em;
}

#chatbox-form button {
    background: linear-gradient(45deg, #f59e0b, #10b981);
    color: #ffffff;
    border: none;
    padding: 0 18px;
    border-radius: 0 0 16px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

#chatbox-form button:hover {
    background: linear-gradient(45deg, #10b981, #f59e0b);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.user-message, .bot-message {
    display: block;
    clear: both;
    width: fit-content;
    max-width: 90%;
    padding: 16px 22px;
    margin: 12px 0;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.09);
    white-space: normal;
    overflow-x: auto;
    word-break: keep-all;
    overflow-wrap: normal;
    font-size: 1em;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}

.user-message {
    float: right;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.14);
    margin: 6px 0;
}

.bot-message {
    float: left;
    color: #10b981;
    background: rgba(59, 130, 246, 0.14);
    margin: 6px 0;
}

#chatbox-messages::after {
    content: '';
    display: table;
    clear: both;
}

.mouse-trail {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(59, 130, 246, 0.7);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: trailFade 0.6s ease-out forwards;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite ease-in-out;
}

@keyframes trailFade {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.8; }
}

/* For hidden chat section */
.hidden {
    display: none;
}
