/* ==========================================================================
   RAGELAND — Modern Profile & Account CSS (2026 High-End Visuals)
   Clean, Glassmorphism, Responsive, Dynamic Role Accent, Micro-Interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   Container & Page Base
   -------------------------------------------------------------------------- */
.profile-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-main);
}

.profile-page-main {
  flex: 1;
  padding: 36px 16px 64px;
}

.profile-container {
  max-width: 1120px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   1. LOGIN PORTAL (Glassmorphic Floating Card)
   -------------------------------------------------------------------------- */
.profile-login-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 60px;
}

.profile-login-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0,0,0,0.06);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .profile-login-card {
  background: rgba(14, 24, 31, 0.88);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.profile-login-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 160px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(30px);
  opacity: 0.6;
}

.profile-login-header {
  text-align: center;
  margin-bottom: 28px;
}

.profile-brand-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0c8ba2 0%, #54daf4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #061920;
  box-shadow: 0 12px 28px rgba(84, 218, 244, 0.35);
}

.profile-login-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.profile-login-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.profile-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color 150ms ease;
}

.input-with-icon .form-input-clean {
  padding-left: 48px;
  width: 100%;
}

.input-with-icon .form-input-clean:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
  color: var(--cyan-dark);
}

.profile-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, #109bb7 0%, #54daf4 100%);
  color: #041920;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(84, 218, 244, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  margin-top: 6px;
}

.profile-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(84, 218, 244, 0.42);
  filter: brightness(1.05);
}

.profile-submit-btn:active {
  transform: translateY(0);
}

.profile-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.profile-submit-btn .btn-arrow {
  font-size: 17px;
  transition: transform 150ms ease;
}

.profile-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.profile-login-footer {
  text-align: center;
  margin-top: 4px;
}

.acc-link {
  background: none;
  border: 0;
  color: var(--cyan-dark);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: opacity 150ms ease, background-color 150ms ease;
}

.acc-link:hover {
  opacity: 0.9;
  background-color: var(--cyan-subtle);
}

.profile-error-box,
.profile-success-box {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.profile-error-box {
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid rgba(229, 72, 77, 0.3);
  color: #e5484d;
}

.profile-success-box {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

/* --------------------------------------------------------------------------
   2. AUTHENTICATED PROFILE HUB
   -------------------------------------------------------------------------- */
.profile-hub {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Showcase Card */
.profile-hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 28px;
  padding: 32px 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  overflow: hidden;
}

[data-theme="dark"] .profile-hero-card {
  background: linear-gradient(135deg, rgba(14, 24, 31, 0.95), rgba(18, 32, 42, 0.9));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Skin 3D Stage */
.profile-hero-skin-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-skin-stage {
  position: relative;
  width: 140px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.profile-skin-3d {
  position: relative;
  z-index: 2;
  height: 165px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
  transition: transform 300ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.profile-skin-stage:hover .profile-skin-3d {
  transform: translateY(-6px) scale(1.03);
}

.profile-skin-shadow {
  position: absolute;
  bottom: 0;
  width: 100px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.32) 0%, transparent 75%);
  border-radius: 50%;
  z-index: 1;
}

/* Hero Middle Info */
.profile-hero-main-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.profile-hero-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-hero-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.profile-hero-nick {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.1;
  word-break: break-word;
}

.profile-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
  border: 1px solid rgba(84, 218, 244, 0.4);
  box-shadow: 0 4px 14px var(--cyan-glow);
  transition: all 200ms ease;
}

.profile-server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.server-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
  box-shadow: 0 0 10px #2ecc71;
}

.server-status-dot.pulse {
  animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Hero Stats Strip */
.profile-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--bg-card-border);
}

.profile-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 100px;
}

.profile-hero-stat .stat-caption {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}

.profile-hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-hero-stat .stat-number.role-text {
  color: var(--cyan-dark);
}

/* Actions Column (Staff, Media, Logout) */
.profile-hero-actions-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: 220px;
}

.profile-action-wrapper {
  width: 100%;
}

.profile-panel-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.profile-panel-cta:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(84, 218, 244, 0.18);
}

.profile-panel-cta .cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-panel-cta.staff-cta .cta-icon {
  background: #10242a;
  color: #54daf4;
}

.profile-panel-cta.media-cta .cta-icon {
  background: #2b1c3d;
  color: #b784f7;
}

.profile-panel-cta .cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.profile-panel-cta .cta-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-panel-cta .cta-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.profile-panel-cta .cta-arrow {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 700;
}

.profile-logout-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--bg-card-border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.profile-logout-cta:hover {
  color: #e5484d;
  border-color: rgba(229, 72, 77, 0.4);
  background: rgba(229, 72, 77, 0.06);
}

/* --------------------------------------------------------------------------
   3. SEGMENTED NAVIGATION TABS
   -------------------------------------------------------------------------- */
.profile-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 6px;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-tab-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 180ms ease;
}

.profile-tab-nav-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.profile-tab-nav-btn.active {
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
  box-shadow: 0 4px 14px var(--cyan-glow);
}

[data-theme="dark"] .profile-tab-nav-btn.active {
  background: rgba(84, 218, 244, 0.16);
  color: #54daf4;
}

.profile-tab-nav-btn .tab-icon {
  display: flex;
  align-items: center;
}

/* Tab Panes */
.profile-tab-pane {
  display: none;
}

.profile-tab-pane.active {
  display: block;
  animation: fadeInPane 220ms ease;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-pane-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 32px 34px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.03);
}

.profile-pane-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bg-card-border);
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.pane-title svg {
  color: var(--cyan-dark);
}

.pane-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4. ORDERS TAB STYLES
   -------------------------------------------------------------------------- */
.profile-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.profile-order-row:hover {
  transform: translateY(-1px);
  border-color: rgba(84, 218, 244, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.profile-order-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-order-main strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.profile-order-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.profile-order-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.profile-order-side strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-order-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-order-status.ok {
  background: rgba(46, 204, 113, 0.14);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.profile-order-status.wait {
  background: rgba(243, 156, 18, 0.14);
  color: #e67e22;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.profile-order-status.fail {
  background: rgba(231, 76, 60, 0.14);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.profile-receipt-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cyan-subtle);
  border: 1px solid rgba(84, 218, 244, 0.4);
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 150ms ease;
}

.profile-receipt-link:hover {
  background: rgba(84, 218, 244, 0.25);
  transform: scale(1.04);
}

.profile-order-empty,
.profile-order-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   5. SECURITY TAB STYLES
   -------------------------------------------------------------------------- */
.acc-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--cyan-subtle);
  border: 1px solid rgba(84, 218, 244, 0.3);
  margin-bottom: 22px;
}

.acc-info-icon {
  color: var(--cyan-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.acc-info-content strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.acc-info-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.acc-contacts-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
}

.acc-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.acc-row-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acc-badge-icon {
  color: var(--cyan-dark);
  display: flex;
}

.acc-row-title-wrap strong {
  font-size: 14px;
  color: var(--text-main);
}

.acc-status-value {
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
}

.acc-row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.acc-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  padding: 8px 16px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  color: var(--text-main);
  transition: all 150ms ease;
}

.acc-btn:hover {
  border-color: var(--cyan);
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
}

.acc-btn.danger {
  color: #e5484d;
  border-color: rgba(229, 72, 77, 0.3);
}

.acc-btn.danger:hover {
  background: rgba(229, 72, 77, 0.12);
  border-color: #e5484d;
}

.acc-btn[hidden] {
  display: none !important;
}

.acc-btn.cancel-btn {
  background: transparent;
}

.acc-form {
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--cyan);
  margin-top: 16px;
}

.acc-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.acc-form-actions .profile-submit-btn {
  width: auto;
  min-height: 44px;
  padding: 0 24px;
}

.acc-note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(84, 218, 244, 0.12);
  border: 1px solid rgba(84, 218, 244, 0.3);
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   6. STAFF APPLICATION TAB STYLES
   -------------------------------------------------------------------------- */
.profile-apply-lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.apply-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.apply-role-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-surface);
  cursor: pointer;
  text-align: left;
  transition: all 180ms ease;
}

.apply-role-tab:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.apply-role-tab.active {
  background: var(--cyan-subtle);
  border-color: var(--cyan);
  box-shadow: 0 6px 20px var(--cyan-glow);
}

[data-theme="dark"] .apply-role-tab.active {
  background: rgba(84, 218, 244, 0.14);
}

.apply-tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-dark);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.apply-tab-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apply-tab-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.apply-tab-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.apply-role-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--cyan-subtle);
  border: 1px solid rgba(84, 218, 244, 0.35);
  margin-bottom: 22px;
}

.apply-role-hint .hint-icon {
  color: var(--cyan-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

.apply-role-hint p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
}

.apply-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

.apply-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bg-card-border);
}

.media-video-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--art-orange-bg);
  border: 1px solid rgba(255, 139, 85, 0.35);
  margin-bottom: 18px;
}

.media-video-notice-icon {
  color: #e8742f;
  flex-shrink: 0;
  margin-top: 1px;
}

.media-video-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
}

.apply-fields[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   7. GATE SCREENS (Device authorization / verification)
   -------------------------------------------------------------------------- */
.gate-card {
  max-width: 440px;
  margin: 0 auto;
}

.gate-card h1 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.gate-meta {
  margin: 16px 0;
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-surface);
}

.gate-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
}

.gate-meta > div + div {
  border-top: 1px solid var(--bg-card-border);
}

.gate-meta span {
  color: var(--text-muted);
}

.gate-wait {
  text-align: center;
  padding: 16px 0 8px;
}

.gate-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(84, 218, 244, 0.25);
  border-top-color: #54daf4;
  animation: gate-spin .9s linear infinite;
}

@keyframes gate-spin {
  to { transform: rotate(360deg); }
}

.gate-logout {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.gate-ok h2 {
  font-family: var(--font-heading);
  margin: 0 0 8px;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--bg-card-border);
  color: inherit;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .profile-hero-card {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .profile-hero-identity {
    justify-content: center;
  }
  
  .profile-server-status-pill {
    justify-content: center;
  }
  
  .profile-hero-stats {
    justify-content: center;
  }

  .profile-hero-actions-col {
    width: 100%;
    align-items: center;
  }

  .profile-action-wrapper {
    max-width: 360px;
  }

  .profile-logout-cta {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 680px) {
  .profile-page-main {
    padding: 20px 12px 48px;
  }

  .profile-hero-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .profile-hero-nick {
    font-size: 26px;
  }

  .profile-pane-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .apply-role-tabs {
    grid-template-columns: 1fr;
  }

  .profile-order-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .profile-order-side {
    width: 100%;
    justify-content: space-between;
  }

  .acc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .acc-row-actions {
    width: 100%;
  }

  .acc-row-actions .acc-btn {
    flex: 1;
    text-align: center;
  }
}
