:root{
  --bg:#0b0c10; --panel:#13141a; --panel-2:#111217; --line:#26272e;
  --text:#e9eaee; --muted:#9aa0a6; --red:#e11d2e; --yellow:#f5b301; --chip:#2a2b31;
}
*{box-sizing:border-box;font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text)}
.wrap{max-width:1150px;margin:48px auto;padding:0 18px}
.header{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.top-logo{width:120px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.6))}
.title{letter-spacing:.38em;font-weight:800;font-size:26px}
.panel{background:linear-gradient(180deg,#191b22 0%, #14151b 100%);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 60px rgba(0,0,0,.35)}
.panel-head{padding:20px;border-bottom:1px solid var(--line);display:flex;align-items:center}

.tabs{display:flex;gap:10px;margin-left:auto}
.tab{background:#1c1e26;border:1px solid var(--line);color:#cfd3da;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer;text-decoration:none}
.tab.active{background:transparent;border-color:#6a5614;box-shadow: inset 0 0 0 1px #ffc400;color:#f70202}
.tab.gold{background:transparent;border-color:#6a5614;box-shadow: inset 0 0 0 1px #6a5614;color:#d6b35a}
.tab.gold.active{background:rgba(245,179,1,.12)}
.tab.red{background:#b71d2a;color:#fff;border-color:#b71d2a}
.body{padding:22px}
.center{text-align:center}
.pill{display:inline-block;background:var(--chip);border:1px solid #3a3b45;border-radius:999px;padding:6px 12px}
.pill.red{background:#2a1013;border-color:#5d222a;color:#ffb0b6}
h6,h5{margin:0}
.card{background:linear-gradient(180deg,#17181f 0%, #14151b 100%);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.28)}
.card-head{padding:14px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center}
.card-body{padding:18px}
.badge{display:inline-block;background:#f70303;border:1px solid var(--line);padding:6px 10px;border-radius:999px;color:#f7f7f8;font-size:12px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
label{display:block;font-size:12px;color:#aeb3bd;margin:6px 0}
.input,select{width:100%;padding:12px 14px;border-radius:10px;background:#0e0f14;border:1px solid var(--line);color:var(--text);outline:none}
.input:focus,select:focus{border-color:#3a3b45}
.btn{display:inline-block;padding:10px 16px;border-radius:10px;border:none;cursor:pointer;font-weight:800}
.btn.red{background:var(--red);color:#fff}
.space{height:16px}
.note{color:#9aa0a6;font-size:13px}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px;border-bottom:1px solid var(--line);font-size:14px;color:#d8dbe0;text-align:left}
.alert{margin:10px 0;padding:10px 12px;border-radius:10px;font-size:13px}
.alert.ok{background:#132516;border:1px solid #21442a;color:#a9e6b8}
.alert.bad{background:#241317;border:1px solid #3a1c23;color:#ffb4be}
.small{font-size:12px;color:#aab0ba}


/* ---------------- LOGIN PAGE ---------------- */
.login-body {
  margin:0;
  background:#0b0c10;
  color:#e8eaed;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100vh;
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
}
.login-container {
  text-align:center;
}
.login-logo {
  width:180px;
  height:auto;
  margin-bottom:10px;
}
.login-title {
  letter-spacing:.28em;
  font-weight:800;
  font-size:22px;
  margin-bottom:22px;
}
.login-card {
  background:linear-gradient(180deg,#191b22 0%, #14151b 100%);
  border:1px solid #26272e;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  width:360px;
  margin:0 auto;
  padding:28px;
}
.login-heading {
  text-align:center;
  margin:0 0 20px;
  font-weight:700;
}
.login-input {
  width:100%;
  padding:12px 14px;
  border-radius:8px;
  background:#0e0f14;
  border:1px solid #2a2b31;
  color:#fff;
  margin-bottom:16px;
}
.login-input:focus {
  border-color:#3a3b45;
  outline:none;
}
.login-btn {
  width:100%;
  padding:12px;
  background:#e11d2e;
  color:#fff;
  font-weight:700;
  border:none;
  border-radius:8px;
  cursor:pointer;
}
.login-btn:hover {
  filter:brightness(1.1);
}
.login-footer {
  margin-top:20px;
  font-size:12px;
  color:#9aa0a6;
}
.alert.bad {
  background:#241317;
  border:1px solid #3a1c23;
  color:#ffb4be;
  padding:10px;
  border-radius:6px;
  margin-bottom:12px;
  font-size:13px;
}
/* Reset native button look (so dark theme applies) */
button, .btn, .btn-tab {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  line-height: 1;
}

/* Gold-outline tab/button (matches your theme) */
.btn-tab {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #6b5b2b;
  background: rgba(255,255,255,0.04);
  color: #e5c97b;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-tab:hover { background: rgba(255,255,255,0.08); }
.btn-tab:disabled { opacity: .5; cursor: not-allowed; }

/* Small utility for the copy buttons (optional) */
.btn-tab.copy {
  padding: 4px 8px;
  font-size: 12px;
}

/* Dark cards so white default doesn’t bleed through */
.card, .card .card-body {
  background: #0f1915; /* or your card color */
}
/* For Approval: line up actions nicely */
.table td.action-cell {
  white-space: nowrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 8px;               /* space between buttons/field */
}
.action-row form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.action-row .reason {
  width: 140px;           /* adjust as you like */
  min-width: 120px;
}
@media (max-width: 720px) {
  .action-row { flex-wrap: wrap; row-gap: 6px; }
  .action-row .reason { width: 100%; min-width: 0; }
}
/* Align the action controls in one row */
.table td.action-cell { 
  vertical-align: middle;
  white-space: nowrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;        /* space between controls */
}
.action-row .reason {
  width: 180px;     /* adjust as you like */
  min-width: 140px;
}
@media (max-width: 800px) {
  .action-row { flex-wrap: wrap; row-gap: 6px; }
  .action-row .reason { width: 100%; min-width: 0; }
}
/* For Approval table look */
.panel-approval .table thead th {
  text-transform: none;
  font-weight: 600;
}
.badge-submitted {
  background:#0b3942;
  border:1px solid #13505a;
  color:#9ee7ff;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
}
.btn-approve {
  background:#1f8f5f;           /* green */
  border:1px solid #16734c;
  color:#fff;
  padding:6px 12px;
  border-radius:8px;
}
.btn-approve:hover { filter:brightness(1.08); }
.btn-reject {
  background:#c73a3a;           /* red */
  border:1px solid #992d2d;
  color:#fff;
  padding:6px 12px;
  border-radius:8px;
}
.btn-reject:hover { filter:brightness(1.08); }

.table td.actions {
  white-space: nowrap;
}
/* ===== Dashboard small overrides + buttons ===== */
button, .btn, .btn-tab{
  -webkit-appearance:none;
  appearance:none;
  border:none;
  outline:none;
  font:inherit;
  line-height:1;
  background:transparent;
  color:inherit;
}

.btn-tab{
  display:inline-block;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid #6b5b2b !important;
  background:rgba(255,255,255,.06) !important;
  color:#e5c97b !important;
  cursor:pointer;
  transition:.15s;
}
.btn-tab:hover{ background:rgba(255,255,255,.10) !important; }

.btn.red{
  background:#cf1d1d !important;
  color:#fff !important;
  padding:8px 16px;
  border-radius:8px;
  border:1px solid #9a1a1a !important;
}

/* Card dark tweak used on dashboard blocks */
.card,
.card .card-body{
  background:#0f1915;
}

/* ===== Current Payment visuals ===== */
#qrImage{
  width:320px;
  height:320px;
  border:8px solid #111;
  border-radius:8px;
  object-fit:cover;
}

#paidModal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;              /* i-toggle via JS */
  align-items:center;
  justify-content:center;
}
#paidModal .box{
  background:#16181f;
  border:1px solid #2a2b31;
  border-radius:10px;
  padding:16px;
  width:420px;
}

/* ===== For Approval look ===== */
.panel-approval .table thead th{
  text-transform:none;
  font-weight:600;
}
.badge-submitted{
  background:#0b3942;
  border:1px solid #13505a;
  color:#9ee7ff;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
}
.btn-approve{
  background:#1f8f5f;
  border:1px solid #16734c;
  color:#fff;
  padding:6px 12px;
  border-radius:8px;
}
.btn-approve:hover{ filter:brightness(1.08); }

.btn-reject{
  background:#c73a3a;
  border:1px solid #992d2d;
  color:#fff;
  padding:6px 12px;
  border-radius:8px;
}
.btn-reject:hover{ filter:brightness(1.08); }

.table td.actions{ white-space:nowrap; }

/* Push logout button to the right of header */
.header .logout { margin-left:auto; }

/* centered toast/modal */
/* ===== Toast (centered modal) ===== */
.toast-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  z-index: 3000; /* mas mataas kaysa panels/background */
}
.toast-overlay.show{
  display: flex !important; /* siguradong lalabas kahit may ibang rules */
}
.toast-card{
  min-width: 320px;
  max-width: 92vw;
  background: #16181f;
  border: 1px solid #2a2b31;
  border-radius: 12px;
  padding: 18px 16px;
  color: #f7e9e9;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.6);
}
.toast-title{
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: .5px;
  color: #f80303;
}
.toast-close{
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #6b5b2b;
  background: rgba(255,255,255,.06);
  color: #e5c97b;
  cursor: pointer;
}
.toast-close:hover{
  background: rgba(255,255,255,.10);
}

@keyframes toastPop{ from{transform:translateY(10px);opacity:.8} to{transform:translateY(0);opacity:1} }
/* css/style.css */
body.has-bg{
  background:#0b0f12 url("../image/bg.jpg") no-repeat center center fixed;
  background-size:cover;
}
body.has-bg::before{ content:""; position:fixed; inset:0; background:rgba(0,0,0,.45); pointer-events:none; z-index:0; }
.wrap{ position:relative; z-index:1; }
/* ==== Animated Rainbow Title ==== */
.title-rainbow{
  position: relative;
  font-weight: 800;
  letter-spacing: .35em;            /* pareho sa current mo, adjust mo kung gusto mo */
  text-transform: uppercase;

  /* rainbow gradient na gumagalaw */
  background: linear-gradient(
    90deg,
    #ff4d4d,
    #ff9f0a,
    #ffd60a,
    #32ff7e,
    #18dcff,
    #7d5fff,
    #ff4d4d
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: rainbow-slide 8s linear infinite;
  /* konting glow para mas “neon” ang dating */
  text-shadow: 0 0 0.06em rgba(255,255,255,.15);
}

/* subtle pulsing outer glow (optional) */
.title-rainbow::after{
  content:"";
  position:absolute; inset:-6px 0 0 0;
  filter: blur(12px);
  background: linear-gradient(
    90deg,
    rgba(255,77,77,.28),
    rgba(255,159,10,.28),
    rgba(255,214,10,.28),
    rgba(50,255,126,.28),
    rgba(24,220,255,.28),
    rgba(125,95,255,.28),
    rgba(255,77,77,.28)
  );
  background-size: 400% 100%;
  z-index:-1;
  animation: rainbow-slide 8s linear infinite;
  pointer-events:none;
}

/* keyframes para sa “umaandar” na kulay */
@keyframes rainbow-slide{
  0%   { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* respeto sa users na ayaw ng animation */
@media (prefers-reduced-motion: reduce){
  .title-rainbow,
  .title-rainbow::after{
    animation: none;
    background-position: 50% 50%;
  }
}



/* ==== Animated Rainbow Title ==== */
.panel-title{
  position: relative;
  font-weight: 800;
  letter-spacing: .12em;            /* pareho sa current mo, adjust mo kung gusto mo */
  text-transform: uppercase;

  /* rainbow gradient na gumagalaw */
  background: linear-gradient(
    90deg,
    #ff4d4d,
    #ff9f0a,
    #ffd60a,
    #32ff7e,
    #18dcff,
    #7d5fff,
    #ff4d4d
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: rainbow-slide 8s linear infinite;
  /* konting glow para mas “neon” ang dating */
  text-shadow: 0 0 0.06em rgba(255,255,255,.15);
}

/* subtle pulsing outer glow (optional) */
.panel-rainbow::after{
  content:"";
  position:absolute; inset:-6px 0 0 0;
  filter: blur(12px);
  background: linear-gradient(
    90deg,
    rgba(255,77,77,.28),
    rgba(255,159,10,.28),
    rgba(255,214,10,.28),
    rgba(50,255,126,.28),
    rgba(24,220,255,.28),
    rgba(125,95,255,.28),
    rgba(255,77,77,.28)
  );
  background-size: 400% 100%;
  z-index:-1;
  animation: rainbow-slide 8s linear infinite;
  pointer-events:none;
}

/* keyframes para sa “umaandar” na kulay */
@keyframes rainbow-slide{
  0%   { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* respeto sa users na ayaw ng animation */
@media (prefers-reduced-motion: reduce){
  .panel-rainbow,
  .panel-rainbow::after{
    animation: none;
    background-position: 50% 50%;
  }
}

/* === SOUND TOGGLE BUTTON === */
.sound-btn{
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border: 2px solid #ffd700;
  border-radius: 22px;
  background: #000;
  color: #ffd700;
  font-weight: 700;
  cursor: pointer;
  z-index: 10000;
}
.sound-btn:hover{ background:#ffd700; color:#000; }
.sound-btn.on{ background:#ffd700; color:#000; }
/* ===== Mobile layout fixes ===== */
@media (max-width: 768px) {
  .panel { padding: 10px; }

  .panel-head { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px;
  }

  .tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .tab { 
    flex: 1 1 auto;
    padding: 8px 10px; 
    text-align: center; 
    font-size: 14px;
  }

  .card, .login-card {
    width: 100%;
    margin: 10px 0;
  }

  /* history table container scroll */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* make table wider than viewport to enable smooth horizontal scroll */
  .table { min-width: 720px; } /* adjust if needed */

  /* smaller text/padding para kasya */
  .table th, .table td {
    padding: 8px 6px;
    font-size: 12px;
    white-space: nowrap; /* keep cells in one line */
  }
}

/* Super small phones: hide less important columns */
@media (max-width: 480px) {
  /* Hide Card ID (3rd), Card Code (4th), Guild Name (6th) */
  .table thead th:nth-child(3),
  .table thead th:nth-child(4),
  .table thead th:nth-child(6),
  .table tbody td:nth-child(3),
  .table tbody td:nth-child(4),
  .table tbody td:nth-child(6) {
    display: none;
  }

  .panel-title { font-size: 18px; }
}
