/* ===== Variables y Reset ===== */
:root {
    --primary-color: #1C1C1C;
    --primary-light: #3A3A3A;
    --primary-dark: #0D0D0D;
    --secondary-color: #F0EBE1;
    --accent-color: #C4A265;
    --accent-dark: #A8893E;
    --accent-light: #D4B87A;
    --background-light: #FAF8F5;
    --background-cream: #F3F0EA;
    --text-dark: #1C1C1C;
    --text-medium: #4A4A4A;
    --text-light: #8A8A8A;
    --white: #FFFFFF;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.10);
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--background-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Utilities ===== */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* ===== Captive Portal ===== */
#captive-portal {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-cream) 50%, #E8EDE9 100%);
    position: relative;
    overflow: hidden;
}

.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portal-card {
    background: var(--white);
    border-radius: 24px;
    padding: 50px 44px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-medium);
    z-index: 10;
    animation: fadeInUp 0.8s ease;
    position: relative;
}

.portal-logo {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.portal-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.portal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-weight: 600;
}

.portal-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0;
}

.portal-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 2px;
    margin: 20px auto 28px;
}

.portal-card .form-group {
    text-align: left;
}

.portal-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--background-cream);
}

.portal-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===== Hub Page ===== */
#hub-page {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-cream) 50%, #E8EDE9 100%);
    position: relative;
    overflow: hidden;
}

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hub-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 0.6s ease;
    width: 100%;
    max-width: 780px;
}

.hub-header {
    margin-bottom: 48px;
}

.logo-circle-sm {
    width: 90px;
    height: 90px;
}

.logo-circle-xs {
    width: 70px;
    height: 70px;
}

.hub-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.hub-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 400;
}

.hub-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
}

.hub-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px 32px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.35s ease;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-light);
}

.hub-card:hover::before {
    opacity: 1;
}

.hub-card-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
    display: block;
}

.hub-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.hub-card p {
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hub-card-action {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    padding: 8px 22px;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hub-card:hover .hub-card-action {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white);
    border-color: var(--accent-color);
}

.hub-logout-btn {
    margin-top: 8px;
    padding: 10px 28px;
    font-size: 0.9rem;
}

/* Admin Login Modal extra styles */
.admin-login-content {
    max-width: 400px;
}

.admin-modal-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* ===== Landing Page (legacy, kept for compat) ===== */
#landing {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-cream) 50%, #E8EDE9 100%);
    position: relative;
    overflow: hidden;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.landing-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 0.8s ease;
}

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

.logo-area {
    margin-bottom: 30px;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-medium);
    animation: pulse 3s ease-in-out infinite;
    padding: 10px;
    border: 2px solid var(--background-cream);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-medium);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 40px rgba(196, 162, 101, 0.25);
    }
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.logo-circle span {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-color);
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ===== Buttons ===== */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(196, 162, 101, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 162, 101, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid #D0D0D0;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 24px;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    background: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.btn-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* ===== Features ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.feature {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-top: 4px solid var(--accent-light);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-top-color: var(--accent-color);
}

.feature h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== Floating Shapes ===== */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    top: 50%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.modal-large {
    max-width: 700px;
}

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modal-subtitle {
    color: var(--text-medium);
    margin-bottom: 25px;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.admin-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E5E5;
    border-radius: var(--border-radius-sm);
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.admin-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(196, 162, 101, 0.1);
}

.error-message {
    color: #E74C3C;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
}

/* ===== Chat Page ===== */
#chat-page {
    background: var(--background-cream);
}

.chat-container {
    max-width: 900px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--white);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-small {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--background-cream);
    overflow: hidden;
    padding: 4px;
}

.logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.header-info .status {
    font-size: 0.85rem;
    color: var(--accent-color);
}

.header-right {
    display: flex;
    gap: 10px;
}

/* ===== Chat Messages ===== */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: messageIn 0.3s ease;
}

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

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message.assistant .message-avatar {
    background: var(--white);
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--background-cream);
    overflow: hidden;
    padding: 3px;
}

.message.assistant .message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.message.user .message-avatar {
    background: var(--accent-color);
}

.message-content {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    line-height: 1.6;
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary-color), #2A2A2A);
    color: var(--white);
}

.message.assistant .message-content {
    border-bottom-left-radius: 4px;
}

.message.user .message-content {
    border-bottom-right-radius: 4px;
}

/* ===== Typing Indicator ===== */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* ===== Chat Input ===== */
.chat-input-area {
    padding: 20px 25px;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

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

#message-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #E5E5E5;
    border-radius: 25px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    resize: none;
    max-height: 120px;
    transition: var(--transition);
}

#message-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.send-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white);
    border: none;
    padding: 16px 28px;
    border-radius: 25px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(196, 162, 101, 0.4);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Admin Page ===== */
#admin-page {
    background: var(--background-cream);
}

.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.admin-header h2 {
    font-family: 'Playfair Display', serif;
}

.admin-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.admin-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.admin-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--background-cream);
}

.church-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.church-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--background-cream);
    border-radius: var(--border-radius-sm);
}

.church-info strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.church-info p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(196, 162, 101, 0.2);
    color: var(--accent-dark);
}

.pastor-info p {
    margin-bottom: 10px;
    color: var(--text-medium);
}

.pastor-info strong {
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--background-cream);
    border-radius: var(--border-radius-sm);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.admin-textarea {
    min-height: 100px;
    margin-bottom: 15px;
}

/* ===== Locations Modal ===== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.location-card {
    background: var(--background-cream);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
}

.location-header {
    margin-bottom: 15px;
}

.location-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.location-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
}

.location-address {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.location-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.location-horarios {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(196, 162, 101, 0.12);
    border-radius: 8px;
    display: inline-block;
}

.location-pastor {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.find-nearest {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--background-cream);
}

.nearest-result {
    margin-top: 15px;
    padding: 15px;
    background: var(--background-cream);
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    display: none;
}

.nearest-result.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ===== Announcements Container ===== */
.announcements-container {
    max-height: 400px;
    overflow-y: auto;
}

.announcement-card {
    background: var(--background-cream);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
}

.announcement-card:last-child {
    margin-bottom: 0;
}

.announcement-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.announcement-card .date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.announcement-card p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 15px;
}

.announcement-files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.announcement-file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: var(--white);
    border-radius: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--accent-light);
}

.announcement-file-link:hover {
    background: var(--accent-color);
    color: var(--white);
}

.no-announcements-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-announcements-msg span {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

/* Chat message links */
.message-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.message.user .message-content a {
    color: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .modal-content {
        padding: 30px 20px;
    }

    .chat-messages {
        padding: 15px;
    }

    .message {
        max-width: 90%;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
        text-align: center;
    }

    .portal-card {
        padding: 40px 24px 32px;
        margin: 0 10px;
    }

    .portal-title {
        font-size: 1.8rem;
    }

    .hub-title {
        font-size: 2rem;
    }

    .hub-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hub-card {
        padding: 30px 24px 26px;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-cream);
}

::-webkit-scrollbar-thumb {
    background: #C4C4C4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

