* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-width: 340px;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #080808;
  color: #f4f4f4;
  position: relative;
  overflow-x: hidden;
}

body.is-compact-popup,
html.is-compact-popup {
  width: 340px !important;
  min-width: 340px !important;
  min-height: 250px !important;
  height: auto !important;
}

/* =========================================
   BACKGROUND IMAGE VIEWPORT (SCROLLABLE X & Y)
========================================= */

.bg-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  z-index: 0;
  background-color: #080808;
}

/* Custom Visible Scrollbars for Background Viewport */
.bg-viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.bg-viewport::-webkit-scrollbar-track {
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bg-viewport::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff2525, #8c0000);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
}

.bg-viewport::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff4d4d, #b30000);
}

.bg-viewport::-webkit-scrollbar-corner {
  background: #0c0c0c;
}

.bg-canvas {
  display: inline-block;
  min-width: 100%;
  min-height: 100%;
  vertical-align: top;
}

.bg-image {
  display: block;
  width: 100vw;
  min-width: 100vw;
  max-width: none;
  height: auto;
  min-height: 100vh;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  transition: width 0.15s ease, min-width 0.15s ease;
}

/* =========================================
   COMPACT POPUP LAUNCHER
   (Shown when opened in small popup / directly clicked from extensions)
========================================= */

.popup-launcher {
  display: none;
  width: 100%;
  min-width: 320px;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

.launcher-card {
  width: 100%;
  min-width: 290px;
  max-width: 330px;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98), rgba(12, 12, 12, 0.98));
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.1);
  box-sizing: border-box;
}

.launcher-logo {
  justify-content: center;
  margin-bottom: 12px;
}

.launcher-desc {
  color: #888;
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 18px;
}

.launcher-open-btn {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, #c51616, #760606);
  border: 1px solid #bd1717;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(170, 0, 0, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.launcher-open-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
  box-shadow: 0 8px 24px rgba(220, 0, 0, 0.45);
}

.launcher-arrow {
  font-size: 16px;
  line-height: 1;
}

/* Visibility Rules: Small Popup vs Full Tab */
@media (max-width: 650px) {
  body:not(.force-full-mode) {
    min-width: 340px !important;
    width: 340px !important;
  }
  body:not(.force-full-mode) .popup-launcher {
    display: flex;
  }
  body:not(.force-full-mode) .app-layer {
    display: none !important;
  }
  body:not(.force-full-mode) .bg-viewport {
    display: none !important;
  }
}

body.is-compact-popup .popup-launcher {
  display: flex;
}
body.is-compact-popup .app-layer {
  display: none !important;
}
body.is-compact-popup .bg-viewport {
  display: none !important;
}

/* =========================================
   FOREGROUND APP LAYER (COMPACT LEFT FORM CARD)
========================================= */

.app-layer {
  position: relative;
  z-index: 10;
  pointer-events: none;
  width: auto;
  min-height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 14px;
}

.blackfyre-app {
  width: 340px;
  max-width: 340px;
  min-width: 320px;
  margin: 0;
  pointer-events: auto;
}


/* =========================================
   BRAND BAR
========================================= */

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 2px 2px 14px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background:
    linear-gradient(145deg, #ff2525, #8c0000);

  color: white;

  font-size: 22px;
  font-weight: 900;

  box-shadow:
    0 0 15px rgba(255, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  transform: skew(-5deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 2px;
  color: #ffffff;
}

.brand-text span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #888;
  font-weight: 700;
}


.window-btn {
  width: 34px;
  height: 34px;

  padding: 0;
  margin: 0;

  border: 1px solid #292929;
  border-radius: 9px;

  background: #111;
  color: #aaa;

  font-size: 18px;

  cursor: pointer;

  transition: all 0.2s ease;
}

.window-btn:hover {
  background: #1b1b1b;
  border-color: #b40000;
  color: #ff3b3b;
}


/* =========================================
   HEADER
========================================= */

.generator-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  margin-bottom: 14px;
}

.eyebrow {
  display: block;

  margin-bottom: 4px;

  color: #d71920;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 2px;
}

.generator-header h1 {
  margin: 0;

  font-size: 21px;
  line-height: 1.1;

  color: #ffffff;

  letter-spacing: -0.5px;
}

.generator-header p {
  margin: 6px 0 0;

  max-width: 245px;

  color: #777;

  font-size: 10px;
  line-height: 1.4;
}


.status-dot {
  display: flex;
  align-items: center;
  gap: 5px;

  padding-bottom: 3px;

  color: #777;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 1px;
}

.status-dot span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #ff2525;

  box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}


/* =========================================
   FORM CARD
========================================= */

.form-card {
  padding: 15px;

  background:
    linear-gradient(145deg,
      rgba(25, 25, 25, 0.98),
      rgba(11, 11, 11, 0.98));

  border: 1px solid #272727;
  border-radius: 13px;

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


/* =========================================
   SECTION HEADINGS
========================================= */

.section-heading {
  display: flex;
  align-items: center;
  gap: 9px;

  margin: 4px 0 12px;
}

.section-heading:not(:first-child) {
  margin-top: 19px;
}

.section-icon {
  width: 27px;
  height: 27px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 7px;

  background: #1c0808;
  border: 1px solid #441313;

  color: #e52b2b;

  font-size: 8px;
  font-weight: 900;
}

.section-heading div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.section-heading strong {
  color: #ddd;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.2px;
}

.section-heading span {
  color: #666;

  font-size: 8px;
}


/* =========================================
   FIELDS
========================================= */

.field {
  min-width: 0;
}

.field label {
  display: block;

  margin: 0 0 5px;

  color: #888;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 1px;
}

input,
select {
  width: 100%;
  height: 36px;

  padding: 0 10px;

  border: 1px solid #2c2c2c;
  border-radius: 7px;

  outline: none;

  background: #111;
  color: #eee;

  font-family: inherit;
  font-size: 11px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

input::placeholder {
  color: #4e4e4e;
}

input:hover,
select:hover {
  border-color: #3b3b3b;
}

input:focus,
select:focus {
  border-color: #a41414;

  background: #151515;

  box-shadow:
    0 0 0 2px rgba(180, 0, 0, 0.1),
    0 0 12px rgba(180, 0, 0, 0.08);
}

select {
  cursor: pointer;
}

select option {
  background: #111;
  color: #eee;
}


/* =========================================
   GRID
========================================= */

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.field-grid+.field-grid {
  margin-top: 9px;
}


/* =========================================
   ROUTE
========================================= */

.route-fields {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;

  align-items: end;

  gap: 5px;

  margin-top: 9px;
}

.route-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 36px;

  color: #c31616;

  font-size: 14px;
  font-weight: 900;
}


/* =========================================
   RUPEE INPUT
========================================= */

.input-prefix {
  position: relative;
}

.input-prefix>span {
  position: absolute;

  left: 10px;
  top: 50%;

  transform: translateY(-50%);

  color: #d71920;

  font-size: 11px;
  font-weight: 800;

  z-index: 2;
}

.input-prefix input {
  padding-left: 24px;
}


/* =========================================
   AUTO RANGE CARD
========================================= */

.auto-range-card {
  margin: 10px 0 12px;
  padding: 10px 11px 9px;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid #331414;
  border-radius: 8px;
}

.auto-range-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.auto-range-title {
  font-size: 8.5px;
  font-weight: 800;
  color: #ff4a4a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.auto-range-badge {
  font-size: 7.5px;
  font-weight: 800;
  color: #3df58a;
  background: rgba(61, 245, 138, 0.1);
  border: 1px solid rgba(61, 245, 138, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
}

.range-hint {
  margin-top: 6px;
  font-size: 7.5px;
  color: #666;
  line-height: 1.3;
}


/* =========================================
   FORM DISPLAY & SIZE CONTROLS
========================================= */

.form-ctrl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.form-ctrl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #141414;
  border: 1px solid #282828;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.form-ctrl-card:hover:not(.is-disabled) {
  border-color: #8c0000;
}

.form-ctrl-card.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  border-color: #1f1f1f;
}

.form-ctrl-label {
  font-size: 9px;
  font-weight: 700;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-ctrl-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-ctrl-val {
  min-width: 32px;
  font-size: 10px;
}


/* =========================================
   AUTO PRESETS TOOLBAR (1-CLICK GENERATOR)
========================================= */

.auto-presets-card {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: linear-gradient(145deg, #180909 0%, #0d0404 100%);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 10px;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 100, 100, 0.12);
}

.auto-presets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.auto-presets-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preset-pulse {
  color: #ff3b3b;
  font-size: 13px;
  animation: presetGlow 1.5s ease-in-out infinite alternate;
}

@keyframes presetGlow {
  0% { transform: scale(0.9); opacity: 0.7; filter: drop-shadow(0 0 2px #ff3b3b); }
  100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px #ff4d4d); }
}

.auto-presets-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  color: #ff6b6b;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.auto-presets-desc {
  margin: 0 0 10px 0;
  font-size: 9px;
  color: #8f7d7d;
  line-height: 1.3;
}

.preset-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

@media (max-width: 480px) {
  .preset-btn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.preset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  height: 32px;
  background: linear-gradient(180deg, #220d0d 0%, #150606 100%);
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 6px;
  color: #e5e5e5;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.preset-btn:hover {
  background: linear-gradient(180deg, #3d1414 0%, #250909 100%);
  border-color: #ff3b3b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.preset-btn:active {
  transform: translateY(1px);
}

.preset-icon {
  font-size: 11px;
}

.preset-btn-random {
  background: linear-gradient(180deg, #2a1010 0%, #1a0808 100%);
  border-color: rgba(255, 77, 77, 0.45);
}

.preset-btn-random:hover {
  background: linear-gradient(180deg, #501515 0%, #2f0a0a 100%);
  border-color: #ff5555;
  box-shadow: 0 4px 15px rgba(255, 60, 60, 0.45);
}

/* Section Title Wrap & Quick Dice Buttons */
.section-title-wrap {
  flex: 1;
}

.section-dice-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #b0a0a0;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  margin-left: auto;
}

.section-dice-btn:hover {
  background: rgba(220, 38, 38, 0.25);
  border-color: rgba(255, 60, 60, 0.5);
  color: #ffffff;
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}


/* =========================================
   GENERATE BUTTON
========================================= */

.generate-btn {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: 45px;

  margin-top: 18px;
  padding: 0 13px;

  border: 1px solid #bd1717;
  border-radius: 8px;

  background:
    linear-gradient(135deg,
      #c51616,
      #760606);

  color: white;

  font-family: inherit;

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.7px;

  cursor: pointer;

  box-shadow:
    0 7px 18px rgba(170, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.generate-btn:hover {
  transform: translateY(-1px);

  filter: brightness(1.12);

  box-shadow:
    0 10px 24px rgba(200, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.generate-btn:active {
  transform: translateY(1px);
}

.generate-icon {
  font-size: 16px;
}

.generate-arrow {
  font-size: 17px;
}


/* =========================================
   NOTE
========================================= */

.generator-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  margin-top: 9px;

  color: #555;

  font-size: 7px;
  letter-spacing: 0.2px;
}

.generator-note span {
  color: #c31616;

  font-size: 7px;

  text-shadow: 0 0 7px rgba(255, 0, 0, 0.5);
}


/* =========================================
   GENERATED RESULT (NEW THEME)
========================================= */

:root {
    --bg: #040705;
    --panel: #080e0b;
    --panel-2: #0c1511;
    --panel-card: #101c16;
    --panel-elevated: #15241d;
    
    --primary: #3df58a;
    --primary-bright: #66ffa8;
    --primary-dim: rgba(61, 245, 138, 0.12);
    --primary-border: rgba(61, 245, 138, 0.22);
    --primary-glow: rgba(61, 245, 138, 0.35);

    --text-pure: #ffffff;
    --text-primary: #edf7ee;
    --text-secondary: #94a395;
    --text-muted: #647468;
    --hairline: rgba(255, 255, 255, 0.07);
    --hairline-mint: rgba(61, 245, 138, 0.15);

    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

    /* Legacy aliases */
    --green: #3df58a;
    --green-dim: rgba(61, 245, 138, 0.16);
    --green-border: rgba(61, 245, 138, 0.22);
    --muted: #94a395;
    --muted-2: #647468;
    --text: #edf7ee;

    --radius-lg: 16px;
    --radius-md: 11px;
    --radius-sm: 6px;
}

#ocean-tatkal-success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* =========================================================
   MAIN POPUP CONTAINER
========================================================= */

#pnr-confirm-popup {
    width: 100%;
    max-width: 375px;
    background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 99999;
    pointer-events: auto;

    border: 1px solid var(--primary-border);
    border-top: 1px solid rgba(61, 245, 138, 0.6);

    box-shadow:
        0 28px 70px -10px rgba(0, 0, 0, 0.96),
        0 0 45px -12px rgba(61, 245, 138, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 20px rgba(61, 245, 138, 0.03);
    
    transform-origin: center center;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    animation: popupAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#pnr-confirm-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-bright), transparent);
    filter: drop-shadow(0 0 6px var(--primary));
    z-index: 2;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =========================================================
   BRAND / RESULT HEADER
========================================================= */

.brand-block {
    padding: 16px 20px 14px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(61, 245, 138, 0.09) 0%, rgba(12, 21, 17, 0.6) 75%), var(--panel-2);
    border-bottom: 1px solid var(--primary-border);
    position: relative;
}

.brand-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.brand-title strong {
    color: var(--text-pure);
    font-weight: 700;
    letter-spacing: 0.16em;
    background: linear-gradient(135deg, #ffffff 40%, var(--primary-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(61, 245, 138, 0.45));
}

.brand-subtitle {
    margin-top: 4px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* =========================================================
   CONFIRMATION STRIP
========================================================= */

.confirmation-bar {
    height: 40px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: linear-gradient(90deg, rgba(61, 245, 138, 0.12) 0%, rgba(61, 245, 138, 0.03) 100%);
    border-bottom: 1px solid var(--primary-border);

    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.confirmation-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(61, 245, 138, 0.5);
}

.confirmation-status .icon {
    color: var(--primary-bright);
    filter: drop-shadow(0 0 6px rgba(61, 245, 138, 0.6));
}

.ticket-type-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-type {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--hairline);
}

.ticket-type .icon {
    color: var(--text-muted);
}

.banner-close-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 245, 138, 0.08);
    border: 1px solid var(--hairline-mint);
    border-radius: 6px;
    color: var(--primary-bright);
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.15s ease;
}

.banner-close-btn:hover {
    background: rgba(61, 245, 138, 0.25);
    border-color: var(--primary);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* =========================================================
   CONTENT BODY
========================================================= */

.pnr-body {
    padding: 16px 18px 18px;
    background: transparent;
}

/* =========================================================
   TRAIN HEADER
========================================================= */

.train-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 4px 2px;
}

.train-icon {
    color: var(--primary);
    background: rgba(61, 245, 138, 0.1);
    padding: 6px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--hairline-mint);
    box-shadow: 0 0 12px -2px rgba(61, 245, 138, 0.3);
    flex-shrink: 0;
}

.train-name {
    color: var(--text-pure);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   JOURNEY CARD
========================================================= */

.journey-card {
    padding: 14px 14px 12px;
    background: linear-gradient(145deg, var(--panel-card) 0%, var(--panel-2) 100%);
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    box-shadow: 
        0 4px 16px -4px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at top right, rgba(61, 245, 138, 0.08), transparent 70%);
    pointer-events: none;
}

.journey-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.station {
    flex: 0 0 auto;
}

.station:last-child {
    text-align: right;
}

.station-code {
    color: var(--text-pure);
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

.station-name {
    margin-top: 5px;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

/* =========================================================
   ROUTE TRACK
========================================================= */

.route-track {
    flex: 1;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    padding: 0 4px;
}

.route-line {
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, 
        rgba(61, 245, 138, 0.3) 0%, 
        rgba(61, 245, 138, 0.8) 50%, 
        rgba(61, 245, 138, 0.3) 100%);
    border-radius: 2px;
    position: relative;
}

.route-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-bright);
    box-shadow: 0 0 8px var(--primary);
}

.route-arrow {
    color: var(--primary);
    font-size: 15px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(61, 245, 138, 0.7);
    transform: translateY(-0.5px);
}

/* =========================================================
   DATE + TIME
========================================================= */

.journey-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.journey-meta-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.journey-meta-item .icon {
    color: var(--primary);
    opacity: 0.9;
}

.journey-meta-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   BOOKING INFORMATION PANEL
========================================================= */

.booking-panel {
    margin-top: 11px;
    border: 1px solid var(--hairline-mint);
    border-radius: var(--radius-md);
    background: var(--panel-2);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.booking-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 38px;
    padding: 9px 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
}

.booking-row + .booking-row {
    border-top: 1px solid var(--hairline);
}

.booking-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.booking-label .icon {
    color: var(--primary);
    opacity: 0.85;
}

.booking-value {
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    text-align: right;
}

.pnr-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(61, 245, 138, 0.2);
}

/* =========================================================
   CLASS + QUOTA INLINE
========================================================= */

.meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--hairline);
    background: rgba(0, 0, 0, 0.15);
}

.meta-cell {
    min-height: 38px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.meta-cell + .meta-cell {
    border-left: 1px solid var(--hairline);
}

.meta-value {
    color: var(--text-pure);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* =========================================================
   PAYMENT ROW
========================================================= */

.payment-row {
    margin-top: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    background: linear-gradient(135deg, rgba(61, 245, 138, 0.08) 0%, rgba(61, 245, 138, 0.02) 100%), var(--panel-2);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.4);
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-info .train-icon,
.payment-info > .icon {
    color: var(--primary) !important;
}

.payment-label {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.payment-method {
    margin-top: 2px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
}

.fare {
    color: var(--primary-bright);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(61, 245, 138, 0.4);
}

/* =========================================================
   SUCCESS FOOTER
========================================================= */

.success-footer {
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px;
    background: rgba(61, 245, 138, 0.04);
    border-radius: 20px;
    border: 1px solid rgba(61, 245, 138, 0.1);
}

.success-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-bright);
    box-shadow: 0 0 8px var(--primary);
    animation: pulseGlow 1.8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
        box-shadow: 0 0 4px var(--primary);
    }
    100% {
        opacity: 1;
        transform: scale(1.15);
        box-shadow: 0 0 12px var(--primary-bright);
    }
}

/* =========================================================
   ICON SYSTEM
========================================================= */

.icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.icon-sm {
    width: 13px;
    height: 13px;
}

.icon-lg {
    width: 18px;
    height: 18px;
}