/* Custom CSS from Next.js globals.css */

:root {
  --radius: 0.625rem;
  --orange: #ff945b;
}

@font-face {
  font-family: "CreatoDisplay";
  src: url("/Content/newui/fonts/CreatoDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CreatoDisplay";
  src: url("/Content/newui/fonts/CreatoDisplay-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CreatoDisplay";
  src: url("/Content/newui/fonts/CreatoDisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "CreatoDisplay", system-ui, sans-serif;
  overflow-x: hidden;
  width: 100%;
  min-width: 280px;
}

.font-sans {
  font-family: "CreatoDisplay", system-ui, sans-serif;
}

.font-roboto {
  font-family: 'Roboto', sans-serif;
}

.font-medium {
  font-weight: 500 !important;
}

.font-bold {
  font-weight: 700 !important;
}

.gradient-gray {
  background: linear-gradient(to right, #fff 100%, #999 60%);
}

/* Disable image dragging on decorative images only */
img:not(.clickable) {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img::selection {
  background: transparent !important;
}

img::-moz-selection {
  background: transparent !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.pin-spacer {
  overflow: hidden !important;
}

/* Custom Tailwind utilities */
.text-primary {
  color: #ff945b !important; /* Orange color */
}

.text-md {
  font-size: 1rem;
  line-height: 1.5rem;
}

/* Remove Bootstrap conflicts */
body {
  margin: 0 !important;
}

* {
  box-sizing: border-box;
}

/* Ensure Tailwind classes work properly */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix for responsive text sizes */
@media (min-width: 640px) {
  .text-md {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

/* Sticky navbar with backdrop blur support */
nav.sticky {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 50;
}

/* Ensure backdrop-blur works across browsers */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(4px)) {
  nav.sticky {
    background-color: rgba(255, 255, 255, 0.98) !important;
  }
}

/* Login page flex utilities */
.flex-2 {
  flex: 2;
}

.flex-4 {
  flex: 4;
}

/* Override Bootstrap styles for new UI pages */
.antialiased .form-control {
  border-radius: 0.5rem;
}

.antialiased .btn {
  border-radius: 0.5rem;
}

/* Table styles for new UI */
.antialiased table.table {
  border-collapse: separate;
  border-spacing: 0;
}

.antialiased table.table thead th {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  color: #4b5563;
  padding: 0.75rem 1rem;
}

.antialiased table.table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.antialiased table.table tbody tr:hover {
  background-color: #f9fafb;
}

/* Card styles override */
.antialiased .card {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.antialiased .card-header {
  background-color: transparent;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
}

.antialiased .card-body {
  padding: 1.5rem;
}

/* Badge styles */
.antialiased .badge {
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* Info box styles override */
.antialiased .info-box {
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.antialiased .small-box {
  border-radius: 0.5rem;
}

/* Form select styles */
.antialiased select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Override Tailwind py-4 padding */
.py-4 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Payment Method Section - Always Visible */
.payment-method {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.payment-method h1 {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Payment Method Card Hover Animation */
.payment-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  transform-style: preserve-3d;
  opacity: 1 !important; /* Ensure cards are visible by default */
  visibility: visible !important;
  display: block !important;
}

.payment-card:hover {
  transform: translateY(-8px) scale(1.05) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15) !important;
  border-color: #ff945b !important;
  background: linear-gradient(135deg, #fff 0%, #fff8f5 100%) !important;
}

.payment-img {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.payment-card:hover .payment-img {
  transform: scale(1.15) rotate(-3deg) !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) !important;
}

/* Ensure carousel buttons are visible after animation */
#carousel-prev,
#carousel-next {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Deposit Summary Page Styles */
.deposit-summary-table {
  border-collapse: separate;
  border-spacing: 0;
}

.deposit-summary-table thead th {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  color: #4b5563;
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deposit-summary-table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
  font-size: 0.875rem;
}

.deposit-summary-table tbody tr:hover {
  background-color: #f9fafb;
  transition: background-color 0.15s ease-in-out;
}

/* Responsive table for mobile */
@media (max-width: 768px) {
  .deposit-summary-table {
    font-size: 0.75rem;
  }

  .deposit-summary-table thead th,
  .deposit-summary-table tbody td {
    padding: 0.75rem 1rem;
  }
}

/* =============================================
   VIBRANT GRADIENT THEME
   ============================================= */

:root {
  --gto-orange: #ff945b;
  --gto-orange-light: #ffb088;
  --gto-orange-dark: #e8753a;
  --gto-purple-deep: #1e0a3c;
  --gto-purple: #4c1d95;
  --gto-blue-deep: #0f172a;
  --gto-blue: #1e3a5f;
  --gto-indigo: #4338ca;
  --gto-pink: #ec4899;
  --gto-cyan: #06b6d4;
}

/* --- Section Backgrounds --- */

.gto-hero-gradient {
  background:
    linear-gradient(135deg, rgba(30, 10, 60, 0.85) 0%, rgba(30, 58, 95, 0.80) 40%, rgba(76, 29, 149, 0.70) 70%, rgba(255, 148, 91, 0.50) 100%),
    url('/Content/newui/images/home-bg.png') center / cover no-repeat !important;
}

.gto-benefits-bg {
  background: linear-gradient(180deg, #ffffff 0%, #f0e6ff 15%, #e8dff5 50%, #fef3ee 85%, #ffffff 100%) !important;
}

.gto-sponsor-bg {
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 20%, #e0e7ff 50%, #fef3ee 80%, #ffffff 100%) !important;
}

.gto-table-section-bg {
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 50%, #fff7ed 100%);
}

.gto-rank-bg {
  background: linear-gradient(135deg, #0f0520 0%, #1e0a3c 25%, #1a1145 50%, #0c1e3a 75%, #0f172a 100%) !important;
}

.gto-payment-bg {
  background: linear-gradient(180deg, #ffffff 0%, #fefce8 30%, #fff7ed 60%, #fef3ee 80%, #ffffff 100%);
}

.gto-cta-bg {
  background: linear-gradient(135deg, #1e0a3c 0%, #4c1d95 30%, #6d28d9 50%, #7c3aed 70%, #1e0a3c 100%) !important;
}

.gto-footer-bg {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 30%, #f1f5f9 100%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff945b, #7c3aed, #06b6d4, #ff945b) 1;
}

/* --- Gradient Text --- */

.gto-text-gradient-hero {
  background: linear-gradient(135deg, #ffffff 0%, #e0c3fc 40%, #ffb088 70%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gto-text-gradient-orange {
  background: linear-gradient(135deg, #ff945b 0%, #ec4899 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gto-text-gradient-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #4338ca 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gto-text-gradient-light {
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Card Styles --- */

.gto-card-gradient-border {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: none !important;
  transition: all 0.3s ease;
}

.gto-card-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 148, 91, 0.5), rgba(124, 58, 237, 0.5), rgba(6, 182, 212, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gto-card-gradient-border:hover {
  box-shadow: 0 8px 40px rgba(255, 148, 91, 0.15), 0 4px 16px rgba(124, 58, 237, 0.10);
  transform: translateY(-2px);
}

.gto-card-subtle-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 50%, #fff7ed 100%) !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.3s ease;
}

.gto-card-subtle-gradient:hover {
  box-shadow: 0 8px 36px rgba(124, 58, 237, 0.12), 0 4px 12px rgba(255, 148, 91, 0.08) !important;
  transform: translateY(-3px);
}

.gto-table-gradient {
  box-shadow: 0 25px 60px -12px rgba(255, 148, 91, 0.20), 0 10px 30px -6px rgba(124, 58, 237, 0.10) !important;
  border: 1px solid rgba(124, 58, 237, 0.08);
}

.gto-table-header {
  background: linear-gradient(135deg, #faf5ff 0%, #f5f0ff 50%, #fff7ed 100%) !important;
}

.gto-table-banner {
  background: linear-gradient(135deg, #ff945b 0%, #f97316 30%, #ec4899 70%, #7c3aed 100%) !important;
  color: white !important;
}

.gto-table-banner p {
  color: white !important;
}

.gto-payment-card-enhanced {
  border: 1px solid rgba(124, 58, 237, 0.10) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.gto-payment-card-enhanced:hover {
  border-color: rgba(255, 148, 91, 0.4) !important;
  background: linear-gradient(135deg, #fff 0%, #fef3ee 50%, #faf5ff 100%) !important;
  box-shadow: 0 20px 40px -10px rgba(255, 148, 91, 0.20), 0 8px 16px rgba(124, 58, 237, 0.06) !important;
}

/* --- Rank Opportunity Cards (Dark Theme) --- */

.gto-rank-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.gto-rank-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
  border-color: rgba(255, 148, 91, 0.30) !important;
  box-shadow: 0 8px 40px rgba(255, 148, 91, 0.10), 0 0 80px rgba(124, 58, 237, 0.08);
}

.gto-rank-card h1,
.gto-rank-card h2 {
  color: #ffffff !important;
}

.gto-rank-card p,
.gto-rank-card li {
  color: rgba(255, 255, 255, 0.65) !important;
}

.gto-rank-card svg.lucide-check path {
  stroke: #ff945b !important;
}

.gto-rank-card .w-full.h-px {
  background: rgba(255, 255, 255, 0.10) !important;
}

.gto-rank-card-featured {
  background: linear-gradient(135deg, rgba(255, 148, 91, 0.15) 0%, rgba(124, 58, 237, 0.10) 100%) !important;
  border: 1px solid rgba(255, 148, 91, 0.25) !important;
  box-shadow: 0 0 60px rgba(255, 148, 91, 0.08);
}

.gto-rank-btn-primary {
  background: linear-gradient(135deg, #ff945b 0%, #f97316 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(255, 148, 91, 0.30);
}

.gto-rank-btn-primary:hover {
  background: linear-gradient(135deg, #ffb088 0%, #ff945b 100%) !important;
  box-shadow: 0 8px 24px rgba(255, 148, 91, 0.40);
}

.gto-rank-btn-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
}

.gto-rank-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 148, 91, 0.40) !important;
}

.gto-carousel-btn-dark {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.gto-carousel-btn-dark:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 148, 91, 0.40) !important;
}

/* --- CTA Section (Dark Theme) --- */

.gto-cta-bg h1 {
  color: #ffffff;
}

.gto-cta-bg p,
.gto-cta-bg span {
  color: rgba(255, 255, 255, 0.70);
}

.gto-cta-bg .cta-button {
  background: linear-gradient(135deg, #ff945b 0%, #f97316 100%) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(255, 148, 91, 0.35);
}

.gto-cta-bg .cta-button:hover {
  background: linear-gradient(135deg, #ffb088 0%, #ff945b 100%) !important;
  box-shadow: 0 8px 32px rgba(255, 148, 91, 0.50);
}

/* --- Aurora / Glow Effects --- */

.gto-aurora-orb-1,
.gto-aurora-orb-2,
.gto-aurora-orb-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: gto-aurora-float 8s ease-in-out infinite;
}

.gto-aurora-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.gto-aurora-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 148, 91, 0.35) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-delay: -3s;
}

.gto-aurora-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
  animation-name: gto-aurora-float-center;
}

@keyframes gto-aurora-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 15px) scale(0.95); }
  75% { transform: translate(15px, 25px) scale(1.02); }
}

@keyframes gto-aurora-float-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  25% { transform: translate(calc(-50% + 30px), calc(-50% - 20px)) scale(1.05); }
  50% { transform: translate(calc(-50% - 20px), calc(-50% + 15px)) scale(0.95); }
  75% { transform: translate(calc(-50% + 15px), calc(-50% + 25px)) scale(1.02); }
}

.gto-mesh-overlay {
  position: relative;
}

.gto-mesh-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 148, 91, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.10) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.gto-mesh-overlay > * {
  position: relative;
  z-index: 2;
}

/* --- Section Divider Effect --- */

.gto-section-divider {
  position: relative;
}

.gto-section-divider::after {
  content: '';
  position: absolute;
  bottom: -64px;
  left: 10%;
  right: 10%;
  height: 128px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
