* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #3A015C;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.page {
    display: none;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.page.active {
    display: flex;
}

@media (min-width: 1024px) {
    #welcomePage .welcome-container {
        max-width: 960px;
        margin: 0 auto;
        border-radius: 20px;
        height: 90vh;
        margin-top: 5vh;
    }
}

/* ===== WELCOME PAGE ===== */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    background: radial-gradient(circle at center, #5e00a3 0%, #3A015C 100%);
    color: white;
    text-align: center;
    overflow-y: auto;
}

.welcome-header {
    animation: fadeInUp 0.8s ease-out forwards;
}

.welcome-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-header h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
}

.welcome-logo {
    width: 100px;
    height: 100px;
    margin: 20px 0 40px 0;
    color: white;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    animation: fadeInUp 0.8s ease-out 0.2s forwards, float 3s ease-in-out infinite;
    opacity: 0;
}

.welcome-logo svg {
    width: 100%;
    height: 100%;
}

.welcome-container h3 {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.welcome-btn {
    padding: 16px 45px;
    font-size: 1.1rem;
    background: white;
    color: #4B0082;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-height: 54px;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.welcome-btn:hover:not(:disabled) {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background-color: #f8f8f8;
}

.welcome-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(1);
}

/* Bot Agreement */
.bot-agreement {
    margin-top: 40px;
    padding: 0 15px;
    max-width: 320px;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: white;
    user-select: none;
}

.agreement-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
    margin: 0;
}

.agreement-checkbox input[type="checkbox"]:checked {
    background-color: white;
}

.agreement-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #4B0082;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.agreement-checkbox span {
    line-height: 1.3;
}

.agreement-link {
    color: #e8d7ff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #e8d7ff;
    transition: all 0.3s;
}

.agreement-link:hover {
    color: white;
    border-bottom-color: white;
}

/* ===== CHAT PAGE ===== */
#chatPage {
    flex-direction: column;
    background-color: white;
    max-width: 100%;
}

.chat-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, #4B0082 0%, #3d0066 100%);
    color: white;
    border-radius: 0;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    min-height: 60px;
}

.back-btn {
    position: absolute;
    left: 12px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.header-logo svg {
    width: 100%;
    height: 100%;
}

.chat-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.header-actions {
    position: absolute;
    right: 12px;
    display: flex;
    gap: 8px;
}

.theme-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Examples Section */
.examples-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.examples-title {
    font-size: 1.4rem;
    color: #5f6368;
    margin-bottom: 20px;
    font-weight: 500;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 800px;
    perspective: 1000px;
}

.example-card {
    background-color: #ffffff;
    border: 1.5px solid #4B0082;
    border-radius: 16px;
    padding: 14px;
    font-size: 1rem;
    color: #202124;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: cardFloat 4s ease-in-out infinite;
}

.example-card:nth-child(even) {
    animation-delay: 0.5s;
}

.example-card:hover {
    background-color: #f8f0ff;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(75, 0, 130, 0.2);
    border-color: #7b2cbf;
}

.example-card.switching {
    animation: cardFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes cardFade {
    0% { opacity: 1; transform: translateY(0); }
    45% { opacity: 0; transform: translateY(15px); }
    55% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.example-card:active {
    transform: scale(0.98);
}

.examples-footer {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin-top: 25px;
}

.next-examples-btn {
    background: linear-gradient(135deg, #4B0082 0%, #7b2cbf 100%);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.4);
    position: relative;
    overflow: hidden;
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(75, 0, 130, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(75, 0, 130, 0); }
    100% { box-shadow: 0 0 0 0 rgba(75, 0, 130, 0); }
}

.next-examples-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.next-examples-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.6);
}

.next-examples-btn:hover::after {
    left: 100%;
    opacity: 1;
}

.next-examples-btn svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 480px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .example-card {
        min-height: 80px;
        padding: 15px;
    }
}

/* Messages */
.messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    background-color: #ffffff;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

.message {
    display: flex;
    margin-bottom: 8px;
    animation: messageSlide 0.3s ease-out;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

.bot-message {
    justify-content: flex-start;
    align-items: flex-start;
}

.party-logo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
    padding: 0 4px;
}

.party-logo-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background-color: white;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.btn-party-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
    background-color: white;
    border-radius: 3px;
    padding: 1px;
}

.followup-btn {
    display: flex;
    align-items: center;
    text-align: left;
}

.user-message {
    justify-content: flex-end;
    align-items: flex-end;
}

.message-time {
    font-size: 0.75rem;
    color: #888888;
    margin-top: 2px;
}

.bot-message .message-time {
    margin-left: 14px;
}

.user-message .message-time {
    margin-right: 14px;
}

.message-content {
    max-width: 90%;
    padding: 10px 14px;
    border-radius: 16px;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 0.9rem;
    color: #333333;
}

.bot-message .message-content {
    color: #333333;
}

.user-message .message-content {
    color: white;
    background-color: #4B0082;
    border-radius: 16px;
    border-bottom-right-radius: 4px;
}

/* ===== MARKDOWN CONTENT STYLES ===== */
.bot-message .message-content h1,
.bot-message .message-content h2,
.bot-message .message-content h3,
.bot-message .message-content h4,
.bot-message .message-content h5,
.bot-message .message-content h6 {
    color: #4B0082;
    margin-top: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.bot-message .message-content h1 {
    font-size: 1.3em;
}

.bot-message .message-content h2 {
    font-size: 1.2em;
}

.bot-message .message-content h3 {
    font-size: 1.1em;
}

.bot-message .message-content h4,
.bot-message .message-content h5,
.bot-message .message-content h6 {
    font-size: 1em;
}

/* Paragraph Spacing */
.bot-message .message-content p {
    margin: 10px 0;
    line-height: 1.7;
    color: #333333;
}

/* Lists - Unordered */
.bot-message .message-content ul {
    list-style: none;
    margin: 12px 0;
    padding-left: 0;
}

.bot-message .message-content ul li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
    color: #333333;
}

.bot-message .message-content ul li::before {
    content: "•";
    color: #4B0082;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1em;
}

/* Lists - Ordered */
.bot-message .message-content ol {
    margin: 12px 0;
    padding-left: 25px;
}

.bot-message .message-content ol li {
    margin: 8px 0;
    padding-left: 5px;
    line-height: 1.7;
    color: #333333;
}

/* Nested Lists */
.bot-message .message-content ul ul,
.bot-message .message-content ol ul,
.bot-message .message-content ul ol,
.bot-message .message-content ol ol {
    margin: 8px 0 8px 15px;
    padding-left: 0;
}

.bot-message .message-content ul ul li,
.bot-message .message-content ol ul li,
.bot-message .message-content ul ol li,
.bot-message .message-content ol ol li {
    margin: 4px 0;
}

/* Change bullet style for nested unordered lists */
.bot-message .message-content ul ul li::before,
.bot-message .message-content ol ul li::before {
    content: "◦";
    font-size: 1.2em;
    font-weight: normal;
}

/* Code Styles */
.bot-message .message-content code {
    background-color: rgba(75, 0, 130, 0.08);
    color: #d63384;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.bot-message .message-content pre {
    background-color: #f8f8f8;
    color: #333333;
    padding: 12px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.bot-message .message-content pre code {
    background-color: transparent;
    color: #333333;
    padding: 0;
    border-radius: 0;
}

/* Bold and Italic */
.bot-message .message-content strong,
.bot-message .message-content b {
    color: #4B0082;
    font-weight: 600;
}

.bot-message .message-content em,
.bot-message .message-content i {
    color: #666666;
    font-style: italic;
}

/* Links */
.bot-message .message-content a {
    color: #4B0082;
    text-decoration: underline;
    transition: color 0.3s;
    word-break: break-word;
}

.bot-message .message-content a:hover {
    color: #3d0066;
}

/* Blockquote */
.bot-message .message-content blockquote {
    border-left: 4px solid #4B0082;
    padding: 10px 14px;
    margin: 10px 0;
    background-color: rgba(75, 0, 130, 0.05);
    line-height: 1.7;
}

.bot-message .message-content blockquote p {
    margin: 4px 0;
    color: #555555;
}

/* Horizontal Rule */
.bot-message .message-content hr {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 16px 0;
}

/* Table Styles */
.bot-message .message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    font-size: 0.9em;
}

.bot-message .message-content table th {
    background-color: rgba(75, 0, 130, 0.1);
    padding: 8px;
    text-align: left;
    border: 1px solid #dddddd;
    color: #4B0082;
    font-weight: 600;
}

.bot-message .message-content table td {
    padding: 8px;
    border: 1px solid #eeeeee;
    color: #333333;
}

.bot-message .message-content table tr:nth-child(even) {
    background-color: rgba(75, 0, 130, 0.03);
}

/* Suggestions */
.suggestions-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    margin-top: 8px;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.suggestions-container::-webkit-scrollbar {
    height: 4px;
}

.suggestions-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.suggestions-container::-webkit-scrollbar-thumb {
    background: rgba(75, 0, 130, 0.2);
    border-radius: 2px;
}

.suggestion-btn {
    background-color: rgba(75, 0, 130, 0.1);
    border: 1px solid #4B0082;
    color: #4B0082;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-height: 36px;
    font-family: inherit;
}

.suggestion-btn:hover {
    background-color: #4B0082;
    border-color: #4B0082;
    color: white;
}

.suggestion-btn:active {
    transform: scale(0.95);
}

/* Input Area */
.input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px 20px;
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    flex-shrink: 0;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.font-controls {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.input-wrapper {
    background-color: #3A015C;
    border-radius: 1.5rem;
    padding: 8px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 25px 50px -12px;
    width: 100%;
}

.input-form {
    padding: 8px;
}

.input-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: white;
    padding: 8px 0;
    font-size: 1rem;
    outline: none;
    resize: none;
    font-family: inherit;
    min-height: 40px;
    max-height: 150px;
}

.message-input::placeholder {
    color: #9ca3af;
}

.char-counter {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    cursor: default;
    white-space: nowrap;
}

.send-btn {
    background-color: #4B0082;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: rgba(75, 0, 130, 0.2) 0px 0px 0px 6px;
}

.send-btn:hover:not(:disabled) {
    background-color: #3d0066;
    transform: scale(1.05);
}

.send-btn:disabled {
    background-color: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
}

.send-btn svg {
    width: 20px;
    height: 20px;
}

/* Font Size Buttons */
.font-size-btn {
    background: none;
    border: none;
    color: #4B0082;
    cursor: pointer;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    font-weight: 600;
    padding: 0;
}

.font-size-btn:hover {
    background-color: rgba(201, 168, 227, 0.15);
    transform: scale(1.1);
}

.font-size-btn:active {
    transform: scale(0.95);
}

.font-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}
.font-letter-big {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== THEME TRANSITIONS ===== */
.chat-header,
.welcome-container {
    transition: background 0.5s ease;
}

.user-message .message-content {
    transition: background 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page {
        max-width: 100%;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-header h2 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-container {
        padding: 15px;
    }

    .welcome-header h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .welcome-header h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .welcome-logo {
        width: 60px;
        height: 60px;
        margin: 20px 0;
    }

    .welcome-container h3 {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .welcome-btn {
        padding: 11px 30px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .chat-container {
        max-width: 100%;
    }

    .chat-header {
        padding: 8px 10px;
        gap: 6px;
        border-radius: 0 !important;
    }

    .back-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        z-index: 2;
    }

    .header-logo {
        position: absolute;
        left: 50px;
        width: 30px;
        height: 30px;
        z-index: 2;
    }

    .chat-header h2 {
        font-size: 0.95rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        white-space: nowrap;
        z-index: 1;
    }

    .theme-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .messages {
        padding: 10px;
        gap: 8px;
    }

    .message {
        margin-bottom: 4px;
    }

    .message-content {
        max-width: 88%;
        padding: 9px 12px;
        border-radius: 16px;
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .input-area {
        padding: 8px 10px 14px;
        gap: 5px;
    }

    .attach-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .message-input {
        padding: 9px 12px;
        font-size: 0.85rem;
        min-height: 38px;
        border-radius: 18px;
    }

    .send-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
}

@media (max-width: 360px) {
    .welcome-header h1 {
        font-size: 1.3rem;
    }

    .welcome-header h2 {
        font-size: 1rem;
    }

    .welcome-container h3 {
        font-size: 0.9rem;
    }

    .welcome-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .message-content {
        max-width: 90%;
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .chat-header h2 {
        font-size: 0.85rem;
    }
}

/* Follow-up Buttons Slidable */
.followup-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 0 10px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch;
}

.followup-buttons::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.followup-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    color: rgb(32, 0, 41);
    border: solid #4B0082;
    border-width: 0 2px 2px 0;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.followup-btn:hover {
    color: rgb(235, 235, 235);
    border: solid #c778ff;
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.followup-btn:active {
    transform: translateY(0);
}

/* ===== FOOTER LINKS ===== */
.welcome-footer {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 300;
}

.footer-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ===== MODAL SYSTEM ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 0, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    background: linear-gradient(165deg, #ffffff 0%, #f8f0ff 100%);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #333;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(75, 0, 130, 0.08);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4B0082;
    margin: 0;
}

.modal-close {
    background: #f0e6ff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4B0082;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #4B0082;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #444;
}

.modal-body p {
    margin-bottom: 1.5rem;
}

.modal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 0.8rem;
}

.modal-body strong {
    color: #4B0082;
}

.modal-body .team-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed rgba(75, 0, 130, 0.2);
}

.modal-body .team-member {
    display: block;
    font-weight: 600;
    color: #333;
}

.modal-body .team-role {
    font-size: 0.9rem;
    color: #666;
}

.modal-body .contact-email {
    display: inline-block;
    background: #f0e6ff;
    padding: 5px 15px;
    border-radius: 10px;
    color: #4B0082;
    font-weight: 600;
    text-decoration: none;
    margin: 10px 0;
}

.modal-body .highlight-box {
    background: #fff9f0;
    border-left: 4px solid #ff9d00;
    padding: 15px 20px;
    border-radius: 0 15px 15px 0;
    margin: 20px 0;
}
