/* ============================================================
   IGS Gaming Community — user-profile-style.css
   ============================================================ */

/* Override .hidden !important for profile-wrap so grid layout works */
.profile-wrap:not(.hidden) {
  display: grid !important;
}

/* ── NOT LOGGED IN GATE ── */
.profile-gate {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
}
.profile-gate-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.profile-gate-inner h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 0.5rem;
}
.profile-gate-inner p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 0.5rem;
}

/* ── LAYOUT ── */
.profile-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2.5rem) 3rem 5rem;
  min-height: 100vh;
  align-items: start;
}

/* ── SIDEBAR ── */
.profile-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border2);
  gap: 0.6rem;
  background: linear-gradient(180deg, rgba(0,212,255,0.04) 0%, transparent 100%);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--bg);
  border: 3px solid rgba(0,212,255,0.25);
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.profile-username {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
}

.profile-role-badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 2px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.2rem;
}
.profile-meta span {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
}

/* Sidebar nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0.2rem;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color var(--ease), background var(--ease);
  cursor: pointer;
  border: none;
  background: none;
}
.sidebar-nav-btn:hover { color: var(--text); background: var(--border2); }
.sidebar-nav-btn.active { color: var(--accent); background: var(--accent-dim); }

.sidebar-nav-icon { font-size: 1rem; flex-shrink: 0; }

/* Logout */
.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0.5rem 0.75rem 0.75rem;
  padding: 9px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  cursor: pointer;
  background: none;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.sidebar-logout:hover {
  color: var(--danger);
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.06);
}

/* ── MAIN CONTENT ── */
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* Tabs */
.profile-tab { display: none; }
.profile-tab.active { display: flex; flex-direction: column; gap: 1.5rem; }

.tab-header { margin-bottom: 0.25rem; }
.tab-header h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.tab-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── CARDS ── */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.profile-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border2);
  background: rgba(0,212,255,0.02);
}

.profile-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.profile-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Form layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label-optional {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.form-input {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 11px 13px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  width: 100%;
  font-family: 'Inter', sans-serif;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.form-msg {
  font-size: 0.84rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid;
}
.form-msg.success { color: var(--success); border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.06); }
.form-msg.error   { color: var(--danger);  border-color: rgba(239,68,68,0.3);  background: rgba(239,68,68,0.06); }

/* ── LINKED SERVERS ── */
.linked-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 1rem 0;
}
.loading-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.linked-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.linked-empty strong {
  display: block;
  color: var(--text-soft);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.linked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: border-color var(--ease);
}
.linked-item:last-child { margin-bottom: 0; }
.linked-item:hover { border-color: rgba(0,212,255,0.25); }

.linked-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.linked-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.linked-server-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.linked-game-username {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.linked-date {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── AVATAR UPLOAD ── */
.avatar-upload-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.avatar-preview {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem; font-weight: 900; color: var(--bg);
  flex-shrink: 0;
  border: 2px solid rgba(0,212,255,0.2);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.avatar-upload-info {
  flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 4px;
}

/* ── BANNER PREVIEW ── */
.banner-preview {
  width: 100%; height: 90px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.banner-preview-text {
  font-size: 0.78rem; color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif; letter-spacing: 0.08em;
}

/* ── LINK SERVER OPTIONS ── */
.link-server-options { display: flex; flex-direction: column; gap: 0.75rem; }
.link-server-option {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.link-server-option:hover { border-color: var(--accent); background: var(--accent-dim); }
.link-server-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.link-server-info { flex: 1; }
.link-server-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.95rem; color: #fff; }
.link-server-type { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.link-server-arrow { color: var(--text-muted); font-size: 0.9rem; }
.link-server-selected {
  display: flex; align-items: center; gap: 10px;
  padding: 0.75rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--accent);
}

/* ── LINKED ITEM UNLINK ── */
.linked-unlink {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all var(--ease); flex-shrink: 0;
}
.linked-unlink:hover { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,0.06); }

/* ── FIVEM TAB ── */
.fivem-chars-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.fivem-char-slots {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.fivem-slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--ease);
  min-width: 110px;
}
.fivem-slot-btn:hover {
  border-color: rgba(0,212,255,0.35);
  background: var(--accent-dim);
}
.fivem-slot-btn.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.fivem-slot-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.fivem-slot-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.fivem-char-slot-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 2px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border);
}

/* Info grid — 2 col */
.fivem-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.fivem-info-section {}

.fivem-info-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border2);
}

.fivem-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  gap: 1rem;
}
.fivem-info-row:last-child { border-bottom: none; }

.fivem-info-key {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.fivem-info-val {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  text-align: right;
}

.fivem-info-val.na { color: var(--text-muted); font-weight: 400; }
.fivem-info-val.jailed { color: var(--danger); }
.fivem-info-val.free   { color: var(--success); }

.fivem-no-chars {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ════════════════════════════════════════
   ATM MODAL
════════════════════════════════════════ */

/* Open banking button */
.btn-atm-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  color: #22c55e;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
}
.btn-atm-open:hover {
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.5);
}

/* Overlay */
.atm-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.atm-overlay.hidden { display: none; }

/* ATM Machine */
.atm-machine {
  width: 100%;
  max-width: 400px;
  background: #1a1c20;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

/* Top bar */
.atm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: #0f1114;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.atm-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.atm-logo-icon { font-size: 1.1rem; }
.atm-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: #22c55e;
}
.atm-close-btn {
  font-size: 0.8rem;
  color: #4a5568;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--ease);
  cursor: pointer;
  background: none;
  border: none;
}
.atm-close-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* ATM Screen */
.atm-screen {
  background: #0d1a0f;
  margin: 1rem;
  border-radius: 8px;
  border: 2px solid #1a3320;
  min-height: 220px;
  padding: 1.25rem;
  position: relative;
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.6), 0 0 20px rgba(34,197,94,0.04);
  overflow: hidden;
}

/* Screen scanline */
.atm-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  border-radius: 6px;
}

.atm-screen-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.atm-screen-panel.hidden { display: none; }

.atm-screen-header { text-align: center; }

.atm-screen-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  color: #22c55e;
  margin-bottom: 4px;
}

.atm-screen-sub {
  font-size: 0.74rem;
  color: #3d6b44;
  letter-spacing: 0.06em;
  font-family: 'Rajdhani', sans-serif;
}

/* PIN dots */
.atm-pin-display {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 0.5rem 0;
}
.atm-pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #2d5a35;
  background: transparent;
  transition: all 0.15s ease;
}
.atm-pin-dot.filled {
  background: #22c55e;
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.6);
}

/* Balance display */
.atm-balance-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid #1a3320;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}
.atm-balance-item {
  flex: 1;
  text-align: center;
}
.atm-balance-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #3d6b44;
  margin-bottom: 3px;
}
.atm-balance-val {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #22c55e;
}
.atm-balance-sep {
  width: 1px;
  height: 36px;
  background: #1a3320;
}

/* Menu buttons */
.atm-menu-btns {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}
.atm-menu-btn {
  width: 100%;
  padding: 9px 14px;
  background: rgba(34,197,94,0.06);
  border: 1px solid #1a3320;
  border-radius: 4px;
  color: #4ade80;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.atm-menu-btn:hover {
  background: rgba(34,197,94,0.12);
  border-color: #22c55e;
  color: #86efac;
}
.atm-menu-btn-danger { color: #f87171; border-color: #3d1a1a; background: rgba(239,68,68,0.05); }
.atm-menu-btn-danger:hover { background: rgba(239,68,68,0.1); border-color: #ef4444; color: #fca5a5; }

/* Amount display */
.atm-amount-display {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #22c55e;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.5rem 0;
  text-shadow: 0 0 20px rgba(34,197,94,0.4);
}
.atm-field-display {
  font-size: 1.1rem;
  padding: 0.3rem;
  width: 100%;
}

/* Transfer fields */
.atm-transfer-fields { width: 100%; display: flex; flex-direction: column; gap: 0.6rem; }
.atm-field-group { width: 100%; }
.atm-field-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #3d6b44;
  margin-bottom: 4px;
}

/* Transaction messages */
.atm-txn-msg {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
}
.atm-txn-msg.error   { color: #f87171; }
.atm-txn-msg.success { color: #4ade80; }
.atm-txn-msg.hidden  { display: none; }

.atm-pin-error {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #f87171;
  text-align: center;
}
.atm-pin-error.hidden { display: none; }

/* Success screen */
.atm-success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 2px solid #22c55e;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #22c55e;
  box-shadow: 0 0 24px rgba(34,197,94,0.3);
}
.atm-success-msg {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  color: #3d6b44;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Keypad */
.atm-keypad {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.atm-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.atm-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  background: #222428;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  color: #e2e8f0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
  line-height: 1;
}
.atm-key span {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-top: 2px;
}
.atm-key:hover {
  background: #2a2e33;
  border-color: rgba(255,255,255,0.12);
}
.atm-key:active {
  background: #1a1e22;
  transform: scale(0.95);
}
.atm-key-flash {
  background: #2d3748 !important;
  border-color: rgba(34,197,94,0.4) !important;
}

.atm-key-clear {
  background: #1e1a1a;
  color: #f87171;
  border-color: rgba(239,68,68,0.15);
  font-size: 0.72rem;
}
.atm-key-clear:hover { background: #241e1e; border-color: rgba(239,68,68,0.3); }

.atm-key-enter {
  background: #0f2218;
  color: #22c55e;
  border-color: rgba(34,197,94,0.2);
  font-size: 0.72rem;
}
.atm-key-enter:hover { background: #142a1e; border-color: rgba(34,197,94,0.4); }

.atm-side-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.atm-side-btn {
  padding: 8px;
  background: #1a1d22;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  color: #64748b;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.atm-side-btn:hover { color: #94a3b8; background: #22262c; }
.atm-side-btn-cancel {
  color: #f87171;
  border-color: rgba(239,68,68,0.15);
  background: #1e1a1a;
}
.atm-side-btn-cancel:hover { background: #241e1e; border-color: rgba(239,68,68,0.3); color: #fca5a5; }

/* ── ATM PLAYER DROPDOWN ── */
.atm-player-search-wrap {
  width: 100%;
  position: relative;
}

.atm-player-search {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid #1a3320;
  border-radius: 4px;
  padding: 7px 10px;
  color: #4ade80;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.15s;
  font-weight: 600;
}
.atm-player-search::placeholder { color: #2d5a35; }
.atm-player-search:focus { border-color: #22c55e; }

.atm-player-list {
  width: 100%;
  max-height: 110px;
  overflow-y: auto;
  margin-top: 4px;
  background: rgba(0,0,0,0.5);
  border: 1px solid #1a3320;
  border-radius: 4px;
}
.atm-player-list::-webkit-scrollbar { width: 3px; }
.atm-player-list::-webkit-scrollbar-thumb { background: #1a3320; }

.atm-player-loading {
  padding: 8px 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.74rem;
  color: #2d5a35;
  letter-spacing: 0.08em;
}

.atm-player-item {
  padding: 7px 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: #4ade80;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-bottom: 1px solid rgba(26,51,32,0.5);
  transition: background 0.1s;
}
.atm-player-item:last-child { border-bottom: none; }
.atm-player-item:hover { background: rgba(34,197,94,0.08); }
.atm-player-item .atm-player-sub {
  font-size: 0.68rem;
  color: #2d5a35;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 1px;
}

.atm-player-empty {
  padding: 8px 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.74rem;
  color: #2d5a35;
  letter-spacing: 0.06em;
  font-style: italic;
}

.atm-selected-player {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(34,197,94,0.08);
  border: 1px solid #1a3320;
  border-radius: 4px;
  margin-bottom: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #4ade80;
  letter-spacing: 0.04em;
}