/*
 * LegacyRO upgraded Bootstrap 3-compatible theme layer.
 * This replaces the old fixed-height sticky footer and adds the modern visual style.
 */

:root {
  --legacy-bg: #050303;
  --legacy-bg-soft: #120706;
  --legacy-card: rgba(16, 8, 8, 0.94);
  --legacy-card-light: rgba(37, 15, 12, 0.88);
  --legacy-border: rgba(255, 214, 102, 0.14);
  --legacy-gold: #d6a033;
  --legacy-gold-soft: #ffd76a;
  --legacy-text: #fff6e5;
  --legacy-muted: #d2bfa1;
  --legacy-danger: #c1121f;
  --legacy-radius: 18px;
  --legacy-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  color: var(--legacy-text);
  background: linear-gradient(180deg, #050303 0%, #130606 45%, #050303 100%);
  position: relative;
  isolation: isolate;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 3, 3, 0.86) 0%, rgba(10, 4, 4, 0.82) 30%, rgba(5, 3, 3, 0.90) 100%),
    radial-gradient(circle at top left, rgba(255, 215, 106, 0.14), transparent 28rem),
    radial-gradient(circle at top right, rgba(193, 18, 31, 0.22), transparent 24rem),
    url('img/legacyro-background.jpg') center top / cover no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
  opacity: 1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 215, 106, 0.08), transparent 18rem),
    radial-gradient(circle at 82% 8%, rgba(255, 190, 60, 0.07), transparent 20rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18));
}

body > .container {
  flex: 1 0 auto;
  padding: 92px 15px 45px;
}

a {
  color: var(--legacy-gold-soft);
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

a:hover,
a:focus {
  color: #fff0c2;
  text-decoration: none;
}

code {
  color: #f4d58d;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

/* Navbar */
.legacy-navbar {
  background: rgba(6, 3, 3, 0.94);
  border: 0;
  border-bottom: 1px solid var(--legacy-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.legacy-navbar .navbar-brand,
.legacy-brand {
  color: var(--legacy-gold-soft) !important;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legacy-navbar .navbar-nav > li > a {
  color: var(--legacy-muted);
  font-weight: 600;
}

.legacy-navbar .navbar-nav > li > a:hover,
.legacy-navbar .navbar-nav > .active > a,
.legacy-navbar .navbar-nav > .active > a:hover {
  color: #fff;
  background: rgba(193, 18, 31, 0.22);
}

.legacy-navbar .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.15);
}

.legacy-navbar .navbar-toggle .icon-bar {
  background: var(--legacy-gold-soft);
}

/* Cards and sections */
.legacy-card,
.legacy-feature-card,
.legacy-rate-card,
.legacy-news-panel {
  background: var(--legacy-card);
  border: 1px solid var(--legacy-border);
  border-radius: var(--legacy-radius);
  box-shadow: var(--legacy-shadow);
}

.legacy-card {
  padding: 24px;
  margin-bottom: 24px;
}

.legacy-card-heading span,
.legacy-section-heading span,
.legacy-page-heading span,
.legacy-footer h4,
.legacy-status-pill {
  color: var(--legacy-gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legacy-card-heading h3,
.legacy-section-heading h2,
.legacy-page-heading h2 {
  margin-top: 6px;
  color: #fff;
  font-weight: 800;
}

.legacy-section {
  margin: 30px 0;
}

.legacy-section-heading {
  margin-bottom: 18px;
}

.legacy-page-heading {
  margin-bottom: 25px;
}

.legacy-page-heading p,
.legacy-card p,
.legacy-feature-card p,
.legacy-footer p,
.legacy-hero-description,
.legacy-hero-note {
  color: var(--legacy-muted);
}

/* Hero */
.legacy-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 52px 42px;
  margin-bottom: 32px;
  background:
    linear-gradient(135deg, rgba(5, 3, 3, 0.98), rgba(30, 8, 8, 0.94)),
    radial-gradient(circle at 82% 12%, rgba(193, 18, 31, 0.25), transparent 22rem),
    radial-gradient(circle at 15% 20%, rgba(255, 215, 106, 0.14), transparent 22rem);
  border: 1px solid var(--legacy-border);
  box-shadow: var(--legacy-shadow);
}

.legacy-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.45;
}

.legacy-hero-content {
  position: relative;
  z-index: 1;
}

.legacy-status-pill {
  display: inline-block;
  padding: 8px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(215, 169, 75, 0.35);
  border-radius: 999px;
  background: rgba(215, 169, 75, 0.08);
}

.legacy-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.legacy-hero-tagline {
  color: var(--legacy-gold-soft);
  font-size: 22px;
  font-weight: 700;
}

.legacy-hero-description {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.7;
}

.legacy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 14px;
}

.legacy-btn-primary,
.btn.legacy-btn-primary {
  color: #170707 !important;
  background: linear-gradient(135deg, #ffe27a, #d6a033 48%, #9f1d1d);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(214, 160, 51, 0.32);
}

.legacy-btn-primary:hover,
.btn.legacy-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.legacy-btn-ghost,
.btn.legacy-btn-ghost {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-weight: 800;
}

.legacy-btn-ghost:hover,
.btn.legacy-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.legacy-hero-card {
  min-height: 300px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), var(--legacy-shadow);
  overflow: hidden;
}

.legacy-emblem-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.legacy-emblem {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #1a1304;
  background: linear-gradient(135deg, #ffe27a, #d6a033 48%, #9f1d1d);
  border-radius: 50%;
  font-weight: 900;
  font-size: 30px;
  box-shadow: 0 15px 40px rgba(215, 169, 75, 0.28);
}

.legacy-emblem-card h3 {
  color: #fff;
  font-weight: 800;
}

.legacy-carousel img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Rates */
.legacy-rate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.legacy-rate-card {
  padding: 18px;
  text-align: center;
}

.legacy-rate-card strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.legacy-rate-card span {
  color: var(--legacy-muted);
  font-size: 13px;
}

/* Features */
.legacy-feature-card {
  min-height: 220px;
  padding: 24px;
  margin-bottom: 24px;
}

.legacy-feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,226,122,0.95), rgba(193,18,31,0.75));
}

.legacy-feature-card h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

/* CTA */
.legacy-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  margin: 30px 0;
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.16), rgba(193, 18, 31, 0.16));
  border: 1px solid var(--legacy-border);
  border-radius: var(--legacy-radius);
}

.legacy-cta-strip span {
  color: var(--legacy-gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legacy-cta-strip h2 {
  margin: 6px 0;
  color: #fff;
  font-weight: 850;
}

.legacy-cta-strip p {
  margin: 0;
  color: var(--legacy-muted);
}

.legacy-cta-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Login / forms */
.form-control {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: none;
}

.form-control:focus,
.legacy-input-focus {
  border-color: rgba(243, 211, 138, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(215, 169, 75, 0.14) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  color: #fff !important;
}

label {
  color: #dbe3f0;
}

.legacy-register-link,
.legacy-small-link {
  display: inline-block;
  margin-top: 12px;
}

.legacy-account-menu,
.legacy-quick-links ul,
.legacy-check-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.legacy-account-menu li,
.legacy-quick-links li,
.legacy-check-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--legacy-border);
}

.legacy-account-menu li:last-child,
.legacy-quick-links li:last-child,
.legacy-check-list li:last-child {
  border-bottom: 0;
}

.legacy-radio-group label {
  margin-right: 18px;
  font-weight: 500;
}

.legacy-date-field .control-group,
.legacy-date-field select {
  margin-right: 6px;
}

.legacy-form-note {
  margin: 16px 0;
  color: var(--legacy-muted);
}

/* News */
.legacy-news-wrapper {
  padding: 24px;
}

.legacy-news-accordion .legacy-news-panel {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--legacy-border);
}

.legacy-news-panel > .panel-heading {
  padding: 16px 18px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 0;
}

.legacy-news-panel > .panel-heading h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  font-size: 16px;
}

.legacy-news-panel .panel-body {
  color: var(--legacy-muted);
  background: transparent;
  border-top: 1px solid var(--legacy-border) !important;
}

.legacy-news-panel .panel-footer {
  color: var(--legacy-muted);
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid rgba(255, 215, 106, 0.16);
}

.legacy-news-accordion .glyphicon-chevron-right {
  transition: .2s ease;
  transform: rotate(-90deg) scale(.85);
  color: var(--legacy-gold-soft);
}

.legacy-news-accordion .collapsed .glyphicon-chevron-right {
  transform: rotate(90deg) scale(.85);
}

.legacy-empty-state {
  padding: 18px;
  color: var(--legacy-muted);
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 14px;
}

/* Submenu */
.legacy-submenu .breadcrumb {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--legacy-border);
  border-radius: 999px;
}

.legacy-submenu .breadcrumb > .active {
  color: #fff;
}

/* Footer */
#footer,
.legacy-footer {
  position: relative;
  width: 100%;
  height: auto;
  flex-shrink: 0;
  padding: 32px 0;
  color: var(--legacy-muted);
  background: linear-gradient(180deg, rgba(8, 4, 4, 0.98), rgba(4, 2, 2, 0.99));
  border-top: 1px solid rgba(255, 215, 106, 0.16);
}

.legacy-footer h4 {
  margin-top: 0;
}

.legacy-footer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.legacy-footer-control {
  min-width: 220px;
}

.legacy-footer-separator {
  color: rgba(255,255,255,.24);
  margin: 0 8px;
}

/* Legacy Bootstrap compatibility */
.panel,
.panel-default,
.panel-heading,
.panel-footer,
.well,
.alert-info,
.alert-danger {
  border-radius: var(--legacy-radius);
}

.alert-info {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.22);
}

.alert-danger,
.legacy-alert {
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.24);
}

/* Responsive */
@media (max-width: 991px) {
  .legacy-hero {
    padding: 36px 24px;
  }

  .legacy-hero h1 {
    font-size: 42px;
  }

  .legacy-rate-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legacy-cta-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  body > .container {
    padding-top: 84px;
  }

  .legacy-hero {
    border-radius: 20px;
    padding: 28px 20px;
  }

  .legacy-hero h1 {
    font-size: 36px;
  }

  .legacy-hero-actions,
  .legacy-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .legacy-hero-actions .btn,
  .legacy-cta-actions .btn {
    width: 100%;
  }

  .legacy-rate-grid {
    grid-template-columns: 1fr;
  }
}


/* Red / Gold Legacy RO polish */
.legacy-navbar .navbar-brand:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: #c1121f;
  box-shadow: 0 0 18px rgba(193, 18, 31, 0.85), 0 0 8px rgba(255, 215, 106, 0.45);
}

.legacy-card,
.legacy-feature-card,
.legacy-rate-card,
.legacy-news-panel,
.legacy-hero,
.legacy-cta-strip {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 215, 106, 0.04);
}

.legacy-card:hover,
.legacy-feature-card:hover,
.legacy-rate-card:hover {
  border-color: rgba(255, 215, 106, 0.24);
}

.legacy-hero h1,
.legacy-section-heading h2,
.legacy-card-heading h3,
.legacy-page-heading h2 {
  text-shadow: 0 2px 20px rgba(193, 18, 31, 0.22);
}

.legacy-footer {
  padding: 26px 0;
  text-align: center;
}

.legacy-footer-brandline {
  max-width: 960px;
  margin: 0 auto;
}

.legacy-footer h4 {
  margin-bottom: 8px;
  color: var(--legacy-gold-soft);
}

.legacy-footer-disclaimer {
  max-width: 920px;
  margin: 0 auto 12px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 246, 229, 0.68);
}

.legacy-footer-links {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* Form readability fixes
-------------------------------------------------- */
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
input[type="search"],
input[type="url"],
input[type="tel"],
select,
textarea {
  color: #fff6e5 !important;
  background-color: rgba(8, 4, 4, 0.96) !important;
  border: 1px solid rgba(255, 215, 106, 0.28) !important;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.45);
}

.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  color: #fffdf5 !important;
  background-color: rgba(18, 7, 6, 0.98) !important;
  border-color: var(--legacy-gold-soft) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 106, 0.12), inset 0 1px 1px rgba(0, 0, 0, 0.35) !important;
  outline: none;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(255, 246, 229, 0.52) !important;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control,
input[disabled],
input[readonly],
select[disabled],
textarea[disabled] {
  color: rgba(255, 246, 229, 0.58) !important;
  background-color: rgba(20, 13, 12, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

option {
  color: #fff6e5;
  background-color: #120706;
}

.input-group-addon {
  color: var(--legacy-gold-soft);
  background-color: rgba(20, 8, 8, 0.96);
  border-color: rgba(255, 215, 106, 0.22);
}

.panel,
.panel-default,
.panel-body,
.panel-footer,
.panel-heading {
  color: var(--legacy-text);
  background-color: rgba(16, 8, 8, 0.94);
  border-color: rgba(255, 214, 102, 0.14);
}

.alert-danger.legacy-alert,
.legacy-flux-error {
  color: #ffe9e9;
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.35), rgba(60, 8, 8, 0.96));
  border: 1px solid rgba(255, 120, 120, 0.45);
  border-radius: var(--legacy-radius);
  box-shadow: var(--legacy-shadow);
}

.alert-success.legacy-alert {
  color: #fff6e5;
  background: linear-gradient(135deg, rgba(42, 120, 65, 0.32), rgba(13, 42, 24, 0.94));
  border: 1px solid rgba(126, 220, 150, 0.38);
  border-radius: var(--legacy-radius);
}

.alert-info.legacy-alert,
.legacy-flux-info {
  color: #fff6e5;
  background: rgba(16, 8, 8, 0.94);
  border: 1px solid rgba(255, 214, 102, 0.20);
  border-radius: var(--legacy-radius);
}

.help-block,
.text-muted {
  color: var(--legacy-muted) !important;
}

.security-code img {
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 106, 0.25);
  margin-bottom: 8px;
}
