/* ========== CSS Variables ========== */
:root {
  --primary: #e94560;
  --primary-dark: #d63050;
  --primary-light: #ff6b6b;
  --secondary: #0f3460;
  --accent: #533483;
  --bg: #1a1c2e;
  --bg-light: #16213e;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text: #eaeaea;
  --text-muted: #8892b0;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #ef4444;
  --info: #60a5fa;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -8px rgba(233, 69, 96, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--primary);
}

.btn-success {
  background: var(--success);
  color: #000;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

/* ========== Navbar ========== */
.navbar {
  background: rgba(26, 28, 46, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.logo i {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg-card);
  color: var(--text);
}

.nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-badge {
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--success);
  border: 1px solid var(--border);
}

/* ========== Hero ========== */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== Features ========== */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon i {
  font-size: 28px;
  color: #fff;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== Tariffs Section (Index Page) ========== */
.tariffs-section {
  padding: 80px 0;
  background: var(--bg);
}

.tariffs-header {
  text-align: center;
  margin-bottom: 40px;
}

.tariffs-header .section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.tariffs-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tariffs-section .tariffs-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tariffs-section .tariffs-grid.active {
  display: grid;
}

.tariffs-section .tariff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: var(--transition);
}

.tariffs-section .tariff-card:hover {
  border-color: var(--info);
  transform: translateY(-5px);
}

.tariff-name {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.tariffs-section .tariff-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--info);
  margin-bottom: 20px;
}

.tariffs-section .tariff-price small {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.tariffs-section .tariff-specs {
  list-style: none;
  margin-bottom: 24px;
}

.tariffs-section .tariff-specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.tariffs-section .tariff-specs li:last-child {
  border-bottom: none;
}

.tariffs-section .tariff-specs li span {
  color: var(--text-muted);
}

.tariffs-section .tariff-specs li strong {
  color: #fff;
  font-weight: 500;
}

.tariffs-section .btn-primary {
  background: var(--secondary);
  border: none;
}

.tariffs-section .btn-primary:hover {
  background: var(--info);
}

@media (max-width: 1200px) {
  .tariffs-section .tariffs-grid.active {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tariffs-section .tariffs-grid.active {
    grid-template-columns: 1fr;
  }
}

/* ========== Main Content ========== */
.main {
  padding: 40px 0 80px;
  min-height: calc(100vh - 200px);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.empty-icon {
  width: 100px;
  height: 100px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.empty-icon i {
  font-size: 48px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ========== Servers Grid ========== */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.server-card:hover {
  border-color: var(--primary);
}

.server-card.suspended {
  border-color: var(--warning);
  opacity: 0.8;
}

.server-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.server-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-icon i {
  font-size: 24px;
}

.server-info {
  flex: 1;
}

.server-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.server-tariff {
  font-size: 12px;
  color: var(--text-muted);
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-active {
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
}

.status-suspended {
  background: rgba(251, 191, 36, 0.1);
  color: var(--warning);
}

.status-badge i {
  font-size: 8px;
}

.server-details {
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 13px;
  color: var(--text-muted);
}

.detail-value {
  font-size: 13px;
  color: var(--text);
}

.text-warning {
  color: var(--warning);
}

.server-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========== Toggle ========== */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-light);
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* ========== Profile ========== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar i {
  font-size: 32px;
  color: #fff;
}

.profile-info h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 4px;
}

.profile-id {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-details {
  margin-bottom: 20px;
}

.profile-details .detail-row {
  padding: 12px 0;
}

.profile-actions {
  display: flex;
  gap: 10px;
}

.balance-card .balance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.balance-header h3 {
  font-size: 18px;
  color: #fff;
}

.balance-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--success);
}

.balance-hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ========== Transactions ========== */
.transactions-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-small {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.empty-small i {
  font-size: 32px;
  margin-bottom: 12px;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transaction-icon.income {
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
}

.transaction-icon.expense {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.transaction-info {
  flex: 1;
}

.transaction-desc {
  display: block;
  font-size: 14px;
  color: #fff;
}

.transaction-date {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.transaction-amount {
  font-weight: 600;
  font-size: 14px;
}

.transaction-amount.positive {
  color: var(--success);
}

.transaction-amount.negative {
  color: var(--danger);
}

/* ========== Tariffs ========== */
.tariff-section {
  margin-bottom: 40px;
}

.tariff-section .section-title {
  text-align: left;
  font-size: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tariff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.tariff-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.tariff-header {
  margin-bottom: 20px;
}

.tariff-header h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.tariff-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.tariff-price small {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.tariff-specs {
  margin-bottom: 16px;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row i {
  width: 20px;
  color: var(--primary);
}

.tariff-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 40px;
}

/* ========== Create Server ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.category-icon i {
  font-size: 28px;
  color: #fff;
}

.category-card h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-muted);
  font-size: 14px;
  flex: 1;
}

.category-arrow {
  margin-top: 16px;
  color: var(--primary);
  font-size: 20px;
}

.tariffs-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.tariff-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.tariff-select-card:hover {
  border-color: var(--primary);
}

.tariff-select-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.tariff-select-header h3 {
  font-size: 18px;
  color: #fff;
}

.tariff-specs-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tariff-specs-mini span {
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== Modal ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-light);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 18px;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal form {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg);
  color: #fff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.selected-tariff-info {
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

/* ========== Server Details ========== */
.back-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.back-btn:hover {
  background: var(--primary);
  color: #fff;
}

.server-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.server-title .page-title {
  margin: 0;
}

.server-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.server-info-card,
.server-actions-card,
.server-resources-card,
.server-sftp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.server-info-card h3,
.server-actions-card h3,
.server-resources-card h3,
.server-sftp-card h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-info-card h3 i,
.server-actions-card h3 i,
.server-resources-card h3 i,
.server-sftp-card h3 i {
  color: var(--primary);
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 13px;
  color: var(--text-muted);
}

.info-value {
  font-size: 13px;
  color: var(--text);
}

.actions-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-btn.btn-primary {
  background: var(--primary);
  color: #fff;
}

.action-btn.btn-success {
  background: var(--success);
  color: #000;
}

.action-btn:hover:not(:disabled) {
  transform: translateX(5px);
}

.action-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.resource-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resource-label {
  width: 50px;
  font-size: 12px;
  color: var(--text-muted);
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-fill.memory {
  background: var(--info);
}

.progress-fill.disk {
  background: var(--success);
}

.resource-value {
  width: 60px;
  text-align: right;
  font-size: 12px;
  color: var(--text);
}

.sftp-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sftp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sftp-row:last-child {
  border-bottom: none;
}

.sftp-label {
  font-size: 13px;
  color: var(--text-muted);
}

.sftp-value {
  font-size: 13px;
  color: var(--text);
  font-family: monospace;
}

/* ========== Server Power Controls ========== */
.server-power-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.server-power-card h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-power-card h3 i {
  color: var(--primary);
}

.power-status {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.status-indicator i {
  font-size: 12px;
}

.status-running {
  color: var(--success);
}

.status-stopped {
  color: var(--danger);
}

.power-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.power-btn {
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.power-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-start {
  background: var(--success);
  color: #000;
}

.btn-start:hover:not(:disabled) {
  background: #3dca6d;
}

.btn-stop {
  background: var(--danger);
  color: #fff;
}

.btn-stop:hover:not(:disabled) {
  background: #dc2626;
}

.btn-restart {
  background: var(--warning);
  color: #000;
}

.btn-restart:hover:not(:disabled) {
  background: #f59e0b;
}

.btn-kill {
  background: #7c2d12;
  color: #fff;
}

.btn-kill:hover:not(:disabled) {
  background: #9a3412;
}

/* ========== Server Console ========== */
.server-console-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.server-console-card h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-console-card h3 i {
  color: var(--primary);
}

.console-container {
  background: #0d1117;
  border-radius: var(--radius);
  border: 1px solid #30363d;
  overflow: hidden;
  margin-bottom: 16px;
}

.console-output {
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.5;
}

.console-line {
  color: #e6edf3;
  margin-bottom: 4px;
  white-space: pre-wrap;
  word-break: break-all;
}

.console-line.console-info {
  color: #7d8590;
  font-style: italic;
}

.console-input-area {
  display: flex;
  border-top: 1px solid #30363d;
  background: #161b22;
}

.console-input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #e6edf3;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  outline: none;
}

.console-input:disabled {
  color: #7d8590;
}

.console-btn {
  padding: 12px 16px;
  background: var(--primary);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.console-btn:hover:not(:disabled) {
  background: var(--primary-light);
}

.console-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.console-actions {
  display: flex;
  gap: 10px;
}

/* ========== Server Files ========== */
.server-files-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.server-files-card h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-files-card h3 i {
  color: var(--primary);
}

.files-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.current-path {
  flex: 1;
  font-family: monospace;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.files-list {
  min-height: 200px;
}

.files-loading,
.files-error,
.files-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.files-loading i,
.files-error i,
.files-empty i {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: var(--bg-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.file-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.file-item i {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.file-item.folder i {
  color: var(--warning);
}

.file-name {
  font-size: 12px;
  text-align: center;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-content {
  text-align: center;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-logo i {
  color: var(--primary);
}

.footer-text {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== Admin ========== */
.admin-banner {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(83, 52, 131, 0.1) 100%);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.admin-banner i {
  color: var(--primary);
}

.admin-banner span {
  flex: 1;
  font-size: 14px;
}

/* ========== Back Link ========== */
.back-link-container {
  margin-top: 30px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }
  
  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .page-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .servers-grid,
  .profile-grid,
  .server-dashboard {
    grid-template-columns: 1fr;
  }
  
  .category-grid,
  .tariffs-grid,
  .tariffs-select-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Utilities ========== */
code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.text-warning {
  color: var(--warning);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

/* ========== Email Authentication ========== */
.email-auth-card {
  border-color: rgba(233, 69, 96, 0.3);
}

.email-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.email-auth-header h3 {
  font-size: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-auth-header h3 i {
  color: var(--primary);
}

.auth-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.auth-status.enabled {
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
}

.auth-status.disabled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.email-auth-hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Toggle Switch */
.toggle-group {
  margin-bottom: 20px;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.toggle-label span {
  color: var(--text);
  font-size: 14px;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-light);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Password Section */
.password-section {
  animation: fadeIn 0.3s ease;
}

.password-section h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-section h4 i {
  color: var(--primary);
}

.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.password-requirements {
  background: var(--bg-light);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.password-requirements p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.password-requirements ul {
  list-style: none;
}

.password-requirements li {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.password-requirements li i {
  font-size: 10px;
}

.password-requirements li.valid {
  color: var(--success);
}

.password-requirements li.invalid {
  color: var(--text-muted);
}

/* ========== Email Change Form ========== */
.email-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.email-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.email-change-form {
  background: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

.email-change-form .form-group {
  margin-bottom: 12px;
}

.email-change-form .form-group label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.email-change-form .form-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
}

.email-change-form .form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.email-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
