/* ======================================================================= */
/* KOODI AI STYLES - aikoodi.css */
/* Яскравий Koodi стиль з тінями та кольорами */
/* ======================================================================= */

/* ======================================================================= */
/* COLOR HELPERS */
/* ======================================================================= */

.color-pink { color: var(--pink); }
.color-lime { color: var(--lime); }
.color-blue { color: var(--blue); }
.color-orange { color: var(--orange); }

/* ======================================================================= */
/* MAIN LAYOUT */
/* ======================================================================= */

.ai-main {
    padding-top: 40px;
    padding-bottom: 60px;
    min-height: 100vh;
    background-color: var(--bg);
}

.ai-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* ======================================================================= */
/* AI HERO SECTION */
/* ======================================================================= */

.ai-hero {
    border-radius: 25px;
    padding: 35px 45px;
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
    transition: all 0.2s ease;
}

.ai-hero:hover {
    box-shadow: 10px 10px 0px var(--black);
    transform: translate(-2px, -2px);
}

.ai-hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ai-mascot {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.ai-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 0px var(--black));
}

.ai-hero-text {
    flex-grow: 1;
}

.ai-title {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--black);
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5);
}

.ai-subtitle {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.ai-usage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--black);
    color: var(--lime);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95em;
}

.ai-usage-badge i {
    color: var(--orange);
}

/* ======================================================================= */
/* CHAT LAYOUT */
/* ======================================================================= */

.ai-chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

/* ======================================================================= */
/* SIDEBAR - Quick Questions */
/* ======================================================================= */

.ai-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-title {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--black);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: var(--orange);
}

.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 600;
    text-align: left;
    color: var(--black);
}

.question-card:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

.question-card:active {
    box-shadow: 3px 3px 0px var(--black);
    transform: translate(2px, 2px);
}

/* Question Card Colors */
.question-card.pink {
    background: var(--pink);
    color: var(--white);
}

.question-card.pink .question-icon {
    background: var(--white);
    color: var(--pink);
}

.question-card.orange {
    background: var(--orange);
}

.question-card.orange .question-icon {
    background: var(--white);
    color: var(--orange);
}

.question-card.lime {
    background: var(--lime);
}

.question-card.lime .question-icon {
    background: var(--white);
    color: var(--black);
}

.question-card.blue {
    background: var(--blue);
    color: var(--white);
}

.question-card.blue .question-icon {
    background: var(--white);
    color: var(--blue);
}

.question-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    flex-shrink: 0;
    border: 2px solid var(--black);
}

/* ======================================================================= */
/* MAIN CHAT AREA */
/* ======================================================================= */

.ai-chat-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-container {
    background: var(--white);
    border-radius: 25px;
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 3px solid var(--black);
    background: var(--lime);
    border-radius: 22px 22px 0 0;
}

.chat-header-title {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chat header actions group */
.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* History badge */
.chat-history-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    color: var(--black);
    padding: 8px 14px;
    border-radius: 10px;
    border: 2px solid var(--black);
    font-size: 0.8em;
    font-weight: 700;
    white-space: nowrap;
}

.chat-history-badge i {
    color: var(--orange);
    font-size: 0.95em;
}

.chat-history-badge.premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--black);
}

.chat-history-badge.premium i {
    color: var(--black);
}

/* History panel toggle button */
.history-panel-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 3px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-size: 0.95em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px var(--black);
}

.history-panel-toggle:hover {
    background: var(--orange);
    color: var(--white);
    box-shadow: 4px 4px 0px var(--black);
    transform: translate(-1px, -1px);
}

.history-panel-toggle:active {
    box-shadow: 1px 1px 0px var(--black);
    transform: translate(2px, 2px);
}

.history-panel-toggle.active {
    background: var(--orange);
    color: var(--white);
}

/* ======================================================================= */
/* CHAT HISTORY PANEL */
/* ======================================================================= */

.chat-history-panel {
    display: none;
    flex-direction: column;
    border-bottom: 3px solid var(--black);
    background: #FAFAFA;
    max-height: 280px;
    overflow: hidden;
}

.chat-history-panel.open {
    display: flex;
}

.history-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--white);
    border-bottom: 2px solid #eee;
    font-weight: 700;
    font-size: 0.9em;
    color: var(--black);
}

.history-panel-header span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-panel-header i {
    color: var(--orange);
}

.new-chat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 2px solid var(--black);
    background: var(--lime);
    color: var(--black);
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px var(--black);
    font-family: inherit;
}

.new-chat-btn:hover {
    box-shadow: 3px 3px 0px var(--black);
    transform: translate(-1px, -1px);
}

.new-chat-btn:active {
    box-shadow: 1px 1px 0px var(--black);
    transform: translate(1px, 1px);
}

.history-sessions-list {
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-sessions-list::-webkit-scrollbar {
    width: 6px;
}

.history-sessions-list::-webkit-scrollbar-thumb {
    background: var(--lime);
    border-radius: 3px;
}

/* Individual session item */
.history-session-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-session-item:hover {
    border-color: var(--lime);
    background: #F5F9E8;
    transform: translateX(4px);
}

.history-session-item.active {
    border-color: var(--black);
    background: var(--lime);
    box-shadow: 3px 3px 0px var(--black);
}

.session-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--lime);
    border: 2px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85em;
}

.history-session-item.active .session-icon {
    background: var(--white);
}

.session-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.session-preview {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-meta {
    font-size: 0.75em;
    color: var(--darkgray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-date {
    font-weight: 600;
}

.session-count {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Session delete button */
.session-delete-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: transparent;
    color: var(--darkgray);
    font-size: 0.75em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    opacity: 0;
}

.history-session-item:hover .session-delete-btn {
    opacity: 1;
}

.session-delete-btn:hover {
    background: var(--pink);
    color: var(--white);
    border-color: var(--black);
    transform: scale(1.1);
}

/* ======================================================================= */
/* CONFIRM MODAL (custom replacement for alert/confirm) */
/* ======================================================================= */

.kudik-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.kudik-confirm-overlay.visible {
    opacity: 1;
}

.kudik-confirm-box {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 20px;
    padding: 30px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 6px 6px 0px var(--black);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.kudik-confirm-overlay.visible .kudik-confirm-box {
    transform: scale(1);
}

.kudik-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--pink);
    border: 3px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3em;
    color: var(--white);
}

.kudik-confirm-title {
    margin: 0 0 8px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--black);
}

.kudik-confirm-message {
    margin: 0 0 24px;
    font-size: 0.9em;
    color: var(--darkgray);
    font-weight: 500;
    line-height: 1.5;
}

.kudik-confirm-buttons {
    display: flex;
    gap: 10px;
}

.kudik-confirm-cancel {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 3px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px var(--black);
    font-family: inherit;
}

.kudik-confirm-cancel:hover {
    background: #f0f0f0;
    box-shadow: 4px 4px 0px var(--black);
    transform: translate(-1px, -1px);
}

.kudik-confirm-cancel:active {
    box-shadow: 1px 1px 0px var(--black);
    transform: translate(2px, 2px);
}

.kudik-confirm-delete {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 3px solid var(--black);
    background: var(--pink);
    color: var(--white);
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px var(--black);
    font-family: inherit;
}

.kudik-confirm-delete:hover {
    box-shadow: 4px 4px 0px var(--black);
    transform: translate(-1px, -1px);
}

.kudik-confirm-delete:active {
    box-shadow: 1px 1px 0px var(--black);
    transform: translate(2px, 2px);
}

/* Empty history state */
.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px;
    color: var(--darkgray);
    text-align: center;
}

.history-empty i {
    font-size: 2em;
    color: var(--lime);
}

.history-empty p {
    margin: 0;
    font-size: 0.9em;
    font-weight: 600;
}

/* Clear history button */
.clear-history-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 3px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px var(--black);
}

.clear-history-btn:hover {
    background: var(--pink);
    color: var(--white);
    box-shadow: 4px 4px 0px var(--black);
    transform: translate(-1px, -1px);
}

.clear-history-btn:active {
    box-shadow: 1px 1px 0px var(--black);
    transform: translate(2px, 2px);
}

.fullscreen-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 3px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px var(--black);
}

.fullscreen-btn:hover {
    box-shadow: 4px 4px 0px var(--black);
    transform: translate(-1px, -1px);
}

.fullscreen-btn:active {
    box-shadow: 1px 1px 0px var(--black);
    transform: translate(2px, 2px);
}

/* History divider between old and new messages */
.chat-history-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    color: var(--darkgray);
    font-size: 0.8em;
    font-weight: 600;
}

.chat-history-divider::before,
.chat-history-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--darkgray);
    opacity: 0.3;
    border-radius: 1px;
}

.chat-history-divider i {
    color: var(--orange);
}

/* History loading state */
.chat-history-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    color: var(--darkgray);
    font-size: 0.9em;
    font-weight: 600;
}

.chat-history-loading i {
    animation: spin 1s linear infinite;
    color: var(--lime);
}

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

.chat-messages {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
}

/* ======================================================================= */
/* FULLSCREEN MODE */
/* ======================================================================= */

.ai-chat-layout.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    grid-template-columns: none;
}

.ai-chat-layout.fullscreen .ai-sidebar {
    display: none;
}

.ai-chat-layout.fullscreen .ai-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ai-chat-layout.fullscreen .chat-container {
    flex: 1;
    min-height: 0;
    box-shadow: 5px 5px 0px var(--black);
}

.ai-chat-layout.fullscreen .chat-messages {
    max-height: none;
    flex: 1;
}

.ai-chat-layout.fullscreen .chat-header {
    background: var(--lime);
}

.ai-chat-layout.fullscreen .fullscreen-btn {
    background: var(--pink);
    color: var(--white);
}

/* Empty state */
.chat-messages:empty::before {
    content: "Привіт! Я Koodi AI - твій помічник у вивченні програмування. Напиши мені питання або обери з популярних зліва!";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--darkgray);
    font-size: 1.1em;
    padding: 40px;
    line-height: 1.6;
}

/* Chat Messages Styles */
.chat-messages .message {
    display: flex;
    gap: 15px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease;
}

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

.chat-messages .message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-messages .message.bot {
    align-self: flex-start;
}

.chat-messages .message .avatar {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid var(--black);
    box-shadow: 3px 3px 0px var(--black);
    font-size: 1.1em;
}

.chat-messages .message.user .avatar {
    background: var(--blue);
    color: var(--white);
}

.chat-messages .message.bot .avatar {
    background: var(--lime);
    color: var(--black);
}

.chat-messages .message .content {
    padding: 18px 22px;
    border-radius: 18px;
    border: 3px solid var(--black);
    font-size: 1em;
    line-height: 1.6;
    box-shadow: 4px 4px 0px var(--black);
}

.chat-messages .message.user .content {
    background: var(--blue);
    color: var(--white);
    border-radius: 18px 18px 5px 18px;
}

.chat-messages .message.bot .content {
    background: var(--white);
    color: var(--black);
    border-radius: 18px 18px 18px 5px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--darkgray);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ======================================================================= */
/* CHAT INPUT */
/* ======================================================================= */

.chat-input-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input-wrapper {
    display: flex;
    gap: 15px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 20px;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0px var(--black);
    transition: all 0.2s ease;
}

.chat-input-wrapper:focus-within {
    box-shadow: 8px 8px 0px var(--black);
    transform: translate(-2px, -2px);
}

.chat-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    font-size: 1.1em;
    font-family: inherit;
    color: var(--black);
    outline: none;
}

.chat-input::placeholder {
    color: var(--darkgray);
}

.send-btn {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    border: 3px solid var(--black);
    background: var(--lime);
    color: var(--black);
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0px var(--black);
}

.send-btn:hover {
    box-shadow: 5px 5px 0px var(--black);
    transform: translate(-1px, -1px);
}

.send-btn:active {
    box-shadow: 2px 2px 0px var(--black);
    transform: translate(2px, 2px);
}

.chat-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--darkgray);
    margin: 0;
}

.chat-disclaimer i {
    color: var(--orange);
}

/* ======================================================================= */
/* FEATURES SECTION */
/* ======================================================================= */

.ai-features {
    margin-top: 20px;
}

.features-title {
    font-size: 2em;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-title i {
    color: var(--pink);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0px var(--black);
    transition: all 0.2s ease;
}

.feature-card:hover {
    box-shadow: 8px 8px 0px var(--black);
    transform: translate(-2px, -2px);
}

/* Feature Card Colors */
.feature-card.blue {
    background: var(--blue);
    color: var(--white);
}

.feature-card.lime {
    background: var(--lime);
    color: var(--black);
}

.feature-card.pink {
    background: var(--pink);
    color: var(--white);
}

.feature-card.orange {
    background: var(--orange);
    color: var(--black);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: var(--black);
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
}

.feature-card h4 {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.feature-card p {
    font-size: 0.95em;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* ======================================================================= */
/* AUTH MODAL */
/* ======================================================================= */

.auth-required-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.auth-required-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    max-width: 450px;
    border: 3px solid var(--black);
    box-shadow: 10px 10px 0px var(--black);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-modal-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: var(--lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: var(--black);
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0px var(--black);
}

.auth-modal-content h2 {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--black);
    margin: 0 0 15px 0;
}

.auth-modal-content p {
    font-size: 1.1em;
    color: var(--darkgray);
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.auth-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1em;
    text-decoration: none;
    border: 3px solid var(--black);
    transition: all 0.2s ease;
    box-shadow: 5px 5px 0px var(--black);
}

.auth-modal-btn:hover {
    box-shadow: 7px 7px 0px var(--black);
    transform: translate(-2px, -2px);
}

.auth-modal-btn.primary {
    background: var(--lime);
    color: var(--black);
}

.auth-modal-btn.secondary {
    background: var(--white);
    color: var(--black);
}

/* ======================================================================= */
/* RESPONSIVE STYLES */
/* ======================================================================= */

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-chat-layout {
        grid-template-columns: 280px 1fr;
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .ai-container {
        padding: 0 30px;
    }

    .ai-chat-layout {
        grid-template-columns: 1fr;
    }

    .ai-sidebar {
        order: 1;
    }

    .ai-chat-main {
        order: 0;
    }

    .quick-questions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .question-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .question-card span {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .ai-main {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .ai-container {
        padding: 0 20px;
        gap: 35px;
    }

    .ai-hero {
        padding: 25px;
        box-shadow: 6px 6px 0px var(--black);
    }

    .ai-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .ai-mascot {
        width: 100px;
        height: 100px;
    }

    .ai-title {
        font-size: 1.8em;
    }

    .ai-subtitle {
        font-size: 1em;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-card {
        padding: 25px 20px;
        box-shadow: 5px 5px 0px var(--black);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }

    .quick-questions {
        grid-template-columns: repeat(2, 1fr);
    }

    .chat-container {
        min-height: 350px;
        box-shadow: 6px 6px 0px var(--black);
    }

    .chat-messages {
        max-height: 400px;
    }

    .chat-input-wrapper {
        padding: 12px 15px;
        box-shadow: 5px 5px 0px var(--black);
    }

    .send-btn {
        width: 50px;
        height: 50px;
    }

    .auth-modal-content {
        margin: 20px;
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .chat-history-badge span {
        display: none;
    }

    .chat-history-badge {
        padding: 8px 10px;
    }
}

@media (max-width: 576px) {
    .ai-container {
        padding: 0 15px;
        gap: 30px;
    }

    .ai-hero {
        padding: 20px;
        border-radius: 20px;
    }

    .ai-mascot {
        width: 80px;
        height: 80px;
    }

    .ai-title {
        font-size: 1.5em;
    }

    .ai-usage-badge {
        font-size: 0.85em;
        padding: 8px 16px;
    }

    .sidebar-title {
        font-size: 1.1em;
        text-align: center;
        justify-content: center;
    }

    .quick-questions {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .question-card {
        padding: 15px 12px;
        border-radius: 15px;
    }

    .question-icon {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .question-card span {
        font-size: 0.85em;
    }

    .chat-container {
        border-radius: 20px;
        min-height: 300px;
    }

    .chat-messages {
        padding: 20px;
        max-height: 350px;
    }

    .chat-messages:empty::before {
        font-size: 1em;
        padding: 20px;
    }

    .chat-input-wrapper {
        border-radius: 15px;
        gap: 10px;
    }

    .chat-input {
        font-size: 1em;
    }

    .send-btn {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        font-size: 1.1em;
    }

    .features-title {
        font-size: 1.5em;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 25px 20px;
        border-radius: 18px;
    }
}
