/* =================================================================
   FC MOBILE THEME — visual re-skin layer
   Loaded after style.css. Same layout/markup, new colors/fonts/fx.
   ================================================================= */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500&display=swap");

:root {
  --fcm-bg-deep: #060b14;
  --fcm-bg-navy: #0a1526;
  --fcm-bg-pitch: #0c2b20;
  --fcm-surface: #101d30;
  --fcm-surface-alt: #142440;
  --fcm-border: rgba(255, 209, 102, 0.22);
  --fcm-border-soft: rgba(255, 255, 255, 0.08);
  --fcm-gold: #ffd166;
  --fcm-gold-deep: #f2a93a;
  --fcm-gold-text: #2a1c05;
  --fcm-green: #2ecc71;
  --fcm-green-deep: #16a34a;
  --fcm-blue: #2dd4ff;
  --fcm-text: #eaf2ff;
  --fcm-text-muted: #93a5c2;
  --fcm-danger: #ef4444;
  --fcm-font-head: "Be Vietnam Pro", "Poppins", sans-serif;
  --fcm-font-body: "Be Vietnam Pro", "Roboto", sans-serif;
}

/* ============ BASE / BACKDROP ============ */
body {
  background-color: var(--fcm-bg-deep);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(46, 204, 113, 0.16), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 0%, rgba(255, 209, 102, 0.08), transparent 55%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 64px),
    linear-gradient(180deg, var(--fcm-bg-navy) 0%, var(--fcm-bg-deep) 45%, var(--fcm-bg-pitch) 100%);
  background-attachment: fixed;
  color: var(--fcm-text-muted);
  font-family: var(--fcm-font-body);
}

p, span, a, li, label, input, textarea, select, button, td, th, div {
  font-family: var(--fcm-font-body);
}

h1, h2, h3, h4, h5, h6,
.widget-title, .section-title, .text-logo {
  font-family: var(--fcm-font-head);
  font-weight: 800;
  letter-spacing: 0.2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--fcm-bg-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--fcm-gold), var(--fcm-gold-deep)); border-radius: 10px; }

/* ============ HEADER / NAV ============ */
.header-default,
.header-default.clone {
  background: linear-gradient(180deg, #0b1830 0%, #081120 100%);
  border-bottom: 1px solid var(--fcm-border);
  box-shadow: 0 1px 0 rgba(255, 209, 102, 0.08), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.header-topbar {
  background: #050c18;
  border-bottom: 1px solid rgba(255, 209, 102, 0.12);
  padding: 6px 0;
  font-size: 12.5px;
}
.topbar-trust li {
  color: var(--fcm-text-muted);
  margin-right: 18px;
}
.topbar-trust li i {
  color: var(--fcm-green);
  margin-right: 4px;
}
.header-topbar .social-icons a {
  color: var(--fcm-text-muted) !important;
  font-size: 12px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--fcm-border-soft);
  transition: 0.2s ease;
}
.header-topbar .social-icons a:hover {
  color: var(--fcm-gold) !important;
  border-color: var(--fcm-gold);
}
@media (max-width: 767px) {
  .topbar-trust li:not(:first-child) { display: none; }
  .header-topbar { font-size: 11px; }
}

.dropdown-balance {
  background: rgba(255, 209, 102, 0.08);
  border-radius: 8px;
  margin: 4px 8px 8px;
  pointer-events: none;
}
.dropdown-balance b { color: var(--fcm-gold); }

.navbar-nav {
  font-family: var(--fcm-font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.navbar-nav .nav-link {
  color: var(--fcm-text-muted);
  position: relative;
  padding: 6px 14px !important;
  transition: color 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: var(--fcm-gold);
}
.navbar-nav .nav-item.active .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fcm-gold), transparent);
}

.btn-button {
  background: linear-gradient(180deg, var(--fcm-gold) 0%, var(--fcm-gold-deep) 100%);
  background-size: auto;
  color: var(--fcm-gold-text);
  font-family: var(--fcm-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(242, 169, 58, 0.35);
}
.btn-button:hover {
  filter: brightness(1.08);
  color: var(--fcm-gold-text);
  background-position: initial;
}

.dropdown-menu {
  background: var(--fcm-surface);
  border: 1px solid var(--fcm-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.dropdown-item {
  color: var(--fcm-text-muted);
}
.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(255, 209, 102, 0.12);
  color: var(--fcm-gold);
}

.burger-icon, .burger-icon::before, .burger-icon::after { background: var(--fcm-gold-text); }
.icon-button {
  background: linear-gradient(180deg, var(--fcm-gold) 0%, var(--fcm-gold-deep) 100%) !important;
  box-shadow: 0 4px 14px rgba(242, 169, 58, 0.35);
}
.icon-button:hover { filter: brightness(1.08); }

/* ============ SECTION HEADERS ============ */
.section-header, .widget .widget-header {
  position: relative;
}
.section-title, .widget .widget-title {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fcm-text);
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.25);
}
.section-header img.wave,
.widget .widget-header img.wave {
  display: none;
}
.section-header::after,
.widget .widget-header::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--fcm-green), var(--fcm-gold));
}

/* ============ CARDS / WIDGETS ============ */
.widget {
  background: linear-gradient(180deg, var(--fcm-surface) 0%, var(--fcm-bg-navy) 100%);
  border: 1px solid var(--fcm-border-soft);
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.5), transparent 30%, transparent 70%, rgba(46, 204, 113, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============ FORMS ============ */
.form-control {
  background-color: rgba(6, 14, 26, 0.65);
  border: 1px solid var(--fcm-border-soft);
  color: var(--fcm-text);
  border-radius: 8px;
}
.form-control:focus {
  background-color: rgba(6, 14, 26, 0.85);
  border-color: var(--fcm-gold);
  color: var(--fcm-text);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.15);
}
label { color: var(--fcm-text-muted); font-size: 13px; }

/* ============ BUTTONS (CTA) ============ */
.btn-default {
  font-family: var(--fcm-font-head);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--fcm-gold-text);
  background: linear-gradient(90deg, var(--fcm-gold) 0%, #fff3c4 50%, var(--fcm-gold) 100%);
  background-size: 200% auto;
  border: none;
  box-shadow: 0 10px 24px rgba(242, 169, 58, 0.28);
  border-radius: 10px;
  transition: 0.25s ease;
}
.btn-default:hover {
  color: var(--fcm-gold-text);
  background-position: right center;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(242, 169, 58, 0.4);
}

.btn-danger {
  background: linear-gradient(90deg, #ff5f6d, #c0392b) !important;
  border: none !important;
  font-family: var(--fcm-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: linear-gradient(90deg, var(--fcm-blue), #2563eb) !important;
  border: none !important;
  font-family: var(--fcm-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-success {
  background: linear-gradient(90deg, var(--fcm-green), var(--fcm-green-deep)) !important;
  border: none !important;
  font-family: var(--fcm-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ TABLES / HISTORY ============ */
.table {
  color: var(--fcm-text-muted);
  border-color: var(--fcm-border-soft);
}
.table > :not(caption) > * > * {
  background: transparent;
  border-color: var(--fcm-border-soft);
  color: var(--fcm-text-muted);
}
.table thead th {
  font-family: var(--fcm-font-head);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fcm-gold);
  border-bottom: 2px solid var(--fcm-border);
}
.table-hover > tbody > tr:hover > * {
  background: rgba(255, 209, 102, 0.06);
  color: var(--fcm-text);
}
div.dataTables_wrapper .dataTables_filter input,
div.dataTables_wrapper .dataTables_length select {
  background: rgba(6, 14, 26, 0.65);
  border: 1px solid var(--fcm-border-soft);
  color: var(--fcm-text);
  border-radius: 6px;
}
div.dataTables_wrapper .dataTables_info,
div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter { color: var(--fcm-text-muted); }
div.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--fcm-text-muted) !important;
}
div.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(180deg, var(--fcm-gold), var(--fcm-gold-deep)) !important;
  color: var(--fcm-gold-text) !important;
  border-color: transparent !important;
}

/* ============ FOOTER ============ */
footer {
  background: linear-gradient(180deg, #081120 0%, #050b14 100%);
  border-top: 1px solid var(--fcm-border);
  padding-top: 10px;
}
footer .footer-logo {
  max-width: 150px;
  margin-bottom: 14px;
}
footer .footer-desc {
  color: var(--fcm-text-muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}
footer .footer-heading {
  font-family: var(--fcm-font-head);
  font-weight: 700;
  color: var(--fcm-gold);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
footer .footer-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--fcm-green), var(--fcm-gold));
}
footer .footer-links li { margin-bottom: 10px; }
footer .footer-links a {
  color: var(--fcm-text-muted);
  font-size: 13.5px;
  transition: color 0.2s ease;
}
footer .footer-links a i { color: var(--fcm-green); font-size: 11px; margin-right: 4px; }
footer .footer-links a:hover { color: var(--fcm-gold); }
footer .footer-trust li {
  color: var(--fcm-text-muted);
  font-size: 13.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
footer .footer-trust li i {
  color: var(--fcm-gold);
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.25);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
footer .copyright { color: var(--fcm-text-muted); font-size: 13px; }
footer hr { border-color: var(--fcm-border-soft); margin: 8px 0 18px; }
.social-icons a { color: var(--fcm-text-muted) !important; }
.social-icons a:hover { color: var(--fcm-gold) !important; }
#return-to-top { color: var(--fcm-gold) !important; }

/* ============ ANNOUNCEMENT MODAL ============ */
#notify .modal-content {
  background: linear-gradient(180deg, var(--fcm-surface) 0%, var(--fcm-bg-navy) 100%);
  border: 1px solid var(--fcm-border);
  border-radius: 16px;
  color: var(--fcm-text-muted);
}
#notify .modal-header {
  border-bottom: 1px solid var(--fcm-border-soft);
}
#notify .modal-title {
  font-family: var(--fcm-font-head);
  font-weight: 800;
  color: var(--fcm-gold);
  text-transform: uppercase;
}
#notify .modal-body ul { padding-left: 20px; }
#notify .modal-body li { margin-bottom: 8px; }
#notify .modal-footer {
  border-top: 1px solid var(--fcm-border-soft);
}
#notify .btn-secondary {
  background: linear-gradient(90deg, var(--fcm-gold), var(--fcm-gold-deep));
  color: var(--fcm-gold-text) !important;
  border: none;
  font-weight: 700;
}
.modal-backdrop.show { opacity: 0.75; }

/* ============ MISC ============ */
.canvas-menu {
  background: var(--fcm-bg-navy);
  border-left: 1px solid var(--fcm-border);
}
.vertical-menu li a { color: var(--fcm-text-muted); }
.vertical-menu li.active a, .vertical-menu li a:hover { color: var(--fcm-gold); }
.search-popup { background: var(--fcm-bg-deep); }
.search-popup .form-control { background: rgba(255,255,255,0.05); }
