/* ============================================
   SchengenRehber - Modern Design System
   ============================================ */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-100: #dbeafe;
    --accent: #f59e0b;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #059669;
    --success-bg: #ecfdf5;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 10px 20px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.07), 0 20px 50px -5px rgba(0,0,0,0.04);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ============ HEADER ============ */
.header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.15rem; transition: opacity var(--transition); }
.logo:hover { opacity: 0.8; color: var(--text); }
.logo-icon { font-size: 1.3rem; background: var(--primary); color: white; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.logo-text { font-weight: 400; letter-spacing: -0.02em; }
.logo-text strong { font-weight: 700; color: var(--primary); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
    padding: 8px 14px; border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 8px; }
.auth-area, .user-area { display: flex; align-items: center; gap: 8px; }

.user-badge { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.85rem; font-weight: 500; padding: 4px 10px 4px 4px; border-radius: 50px; transition: background var(--transition); }
.user-badge:hover { background: var(--bg-alt); color: var(--text); }
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; width: 40px; height: 40px; position: relative; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: absolute; left: 10px; transition: all 0.3s; }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600;
    border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 1px 2px rgba(37,99,235,0.3); }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn-secondary { background: var(--primary-light); color: var(--primary); }
.btn-secondary:hover { background: var(--primary-100); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-muted); padding: 4px 8px; border-radius: 6px; transition: all var(--transition); }
.btn-icon:hover { color: var(--danger); background: var(--danger-bg); }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.82rem; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }

/* ============ HERO ============ */
.forum-hero, .dashboard-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: white; padding: 52px 0; text-align: center;
    position: relative; overflow: hidden;
}
.forum-hero::before, .dashboard-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.forum-hero h1, .dashboard-hero h1 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 8px; position: relative; }
.forum-hero p, .dashboard-hero p { font-size: 1rem; opacity: 0.85; position: relative; }
.forum-stats { display: flex; justify-content: center; gap: 36px; margin-top: 20px; position: relative; }
.forum-stats .stat { font-size: 0.85rem; opacity: 0.8; }
.forum-stats .stat strong { display: block; font-size: 1.5rem; opacity: 1; }

/* ============ SECTIONS ============ */
.forum-section, .category-section, .topic-section, .dashboard-section { padding: 32px 0 64px; }

/* ============ TOOLBAR ============ */
.forum-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.forum-search { flex: 1; max-width: 420px; position: relative; }
.forum-search input {
    width: 100%; padding: 11px 16px 11px 40px; border: 1px solid var(--border); border-radius: 50px;
    font-size: 0.875rem; font-family: inherit; background: var(--white); transition: all var(--transition);
}
.forum-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.forum-search::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 0.85rem; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; color: var(--text-secondary); letter-spacing: 0.01em; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.875rem; font-family: inherit; background: var(--white); transition: all var(--transition);
    color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============ CARDS ============ */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--border-light); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h2 { font-size: 1.05rem; font-weight: 700; }

/* ============ CATEGORIES ============ */
.forum-categories { display: flex; flex-direction: column; gap: 12px; }
.forum-category { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); overflow: hidden; transition: all var(--transition); }
.forum-category:hover { box-shadow: var(--shadow); border-color: var(--border); }
a.category-header { display: flex; align-items: center; gap: 16px; padding: 18px 22px; color: var(--text); transition: background var(--transition); }
a.category-header:hover { background: var(--bg); }
.category-icon { font-size: 1.5rem; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: var(--radius-sm); flex-shrink: 0; }
.category-icon-lg { font-size: 2rem; }
.category-header h2 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.category-header p { font-size: 0.8rem; color: var(--text-muted); }
.category-meta { margin-left: auto; text-align: right; flex-shrink: 0; }
.category-count { font-size: 0.75rem; color: var(--text-muted); background: var(--bg-alt); padding: 4px 12px; border-radius: 50px; font-weight: 500; }
.category-latest { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ TOPICS ============ */
.category-header-detail { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.category-header-detail h1 { font-size: 1.5rem; font-family: 'Playfair Display', serif; }
.category-header-detail p { font-size: 0.88rem; color: var(--text-secondary); }
.topics-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.topics-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); overflow: hidden; }

.topic-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: var(--text); border-bottom: 1px solid var(--border-light); transition: background var(--transition); }
.topic-item:last-child { border-bottom: none; }
.topic-item:hover { background: var(--bg); }
.topic-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; background: var(--primary); }
.topic-info { flex: 1; min-width: 0; }
.topic-info h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; line-height: 1.4; }
.topic-meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-muted); }
.topic-author { font-weight: 500; color: var(--primary); }
.topic-stats { display: flex; flex-direction: column; gap: 2px; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; text-align: right; }
.topic-stats .replies { font-weight: 600; color: var(--text-secondary); }
.pin-icon { font-size: 0.8rem; }

/* ============ BREADCRUMB ============ */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; padding-top: 8px; }
.breadcrumb a { color: var(--primary); }

/* ============ POST / TOPIC DETAIL ============ */
.post { display: flex; gap: 20px; padding: 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); margin-bottom: 12px; }
.post-sidebar { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 80px; }
.post-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.85rem; font-weight: 700; }
.post-author { font-size: 0.82rem; font-weight: 600; color: var(--text); text-align: center; }
.post-date { font-size: 0.72rem; color: var(--text-muted); }
.post-main { flex: 1; min-width: 0; }
.post-title { font-size: 1.35rem; font-family: 'Playfair Display', serif; margin-bottom: 16px; line-height: 1.3; }
.post-body { font-size: 0.9rem; line-height: 1.8; color: var(--text-secondary); }
.post-body a { color: var(--primary); text-decoration: underline; }
.post-footer { margin-top: 16px; display: flex; gap: 16px; font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid var(--border-light); padding-top: 12px; }
.replies-title { font-size: 1.05rem; margin: 24px 0 12px; font-weight: 700; }

.reply-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); padding: 24px; margin-top: 12px; }
.reply-form h3 { font-size: 1rem; margin-bottom: 12px; }
.reply-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.875rem; resize: vertical; margin-bottom: 12px; }
.reply-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.login-prompt { background: var(--white); border-radius: var(--radius); padding: 20px; text-align: center; margin-top: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.login-prompt a { font-weight: 600; }

/* ============ AUTH PAGES ============ */
.auth-section { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 180px); padding: 40px 20px; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 44px; max-width: 440px; width: 100%; border: 1px solid var(--border-light); }
.auth-card h1 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 6px; }
.auth-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { font-weight: 600; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; margin-bottom: 16px; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #a7f3d0; }

/* Captcha */
.captcha-group { display: flex; align-items: center; gap: 10px; }
.captcha-img { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); }
.captcha-img img { display: block; height: 50px; }

/* ============ DASHBOARD ============ */
.dashboard-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.dash-main { display: flex; flex-direction: column; gap: 20px; }
.dash-sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.sidebar-steps { font-size: 0.82rem; color: var(--text-muted); padding-left: 20px; }
.sidebar-steps li { margin-bottom: 8px; }

/* ============ STATUS BANNER ============ */
.status-banner { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px; margin-bottom: 24px; border: 1px solid var(--border-light); }
.status-banner h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.status-card { text-align: center; padding: 20px 12px; border-radius: var(--radius-sm); }
.status-card.used { background: var(--warning-bg); }
.status-card.remaining { background: var(--success-bg); }
.status-card.active { background: var(--primary-light); }
.status-label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.status-value { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; color: var(--text); }
.status-sub { font-size: 0.72rem; color: var(--text-muted); }
.status-icon { font-size: 1.8rem; }

.status-bar-container { margin-bottom: 16px; }
.status-bar { height: 10px; background: var(--bg-alt); border-radius: 5px; overflow: hidden; }
.status-bar-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease, background 0.3s; }
.status-bar-labels { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; }

.status-message { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; }
.status-message.safe { background: var(--success-bg); color: #065f46; }
.status-message.warning { background: var(--warning-bg); color: #92400e; }
.status-message.danger { background: var(--danger-bg); color: #991b1b; }

/* ============ VISA CARDS ============ */
.visa-list { display: flex; flex-direction: column; gap: 12px; }
.visa-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; transition: all var(--transition); }
.visa-card.selected { border-color: var(--primary); background: var(--primary-light); }
.visa-card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 12px; }
.visa-type { font-weight: 700; font-size: 0.9rem; }
.visa-country { display: inline-block; margin-left: 8px; font-size: 0.75rem; background: var(--bg-alt); padding: 2px 8px; border-radius: 50px; color: var(--text-muted); }
.visa-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.visa-detail { font-size: 0.82rem; }
.visa-detail .label { display: block; font-size: 0.68rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ============ ENTRIES TABLE ============ */
.entries-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.entries-table th { text-align: left; padding: 10px 12px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.entries-table td { padding: 11px 12px; border-bottom: 1px solid var(--border-light); }
.entries-table tr:last-child td { border-bottom: none; }
.entries-table tr.active-entry { background: var(--warning-bg); }
.active-badge { display: inline-block; background: var(--warning); color: white; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; }

/* ============ MODAL ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal { background: var(--white); border-radius: var(--radius-lg); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border-light); }
.modal-header h2 { font-size: 1.05rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); padding: 0 4px; border-radius: 6px; transition: all var(--transition); }
.modal-close:hover { color: var(--danger); background: var(--danger-bg); }
.modal-body { padding: 24px; }

/* ============ SEARCH RESULTS ============ */
.search-results { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-light); overflow: hidden; }
.search-results h3 { padding: 14px 20px; font-size: 0.88rem; border-bottom: 1px solid var(--border-light); }

/* ============ PASSPORT STAMPS ============ */
.toggle-group { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-top: 4px; }
.toggle-btn { flex: 1; padding: 10px; border: none; background: var(--white); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all var(--transition); color: var(--text-muted); }
.toggle-btn.active { background: var(--primary); color: white; }
.toggle-btn:hover:not(.active) { background: var(--bg-alt); }

.stamp-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; }
.stamp-badge.entry { background: var(--success-bg); color: var(--success); }
.stamp-badge.exit { background: var(--danger-bg); color: var(--danger); }

.matched-row { background: #f0fdf4; }
.unmatched-row { background: var(--warning-bg); }
.entry-row { background: #f0fdf4; }
.exit-row { background: var(--danger-bg); }

.match-ok { font-size: 0.78rem; color: var(--success); font-weight: 500; }
.match-pending { font-size: 0.78rem; color: var(--warning); font-weight: 500; }

.suggestion-box { padding: 16px; margin-top: 16px; border-radius: var(--radius-sm); background: var(--primary-light); border: 1px solid var(--primary-100); }
.suggestion-box.success { background: var(--success-bg); border-color: #6ee7b7; }
.suggestion-box p { font-size: 0.88rem; margin-bottom: 8px; }
.suggestion-actions { display: flex; gap: 8px; }

.country-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 0.82rem; }
.country-row:last-child { border-bottom: none; }
.country-name { flex: 1; }
.country-days { font-weight: 700; color: var(--primary); }
.country-trips { font-size: 0.72rem; color: var(--text-muted); }

.stamp-form { display: flex; flex-direction: column; gap: 12px; }
.match-select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.875rem; font-family: inherit; }

/* ============ ACTIVE TRIPS ============ */
.active-trip-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 22px 24px; margin-bottom: 16px; border-left: 5px solid var(--success); transition: box-shadow var(--transition); }
.active-trip-card:hover { box-shadow: var(--shadow-lg); }
.active-trip-card.active-trip-warning { border-left-color: var(--warning); }
.active-trip-card.active-trip-danger { border-left-color: var(--danger); animation: pulse-danger 2s infinite; }
.active-trip-card.active-trip-safe { border-left-color: var(--success); }

@keyframes pulse-danger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.15); }
  50% { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
}

.active-trip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.active-trip-country { display: flex; align-items: center; gap: 12px; }
.active-trip-flag { font-size: 1.4rem; }
.active-trip-country strong { font-size: 1.1rem; display: block; }
.active-trip-city { font-size: 0.78rem; color: var(--text-muted); }

.active-trip-days { text-align: center; background: var(--primary-light); padding: 12px 20px; border-radius: var(--radius); }
.active-trip-days-number { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.active-trip-days-label { font-size: 0.68rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.active-trip-card.active-trip-warning .active-trip-days { background: var(--warning-bg); }
.active-trip-card.active-trip-warning .active-trip-days-number { color: var(--warning); }
.active-trip-card.active-trip-danger .active-trip-days { background: var(--danger-bg); }
.active-trip-card.active-trip-danger .active-trip-days-number { color: var(--danger); }

.active-trip-details { display: flex; gap: 16px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; }

.active-trip-visa { margin-top: 4px; }
.active-trip-visa-bar { height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.active-trip-visa-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.active-trip-visa-fill.active-trip-safe { background: var(--success); }
.active-trip-visa-fill.active-trip-warning { background: var(--warning); }
.active-trip-visa-fill.active-trip-danger { background: var(--danger); }
.active-trip-visa-text { font-size: 0.8rem; color: var(--text-secondary); }

.active-trip-alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; margin-top: 10px; }
.active-trip-alert.danger { background: var(--danger-bg); color: #991b1b; }
.active-trip-alert.warning { background: var(--warning-bg); color: #92400e; }

/* ============ TIMELINE ============ */
.tl-title { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.tl-track { position: relative; height: 34px; background: var(--bg-alt); border-radius: 6px; overflow: hidden; }
.tl-track-lg { height: 42px; }
.tl-bar { position: absolute; top: 4px; height: calc(100% - 8px); border-radius: 4px; opacity: 0.85; cursor: pointer; transition: opacity var(--transition); }
.tl-bar:hover { opacity: 1; z-index: 1; box-shadow: 0 0 0 2px rgba(0,0,0,0.15); }
.tl-bar.tl-active { opacity: 1; background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,0.3) 3px, rgba(255,255,255,0.3) 6px) !important; }
.tl-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.tl-months { position: relative; height: 18px; margin-top: 2px; }
.tl-month { position: absolute; font-size: 0.62rem; color: var(--text-muted); transform: translateX(-50%); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tl-legend-item { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--text-muted); }
.tl-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* ============ PROFILE ============ */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile-grid > .card:first-child { grid-column: 1 / -1; }

.profile-avatar-section { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: 700; flex-shrink: 0; }
.profile-info { display: flex; flex-direction: column; gap: 2px; }
.profile-info strong { font-size: 1.2rem; }
.profile-info span { font-size: 0.82rem; color: var(--text-muted); }

.input-with-badge { position: relative; }
.input-with-badge input { padding-right: 110px; }
.email-badge { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.email-badge.verified { background: var(--success-bg); color: var(--success); }
.email-badge.unverified { background: var(--warning-bg); color: var(--warning); }
.verify-input { display: flex; gap: 8px; align-items: center; margin-top: 8px; }

.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 0.85rem; }
.summary-row:last-child { border-bottom: none; }
.summary-row.highlight { background: var(--primary-light); margin: 0 -24px; padding: 12px 24px; border-radius: var(--radius-sm); border-bottom: none; margin-top: 8px; }
.summary-row.highlight strong { color: var(--primary); font-size: 1.05rem; }

/* ============ UTILITIES ============ */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state p { margin-bottom: 8px; }
.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.error { text-align: center; padding: 20px; color: var(--danger); }
.text-danger { color: var(--danger) !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ FOOTER ============ */
.footer { background: #0f172a; color: var(--text-muted); padding: 28px 0; text-align: center; font-size: 0.78rem; margin-top: 48px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); z-index: 99; }
    .nav.open { display: flex; }
    .nav a { padding: 12px 16px; border-radius: var(--radius-sm); }
    .nav-toggle { display: block; }

    .forum-hero h1, .dashboard-hero h1 { font-size: 1.6rem; }
    .forum-toolbar { flex-direction: column; }
    .forum-search { max-width: 100%; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .status-grid { grid-template-columns: 1fr; }
    .topic-item { flex-wrap: wrap; }
    .topic-info h3 { white-space: normal; }
    .post { flex-direction: column; gap: 12px; }
    .post-sidebar { flex-direction: row; align-items: center; gap: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .category-meta { display: none; }
    .entries-table { font-size: 0.78rem; }
    .entries-table th, .entries-table td { padding: 8px 6px; }
    .visa-card-body { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-avatar-section { flex-direction: column; text-align: center; }
    .user-name { display: none; }
    .auth-card { padding: 28px 20px; }
}
