body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Site nav only — avoid styling <header> inside <main> (e.g. about page title) */
body > header {
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background: #fff3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
nav.tabs {
    flex: 1;
    margin-left: 32px;
}
nav.tabs ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}
nav.tabs li {
    margin: 0 12px;
}
nav.tabs a {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}
nav.tabs a:hover, nav.tabs .active a {
    background: #444;
}
.user-actions {
    display: flex;
    align-items: center;
}
.user-actions button {
    background: #fff;
    color: #222;
    border: none;
    outline: none;
    padding: 8px 16px;
    margin-left: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.user-actions button:hover {
    background: #ddd;
}
main {
    flex: 1 0 auto;
    background: #fafafa;
    padding: 0;
}
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 80px 48px;
    min-height: calc(100vh - 64px - 72px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.hero-image-wrap {
    flex-shrink: 0;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-text {
    max-width: 480px;
    color: #fff;
}
.hero-text h1 {
    font-size: 3rem;
    margin: 0 0 16px;
    font-weight: 700;
    letter-spacing: -1px;
}
.hero-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    border-left: 3px solid #e94560;
    padding-left: 16px;
    margin: 0 0 20px;
    line-height: 1.6;
}
.hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.7;
}
@media (max-width: 700px) {
    .hero {
        flex-direction: column;
        padding: 48px 24px;
        gap: 32px;
        text-align: center;
    }
    .hero-quote {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid #e94560;
        padding-top: 16px;
    }
}

.quotes-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}
.quotes-heading {
    text-align: center;
    font-size: 2rem;
    color: #222;
    margin-bottom: 48px;
}
.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.quote-card {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    border-radius: 16px;
    padding: 40px;
    margin: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    border-left: 5px solid #e94560;
}
.quote-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    margin: 0 0 20px;
}
.quote-card cite {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    font-style: normal;
    font-weight: bold;
}

.about-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}
.about-page-header {
    text-align: center;
    margin-bottom: 36px;
}
.about-page-header h1 {
    font-size: 2rem;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.2;
}
.about-page-header .about-deck {
    font-size: 1.05rem;
    color: #555;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}
.about-article {
    background: #fff;
    color: #333;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #e94560;
}
.about-article h2 {
    font-size: 1.35rem;
    color: #1a1a2e;
    margin: 2rem 0 1rem;
    font-weight: 700;
}
.about-article h2:first-of-type {
    margin-top: 0;
}
.about-article p {
    margin: 0 0 1rem;
    line-height: 1.75;
    font-size: 1.05rem;
}
.about-article p:last-child {
    margin-bottom: 0;
}
.about-article strong {
    color: #222;
}

.chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.chat-toggle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e94560;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: background 0.2s, transform 0.2s;
    padding: 0;
    overflow: hidden;
}
.chat-toggle:hover {
    background: #0f3460;
    transform: scale(1.08);
}
.chat-window {
    display: none;
    flex-direction: column;
    width: 340px;
    height: 460px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.chat-window.open {
    display: flex;
}
.chat-header {
    background: #0f3460;
    color: #fff;
    padding: 14px 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.chat-close:hover {
    opacity: 1;
}
.chat-box {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafafa;
}
.chat-message {
    display: flex;
}
.chat-message.user {
    justify-content: flex-end;
}
.chat-message.ai {
    justify-content: flex-start;
    align-items: flex-end;
    gap: 8px;
}
.chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}
.chat-bubble {
    max-width: 78%;
    padding: 9px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.chat-message.user .chat-bubble {
    background: #0f3460;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-message.ai .chat-bubble {
    background: #ececec;
    color: #222;
    border-bottom-left-radius: 4px;
}
.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}
.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.chat-input:focus {
    border-color: #0f3460;
}
.chat-send {
    background: #0f3460;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-send:hover {
    background: #e94560;
}
.chat-send:disabled {
    background: #aaa;
    cursor: not-allowed;
}

footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    flex-shrink: 0;
}