:root {
  --ph-body-bg: #f5f7fb;
  --ph-surface: #ffffff;
  --ph-surface-2: #f8fafc;
  --ph-text: #172033;
  --ph-text-muted: #6b7280;
  --ph-border: #e5e7eb;
  --ph-primary: #2563eb;
  --ph-primary-hover: #1d4ed8;
  --ph-success: #16a34a;
  --ph-warning: #d97706;
  --ph-danger: #dc2626;
  --ph-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --ph-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --ph-radius: 1rem;
  --ph-radius-sm: 0.75rem;
  --ph-navbar-bg: rgba(255, 255, 255, 0.9);
  --ph-footer-bg: #0f172a;
  --ph-footer-text: #cbd5e1;
}

[data-theme="dark"] {
  --ph-body-bg: #0b1220;
  --ph-surface: #111827;
  --ph-surface-2: #0f172a;
  --ph-text: #e5eefb;
  --ph-text-muted: #9ca3af;
  --ph-border: #243041;
  --ph-primary: #60a5fa;
  --ph-primary-hover: #3b82f6;
  --ph-success: #22c55e;
  --ph-warning: #f59e0b;
  --ph-danger: #f87171;
  --ph-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  --ph-shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.22);
  --ph-navbar-bg: rgba(11, 18, 32, 0.88);
  --ph-footer-bg: #020617;
  --ph-footer-text: #94a3b8;
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  background: var(--ph-body-bg);
  color: var(--ph-text);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  transition: background-color .25s ease, color .25s ease;
}

.main-content {
  min-height: calc(100vh - 140px);
}

.ph-navbar {
  background: var(--ph-navbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ph-border);
}

.ph-brand {
  color: var(--ph-text) !important;
  letter-spacing: -0.02em;
}

.ph-navbar .nav-link,
.ph-navbar .navbar-toggler,
.ph-navbar .btn-link,
.ph-navbar .dropdown-toggle {
  color: var(--ph-text) !important;
}

.ph-navbar .nav-link.active,
.ph-navbar .nav-link:hover,
.ph-navbar .dropdown-item.active,
.ph-navbar .dropdown-item:active {
  color: var(--ph-primary) !important;
}

.ph-navbar .dropdown-menu,
.modal-content,
.card,
.alert,
.table,
.list-group-item,
.offcanvas {
  background-color: var(--ph-surface);
  color: var(--ph-text);
  border-color: var(--ph-border);
}

.card,
.modal-content,
.dropdown-menu,
.offcanvas,
.alert {
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-sm);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ph-text);
  --bs-table-border-color: var(--ph-border);
  --bs-table-hover-bg: rgba(37, 99, 235, 0.04);
}

.text-muted,
.text-secondary,
.small,
.form-text,
.dropdown-item-text,
.table thead th {
  color: var(--ph-text-muted) !important;
}

.bg-light,
.bg-white {
  background-color: var(--ph-surface) !important;
}

.border,
.border-top,
.border-bottom,
.border-start,
.border-end,
hr,
.dropdown-divider {
  border-color: var(--ph-border) !important;
}

.btn-primary {
  background-color: var(--ph-primary);
  border-color: var(--ph-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--ph-primary-hover) !important;
  border-color: var(--ph-primary-hover) !important;
}

.btn-outline-light {
  border-color: var(--ph-border);
  color: var(--ph-text);
}

.btn-outline-light:hover,
.btn-outline-secondary:hover {
  background-color: var(--ph-surface-2);
  color: var(--ph-text);
  border-color: var(--ph-border);
}

.form-control,
.form-select {
  background-color: var(--ph-surface);
  color: var(--ph-text);
  border-color: var(--ph-border);
  min-height: 46px;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--ph-surface);
  color: var(--ph-text);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, 0.14);
}

.ph-surface {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-sm);
}

.ph-hero {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%);
  border: 1px solid var(--ph-border);
  border-radius: calc(var(--ph-radius) + 0.25rem);
  box-shadow: var(--ph-shadow);
}

[data-theme="dark"] .ph-hero {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0.04) 100%);
}

.ph-footer {
  background: var(--ph-footer-bg);
  color: var(--ph-footer-text);
}

.ph-footer a {
  color: #e2e8f0;
}

@media (max-width: 991.98px) {
  .ph-navbar .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--ph-surface);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow-sm);
  }
}

@media (max-width: 767.98px) {
  .container {
    --bs-gutter-x: 1rem;
  }

  .card,
  .modal-content,
  .alert,
  .ph-surface,
  .ph-hero {
    border-radius: 1rem;
  }

  .table-responsive {
    border-radius: 1rem;
  }
}

.ph-footer a:hover { color: var(--ph-primary) !important; }
.modal-content .input-group-text { background: var(--ph-surface-2) !important; }
.btn-primary:disabled { opacity: 0.7; }

.ph-tabs-header .nav-link {
  border-color: transparent !important;
}
.ph-tabs-header .nav-link:hover {
  color: var(--ph-primary) !important;
  border-color: var(--ph-primary) !important;
  background: var(--ph-surface-2) !important;
}
.ph-tabs-header .nav-link.active {
  color: var(--ph-primary) !important;
  border-color: var(--ph-primary) !important;
  background: rgba(var(--ph-primary-rgb), 0.1) !important;
  box-shadow: 0 2px 8px rgba(var(--ph-primary-rgb), 0.15);
}
.ph-surface .nav-tabs { border-bottom: none; }
[data-theme="dark"] .ph-tabs-header .nav-link.active {
  background: rgba(var(--ph-primary-rgb), 0.2) !important;
}

.ph-tab-pill { border: 2px solid transparent; transition: all 0.3s; }
.ph-tab-pill:hover, .ph-tab-pill.active { border-color: var(--ph-primary) !important; background: rgba(var(--ph-primary-rgb), 0.1) !important; color: var(--ph-primary) !important; }
.bg-gradient-ph { background: linear-gradient(135deg, var(--ph-gradient-start), var(--ph-gradient-end)); }

.ph-toast.toast {
  border-radius: var(--ph-radius-lg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ph-border);
  font-family: 'Poppins', sans-serif;
}
.ph-toast.toast-light {
  background: rgba(var(--ph-surface-rgb), 0.95);
  color: var(--ph-text);
  box-shadow: var(--ph-shadow-lg);
}
.ph-toast.toast-dark {
  background: rgba(var(--ph-surface-dark-rgb), 0.95);
  color: var(--ph-text-light);
  box-shadow: var(--ph-shadow-dark-lg);
}
.ph-toast .toast-title { font-weight: 600; font-size: 1rem; }
.ph-toast i { font-size: 1.2rem; opacity: 0.9; }
.toast-progress { background: linear-gradient(90deg, var(--ph-primary), var(--ph-primary-light)); }

.bg-ph-primary { --bs-bg-opacity: 1; background-color: rgba(var(--ph-primary-rgb), var(--bs-bg-opacity)) !important; }
.bg-ph-success { --bs-bg-opacity: 1; background-color: rgba(var(--ph-success-rgb), var(--bs-bg-opacity)) !important; }
.bg-ph-secondary { --bs-bg-opacity: 1; background-color: rgba(107, 114, 128, var(--bs-bg-opacity)) !important; }

/* ============================================
   Footer Section Styles
   ============================================ */

.ph-footer-section {
  background: linear-gradient(180deg, var(--ph-surface-2) 0%, var(--ph-surface) 100%);
  border-top: 1px solid var(--ph-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.ph-footer-card {
  background: var(--ph-surface);
  border-radius: calc(var(--ph-radius) + 0.5rem);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--ph-border);
}

.footer-brand {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: var(--ph-text);
}

.footer-brand i {
  color: var(--ph-primary);
  font-size: 1.5rem;
}

.footer-description {
  color: var(--ph-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ph-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--ph-surface-2);
}

.footer-contact-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ph-primary);
  transform: translateX(5px);
}

.footer-contact-item i {
  color: var(--ph-primary);
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ph-text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ph-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  padding: 0.5rem 0;
}

.footer-link i,
.footer-link img {
  font-size: 1.1rem;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  color: var(--ph-primary);
  opacity: 0.8;
}

.footer-link img {
  object-fit: contain;
}

.footer-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ph-primary);
  transform: translateX(5px);
}

.footer-link i {
  color: var(--ph-primary);
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.payment-methods {
  background: var(--ph-surface-2);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ph-border);
}

.payment-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  transition: all 0.25s ease;
  filter: grayscale(20%);
}

.payment-methods:hover .payment-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.payment-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--ph-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.payment-security i {
  color: var(--ph-success);
  font-size: 1.1rem;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ph-border), transparent);
  margin: 2rem 0;
}

.footer-copyright {
  color: var(--ph-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-bottom-link {
  color: var(--ph-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

.footer-bottom-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ph-primary);
  transition: width 0.25s ease;
}

.footer-bottom-link:hover {
  color: var(--ph-primary);
}

.footer-bottom-link:hover::after {
  width: 100%;
}

/* Responsive Footer */
@media (max-width: 991.98px) {
  .ph-footer-card {
    padding: 2rem 1.5rem;
  }
  
  .footer-brand {
    justify-content: center;
  }
  
  .footer-description {
    text-align: center;
  }
  
  .footer-contacts {
    align-items: center;
  }
  
  .footer-title {
    text-align: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .payment-methods {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .ph-footer-section {
    padding: 2rem 0 1.5rem;
  }
  
  .ph-footer-card {
    padding: 1.5rem 1rem;
    border-radius: var(--ph-radius);
  }
  
  .footer-divider {
    margin: 1.5rem 0;
  }
  
  .footer-bottom-links {
    gap: 1rem;
    justify-content: center;
  }
}

/* ============================================
   Navbar Pro-Hoster.Ru Styles
   ============================================ */

/* Brand */
.ph-brand {
  color: var(--ph-text) !important;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}

.ph-brand:hover {
  transform: scale(1.02);
}

.brand-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ph-primary), #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.ph-brand:hover .brand-icon-wrapper {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: rotate(-5deg);
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ph-primary), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation Links */
.ph-navbar .nav-link {
  color: var(--ph-text) !important;
  font-weight: 600;
  padding: 0.625rem 1rem !important;
  border-radius: 0.5rem;
  transition: all 0.25s ease;
  position: relative;
}

.ph-navbar .nav-link i {
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.ph-navbar .nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ph-primary) !important;
}

.ph-navbar .nav-link:hover i {
  opacity: 1;
}

.ph-navbar .nav-link.active {
  color: var(--ph-primary) !important;
  background: rgba(37, 99, 235, 0.12);
}

.ph-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ph-primary);
}

/* Dropdown Menu */
.ph-dropdown {
  background: var(--ph-surface) !important;
  border: 1px solid var(--ph-border) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
  padding: 0.5rem !important;
  margin-top: 0.5rem !important;
  min-width: 220px !important;
}

.ph-dropdown .dropdown-item {
  color: var(--ph-text) !important;
  padding: 0.625rem 1rem !important;
  border-radius: 0.5rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  display: flex;
  align-items: center;
}

.ph-dropdown .dropdown-item i {
  width: 1.25rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.ph-dropdown .dropdown-item:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  color: var(--ph-primary) !important;
}

.ph-dropdown .dropdown-item:hover i {
  opacity: 1;
}

.ph-dropdown .dropdown-item.active {
  background: rgba(37, 99, 235, 0.12) !important;
  color: var(--ph-primary) !important;
}

.ph-dropdown .dropdown-divider {
  border-color: var(--ph-border) !important;
  margin: 0.5rem 0 !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ph-surface-2);
  border: 1px solid var(--ph-border);
  color: var(--ph-text);
  transition: all 0.25s ease;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--ph-primary);
  color: var(--ph-primary);
  transform: rotate(15deg);
}

.theme-toggle-btn i {
  font-size: 1.1rem;
}

/* Balance Static (Admin) */
.btn-balance-static {
  background: var(--ph-surface-2) !important;
  color: var(--ph-text) !important;
  border: 1px solid var(--ph-border) !important;
  border-radius: 0.75rem !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem !important;
  transition: all 0.25s ease !important;
  cursor: default;
}

.btn-balance-static i {
  font-size: 1.1rem;
  color: var(--ph-success);
}

.btn-balance-static:hover {
  border-color: var(--ph-success);
  background: rgba(34, 197, 94, 0.08);
}

/* Balance Button */
.btn-balance {
  background: linear-gradient(135deg, var(--ph-success), #22c55e) !important;
  color: white !important;
  border: none !important;
  border-radius: 0.75rem !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3) !important;
  transition: all 0.25s ease !important;
}

.btn-balance:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45) !important;
  color: white !important;
}

.btn-balance i {
  font-size: 1.1rem;
}

.balance-amount {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Tickets Button */
.btn-tickets {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--ph-surface-2);
  border: 1px solid var(--ph-border);
  color: var(--ph-text);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-tickets:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--ph-primary);
  color: var(--ph-primary);
}

.btn-tickets i {
  font-size: 1.1rem;
}

.tickets-dropdown {
  min-width: 280px !important;
  max-height: 350px !important;
  overflow-y: auto !important;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* User Profile Button */
.btn-user-profile {
  background: var(--ph-surface-2) !important;
  border: 1px solid var(--ph-border) !important;
  border-radius: 0.75rem !important;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem !important;
  transition: all 0.25s ease !important;
  cursor: pointer;
}

.btn-user-profile:hover {
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: var(--ph-primary) !important;
}

.btn-user-profile .dropdown-toggle::after {
  display: none;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ph-border);
  transition: border-color 0.25s ease;
}

.btn-user-profile:hover .avatar-circle {
  border-color: var(--ph-primary);
}

.user-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ph-text);
}

.user-dropdown {
  min-width: 260px !important;
}

.user-dropdown .dropdown-item-text {
  padding: 0.75rem 1rem !important;
  background: var(--ph-surface-2);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.user-dropdown .dropdown-item {
  padding: 0.625rem 1rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.user-dropdown .dropdown-item:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  color: var(--ph-primary) !important;
}

.user-dropdown .dropdown-item i {
  width: 1.25rem;
  text-align: center;
}

/* Login & Register Buttons */
.btn-login {
  background: linear-gradient(135deg, var(--ph-primary), #3b82f6) !important;
  color: white !important;
  border: none !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 1.5rem !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.25s ease !important;
}

.btn-login:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45) !important;
  color: white !important;
}

.btn-register {
  background: linear-gradient(135deg, var(--ph-success), #22c55e) !important;
  color: white !important;
  border: none !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 1.5rem !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35) !important;
  transition: all 0.25s ease !important;
}

.btn-register:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.45) !important;
  color: white !important;
}

/* Hero Buttons */
.btn-hero-primary {
  background: linear-gradient(135deg, var(--ph-primary), #3b82f6) !important;
  color: white !important;
  border: none !important;
  border-radius: 0.875rem !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
  transition: all 0.3s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem !important;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5) !important;
  color: white !important;
}

.btn-hero-outline {
  background: var(--ph-surface) !important;
  color: var(--ph-primary) !important;
  border: 2px solid var(--ph-primary) !important;
  border-radius: 0.875rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2) !important;
  transition: all 0.3s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem !important;
}

.btn-hero-outline:hover {
  background: var(--ph-primary) !important;
  color: white !important;
  border-color: var(--ph-primary) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35) !important;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--ph-primary), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .ph-navbar .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--ph-surface);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow-sm);
  }
  
  .ph-navbar .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .brand-text {
    font-size: 1rem;
  }
  
  .btn-balance,
  .btn-login,
  .btn-register {
    width: 100%;
    justify-content: center;
  }
  
  .user-name {
    display: none;
  }
}

/* ============================================
   Admin Panel Styles
   ============================================ */

/* Admin Settings */
.ph-admin-settings {
  background: var(--ph-surface-2);
  min-height: calc(100vh - 120px);
  padding: 2rem 0;
}

.ph-settings-tabs {
  background: var(--ph-surface-2);
  border-bottom: 1px solid var(--ph-border);
  padding: 0 1.5rem;
}

.ph-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border: none;
}

.ph-nav-tabs .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--ph-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border-radius: 0;
}

.ph-nav-tabs .nav-link i {
  font-size: 1.1rem;
}

.ph-nav-tabs .nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ph-primary);
}

.ph-nav-tabs .nav-link.active {
  background: transparent;
  border-bottom-color: var(--ph-primary);
  color: var(--ph-primary);
}

.ph-settings-content {
  padding: 2rem;
}

.ph-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ph-form-group {
  display: flex;
  flex-direction: column;
}

.ph-form-group.full-width {
  grid-column: 1 / -1;
}

.ph-form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ph-text);
  margin-bottom: 0.5rem;
}

.ph-form-label i {
  color: var(--ph-primary);
  font-size: 1rem;
}

.ph-form-control {
  padding: 0.875rem 1rem;
  background: var(--ph-surface-2);
  border: 2px solid var(--ph-border);
  border-radius: 0.75rem;
  color: var(--ph-text);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.ph-form-control:focus {
  outline: none;
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: var(--ph-surface);
}

.ph-divider {
  border-color: var(--ph-border);
  opacity: 0.5;
}

.ph-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ph-text);
}

.ph-section-title i {
  color: var(--ph-primary);
}

.ph-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ph-border);
}

.ph-form-actions .btn-ph-primary {
  min-width: 250px;
}

/* Alerts */
.ph-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid;
}

.ph-alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--ph-text);
}

.ph-alert-warning i {
  color: #f59e0b;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ph-alert-info {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--ph-text);
}

.ph-alert-info i {
  color: var(--ph-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Responsive Admin */
@media (max-width: 991.98px) {
  .ph-form-grid {
    grid-template-columns: 1fr;
  }
  
  .ph-nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  
  .ph-nav-tabs .nav-link {
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .ph-settings-content {
    padding: 1.5rem;
  }
  
  .ph-form-actions {
    justify-content: center;
  }
  
  .ph-form-actions .btn-ph-primary {
    width: 100%;
  }
}

/* ============================================
   Server Control Panel Styles
   ============================================ */

/* Server Status Card */
.server-status-card {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.server-status-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ph-shadow);
}

.server-status-card.online {
  border-left: 4px solid var(--ph-success);
}

.server-status-card.offline {
  border-left: 4px solid var(--ph-danger);
}

.server-status-card.locked {
  border-left: 4px solid var(--ph-warning);
}

.server-status-card.process {
  border-left: 4px solid var(--ph-primary);
}

.server-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: var(--ph-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: white;
}

.server-status-card.online .server-icon-wrapper {
  background: linear-gradient(135deg, var(--ph-success), #22c55e);
}

.server-status-card.offline .server-icon-wrapper {
  background: linear-gradient(135deg, var(--ph-danger), #ef4444);
}

.server-status-card.locked .server-icon-wrapper {
  background: linear-gradient(135deg, var(--ph-warning), #f59e0b);
}

.server-status-card.process .server-icon-wrapper {
  background: linear-gradient(135deg, var(--ph-primary), #3b82f6);
}

/* Server Game Icon */
.server-game-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--ph-radius);
  overflow: hidden;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: var(--ph-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.server-status-card:hover .server-game-icon img {
  transform: scale(1.05);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-badge.online {
  background: rgba(34, 197, 94, 0.1);
  color: var(--ph-success);
}

.status-badge.online::before {
  background: var(--ph-success);
}

.status-badge.offline {
  background: rgba(220, 38, 38, 0.1);
  color: var(--ph-danger);
}

.status-badge.offline::before {
  background: var(--ph-danger);
}

.status-badge.process {
  background: rgba(37, 99, 235, 0.1);
  color: var(--ph-primary);
}

.status-badge.process::before {
  background: var(--ph-primary);
}

.status-badge.locked {
  background: rgba(245, 158, 11, 0.1);
  color: var(--ph-warning);
}

.status-badge.locked::before {
  background: var(--ph-warning);
}

/* Quick Stats */
.server-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.server-stat-item {
  background: var(--ph-surface-2);
  border-radius: var(--ph-radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.server-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ph-text);
}

.server-stat-label {
  font-size: 0.75rem;
  color: var(--ph-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Info Cards */
.server-info-card {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-sm);
  transition: all 0.2s ease;
  overflow: hidden;
  height: 100%;
}

.server-info-card:hover {
  box-shadow: var(--ph-shadow);
  transform: translateY(-2px);
}

.server-info-card .card-header {
  background: var(--ph-surface-2);
  border-bottom: 1px solid var(--ph-border);
  padding: 0.875rem 1rem;
}

.server-info-card .card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ph-text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.server-info-card .card-body {
  padding: 1rem;
}

.server-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ph-text);
  word-break: break-word;
}

/* Actions Panel */
.server-actions-panel {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-sm);
}

.server-actions-panel .card-header {
  background: var(--ph-surface-2);
  border-bottom: 1px solid var(--ph-border);
  padding: 1rem;
}

.server-actions-panel .card-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ph-text);
}

.server-action-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--ph-text);
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: var(--ph-radius-sm);
  margin: 0.25rem;
  text-decoration: none;
}

.server-action-item:hover {
  background: var(--ph-surface-2);
  color: var(--ph-primary);
  transform: translateX(4px);
}

.server-action-item i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.server-action-item.text-success:hover {
  color: var(--ph-success);
  background: rgba(34, 197, 94, 0.08);
}

.server-action-item.text-danger:hover {
  color: var(--ph-danger);
  background: rgba(220, 38, 38, 0.08);
}

.server-action-item.text-info:hover {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.08);
}

/* Action Buttons */
.server-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: var(--ph-radius-sm);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.server-action-btn-start {
  background: linear-gradient(135deg, var(--ph-success), #22c55e);
  color: white;
}

.server-action-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  color: white;
}

.server-action-btn-stop {
  background: linear-gradient(135deg, var(--ph-danger), #ef4444);
  color: white;
}

.server-action-btn-stop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  color: white;
}

.server-action-btn-restart {
  background: linear-gradient(135deg, var(--ph-primary), #3b82f6);
  color: white;
}

.server-action-btn-restart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  color: white;
}

/* Modal Modern */
.modal-modern .modal-content {
  border: none;
  border-radius: calc(var(--ph-radius) + 0.25rem);
  box-shadow: var(--ph-shadow);
}

.modal-modern .modal-header {
  background: linear-gradient(135deg, var(--ph-primary), #3b82f6);
  color: white;
  border-radius: calc(var(--ph-radius) + 0.25rem) calc(var(--ph-radius) + 0.25rem) 0 0;
  border: none;
  padding: 1.25rem 1.5rem;
}

.modal-modern .modal-title {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-modern .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.modal-modern .modal-body {
  padding: 1.5rem;
}

.modal-modern .modal-footer {
  border: none;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--ph-surface-2);
}

/* Server Page Header */
.server-page-header {
  margin-bottom: 1.5rem;
}

.server-page-header h2 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.server-page-header p {
  color: var(--ph-text-muted);
  margin: 0;
}

/* Server Navigation Tabs */
.server-nav-tabs {
  padding: 0;
}

.server-nav-grid {
  padding: 0;
}

.server-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  color: var(--ph-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  box-shadow: var(--ph-shadow-sm);
  min-height: 90px;
}

.server-nav-item:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04));
  border-color: var(--ph-primary);
  color: var(--ph-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.server-nav-item.active {
  background: linear-gradient(135deg, var(--ph-primary), #3b82f6);
  border-color: var(--ph-primary);
  color: white;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.server-nav-item.active i {
  opacity: 1;
}

.server-nav-item i {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.server-nav-item span {
  text-align: center;
  line-height: 1.3;
  font-size: 0.8rem;
}

@media (max-width: 991.98px) {
  .server-nav-item {
    min-height: 80px;
    padding: 0.875rem 0.5rem;
  }
  
  .server-nav-item i {
    font-size: 1.5rem;
  }
  
  .server-nav-item span {
    font-size: 0.75rem;
  }
}
  
@media (max-width: 767.98px) {
  .server-nav-item {
    min-height: 75px;
    padding: 0.75rem 0.5rem;
  }
  
  .server-nav-item i {
    font-size: 1.4rem;
  }
  
  .server-nav-item span {
    font-size: 0.7rem;
  }
}

@media (max-width: 575.98px) {
  .server-nav-item {
    min-height: 70px;
    padding: 0.625rem 0.375rem;
    border-radius: 0.75rem;
  }

  .server-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
  }
  
  .server-nav-item span {
    font-size: 0.65rem;
  }
}
  
/* FTP Design Options */
.design-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--ph-surface-2);
  border: 2px solid var(--ph-border);
  border-radius: var(--ph-radius);
  text-decoration: none;
  color: var(--ph-text);
  transition: all 0.25s ease;
}

.design-option:hover {
  border-color: var(--ph-primary);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.design-option i {
  transition: transform 0.25s ease;
}

.design-option:hover i {
  transform: scale(1.1);
}

/* Tasks List Items */
.task-item {
  padding: 1rem;
  background: var(--ph-surface-2);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  margin-bottom: 0.75rem;
  transition: all 0.25s ease;
}

.task-item:last-child {
  margin-bottom: 0;
}

.task-item:hover {
  border-color: var(--ph-primary);
  background: rgba(37, 99, 235, 0.05);
}

/* Server Info Cards */
.server-info-card {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-sm);
  transition: all 0.25s ease;
}

.server-info-card:hover {
  box-shadow: var(--ph-shadow);
}

.server-info-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--ph-border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.server-info-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.server-info-card .card-body {
  padding: 1.5rem;
}

.server-info-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ph-primary);
  font-family: monospace;
  padding: 0.75rem 1rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 0.5rem;
}

/* Server Actions Panel */
.server-actions-panel {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-sm);
}

.server-action-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--ph-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.25s ease;
  margin-bottom: 0.5rem;
}

.server-action-item:last-child {
  margin-bottom: 0;
}

.server-action-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ph-primary);
  transform: translateX(5px);
}

.server-action-item i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.server-action-item.text-success:hover {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
}

.server-action-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

/* Modern Modal */
.modal-modern .modal-content {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-lg);
}

.modal-modern .modal-header {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04));
  border-bottom: 1px solid var(--ph-border);
  padding: 1.25rem 1.5rem;
}

.modal-modern .modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ph-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-modern .modal-body {
  padding: 1.5rem;
  color: var(--ph-text);
}

.modal-modern .modal-footer {
  background: var(--ph-surface-2);
  border-top: 1px solid var(--ph-border);
  padding: 1rem 1.5rem;
}

/* Alert Styles */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--ph-radius);
  border: 1px solid;
}

.alert-info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.alert-warning {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* Console Styles */
.console-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--ph-border);
  border-radius: 0.5rem;
  background: #1a1a2e;
  padding: 1rem;
}

.console-output {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: #e0e0e0;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.5;
  min-height: 350px;
}

.console-form .input-group {
  gap: 0.5rem;
}

.console-logs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Commands List */
.commands-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
}

.commands-list code {
  background: rgba(37, 99, 235, 0.1);
  color: var(--ph-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Config Editor */
.config-textarea {
  width: 100%;
  min-height: 500px;
  padding: 1rem;
  background: #1a1a2e;
  color: #e0e0e0;
  border: 2px solid var(--ph-border);
  border-radius: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.25s ease;
}

.config-textarea:focus {
  outline: none;
  border-color: var(--ph-primary);
}

/* Autoinstall Mods */
.mod-image {
  max-width: 100%;
  width: 200px;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* Statistics Timeline */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline-item {
  position: relative;
  padding: 0.75rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--ph-border);
}

.timeline-item:last-child {
  border-left-color: transparent;
}

.timeline-badge {
  position: absolute;
  left: -0.5rem;
  top: 1rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--ph-primary);
}

.timeline-badge.bg-success {
  background: #22c55e;
}

.timeline-badge.bg-warning {
  background: #fbbf24;
}

.timeline-badge.bg-danger {
  background: #ef4444;
}

.timeline-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll Container */
.scroll-container {
  scrollbar-width: thin;
  scrollbar-color: var(--ph-border) transparent;
}

.scroll-container::-webkit-scrollbar {
  width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: var(--ph-border);
  border-radius: 3px;
}

/* Stats Cards */
.opacity-50 {
  opacity: 0.5;
}

/* Server Page Layout - Fix sidebar scroll */
.server-page-wrapper {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.server-page-sidebar {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.server-page-content {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .server-page-wrapper {
    grid-template-columns: 1fr;
  }

  .server-page-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 1.5rem;
  }
}

/* Stats Cards */
.opacity-50 {
  opacity: 0.5;
}

.server-page-content {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .server-page-sidebar {
    position: static;
    margin-bottom: 1.5rem;
  }
}
  
/* Mobile Responsive */
@media (max-width: 991.98px) {
  .server-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .server-info-card .card-title {
    font-size: 0.75rem;
  }
  
  .server-info-value {
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  .server-page-header {
    text-align: center;
    margin-bottom: 1rem;
  }

  .server-game-icon {
    width: 60px;
    height: 60px;
  }
  
  .server-status-card h4 {
    font-size: 1.25rem;
  }
  
  .server-quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .server-stat-item {
    padding: 0.5rem;
  }
  
  .server-stat-value {
    font-size: 1.1rem;
  }
  
  .server-stat-label {
    font-size: 0.65rem;
  }
  
  .server-action-item {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }
  
  .server-info-card .card-header {
    padding: 0.75rem;
  }
  
  .server-info-card .card-body {
    padding: 0.875rem;
  }
  
  .modal-modern .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-modern .modal-body {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .server-quick-stats {
    grid-template-columns: 1fr;
  }

  .server-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Server List Page Styles
   ============================================ */

.server-list-card {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.server-list-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.server-list-card.online {
  border-top: 3px solid var(--ph-success);
}

.server-list-card.offline {
  border-top: 3px solid var(--ph-danger);
}

.server-list-card.locked {
  border-top: 3px solid var(--ph-warning);
}

.server-list-card.process {
  border-top: 3px solid var(--ph-primary);
}

.server-list-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.server-list-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--ph-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, var(--ph-surface-2), var(--ph-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--ph-border);
}

.server-list-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.server-list-card:hover .server-list-icon img {
  transform: scale(1.08);
}

.server-list-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

.server-list-status.status-online {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  color: var(--ph-success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.server-list-status.status-online .status-dot {
  background: var(--ph-success);
  box-shadow: 0 0 8px var(--ph-success);
}

.server-list-status.status-offline {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.08));
  color: var(--ph-danger);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.server-list-status.status-offline .status-dot {
  background: var(--ph-danger);
  box-shadow: 0 0 8px var(--ph-danger);
}

.server-list-status.status-locked {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
  color: var(--ph-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.server-list-status.status-locked .status-dot {
  background: var(--ph-warning);
  box-shadow: 0 0 8px var(--ph-warning);
}

.server-list-status.status-process {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.08));
  color: var(--ph-primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.server-list-status.status-process .status-dot {
  background: var(--ph-primary);
  box-shadow: 0 0 8px var(--ph-primary);
}

.server-list-body {
  padding: 0 1.5rem 1rem;
  flex-grow: 1;
}

.server-list-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ph-text);
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

.server-list-game {
  color: var(--ph-text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.server-list-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.server-list-badge {
  background: var(--ph-surface-2);
  color: var(--ph-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--ph-border);
  white-space: nowrap;
}

.server-list-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--ph-border);
  background: linear-gradient(180deg, var(--ph-surface) 0%, var(--ph-surface-2) 100%);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--ph-radius-sm);
  transition: all 0.25s ease;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-action.btn-success {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.btn-action.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
  color: white;
}

.btn-action.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.btn-action.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
  color: white;
}

.btn-action.btn-info {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.btn-action.btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
  color: white;
}

.btn-action.btn-primary {
  background: linear-gradient(135deg, var(--ph-primary) 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.btn-action.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
  color: white;
}

/* Mobile Responsive for Server List */
@media (max-width: 991.98px) {
  .server-list-icon {
    width: 56px;
    height: 56px;
  }
  
  .server-list-header {
    padding: 1.25rem;
  }
  
  .server-list-body {
    padding: 0 1.25rem 1rem;
  }
  
  .server-list-actions {
    padding: 1rem 1.25rem 1.25rem;
  }
}
  
@media (max-width: 767.98px) {
  .server-list-icon {
    width: 48px;
    height: 48px;
  }
  
  .server-list-title {
    font-size: 1rem;
  }
  
  .server-list-game {
    font-size: 0.85rem;
  }
  
  .server-list-status {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .btn-action {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .server-list-header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .server-list-icon {
    width: 42px;
    height: 42px;
  }
  
  .server-list-body {
    padding: 0 1rem 1rem;
  }
  
  .server-list-actions {
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .btn-action {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* ============================================
   Tickets & FAQ Styles
   ============================================ */

.tickets-sidebar-card {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-sm);
  transition: all 0.25s ease;
}

.tickets-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--ph-text);
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.25s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.tickets-nav-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ph-primary);
  transform: translateX(5px);
}

.tickets-nav-item.active {
  background: linear-gradient(135deg, var(--ph-primary), #3b82f6);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tickets-nav-item i {
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
}

/* Ticket Card */
.ticket-card {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.ticket-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--ph-primary);
}

.ticket-card:hover .btn-primary {
  transform: scale(1.02);
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border) !important;
  border-radius: var(--ph-radius) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--ph-shadow-sm);
  transition: all 0.25s ease;
}

.faq-accordion .accordion-item:hover {
  box-shadow: var(--ph-shadow);
}

.faq-accordion .accordion-button {
  background: var(--ph-surface);
  color: var(--ph-text);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none !important;
  box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(37, 99, 235, 0.08) !important;
  color: var(--ph-primary) !important;
}

.faq-accordion .accordion-button:hover {
  background: rgba(37, 99, 235, 0.05);
}

.faq-accordion .accordion-button i {
  transition: transform 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed) i {
  transform: rotate(90deg);
}

.faq-accordion .accordion-body {
  background: var(--ph-surface-2);
  padding: 1.5rem;
  color: var(--ph-text);
}

.faq-accordion code {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ph-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Chat Messages */
.chat-message {
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.25s ease;
}

.chat-message:hover {
  box-shadow: var(--ph-shadow);
}

.chat-message.admin {
  border-left: 3px solid var(--ph-primary);
  background: rgba(37, 99, 235, 0.05);
}

.chat-message.user {
  border-left: 3px solid var(--ph-success);
  background: rgba(34, 197, 94, 0.05);
}

/* Badge Styles */
.badge-rounded {
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Toastr Notifications
   ============================================ */

.toast {
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-lg);
  border: 1px solid var(--ph-border);
  background: var(--ph-surface);
  color: var(--ph-text);
}

.toast-header {
  background: var(--ph-surface-2);
  border-bottom: 1px solid var(--ph-border);
  color: var(--ph-text);
  font-weight: 600;
}

.toast-body {
  color: var(--ph-text);
  font-weight: 500;
}

.toast-success {
  border-left: 4px solid var(--ph-success);
}

.toast-success .toast-header {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  color: var(--ph-success);
}

.toast-error {
  border-left: 4px solid var(--ph-danger);
}

.toast-error .toast-header {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  color: var(--ph-danger);
}

.toast-warning {
  border-left: 4px solid var(--ph-warning);
}

.toast-warning .toast-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  color: var(--ph-warning);
}

.toast-info {
  border-left: 4px solid var(--ph-primary);
}

.toast-info .toast-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
  color: var(--ph-primary);
}

/* Dark mode adjustments */
[data-theme="dark"] .toast {
  background: var(--ph-surface-2);
  border-color: var(--ph-border);
}

[data-theme="dark"] .toast-header {
  background: var(--ph-surface);
  border-bottom-color: var(--ph-border);
}

/* ph-toast custom class */
.ph-toast {
  backdrop-filter: blur(10px);
}

.ph-toast .toast-header i {
  font-size: 1.1rem;
}

