@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --bg-1: #0f172a;
    --bg-2: #1e1b4b;
    --bg-3: #312e81;
    --card-bg: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.18);
    --text-main: #ffffff;
    --text-soft: rgba(255,255,255,0.78);
    --text-muted: rgba(255,255,255,0.62);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.28);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --primary: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    --accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --card-grad: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
    --success: #22c55e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    min-height: 100%;
}

body {
    color: var(--text-main);
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
    position: relative;
    overflow-x: hidden;
}

.app-body {
    min-height: 100vh;
}

.app-bg::before,
.app-bg::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.app-bg::before {
    width: 260px;
    height: 260px;
    background: #7c3aed;
    top: 40px;
    left: -40px;
}

.app-bg::after {
    width: 320px;
    height: 320px;
    background: #2563eb;
    bottom: 50px;
    right: -60px;
}

a {
    text-decoration: none;
    color: inherit;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 800;
}

.subtext,
.demo-note {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

label {
    display: block;
    margin: 14px 0 8px;
    font-weight: 600;
    color: var(--text-soft);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

button,
.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 700;
    transition: .25s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
}

.btn-ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
}

.danger-outline {
    border-color: rgba(239, 68, 68, 0.45);
    color: #ffd4d4;
}

.alert.error {
    background: rgba(239, 68, 68, 0.18);
    color: #fff;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.app-shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
}

.glass-card {
    background: var(--card-grad);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
}

/* =========================
   TOPBAR CLEAN HORIZONTAL LAYOUT
========================= */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 24px;
    margin-bottom: 18px;
    background: linear-gradient(145deg, rgba(120, 100, 220, 0.22), rgba(45, 70, 180, 0.14));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-wrap: nowrap;
}

.topbar-brand-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    min-width: auto;
}

.topbar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    flex: 0 0 auto;
}

.topbar-logo {
    height: 64px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

.topbar-text {
    display: none;
}

.topbar h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.02;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.topbar-sub {
    margin: 8px 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    margin-left: auto;
    flex: 1 1 auto;
}

.topbar-actions .btn-ghost,
.topbar-actions .danger-outline,
.topbar-actions .btn-icon {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.topbar-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
}

.topbar-actions .btn-ghost:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.topbar-actions .danger-outline {
    background: rgba(255, 90, 110, 0.06);
    border: 1px solid rgba(255, 110, 130, 0.42);
    color: #ffd8df;
}

.topbar-actions .danger-outline:hover {
    background: rgba(255, 90, 110, 0.12);
    border-color: rgba(255, 120, 140, 0.65);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    padding: 0;
    font-size: 20px;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
}

.topbar-actions .btn-icon,
.topbar-actions .btn-ghost.btn-icon,
.topbar-actions .danger-outline.btn-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: #ffffff;
    font-size: 20px;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topbar-actions .btn-icon:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 10px 20px rgba(0,0,0,0.16);
}

.topbar-actions .danger-outline.btn-icon {
    border-color: rgba(239, 68, 68, 0.35);
    color: #ffd6d6;
    background: rgba(239, 68, 68, 0.08);
}

.topbar-actions .danger-outline.btn-icon:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.55);
}

.btn-icon i,
.topbar-actions .btn-icon i {
    line-height: 1;
    pointer-events: none;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(230, 220, 255, 0.82);
    margin-bottom: 6px;
}

/* =========================
   DASHBOARD SPACING
========================= */

.dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

.hero-card {
    position: relative;
    display: block;
    padding: 22px;
    border-radius: 30px;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(122, 110, 214, 0.30), rgba(58, 90, 215, 0.26));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(124,58,237,0.10), rgba(37,99,235,0.05));
    pointer-events: none;
}

.hero-card__content {
    position: relative;
    z-index: 2;
}

.hero-card__badge {
    position: relative;
    z-index: 2;
}

.hero-card h2 {
    margin: 4px 0 8px;
    font-size: 2.15rem;
    line-height: 1.02;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}

.hero-location {
    margin: 0 0 16px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.84);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 14px;
}

.hero-meta-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 14px;
}

.meta-label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hero-meta-box strong {
    font-size: 16px;
    line-height: 1.4;
}

.hero-trip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c4dff, #4f6dff);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(90, 92, 255, 0.30);
    margin-top: 6px;
    align-self: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dashboard-card,
.panel-card {
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card-link {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.card-label {
    color: var(--text-soft);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.card-subtext,
.muted,
.panel-card__footer {
    color: var(--text-muted);
    font-size: 14px;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.panel-card {
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(114, 128, 196, 0.22), rgba(54, 76, 146, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
    text-decoration: none;
    color: inherit;
}

.panel-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-card__header h3 {
    margin: 4px 0 0;
    font-size: 1.25rem;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
}

.panel-card__footer {
    margin-top: 16px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.next-activity-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.next-activity-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.next-activity-meta,
.next-activity-place,
.muted {
    color: rgba(255, 255, 255, 0.78);
}

.countdown-box {
    margin-top: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
}

.countdown-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b5cff, #4e72ff);
}

.progress-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.weather-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.weather-card__temp {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.weather-card__condition {
    margin-top: 4px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
}

.weather-card__location {
    margin-top: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.68);
}

.weather-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.weather-stat {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-stat__label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 4px;
}

.weather-stat strong {
    color: #fff;
    font-size: 1rem;
}

.metric-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.metric-row strong {
    color: #fff;
    font-size: 1rem;
}

.quick-panel {
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(116, 93, 196, 0.20), rgba(55, 84, 165, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.quick-btn {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: transform 0.18s ease, background 0.18s ease;
}

.quick-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.11);
}

.quick-btn--primary {
    background: linear-gradient(135deg, #7c4dff, #4f6dff);
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(89, 93, 255, 0.26);
}

.trip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.trip-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.trip-card__image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(37,99,235,0.20));
    display: flex;
    align-items: center;
    justify-content: center;
}

.trip-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trip-card__placeholder {
    font-size: 52px;
    opacity: .9;
}

.trip-status {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.16);
}

.trip-card__body {
    padding: 20px;
}

.trip-card__body h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.trip-location {
    color: var(--text-soft);
    margin-bottom: 16px;
}

.trip-card__meta {
    display: grid;
    gap: 10px;
}

.trip-meta-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 12px 14px;
}

.trip-card__footer {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-weight: 700;
    color: #fff;
}

.trip-tabs {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    flex-wrap: wrap;
}

.trip-tab {
    padding: 12px 18px;
    border-radius: 16px;
    color: var(--text-soft);
    font-weight: 700;
    transition: .22s ease;
}

.trip-tab.active,
.trip-tab:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-list__item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mini-list__item:last-child {
    border-bottom: none;
}

.mini-status {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.10);
}

.status-active,
.status-planned {
    background: rgba(34,197,94,0.16);
}

.status-completed {
    background: rgba(37,99,235,0.16);
}

.status-canceled {
    background: rgba(239,68,68,0.18);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.info-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px;
}

.info-box.compact {
    padding: 12px 14px;
}

.info-box strong {
    display: block;
    line-height: 1.5;
}

.budget-list {
    display: grid;
    gap: 16px;
}

.budget-row {
    display: grid;
    gap: 10px;
}

.budget-row__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #fff;
}

.progress-bar.small {
    height: 12px;
}

.tracker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tracker-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px;
}

.tracker-card h4 {
    margin: 10px 0 8px;
    font-size: 18px;
}

.tracker-badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(124,58,237,0.22);
}

.activity-group {
    padding: 22px;
    border-radius: var(--radius-xl);
}

.activity-group__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.activity-list {
    display: grid;
    gap: 14px;
}

.glass-lite {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 18px;
}

.activity-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.activity-card__top h4 {
    font-size: 22px;
    margin-bottom: 6px;
}

.activity-desc {
    color: var(--text-soft);
    margin-bottom: 14px;
    line-height: 1.6;
}

.activity-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.activity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.expense-list {
    display: grid;
    gap: 14px;
}

.expense-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.expense-row__left {
    flex: 1;
}

.expense-row__right {
    text-align: right;
    min-width: 140px;
}

.expense-amount {
    font-size: 22px;
    font-weight: 800;
}

.expense-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.expense-tag {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.10);
    font-size: 12px;
    font-weight: 600;
}

.form-panel {
    padding: 22px;
    border-radius: var(--radius-xl);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.activities-view-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.activities-view-tabs::-webkit-scrollbar {
    display: none;
}

.collapsible-group {
    padding: 18px;
    border-radius: var(--radius-xl);
}

.collapsible-toggle {
    width: 100%;
    background: transparent;
    border: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.collapsible-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collapse-icon {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-soft);
    min-width: 20px;
    text-align: center;
}

.collapsible-content {
    display: none;
    padding-top: 16px;
}

.collapsible-content.is-open {
    display: block;
}

.activity-grid-mobile {
    display: grid;
    gap: 14px;
}

.trip-tabs-mobile {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.trip-tabs-mobile::-webkit-scrollbar {
    display: none;
}

.collapsible-panel {
    padding: 18px;
    border-radius: var(--radius-xl);
}

.plain-panel {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 960px) {
    .hero-meta {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .trip-grid,
    .tracker-grid,
    .info-grid,
    .activity-meta-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        flex-direction: column;
    }

    .hero-card__badge {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .app-shell {
        padding: 14px;
    }

    .topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        gap: 10px;
        border-radius: 22px;
    }

    .topbar-logo {
        height: 54px;
        max-width: 100px;
    }

    .topbar-actions {
        gap: 8px;
        width: auto;
        justify-content: flex-end;
    }

    .topbar-actions .btn-icon,
    .topbar-actions .btn-ghost.btn-icon,
    .topbar-actions .danger-outline.btn-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 18px;
        border-radius: 14px;
    }

    .hero-card {
        padding: 20px;
        border-radius: 26px;
    }

    .hero-card h2,
    .hero-card__content h2 {
        font-size: 1.9rem;
    }

    .card-value,
    .countdown-value {
        font-size: 24px;
    }

    .panel-card,
    .quick-panel {
        border-radius: 24px;
        padding: 18px;
    }

    .panel-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-card__header .btn-primary,
    .panel-card__header .btn-ghost {
        width: 100%;
        text-align: center;
    }

    .quick-actions,
    .form-actions,
    .activity-actions,
    .trip-tabs {
        flex-direction: column;
    }

    .quick-btn {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary,
    .form-actions .btn-ghost {
        width: 100%;
    }

    .trip-tabs.activities-view-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 8px;
    }

    .trip-tabs.activities-view-tabs .trip-tab,
    .trip-tabs-mobile .trip-tab {
        flex: 0 0 auto;
        min-width: 96px;
        text-align: center;
    }

    .expense-row,
    .activity-card__top,
    .activity-group__header {
        flex-direction: column;
    }

    .expense-row__right {
        text-align: left;
        min-width: auto;
    }

    .activity-card {
        padding: 16px;
    }

    .activity-card__top {
        align-items: flex-start;
    }

    .activity-card__top h4 {
        font-size: 18px;
    }

    .activity-actions .quick-btn {
        width: 100%;
    }

    .collapsible-toggle {
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .topbar-logo {
        height: 80px;
        max-width: 92px;
    }

    .topbar-actions .btn-icon,
    .topbar-actions .btn-ghost.btn-icon,
    .topbar-actions .danger-outline.btn-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
        border-radius: 12px;
    }

    .topbar h1 {
        font-size: 1.7rem;
    }

    .topbar-sub {
        font-size: 0.95rem;
    }

    .hero-card h2,
    .hero-card__content h2 {
        font-size: 1.72rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .weather-card__stats {
        grid-template-columns: 1fr 1fr;
    }
}

select,
select:focus,
select:active {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select option {
    background: #1e1b4b;
    color: #fff;
}

.form-group select {
    box-shadow: none;
}