/**
 * TravelApp Styles
 *
 * Modern, clean CSS for the travel application
 */

/* CSS Variables - WanderBot Brand Colors */
:root {
    /* Primary - Terracotta (warm, earthy, adventurous) */
    --primary-color: #c4704b;
    --primary-dark: #a85a38;
    --primary-light: #d4896a;

    /* Secondary - Teal (trust, exploration, water/nature) */
    --secondary-color: #2a9d8f;
    --secondary-dark: #21867a;
    --secondary-light: #52b8ac;

    /* Accent - Sand (warmth, beaches, comfort) */
    --accent-color: #e9c46a;
    --accent-light: #f4d68a;

    /* Tertiary - Olive Green (nature, adventure, growth) */
    --olive-color: #6b7c4e;
    --olive-light: #8a9a6d;

    --danger-color: #ef4444;
    --dark-color: #2d2a26;

    /* Warm neutrals */
    --gray-900: #2d2a26;
    --gray-800: #3d3a36;
    --gray-700: #4d4a46;
    --gray-600: #5d5a56;
    --gray-500: #7d7a76;
    --gray-400: #9d9a96;
    --gray-300: #d1cec9;
    --gray-200: #e5e2dd;
    --gray-100: #f5f2ed;
    --gray-50: #faf8f5;
    --white: #ffffff;
    --bg-warm: #fdfbf7;

    --font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--gray-100);
    color: var(--primary-dark);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--border-radius);
    color: var(--gray-500);
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

.btn-icon.btn-danger:hover {
    background-color: #fef2f2;
    color: var(--danger-color);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 500;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo:hover {
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a:not(.btn) {
    color: var(--gray-600);
    font-weight: 500;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    position: relative;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--gray-700);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--gray-100);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 48px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-600);
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.destinations-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.destination-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.destination-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.destination-country {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.destination-info {
    padding: 16px;
}

.destination-info h3 {
    margin-bottom: 4px;
}

.destination-info p {
    color: var(--gray-600);
    font-size: 14px;
}

/* Destination Card Full */
.destination-card-full {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.destination-image-large {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.save-btn:hover {
    transform: scale(1.1);
}

.save-btn.saved {
    color: var(--danger-color);
}

.destination-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.destination-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.destination-description {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 16px;
}

.destination-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.destination-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

/* How It Works */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--gray-600);
    font-size: 14px;
}

.step-arrow {
    font-size: 2rem;
    color: var(--gray-400);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    opacity: 0.9;
    margin-bottom: 24px;
}

/* ==========================================
   BLOG STYLES
   ========================================== */

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.blog-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--gray-900);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-card-link:hover {
    text-decoration: underline;
}

/* Blog Post Single */
.blog-post-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post-header {
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 30px;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin: 20px 0 16px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--gray-500);
    font-size: 0.95rem;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.blog-post-content h2 {
    font-size: 1.75rem;
    margin: 40px 0 20px;
    color: var(--gray-900);
}

.blog-post-content h3 {
    font-size: 1.4rem;
    margin: 32px 0 16px;
    color: var(--gray-900);
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 24px 0;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--gray-600);
}

.blog-post-content a {
    color: var(--primary-color);
}

.blog-post-content a:hover {
    text-decoration: underline;
}

/* Share Buttons */
.blog-post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid var(--gray-200);
}

.blog-post-share span {
    font-weight: 500;
    color: var(--gray-600);
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-linkedin {
    background: #0a66c2;
    color: white;
}

/* Related Posts */
.related-posts {
    background: var(--gray-100);
    padding: 60px 0;
    margin-top: 60px;
}

.related-posts h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--gray-900);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.pagination-link {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-link:hover {
    background: var(--gray-100);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-info {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Admin Blog Styles */
.blog-form {
    max-width: 900px;
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.blog-form .form-group-wide {
    flex: 1;
}

.blog-form textarea#content {
    font-family: monospace;
    font-size: 0.9rem;
}

.input-prefix {
    display: flex;
    align-items: center;
}

.input-prefix span {
    background: var(--gray-100);
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    color: var(--gray-500);
    font-size: 0.9rem;
}

.input-prefix input {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    flex: 1;
}

/* ==========================================
   END BLOG STYLES
   ========================================== */

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .logo-icon {
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--box-shadow-lg);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 32px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-600);
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Fix browser autofill styling */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--white) inset !important;
    -webkit-text-fill-color: var(--gray-800) !important;
    border: 1px solid var(--gray-300) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group input:-webkit-autofill:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 0 30px var(--white) inset !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert ul {
    margin-left: 20px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 70px - 200px);
    padding: 40px 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

/* Trips Grid */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.trip-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.trip-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.trip-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-planning { background-color: #fef3c7; color: #92400e; }
.status-booked { background-color: #dbeafe; color: #1e40af; }
.status-ongoing { background-color: #d1fae5; color: #065f46; }
.status-completed { background-color: #e0e7ff; color: #3730a3; }
.status-cancelled { background-color: #fee2e2; color: #991b1b; }

.trip-content {
    padding: 20px;
}

.trip-content h3 {
    margin-bottom: 8px;
}

.trip-destination,
.trip-dates,
.trip-budget {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.trip-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.trip-owner {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

/* Trip badges for explore page */
.trip-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.trip-badge.own-trip {
    background-color: #d1fae5;
    color: #065f46;
}

.trip-badge.viewed {
    background-color: #dbeafe;
    color: #1e40af;
}

.trip-badge.credit-cost {
    background-color: var(--accent-color);
    color: var(--gray-900);
}

.trip-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
}

/* Trip owner badge on trip detail page */
.trip-owner-badge {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

/* Credits display on page header */
.credits-display {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 8px;
}

.credits-display strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Costs note on credits page */
.costs-note {
    margin-top: 12px;
    color: var(--gray-500);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 4px;
}

.modal-close:hover {
    color: var(--gray-700);
}

.modal-credits-info {
    margin: 0;
    padding: 12px 24px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-credits-info strong {
    color: var(--primary-color);
}

.trip-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Trip Hero */
.trip-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.trip-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 0;
}

.trip-hero h1 {
    color: var(--white);
    margin-bottom: 8px;
}

.trip-hero-meta {
    display: flex;
    gap: 24px;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.back-link {
    color: var(--white);
    margin-bottom: 16px;
    display: inline-block;
}

/* Trip Info Grid */
.trip-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: -60px 0 32px;
    position: relative;
    z-index: 1;
}

.info-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    font-size: 2rem;
}

.info-content h4 {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.info-content p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* Trip Actions Bar */
.trip-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-select {
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
}

/* Notes Section */
.notes-section {
    background-color: var(--gray-100);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
}

.notes-section h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Itinerary Section */
.itinerary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.itinerary-header h2 {
    margin: 0;
}

.itinerary-section h2 {
    margin-bottom: 24px;
}

.itinerary-days {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.day-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.day-number {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.day-title {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
}

.day-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.day-card.collapsed .day-activities {
    display: none;
}

.day-card.collapsed .day-toggle {
    transform: rotate(-90deg);
}

.day-description {
    padding: 16px 20px 0;
    color: var(--gray-600);
}

.day-activities {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Activity Card */
.activity-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.activity-time {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 60px;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
    gap: 12px;
}

.activity-header h4 {
    font-size: 1rem;
}

.activity-type {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.type-sightseeing { background-color: #dbeafe; color: #1e40af; }
.type-food { background-color: #fef3c7; color: #92400e; }
.type-transport { background-color: #e0e7ff; color: #3730a3; }
.type-accommodation { background-color: #fce7f3; color: #9d174d; }
.type-entertainment { background-color: #ede9fe; color: #5b21b6; }
.type-shopping { background-color: #fee2e2; color: #991b1b; }
.type-adventure { background-color: #d1fae5; color: #065f46; }
.type-relaxation { background-color: #ccfbf1; color: #0f766e; }
.type-culture { background-color: #fef3c7; color: #78350f; }
.type-other { background-color: var(--gray-200); color: var(--gray-700); }

.activity-content p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-500);
}

.booking-badge {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.activity-notes {
    margin-top: 8px;
    font-style: italic;
    color: var(--gray-500);
}

.activity-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.add-activity-btn {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    background: none;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.add-activity-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* World Map Section */
.map-section {
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--box-shadow-md);
}

.map-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--gray-800);
}

.map-subtitle {
    color: var(--gray-500);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

#world-map {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

#world-map:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
}

.legend-none {
    background-color: #e0e0e0;
}

.legend-low {
    background-color: #a8d5ba;
}

.legend-medium {
    background-color: #4caf50;
}

.legend-high {
    background-color: #2e7d32;
}

/* Leaflet tooltip customization */
.leaflet-tooltip {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    font-family: var(--font-family);
    font-size: 0.875rem;
    box-shadow: var(--box-shadow-md);
}

.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
    border-top-color: var(--white);
}

@media (max-width: 768px) {
    #world-map {
        height: 280px;
    }

    .map-section {
        padding: 1rem;
    }

    .map-legend {
        gap: 0.75rem;
    }

    .legend-item {
        font-size: 0.75rem;
    }

    .legend-color {
        width: 16px;
        height: 16px;
    }
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 280px;
}

.search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
}

.filter-select select {
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    min-width: 160px;
}

.active-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--primary-light);
    color: var(--white);
    border-radius: 20px;
    font-size: 13px;
}

.filter-tag a {
    color: var(--white);
    font-weight: bold;
}

.clear-filters {
    font-size: 13px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }

/* ============================================
   WANDERBOT NEW COMPONENTS
   ============================================ */

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Section Badge */
.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--accent-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius-xl);
    margin-bottom: 16px;
}

/* Section Warm Background */
.section-warm {
    background-color: var(--bg-warm);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(196, 112, 75, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 157, 143, 0.05) 0%, transparent 50%);
}

/* Button Glow Effect */
.btn-glow {
    box-shadow: 0 4px 14px rgba(196, 112, 75, 0.4);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(196, 112, 75, 0.5);
    transform: translateY(-2px);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
}

/* ============================================
   ENHANCED HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(196, 112, 75, 0.88) 0%,
        rgba(42, 157, 143, 0.82) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-xl);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.95;
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
}

.hero-trust-item strong {
    font-weight: 700;
}

.hero-trust-divider {
    opacity: 0.4;
}

/* Hero Decorative Elements */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.hero-decoration-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
}

.hero-decoration-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: 5%;
}

.hero-decoration-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 10%;
}

/* ============================================
   HOW IT WORKS - 3 STEPS
   ============================================ */
.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.step {
    flex: 1;
    max-width: 340px;
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-xl);
}

.step-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 2.5rem;
}

.step-number-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: var(--box-shadow-md);
}

.step h3 {
    margin-bottom: 12px;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.step p {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    color: var(--gray-400);
    padding-top: 80px;
    font-size: 2rem;
}

/* ============================================
   FEATURES SECTION - 4 CARDS
   ============================================ */
.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card-enhanced {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.feature-card-enhanced:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
}

.feature-icon-terracotta {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
}

.feature-icon-teal {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    color: var(--white);
}

.feature-icon-olive {
    background: linear-gradient(135deg, var(--olive-light), var(--olive-color));
    color: var(--white);
}

.feature-icon-sand {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: var(--gray-800);
}

.feature-card-enhanced h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.feature-card-enhanced > p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-highlights li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-700);
}

.feature-highlights li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 16px;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
    background: var(--bg-warm);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--border-radius-xl);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.pricing-price {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-description {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: "\2713";
    color: var(--secondary-color);
    font-weight: bold;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.testimonial-card {
    background: var(--gray-50);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-card.featured {
    background: var(--white);
    border: 2px solid var(--primary-color);
    box-shadow: var(--box-shadow-md);
}

.testimonial-rating {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-300);
}

.testimonial-name {
    font-weight: 600;
    color: var(--gray-900);
    font-style: normal;
    display: block;
    margin-bottom: 2px;
}

.testimonial-trip {
    font-size: 14px;
    color: var(--gray-500);
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 36px;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.trust-label {
    font-size: 14px;
    color: var(--gray-600);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--olive-color) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 2.25rem;
}

.cta > .container > p {
    opacity: 0.95;
    margin-bottom: 28px;
    font-size: 1.1rem;
}

.cta-note {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.85;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) 2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-logo:hover {
    color: var(--primary-light);
}

.footer-logo svg {
    color: var(--primary-light);
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 15px;
    margin-bottom: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-800);
    color: var(--gray-400);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--gray-400);
    margin-bottom: 12px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* Newsletter */
.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-newsletter > p {
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-form {
    margin-top: 16px;
}

.newsletter-input-group {
    display: flex;
    gap: 8px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--gray-700);
    border-radius: var(--border-radius);
    background: var(--gray-800);
    color: var(--white);
    font-size: 15px;
    transition: var(--transition);
}

.newsletter-input-group input::placeholder {
    color: var(--gray-500);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.2);
}

.newsletter-note {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
}

.footer-tagline-small {
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray-500);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--box-shadow-xl);
    z-index: 1000;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-600);
    padding: 8px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-links a {
    padding: 14px 16px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.mobile-nav-links .btn {
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero responsive */
    .hero {
        min-height: auto;
        padding: 100px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .hero-trust-divider {
        display: none;
    }

    .hero-decoration-1,
    .hero-decoration-2,
    .hero-decoration-3 {
        display: none;
    }

    /* Steps responsive */
    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
        width: 100%;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 0;
        margin: -10px 0;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    /* Features responsive */
    .features-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Pricing responsive */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    /* Testimonials responsive */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .trust-bar {
        gap: 24px;
        padding: 24px;
    }

    .trust-number {
        font-size: 1.75rem;
    }

    /* CTA responsive */
    .cta h2 {
        font-size: 1.75rem;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-input-group .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .trip-hero-meta {
        flex-direction: column;
        gap: 8px;
    }

    .trip-info-grid {
        margin-top: -40px;
    }

    .trip-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        justify-content: center;
    }

    .activity-card {
        flex-direction: column;
    }

    .activity-time {
        min-width: auto;
    }
}

/* Tablet breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .hero-decoration-1 {
        width: 350px;
        height: 350px;
    }
}

/* ============================================
   ADMIN PAGE STYLES
   ============================================ */
.admin-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.admin-card {
    background: white;
    padding: 28px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-card-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.card-icon {
    font-size: 1.5rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Model Selection */
.model-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.model-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.model-option:hover {
    border-color: var(--primary-light);
}

.model-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(196, 112, 75, 0.05);
}

.model-option input {
    margin-top: 3px;
}

.model-option-content {
    flex: 1;
}

.model-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.model-description {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
}

.current-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-top: 8px;
}

/* System Info */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--gray-600);
    font-size: 14px;
}

.info-value {
    font-weight: 500;
}

/* ============================================
   DISLIKES/AVOID SECTION STYLES
   ============================================ */
.form-hint {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.checkbox-grid-dislikes {
    grid-template-columns: repeat(2, 1fr);
}

.checkbox-dislike {
    padding: 10px 12px;
    background: var(--gray-50);
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.checkbox-dislike:hover {
    background: var(--gray-100);
}

.checkbox-dislike:has(input:checked) {
    background: #fef2f2;
    border-color: #fecaca;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid-dislikes {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   AI LOADING OVERLAY
   ============================================ */
.ai-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 42, 38, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ai-loading-overlay.active {
    display: flex;
}

.ai-loading-content {
    text-align: center;
    color: var(--white);
    max-width: 400px;
    padding: 40px;
}

.ai-loading-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
}

.ai-loading-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: ai-spin 1s linear infinite;
}

.ai-loading-icon::after {
    content: '🤖';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-spin {
    to { transform: rotate(360deg); }
}

@keyframes ai-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.ai-loading-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.ai-loading-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-loading-message span {
    animation: ai-message-fade 0.5s ease-in-out;
}

@keyframes ai-message-fade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.ai-loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ai-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: ai-progress 2s linear infinite;
    width: 100%;
}

@keyframes ai-progress {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.ai-loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ai-loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: ai-dots 1.4s ease-in-out infinite;
}

.ai-loading-dots span:nth-child(1) { animation-delay: 0s; }
.ai-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-dots {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ========================================
   CREDITS SYSTEM STYLES
   ======================================== */

/* Credits Display in Navigation */
.credits-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 20px;
    color: var(--gray-900) !important;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(233, 196, 106, 0.3);
}

.credits-display:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(233, 196, 106, 0.4);
    color: var(--gray-900) !important;
}

.credits-display.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white) !important;
}

.credits-icon {
    font-size: 16px;
}

.credits-amount {
    font-size: 16px;
    font-weight: 700;
}

.credits-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Low credits warning */
.credits-display.low-credits {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    animation: pulse-warning 2s ease-in-out infinite;
}

.credits-display.no-credits {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: var(--white) !important;
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3); }
    50% { box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5); }
}

/* Credits Page Styles */
.credits-page {
    padding: 40px 0;
}

.credits-header {
    text-align: center;
    margin-bottom: 40px;
}

.credits-balance-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: var(--border-radius-xl);
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 20px;
}

.credits-balance-label {
    font-size: 14px;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.credits-balance-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.credits-balance-suffix {
    font-size: 18px;
    color: var(--gray-700);
    margin-top: 4px;
}

/* Credit Packages Grid */
.packages-section {
    margin-bottom: 50px;
}

.packages-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.package-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-xl);
}

.package-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.package-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.package-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.package-credits {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.package-credits-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 15px;
}

.package-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.package-per-credit {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.package-savings {
    display: inline-block;
    background: var(--secondary-light);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.package-card .btn {
    width: 100%;
}

/* Credit Costs Info */
.costs-section {
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.costs-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.costs-list {
    list-style: none;
}

.costs-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.costs-list li:last-child {
    border-bottom: none;
}

.cost-action {
    color: var(--gray-700);
}

.cost-amount {
    font-weight: 600;
    color: var(--primary-color);
    background: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Transaction History */
.transactions-section {
    max-width: 800px;
    margin: 0 auto;
}

.transactions-section h3 {
    margin-bottom: 20px;
}

.transactions-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.transactions-table th,
.transactions-table td {
    padding: 14px 20px;
    text-align: left;
}

.transactions-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--gray-100);
}

.transaction-amount {
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--secondary-color);
}

.transaction-amount.negative {
    color: var(--danger-color);
}

.transaction-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.transaction-type.purchase {
    background: #dcfce7;
    color: #166534;
}

.transaction-type.spend {
    background: #fef3c7;
    color: #92400e;
}

.transaction-type.bonus {
    background: #dbeafe;
    color: #1e40af;
}

.transaction-type.refund {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Insufficient Credits Modal */
.insufficient-credits-notice {
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border: 1px solid #f59e0b;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.insufficient-credits-notice h4 {
    color: #92400e;
    margin-bottom: 10px;
}

.insufficient-credits-notice p {
    color: #78350f;
    margin-bottom: 15px;
}

/* Credit requirement badge on action buttons */
.credit-cost-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Responsive adjustments for credits */
@media (max-width: 768px) {
    .credits-display {
        padding: 6px 10px;
    }

    .credits-label {
        display: none;
    }

    .credits-balance-amount {
        font-size: 36px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-card.featured {
        transform: none;
    }

    .transactions-table {
        font-size: 14px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 10px 12px;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.alert-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    animation: toast-slide-in 0.3s ease-out;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-toast-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-toast-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-toast-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-toast-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-toast button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.alert-toast button:hover {
    opacity: 1;
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* ============================================
   SPINNER FOR LOADING STATES
   ============================================ */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form error state */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* GetYourGuide Experiences Section */
.gyg-experiences-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.gyg-experiences-section h2 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.gyg-subtitle {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ============================================
   AI CHAT WIDGET
   ============================================ */

/* Chat Widget Container */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: var(--font-family);
}

/* Chat Toggle Button */
.chat-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
}

.chat-toggle.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.chat-icon {
    font-size: 20px;
}

.chat-label {
    white-space: nowrap;
}

/* Chat Panel */
.chat-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 550px;
    max-height: calc(100vh - 40px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-header-icon {
    font-size: 24px;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages Container */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--gray-50);
}

/* Welcome Message */
.chat-welcome {
    text-align: center;
    padding: 20px;
    color: var(--gray-600);
}

.chat-welcome-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.chat-welcome h3 {
    color: var(--gray-800);
    margin-bottom: 8px;
    font-size: 18px;
}

.chat-welcome p {
    margin-bottom: 16px;
    font-size: 14px;
}

.chat-welcome ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
}

.chat-welcome ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.chat-welcome ul li:last-child {
    border-bottom: none;
}

.chat-welcome ul li::before {
    content: '"';
    color: var(--primary-color);
    font-weight: bold;
}

.chat-welcome ul li::after {
    content: '"';
    color: var(--primary-color);
    font-weight: bold;
}

/* Chat Message Bubbles */
.chat-message {
    max-width: 85%;
    animation: message-appear 0.3s ease;
}

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message-user {
    align-self: flex-end;
}

.chat-message-assistant {
    align-self: flex-start;
}

.chat-message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message-user .chat-message-content {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message-assistant .chat-message-content {
    background: white;
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message-error .chat-message-content {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.chat-message-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
    padding: 0 4px;
}

.chat-message-user .chat-message-time {
    text-align: right;
}

/* Chat Actions (for pending actions) */
.chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chat-action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.chat-action-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

/* Executed Actions Summary */
.chat-executed-actions {
    margin-top: 8px;
}

.chat-action-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Typing Indicator */
.chat-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: fit-content;
}

.chat-typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.chat-typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.chat-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-6px);
    }
}

/* Chat Input Area */
.chat-input-area {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--gray-200);
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--gray-100);
    border-radius: 24px;
    padding: 8px 12px;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    min-height: 24px;
    line-height: 1.5;
    padding: 4px 0;
}

.chat-input:focus {
    outline: none;
}

.chat-input::placeholder {
    color: var(--gray-400);
}

.chat-send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
}

/* Chat Status Bar */
.chat-status-bar {
    padding: 8px 16px;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
}

/* Update Notice Toast */
.chat-update-notice {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #166534;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: toast-slide-in 0.3s ease;
    z-index: 10000;
}

.chat-update-notice button {
    background: white;
    color: #166534;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-update-notice button:hover {
    background: #f0fdf4;
}

.chat-update-notice.fade-out {
    animation: toast-fade-out 0.3s ease forwards;
}

@keyframes toast-fade-out {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 0;
        right: 0;
        left: 0;
    }

    .chat-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
    }

    .chat-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .chat-panel.active {
        border-radius: 0;
    }

    .chat-label {
        display: none;
    }

    .chat-toggle {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .chat-update-notice {
        bottom: 80px;
        left: 20px;
        right: 20px;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .chat-panel {
        width: 340px;
        height: 500px;
    }
}

/* ================================
   Comments Section
   ================================ */

.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.comments-section h2 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-count {
    font-size: 0.7em;
    font-weight: 400;
    color: var(--gray-500);
}

/* Comment Form */
.comment-form-container {
    background-color: var(--gray-50);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 32px;
    border: 1px solid var(--gray-200);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form .form-group {
    position: relative;
}

.comment-form .form-group textarea {
    min-height: 100px;
    resize: vertical;
    padding: 12px 14px;
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition: var(--transition);
}

.comment-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.1);
}

.comment-form .form-group textarea::placeholder {
    color: var(--gray-400);
}

.comment-char-count {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: var(--gray-400);
}

.comment-form .form-actions {
    display: flex;
    justify-content: flex-end;
}

/* Login Prompt */
.comment-login-prompt {
    background-color: var(--gray-50);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 32px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.comment-login-prompt p {
    margin: 0;
    color: var(--gray-600);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comments-loading,
.comments-error {
    text-align: center;
    padding: 32px;
    color: var(--gray-500);
}

.comments-error {
    color: var(--danger-color);
}

/* Empty State */
.comments-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-500);
}

.comments-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.comments-empty p {
    margin: 0;
    font-size: 15px;
}

/* Individual Comment */
.comment-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.comment-item:hover {
    box-shadow: var(--box-shadow-md);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 15px;
}

.comment-owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
}

.comment-time {
    color: var(--gray-400);
}

.comment-edited {
    font-style: italic;
    color: var(--gray-400);
}

.comment-content {
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 15px;
    word-break: break-word;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.comment-action-btn:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

.comment-action-delete:hover {
    color: var(--danger-color);
}

/* Edit Mode */
.comment-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    margin-bottom: 12px;
}

.comment-edit-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.1);
}

.comment-edit-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Load More */
.comments-load-more {
    text-align: center;
    margin-top: 24px;
}

.comments-load-more .btn {
    min-width: 200px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comments-section {
        margin-top: 32px;
        padding-top: 24px;
    }

    .comment-form-container {
        padding: 16px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-item {
        padding: 16px;
    }

    .comment-actions {
        flex-wrap: wrap;
    }
}
