:root {
  color-scheme: dark;
  --bg-primary: #0B2D4A;
  --bg-secondary: #071f34;
  --card-bg: #0B2D4A;
  --card-border: #0B2D4A;
  --accent: #25a5ff;
  --accent-light: #6ec7ff;
  --text-primary: #ffffff;
  --text-secondary: #cfd8ef;
  --muted: #9bb2d4;
  --input-bg: rgba(255, 255, 255, 0.08);
  --input-border: rgba(255, 255, 255, 0.18);
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #0B2D4A 0%, #071f34 100%);
  color: var(--text-primary);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.navbar {
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand,
.navbar-nav .nav-link,
footer {
  color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
  opacity: 0.95;
}

.navbar-nav .nav-link:hover,
.navbar-brand:hover {
  color: var(--accent) !important;
}

.container {
  max-width: 980px;
}

main {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.page-shell {
  min-height: calc(100vh - 100px);
  padding: 1.5rem 0;
}

.page-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.page-title {
  margin-bottom: 1.75rem;
  color: var(--text-primary);
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  font-weight: 600;
}

.page-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0rem;
}

.page-logo img,
.page-logo svg {
  width: 36px;
  height: 36px;
}

.form-control {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 18px;
  color: var(--text-primary);
  box-shadow: none;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(37, 165, 255, 0.75);
  box-shadow: 0 0 0 0.2rem rgba(37, 165, 255, 0.18);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.btn-primary {
  background: linear-gradient(90deg, #30b5ff 0%, #1d8ef8 100%);
  border: none;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(8, 129, 215, 0.28);
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #52c6ff 0%, #2c9dff 100%);
}

.card-header,
.card {
  background: transparent;
  border: none;
}

.alert {
  border-radius: 16px;
  opacity: 0.95;
}

footer {
  padding: 1rem 0;
  color: var(--muted);
}

@media (max-width: 767px) {
  .page-panel {
    border-radius: 20px;
    padding: 1.5rem;
  }
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.pricing-card-featured {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(37, 165, 255, 0.35);
}

.pricing-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.pricing-card p {
  margin-bottom: 1rem;
}

.details-card {
    background: #0e2f4d;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.details-header {
    color: white;
}

.details-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.details-link {
    color: white;
    font-size: 0.95rem;
}

.details-destination {
    color: #9bb3d3;
    font-size: 0.95rem;
}

.icon-btn {
    border: none;
    background: transparent;
    color: white;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-box {
    background: #123554;
    border-radius: 18px;
    padding: 14px 10px;
    text-align: center;
}

.stat-label {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.stat-value {
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

.range-wrap {
    background: #123554;
    border-radius: 22px;
    padding: 6px;
}

.range-selector {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.range-btn {
    border: none;
    background: transparent;
    color: #a7abb3;
    padding: 10px 0;
    border-radius: 18px;
    font-weight: 500;
}

.range-btn.active {
    background: #2ea8ff;
    color: white;
}

.analytics-card {
    background: #0e2942;
    border-radius: 16px;
    padding: 16px;
}

.analytics-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.analytics-range {
    color: #8fa8bd;
    font-size: 0.8rem;
}

.analytics-placeholder {
    height: 180px;
    border-radius: 12px;
    background: #123554;
    color: #8fa8bd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.custom-modal-card {
    width: 100%;
    max-width: 420px;
    background: #143F6B;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.details-tab-bar {
    display: flex;
    background: #12385a;
    border-radius: 22px;
    padding: 6px;
    gap: 6px;
    width: 100%;
    max-width: 420px;
}

.details-tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px 18px;
    border-radius: 18px;
    color: #c7d2e0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.details-tab-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.details-tab-btn.active {
    background: #36a9ff;
    color: white;
}

.table-card {
    background: #0f3557;
    border-radius: 22px;
    padding: 18px;
}

.details-links-table {
    color: white;
}

.details-links-table thead th {
    background-color: transparent !important;
    color: #9CA3AF;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.details-links-table tbody tr:hover {
    background-color: rgba(255,255,255,0.03);
}

.page-logo {
    margin-bottom: 20px;
}

.page-logo-img {
    width: 120px;
    height: auto;
    display: block;
}

.dashboard-panel {
    padding: 16px 16px 30px 16px;
}

.range-shell {
    background-color: #123554;
    border-radius: 22px;
    padding: 6px;
}

.range-selector {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.range-btn {
    border: none;
    background: transparent;
    color: #A7ABB3;
    border-radius: 18px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    transition: 0.2s ease;
}

.range-btn:hover {
    color: white;
}

.range-btn.active {
    background-color: #2EA8FF;
    color: white;
}

.dashboard-date {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 16px 2px 0 2px;
}

.dashboard-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

.analytics-card2 {
    background-color: #123554;
    border-radius: 24px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analytics-label {
    color: white;
    font-size: 18px;
}

.analytics-value {
    color: white;
    font-size: 28px;
    text-align: right;
    font-weight: 500;
}

.analytics-value-small {
    font-size: 24px;
}
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.qr-modal-card {
    background: #143F6B;
    border-radius: 24px;
    padding: 20px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.qr-modal-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.qr-frame-outer {
    display: flex;
    justify-content: center;
}

.qr-frame-inner {
    background: white;
    border-radius: 12px;
    padding: 5px;
    display: inline-flex;
}

.qr-modal-image {
    width: 220px;
    height: 220px;
    object-fit: contain;
    display: block;
}

.qr-close-btn {
    background-color: #5A6C7D;
    color: white;
    border: none;
    border-radius: 14px;
}

.qr-save-btn {
    background-color: #2EA8FF;
    color: white;
    border: none;
    border-radius: 10px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.support-form-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px 18px;
    align-items: start;
}

.support-label {
    color: white;
    align-self: center;
    font-weight: 500;
}

.support-input {
    width: 100%;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 10px 12px;
    min-height: 44px;
}

.support-input option {
    color: black;
}

.support-editor-wrap {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 10px;
}

.support-editor {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: none;
    outline: none;
    background: transparent;
    color: white;
}

.support-editor::placeholder {
    color: rgba(255,255,255,0.6);
}

.support-btn-row {
    grid-column: 1 / span 2;
}

.support-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-weight: 600;
}

.support-btn.primary {
    background: #2EA8FF;
}

.support-btn.secondary {
    background: #5A6C7D;
}