/* ═══════════════════════════════════════════════════════════════════
   TimePayer — Global Design System v2
   Fintech / SaaS premium dark theme
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:      #080D14;
  --bg-surface:   #0F1624;
  --bg-elevated:  #131A24;
  --bg-overlay:   #192232;
  --bg-hover:     #1E2A3B;

  /* Brand */
  --blue:         #2563EB;
  --blue-light:   #3B82F6;
  --blue-dim:     rgba(37, 99, 235, 0.12);
  --blue-glow:    rgba(37, 99, 235, 0.25);
  --green:        #10B981;
  --green-light:  #34D399;
  --green-dim:    rgba(16, 185, 129, 0.12);
  --green-glow:   rgba(16, 185, 129, 0.2);
  --yellow:       #F59E0B;
  --yellow-dim:   rgba(245, 158, 11, 0.12);
  --red:          #EF4444;
  --red-dim:      rgba(239, 68, 68, 0.12);
  --purple:       #8B5CF6;
  --purple-dim:   rgba(139, 92, 246, 0.12);

  /* Text */
  --text:         #F8FAFC;
  --text-muted:   #94A3B8;
  --text-subtle:  #64748B;

  /* Borders */
  --border:       #1E293B;
  --border-light: #263145;

  /* Alias for backward compat */
  --clr-bg:       var(--bg-base);
  --clr-bg-2:     var(--bg-surface);
  --clr-bg-3:     var(--bg-elevated);
  --clr-border:   var(--border);
  --clr-blue:     var(--blue);
  --clr-blue-hover: var(--blue-light);
  --clr-blue-dim: var(--blue-dim);
  --clr-green:    var(--green);
  --clr-green-dim: var(--green-dim);
  --clr-red:      var(--red);
  --clr-red-dim:  var(--red-dim);
  --clr-yellow:   var(--yellow);
  --clr-yellow-dim: var(--yellow-dim);
  --clr-text:     var(--text);
  --clr-muted:    var(--text-muted);
  --clr-muted-2:  var(--text-subtle);

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-2xl: 28px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0,0,0,.5);
  --shadow-md:   0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.6);
  --shadow-blue: 0 4px 24px var(--blue-glow);

  /* Motion */
  --ease:        cubic-bezier(.25,.46,.45,.94);
  --transition:  0.18s ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family:            var(--font);
  background:             var(--bg-base);
  color:                  var(--text);
  line-height:            1.6;
  min-height:             100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg  { display: block; max-width: 100%; }
button    { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }
a {
  color:       var(--blue);
  text-decoration: none;
  transition:  color var(--transition);
}
a:hover { color: var(--blue-light); }

/* ─── Typography ────────────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem);   font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: 1.1rem;  font-weight: 600; }
h4 { font-size: .95rem;  font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.65; }

.text-sm    { font-size: .85rem; }
.text-xs    { font-size: .75rem; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-blue  { color: var(--blue); }
.text-yellow{ color: var(--yellow); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ─── Layout ────────────────────────────────────────────────────── */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4   { gap: 4px; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }
.mt-8    { margin-top: 8px; }
.mt-12   { margin-top: 12px; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.mt-32   { margin-top: 32px; }
.text-center { text-align: center; }
.w-full  { width: 100%; }
.hidden  { display: none !important; }

/* ─── Cards ─────────────────────────────────────────────────────── */
.card {
  background:    var(--bg-surface);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       24px;
}
.card-glass {
  background:    rgba(15, 22, 36, 0.8);
  border:        1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         11px 22px;
  border-radius:   var(--radius-md);
  font-size:       .9rem;
  font-weight:     600;
  border:          none;
  transition:      all var(--transition);
  white-space:     nowrap;
  letter-spacing:  .01em;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 12px var(--blue-glow);
}
.btn-primary:hover:not(:disabled) {
  background: var(--blue-light);
  box-shadow: 0 4px 20px var(--blue-glow);
  color: #fff;
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 12px var(--green-glow);
}
.btn-green:hover:not(:disabled) {
  background: var(--green-light);
  box-shadow: 0 4px 20px var(--green-glow);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background:  transparent;
  border:      1px solid var(--border-light);
  color:       var(--text-muted);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--blue);
  color:        var(--blue);
  background:   var(--blue-dim);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background: #DC2626;
  color: #fff;
}

.btn-ghost {
  background:  transparent;
  color:       var(--text-muted);
  border:      none;
}
.btn-ghost:hover:not(:disabled) {
  color:       var(--text);
  background:  var(--bg-hover);
}

.btn-sm  { padding: 7px 14px; font-size: .82rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; justify-content: center; }

/* ─── Form ──────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size:      .8rem;
  font-weight:    600;
  color:          var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.form-control {
  background:    var(--bg-elevated);
  border:        1px solid var(--border);
  border-radius: var(--radius-md);
  padding:       12px 14px;
  color:         var(--text);
  font-size:     .92rem;
  width:         100%;
  transition:    border-color var(--transition), box-shadow var(--transition);
  outline:       none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow:   0 0 0 3px var(--blue-dim);
}
.form-control::placeholder { color: var(--text-subtle); }
.form-control.error {
  border-color: var(--red);
  box-shadow:   0 0 0 3px var(--red-dim);
}
.form-control:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Auth-style stacked form */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

/* Checkbox */
.form-check {
  display:     flex;
  align-items: flex-start;
  gap:         10px;
  font-size:   .87rem;
  color:       var(--text-muted);
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  width:        16px;
  height:       16px;
  accent-color: var(--blue);
  margin-top:   3px;
  flex-shrink:  0;
  cursor:       pointer;
}

/* ─── Alerts ────────────────────────────────────────────────────── */
.alert {
  padding:       12px 16px;
  border-radius: var(--radius-md);
  font-size:     .875rem;
  font-weight:   500;
  display:       flex;
  align-items:   flex-start;
  gap:           10px;
  line-height:   1.5;
}
.alert-error   { background: var(--red-dim);    border: 1px solid rgba(239,68,68,.35);   color: #FCA5A5; }
.alert-success { background: var(--green-dim);  border: 1px solid rgba(16,185,129,.35);  color: #6EE7B7; }
.alert-info    { background: var(--blue-dim);   border: 1px solid rgba(37,99,235,.35);   color: #93C5FD; }
.alert-warn    { background: var(--yellow-dim); border: 1px solid rgba(245,158,11,.35);  color: #FCD34D; }

/* ─── Badges ────────────────────────────────────────────────────── */
.badge {
  display:        inline-flex;
  align-items:    center;
  gap:            4px;
  padding:        2px 9px;
  border-radius:  100px;
  font-size:      .73rem;
  font-weight:    600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-pending    { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(245,158,11,.3); }
.badge-approved   { background: var(--blue-dim);   color: var(--blue-light);  border: 1px solid rgba(37,99,235,.3); }
.badge-paid       { background: var(--green-dim);  color: var(--green-light); border: 1px solid rgba(16,185,129,.3); }
.badge-rejected   { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(239,68,68,.3); }
.badge-active     { background: var(--green-dim);  color: var(--green-light); border: 1px solid rgba(16,185,129,.3); }
.badge-suspended  { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(245,158,11,.3); }
.badge-banned     { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(239,68,68,.3); }
.badge-unverified { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(245,158,11,.3); }

/* ─── Tables ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  text-align:     left;
  padding:        10px 16px;
  font-size:      .72rem;
  font-weight:    600;
  color:          var(--text-subtle);
  letter-spacing: .07em;
  text-transform: uppercase;
  border-bottom:  1px solid var(--border);
  white-space:    nowrap;
  background:     var(--bg-elevated);
}
tbody td {
  padding:        13px 16px;
  border-bottom:  1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); transition: background var(--transition); }

/* ─── Navbar (public pages) ─────────────────────────────────────── */
.navbar {
  position:      sticky;
  top:           0;
  z-index:       100;
  background:    rgba(8, 13, 20, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.navbar-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          62px;
}
.navbar-logo {
  display:     flex;
  align-items: center;
  gap:         10px;
  font-size:   1.15rem;
  font-weight: 800;
  color:       var(--text);
  letter-spacing: -.01em;
}
.navbar-logo span { color: var(--blue); }
.navbar-logo .logo-icon, .navbar-logo img.logo-icon {
  width:         34px;
  height:        34px;
  border-radius: 8px;
  object-fit:    contain;
}
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a {
  color:         var(--text-muted);
  padding:       6px 12px;
  border-radius: var(--radius-sm);
  font-size:     .875rem;
  font-weight:   500;
  transition:    all var(--transition);
}
.navbar-links a:hover, .navbar-links a.active {
  color:       var(--text);
  background:  var(--bg-elevated);
}

/* ─── Gradient text ─────────────────────────────────────────────── */
.gradient-text {
  background:              linear-gradient(120deg, var(--blue-light) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
}

/* ─── Spinner ───────────────────────────────────────────────────── */
.spinner {
  width:         18px;
  height:        18px;
  border:        2px solid rgba(255,255,255,.15);
  border-top:    2px solid #fff;
  border-radius: 50%;
  animation:     spin .65s linear infinite;
  flex-shrink:   0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Skeleton ──────────────────────────────────────────────────── */
.skeleton {
  background:      linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-overlay) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation:       shimmer 1.6s infinite;
  border-radius:   var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text   { height: 13px; border-radius: 4px; }
.skeleton-amount { height: 30px; width: 80px; border-radius: 4px; }

/* ─── Dividers ──────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.divider-text {
  display:     flex;
  align-items: center;
  gap:         12px;
  color:       var(--text-subtle);
  font-size:   .82rem;
  margin:      20px 0;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ─── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp .45s var(--ease) both; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .45; }
}
.animate-pulse { animation: pulse 2s ease infinite; }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .card      { padding: 16px; }
  .navbar-links .hide-mobile { display: none; }
}

/* ─── Public page sticky-footer layout ──────────────────────────── */
body.public-page {
  display:        flex;
  flex-direction: column;
  min-height:     100vh;
  margin:         0;
}
body.public-page .page-main { 
  flex: 1 0 auto; 
}

/* ─── Site footer (public) ──────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding:    48px 24px 32px;
  margin-top: auto;
}
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 18px; margin-bottom: 20px;
}
.footer-nav a {
  color: var(--text-muted); font-size: .83rem; font-weight: 500;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); }

/* ─── Social icon row ───────────────────────────────────────────── */
.footer-social {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-bottom: 20px;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); color: var(--text-muted);
  font-size: 1.1rem; text-decoration: none; border: 1px solid rgba(255,255,255,.1);
  transition: all var(--transition);
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", var(--font);
}
.footer-social a:hover {
  background: rgba(255,255,255,.12); color: #fff;
  transform: translateY(-2px); border-color: rgba(255,255,255,.1);
}
.footer-social a.social-kick {
  font-size: .62rem; font-weight: 800; letter-spacing: .05em;
}
.footer-copy { text-align: center; color: var(--text-subtle); font-size: .78rem; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 12px;
}
.footer-links a { color: var(--text-muted); font-size: .82rem; font-weight: 500; transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }


/* ─── Social icon brand hover colors ────────────────────────────── */
.footer-social a.social-telegram:hover  { background: rgba(42,171,238,.15);  color: #2AABEE; border-color: rgba(42,171,238,.3); }
.footer-social a.social-discord:hover   { background: rgba(88,101,242,.15);  color: #5865F2; border-color: rgba(88,101,242,.3); }
.footer-social a.social-x:hover         { background: rgba(255,255,255,.12); color: #fff;    border-color: rgba(255,255,255,.2); }
.footer-social a.social-instagram:hover { background: rgba(225,48,108,.15);  color: #E1306C; border-color: rgba(225,48,108,.3); }
.footer-social a.social-youtube:hover   { background: rgba(255,0,0,.15);     color: #FF0000; border-color: rgba(255,0,0,.3); }
.footer-social a.social-tiktok:hover    { background: rgba(238,29,82,.12);   color: #EE1D52; border-color: rgba(238,29,82,.3); }
.footer-social a.social-threads:hover   { background: rgba(255,255,255,.12); color: #fff;    border-color: rgba(255,255,255,.2); }
.footer-social a.social-reddit:hover    { background: rgba(255,69,0,.15);    color: #FF4500; border-color: rgba(255,69,0,.3); }
.footer-social a.social-medium:hover    { background: rgba(2,184,117,.15);   color: #02B875; border-color: rgba(2,184,117,.3); }
.footer-social a.social-pinterest:hover { background: rgba(230,0,35,.15);    color: #E60023; border-color: rgba(230,0,35,.3); }
.footer-social a.social-kick:hover      { background: rgba(83,252,97,.15);   color: #53FC61; border-color: rgba(83,252,97,.3); }
.footer-social a.social-twitch:hover    { background: rgba(145,70,255,.15);  color: #9146FF; border-color: rgba(145,70,255,.3); }
.footer-social a.social-github:hover    { background: rgba(255,255,255,.12); color: #fff;    border-color: rgba(255,255,255,.2); }
.footer-social a.social-snapchat:hover  { background: rgba(255,252,0,.12);   color: #FFFC00; border-color: rgba(255,252,0,.3); }
.footer-social a.social-facebook:hover  { background: rgba(24,119,242,.15);  color: #1877F2; border-color: rgba(24,119,242,.3); }
.footer-social a.social-linkedin:hover  { background: rgba(10,102,194,.15);  color: #0A66C2; border-color: rgba(10,102,194,.3); }

/* ─── Footer layout v2 (structured) ─────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.footer-brand .navbar-logo { margin-bottom: 14px; }
.footer-tagline {
  color: var(--text-muted); font-size: .86rem; line-height: 1.65;
  max-width: 320px; margin-bottom: 18px;
}
.footer-payments { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-payments img {
  width: 30px; height: 30px; border-radius: 7px;
  border: 1px solid var(--border); object-fit: cover;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-subtle); margin-bottom: 3px;
}
.footer-col a {
  color: var(--text-muted); font-size: .88rem; font-weight: 500;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom .footer-social { margin-bottom: 0; }
.footer-bottom .footer-copy { text-align: right; }
.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--text); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom .footer-copy { text-align: center; }
  .footer-bottom .footer-social {
    gap: 4px;
    width: 320px;
    max-width: 100%;
  }
  .footer-bottom .footer-social a {
    width: 32px;
    height: 32px;
    font-size: .95rem;
  }
}
