body {
    background: #0b0f19;
    color: white;
    font-family: 'Inter', sans-serif;
}

/* global page layouts */
.auth-page,
.account-page,
.favorites-page,
.detail-page {
    min-height: 100vh;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.account-page,
.favorites-page,
.detail-page {
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.account-card {
    width: 100%;
    max-width: 980px;
}

.page-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* top auth */
.top-auth-bar {
    width: 100%;
    padding: 16px 0 0 0;
    margin-bottom: 24px;
}

.top-auth-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #161e2d;
    border: 1px solid #2d3748;
    border-radius: 999px;
    padding: 8px 14px;
    color: #e2e8f0;
    font-weight: 700;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #38bdf8;
    color: #0b0f19;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    flex-shrink: 0;
}

.user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-role {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 800;
}

.user-email {
    font-size: 0.9rem;
    color: #f8fafc;
    font-weight: 800;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 800;
}

.top-auth-link:hover {
    background: #334155;
    color: white;
}

.top-auth-link.primary {
    background: #38bdf8;
    color: #0b0f19;
    border: none;
}

.top-auth-link.primary:hover {
    background: #7dd3fc;
    color: #0b0f19;
}

/* generic buttons */
.btn-main {
    background: #38bdf8;
    color: #0b0f19;
    font-weight: 800;
    border-radius: 14px;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-main:hover {
    background: #7dd3fc;
    color: #0b0f19;
}

.btn-secondary {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.btn-secondary:hover {
    background: #334155;
    color: white;
}

/* forms */
.form-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-control,
.form-select,
.route-select {
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    border-radius: 12px;
    padding: 12px;
}

.form-control:focus,
.form-select:focus,
.route-select:focus {
    background: #0f172a;
    color: white;
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.15);
}

.form-select option {
    background: #0f172a;
    color: white;
}

/* password field with eye */
.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: #1e293b;
    color: #e2e8f0;
}

/* hero */
.hero-section {
    padding: 42px 0;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0b0f19 100%);
    margin-bottom: 0;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-section h1 span {
    color: #38bdf8;
}

/* common panels/cards */
.panel-box,
.filters-box,
.auth-card,
.account-card,
.route-switcher-wrap,
.favorite-box,
.hero-box,
.empty-state,
.empty-info {
    background: #161e2d;
    border: 1px solid #2d3748;
    border-radius: 24px;
}

.filters-box,
.auth-card,
.account-card,
.route-switcher-wrap,
.favorite-box,
.empty-state,
.empty-info {
    padding: 22px;
}

.filters-box {
    margin-top: 0;
    margin-bottom: 0;
}

.hero-box {
    overflow: hidden;
}

.filters-title,
.panel-title,
.account-title,
.auth-title,
.page-title {
    color: #38bdf8;
    font-weight: 800;
}

.filters-title,
.panel-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.auth-title,
.account-title,
.page-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #94a3b8;
    margin-bottom: 24px;
}

.info-box {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}

.info-label {
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.info-value {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 4px;
}

.message-error {
    background: #3b1014;
    border: 1px solid #7f1d1d;
    color: #fca5a5;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.message-success {
    background: #0f2d1f;
    border: 1px solid #14532d;
    color: #86efac;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.page-header,
.actions,
.page-actions,
.auth-links,
.favorite-actions,
.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.actions {
    margin-top: 22px;
}

.auth-links {
    margin-top: 18px;
    justify-content: space-between;
}

.auth-links a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
}

/* deal cards */
.deal-card {
    background: #161e2d;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #2d3748;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.deal-card:hover {
    transform: translateY(-8px);
    border-color: #38bdf8;
}

.deal-image-wrap {
    position: relative;
}

.deal-img,
.hero-img {
    width: 100%;
    object-fit: cover;
    background: #0f172a;
    display: block;
}

.deal-img {
    height: 250px;
}

.hero-img {
    height: 320px;
}

.favorite-star-form {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
    z-index: 2;
}

.favorite-star-link {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    text-decoration: none;
}

.favorite-star-btn,
.favorite-star-login {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 900;
    border: 1px solid #334155;
    background: rgba(11, 15, 25, 0.88);
    color: #e2e8f0;
    backdrop-filter: blur(4px);
    transition: 0.2s;
    cursor: pointer;
}

.favorite-star-btn:hover,
.favorite-star-login:hover {
    background: rgba(30, 41, 59, 0.96);
    color: white;
    border-color: #475569;
}

.favorite-star-btn.saved {
    color: #facc15;
    border-color: #ca8a04;
    background: rgba(62, 42, 0, 0.92);
}

.favorite-star-btn.saved:hover {
    color: #fde047;
    background: rgba(92, 63, 4, 0.96);
    border-color: #eab308;
}

.card-content,
.hero-content {
    padding: 25px;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.deal-title,
.hero-title {
    color: #38bdf8;
    font-weight: 800;
}

.deal-title {
    font-size: 1.45rem;
    margin-bottom: 16px;
    line-height: 1.2;
    min-height: 5.22rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 14px;
}

.hero-text {
    color: #cbd5e1;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 1rem;
}

.deal-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.meta-row {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 10px 12px;
}

.meta-label {
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
}

.meta-value {
    color: #f8fafc;
    font-size: 0.98rem;
    font-weight: 800;
    margin-top: 3px;
}

.results-box {
    margin-top: 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 12px 14px;
    color: #e2e8f0;
    font-weight: 700;
}

.results-box strong {
    color: #38bdf8;
}

.page-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.deals-grid {
    margin-top: 0;
}

.btn-filter,
.btn-reset,
.btn-booking,
.btn-favorite,
.btn-remove {
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
    text-align: center;
    transition: 0.2s;
}

.btn-filter,
.btn-booking {
    background: #38bdf8;
    color: #0b0f19;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-filter:hover,
.btn-booking:hover {
    background: #7dd3fc;
    color: #0b0f19;
}

.btn-reset {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    text-decoration: none;
    display: inline-block;
}

.btn-reset:hover {
    background: #334155;
    color: white;
}

.btn-favorite {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    width: 100%;
    text-decoration: none;
    display: inline-block;
}

.btn-favorite:hover {
    background: #334155;
    color: white;
}

.btn-favorite.saved {
    background: #3b0d20;
    border-color: #7e2248;
    color: #f9a8d4;
}

.btn-remove {
    background: #3b0d20;
    border: 1px solid #7e2248;
    color: #f9a8d4;
    width: 100%;
}

.btn-remove:hover {
    background: #5b1632;
    color: #ffd0e7;
}

.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* detail page */
.back-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.preview-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-preview,
.badge-status {
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    font-size: 0.8rem;
}

.badge-preview {
    background: #1d4ed8;
    color: white;
}

.badge-status-published {
    background: #10b981;
    color: white;
}

.badge-status-draft {
    background: #f59e0b;
    color: black;
}

.route-label {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

/* calendar/detail specific */
.calendar-card {
    background: white;
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    color: #333;
}

.section-label {
    font-weight: 800;
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
    border-left: 5px solid #27ae60;
    padding-left: 10px;
    text-transform: uppercase;
}

.summary-panel {
    background: #161e2d;
    width: 100%;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    align-items: center;
    color: white;
    border: 1px solid #2d3748;
}

.summary-dates {
    display: flex;
    gap: 40px;
    margin-bottom: 26px;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.date-box {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.date-label {
    font-size: 0.8em;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.date-value {
    font-size: 2.2em;
    font-weight: 900;
    color: #f1c40f;
}

.summary-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.book-link {
    background: #38bdf8;
    color: #0b0f19;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 14px;
    font-size: 1.15em;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s;
    display: none;
    text-align: center;
    border: none;
}

.book-link:hover {
    background: #7dd3fc;
    color: #0b0f19;
}

.reset-btn {
    background: transparent;
    color: #f87171;
    border: 1px solid #7f1d1d;
    padding: 18px 28px;
    border-radius: 14px;
    font-size: 1.05em;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}

.reset-btn:hover {
    background: #7f1d1d;
    color: white;
}

.slider-viewport {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 10px;
}

.month-unit {
    min-width: calc(33.33% - 7px);
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2c3e50;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2em;
}

.btn-prev {
    left: -20px;
}

.btn-next {
    right: -20px;
}

.month-name {
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
    color: #e67e22;
    text-transform: capitalize;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.day-header {
    font-size: 0.7em;
    text-align: center;
    color: #95a5a6;
    font-weight: bold;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    background: #fdfdfd;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    color: #ccc;
}

.day.available-out {
    background: #27ae60;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.day.available-out.hidden-out {
    background: #f9f9f9 !important;
    color: #eee !important;
    cursor: default !important;
    pointer-events: none;
}

.day.selected-out {
    background: #f1c40f !important;
    color: #000 !important;
    font-weight: 900;
    border: 2px solid #2c3e50;
}

.day.available-in {
    background: #3498db;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.day.selected-in {
    background: #3498db !important;
    color: white !important;
    border: 2px solid white;
    transform: scale(1.1);
}

.return-card {
    border-top: 5px solid #3498db;
    opacity: 0.3;
    pointer-events: none;
    transition: 0.3s;
}

.return-card.active {
    opacity: 1;
    pointer-events: auto;
}

/* responsive */
@media (max-width: 767px) {
    .auth-page,
    .account-page,
    .favorites-page,
    .detail-page {
        padding: 16px;
    }

    .auth-card,
    .account-card,
    .favorite-box,
    .route-switcher-wrap,
    .empty-state,
    .empty-info {
        padding: 18px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .page-header {
        align-items: flex-start;
    }

    .top-auth-inner {
        justify-content: flex-start;
    }

    .user-email {
        max-width: 180px;
    }
}