.dr-page {
    width: min(1000px, 100%);
    box-sizing: border-box;
    margin: 0 auto;
    padding: var(--page-pad-y-loose) var(--page-pad-x) calc(var(--page-pad-y-loose) + 28px);
}

.dr-hero {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
    padding: 24px 26px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(20,102,214,0.2), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.024));
    box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

.dr-kicker {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    color: rgba(255,255,255,0.52);
}

.dr-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.dr-subtitle {
    max-width: 66ch;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.64);
    margin: 0;
}

.dr-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dr-panel {
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.026));
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.dr-panel-head {
    display: grid;
    gap: 4px;
    margin: 0 0 18px;
}

.dr-panel-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
}

.dr-panel-copy {
    margin: 0;
    max-width: 62ch;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.62);
}

.dr-form {
    margin: 0;
}

.dr-row  {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.dr-row--search {
    grid-template-columns: 160px 120px auto;
    align-items: end;
}

.dr-row:last-child {
    margin-bottom: 0;
}

.dr-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    position: relative;
}

.dr-field--action {
    min-width: 0;
}

.dr-field label,
.dr-section-label,
.dr-next-label {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    color: rgba(255,255,255,0.52);
    text-transform: none;
    letter-spacing: normal;
    min-height: 16px;
    display: flex;
    align-items: center;
}

.dr-field label.dr-label-spacer {
    visibility: hidden;
}

.dr-field input,
.dr-field select {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
}

.dr-field input[type="date"],
.dr-field input[type="time"] {
    color-scheme: dark;
}

.dr-field input[type="date"]::-webkit-calendar-picker-indicator,
.dr-field input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(0.85);
}

.dr-field input::placeholder {
    color: rgba(255,255,255,0.28);
}

.dr-field input:focus,
.dr-field select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.32);
}

.dr-field select option {
    background: #1a1a2e;
}

.dr-app-picker {
    display: none;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    padding: 10px 12px;
    min-height: 42px;
    text-align: left;
    position: relative;
    font-family: inherit;
}

.dr-app-picker::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.45);
    font-size: 12px;
}

.is-native-app #dr-date {
    display: none;
}

.is-native-app .dr-app-picker {
    display: block;
}

.dr-picker-modal[hidden] { display: none !important; }
.dr-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.dr-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4,10,20,0.72);
}

.dr-picker-sheet {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #0d1830;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    padding: 16px;
}

.dr-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.dr-picker-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.dr-picker-nav {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.dr-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.dr-picker-weekday {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    font-weight: 700;
}

.dr-picker-day {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 12px;
    min-height: 42px;
    font-family: inherit;
}

.dr-picker-day.is-empty {
    visibility: hidden;
}

.dr-picker-day.is-selected {
    background: linear-gradient(180deg, #4e8ef7 0%, #3a7ae0 100%);
    border-color: transparent;
}

.dr-picker-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.dr-picker-action {
    border: none;
    border-radius: 10px;
    min-height: 40px;
    padding: 10px 14px;
    font-weight: 700;
    font-family: inherit;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
}

.dr-btn {
    min-height: 42px;
    background: linear-gradient(180deg, #1466d6 0%, #0c56bf 100%);
    border: none;
    border-radius: 11px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    padding: 11px 18px;
    white-space: nowrap;
    transition: filter 0.15s;
}

.dr-btn:hover:not(:disabled) { filter: brightness(1.1); }
.dr-btn:disabled { background: rgba(255,255,255,0.12); cursor: not-allowed; filter: none; }
.dr-error { color: #ef4444; font-size: 13px; margin-top: 8px; }

.dr-section {
    margin: 0;
}

.dr-svc-list,
#dr-svc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dr-svc-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
    margin: 0;
}

.dr-svc-card:hover  {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.05);
}

.dr-svc-card.selected {
    border-color: #4e8ef7;
    background: rgba(78,142,247,0.1);
}

.dr-svc-time {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    min-width: 0;
}

.dr-svc-body { min-width: 0; }

.dr-svc-op {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
}

.dr-svc-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 3px;
}

.dr-badge {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
}

.badge-cancelled { background: rgba(239,68,68,0.18); color: #ff8f8f; }
.badge-delayed   { background: rgba(251,191,36,0.18); color: #ffd66b; }

.dr-comp {
    margin: 0;
}

.dr-comp-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.dr-comp-desc  {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.6);
    margin: 0 0 16px;
}

.dr-next {
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.dr-next-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    padding: 7px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.dr-next-row:first-of-type { border-top: none; }

.dr-next-dep {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    min-width: 44px;
}

.dr-fare-row {
    display: grid;
    grid-template-columns: 160px 170px;
    gap: 12px;
    margin-bottom: 16px;
    align-items: end;
}

.dr-fare-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dr-fare-inline input {
    flex: 1;
    margin: 0;
}

.dr-fare-prefix {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
}

.dr-result {
    border-radius: 14px;
    padding: 18px;
}

.dr-result.eligible   { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3); }
.dr-result.ineligible { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); }
.dr-result.review     { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25); }

.dr-result-head {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dr-result.eligible .dr-result-head { color: #22c55e; }
.dr-result.ineligible .dr-result-head { color: #ef4444; }
.dr-result.review .dr-result-head { color: #fbbf24; }

.dr-result-amount {
    font-size: 30px;
    font-weight: 800;
    color: #22c55e;
    margin: 6px 0 4px;
}

.dr-result-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.62);
    line-height: 1.5;
}

.dr-notes {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.48);
    line-height: 1.6;
}

.dr-claim-link {
    display: inline-block;
    margin-top: 12px;
    background: #4e8ef7;
    color: #fff;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.dr-claim-link:hover { background: #3a7ae0; }

.dr-claim-warning {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255,255,255,0.68);
}

.dr-claim-warning strong {
    color: rgba(255,255,255,0.9);
}

.dr-inline-empty {
    font-size: 13px;
    color: rgba(255,255,255,0.46);
    padding: 12px 0;
}

@media (max-width: 900px) {
    .dr-page {
        width: 100%;
    }

    .dr-row--search,
    .dr-fare-row {
        grid-template-columns: 1fr 1fr;
    }

    .dr-field--action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .dr-page {
        padding: var(--page-pad-y-tight) var(--page-pad-x) 108px;
    }

    .dr-hero {
        padding: 18px 16px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .dr-title {
        font-size: 22px;
    }

    .dr-subtitle {
        font-size: 13px;
    }

    .dr-panel {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .dr-row,
    .dr-row--search,
    .dr-fare-row {
        grid-template-columns: 1fr;
    }

    .dr-field--action {
        grid-column: auto;
    }

    .dr-svc-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .dr-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
