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

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --success-color: #48bb78;
  --danger-color: #f56565;
  --warning-color: #ed8936;
  --info-color: #4299e1;
  --dark: #2d3748;
  --light: #f7fafc;
  --gray: #718096;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f5f7fa;
}

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

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem 0;
  box-shadow: var(--box-shadow);
}

.navbar-admin {
  background: linear-gradient(135deg, #1a202c, #2d3748);
  border-bottom: 3px solid #e53e3e;
}

.navbar-user {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-bottom: 3px solid #4299e1;
}

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

.nav-brand a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-menu a:hover {
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--gray);
  color: white;
}

.btn-secondary:hover {
  background: var(--dark);
}

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

.btn-danger:hover {
  background: #c53030;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

.btn-sm {
  padding: 0.3rem 1rem;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Sections */
.products, .features {
  padding: 4rem 0;
}

.products h2, .features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.product-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.product-specs {
  margin: 1.5rem 0;
}

.spec {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.spec-label {
  color: var(--gray);
}

.spec-value {
  font-weight: bold;
  color: var(--dark);
}

.product-price {
  margin: 1.5rem 0;
  text-align: center;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.period {
  color: var(--gray);
  font-size: 1rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Auth Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 2rem;
}

.auth-card {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  width: 100%;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.auth-header h2 {
  color: var(--dark);
  font-size: 1.5rem;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.auth-footer {
  text-align: center;
  color: var(--gray);
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.alert-error {
  background: #fed7d7;
  color: #c53030;
  border: 1px solid #fc8181;
}

.alert-success {
  background: #c6f6d5;
  color: #2f855a;
  border: 1px solid #68d391;
}

.alert-info {
  background: #bee3f8;
  color: #2c5282;
  border: 1px solid #63b3ed;
}

/* Dashboard */
.dashboard-container {
  padding: 2rem 0;
}

.dashboard-user {
  background: linear-gradient(to bottom, #f7fafc 0%, #edf2f7 100%);
  min-height: 100vh;
  padding-bottom: 4rem;
}

.dashboard-admin {
  background: linear-gradient(to bottom, #1a202c 0%, #2d3748 100%);
  min-height: 100vh;
  padding-bottom: 4rem;
}

.dashboard-admin .dashboard-container {
  color: white;
}

.dashboard-admin .section {
  background: #2d3748;
  border: 1px solid #4a5568;
}

.dashboard-admin .table {
  color: white;
}

.dashboard-admin .table th {
  background: #1a202c;
  color: white;
}

.dashboard-admin .table tbody tr:hover {
  background: #4a5568;
}

.dashboard-admin .stat-card {
  background: #2d3748;
  color: white;
  border: 1px solid #4a5568;
}

.dashboard-admin h1,
.dashboard-admin h2,
.dashboard-admin h3 {
  color: white;
}

/* Sidebar Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: #f5f7fa;
}

.sidebar {
  width: 260px;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-admin {
  background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%);
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-admin .sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-admin .sidebar-logo {
  color: #fc8181;
}

.sidebar-user-info {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.sidebar-admin .sidebar-user-info {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-user-info .user-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-admin .sidebar-user-info .user-name {
  color: white;
}

.sidebar-user-info .user-role {
  font-size: 0.875rem;
  color: var(--gray);
}

.sidebar-admin .sidebar-user-info .user-role {
  color: #cbd5e0;
}

.sidebar-menu {
  padding: 1rem 0;
}

.sidebar-menu-group {
  margin: 1rem 0;
}

.sidebar-menu-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
}

.sidebar-admin .sidebar-menu-group-title {
  color: #718096;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  gap: 0.75rem;
}

.sidebar-menu-item:hover {
  background: #f7fafc;
  border-left-color: var(--primary-color);
  padding-left: 1.75rem;
}

.sidebar-menu-item.active {
  background: #edf2f7;
  border-left-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.sidebar-admin .sidebar-menu-item {
  color: #cbd5e0;
}

.sidebar-admin .sidebar-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #fc8181;
  color: white;
}

.sidebar-admin .sidebar-menu-item.active {
  background: rgba(252, 129, 129, 0.2);
  border-left-color: #fc8181;
  color: #fc8181;
  font-weight: 600;
}

.sidebar-menu-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-navbar {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 99;
}

.top-navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.menu-toggle:hover {
  background: #f7fafc;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.top-navbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-balance {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-area {
  padding: 2rem;
  flex: 1;
  background: #f5f7fa;
}

/* Mobile Responsive Sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    width: 280px;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.active {
    transform: translateX(0);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
  }

  .sidebar-overlay {
    z-index: 1000;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .top-navbar {
    padding: 1rem;
  }

  .content-area {
    padding: 1rem;
  }
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card-primary {
  border-left: 4px solid var(--primary-color);
}

.stat-card-success {
  border-left: 4px solid var(--success-color);
}

.stat-card-info {
  border-left: 4px solid var(--info-color);
}

.stat-card-warning {
  border-left: 4px solid var(--warning-color);
}

.stat-icon {
  font-size: 3rem;
}

.stat-info h3 {
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark);
}

/* Section */
.section {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

/* Table */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.table th {
  background: #f7fafc;
  font-weight: 600;
  color: var(--dark);
}

.table tbody tr:hover {
  background: #f7fafc;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-lg {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.badge-primary {
  background: #667eea;
  color: white;
}

.badge-success, .badge-active {
  background: var(--success-color);
  color: white;
}

.badge-danger, .badge-cancelled {
  background: var(--danger-color);
  color: white;
}

.badge-warning, .badge-pending {
  background: var(--warning-color);
  color: white;
}

.badge-info {
  background: var(--info-color);
  color: white;
}

.badge-suspended {
  background: var(--gray);
  color: white;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 600px;
  position: relative;
}

.modal-large {
  max-width: 900px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.form-section-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.form-section-title:first-of-type {
  margin-top: 0;
}

.form-group small {
  display: block;
  color: var(--gray);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Server Detail */
.server-detail-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.server-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-item strong {
  color: var(--gray);
  font-size: 0.875rem;
}

.info-item span {
  color: var(--dark);
  font-size: 1.125rem;
}

.server-actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e2e8f0;
}

/* Terminal Container Styles */
#terminalContainer {
  margin-top: 15px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#pterodactylTerminal {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

#pterodactylTerminal:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.alert-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 1.75rem;
  color: var(--dark);
  margin: 0;
}

/* Utilities */
.text-center {
  text-align: center;
}

.form-text {
  font-weight: bold;
  color: var(--dark);
}

/* Cart Styles */
.cart-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  color: var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s;
  margin-right: 15px;
}

.cart-icon-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e53e3e;
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 5px;
  border: 2px solid white;
}

.sidebar-menu-icon {
  position: relative;
}

.badge-notification {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e53e3e;
  color: white;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  margin-bottom: 30px;
}

.cart-items-section {
  min-height: 300px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 0;
}

.cart-item-info {
  display: flex;
  gap: 15px;
  flex: 1;
}

.cart-item-badge {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.cart-item-details h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--dark);
}

.cart-item-server-name {
  margin: 5px 0;
  color: var(--gray);
  font-size: 14px;
}

.cart-item-specs {
  display: flex;
  gap: 15px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray);
}

.cart-item-specs span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 200px;
}

.cart-item-price,
.cart-item-subtotal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-label {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 3px;
}

.price-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-quantity label {
  font-size: 13px;
  color: var(--gray);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px;
  background: white;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--primary-color);
  color: white;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover:not(:disabled) {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-input {
  width: 50px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.qty-input:focus {
  outline: none;
}

.btn-remove {
  background: transparent;
  border: 1px solid #fc8181;
  color: #e53e3e;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-remove:hover {
  background: #e53e3e;
  color: white;
  transform: scale(1.05);
}

.cart-summary-section {
  position: relative;
}

.sticky-summary {
  position: sticky;
  top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}

.summary-row.total-row {
  font-size: 18px;
  font-weight: bold;
  color: var(--dark);
}

.total-price {
  color: var(--primary-color);
  font-size: 24px;
}

.summary-info {
  background: #f7fafc;
  padding: 12px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 14px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-info i {
  color: var(--info-color);
}

.empty-cart {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */

/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
  /* General */
  body {
    font-size: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .container {
    padding: 0 15px;
  }

  /* Navigation */
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Hero */
  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* Grids */
  .product-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .server-info-grid {
    grid-template-columns: 1fr;
  }

  /* Sections */
  .section {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  /* Tables */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    font-size: 0.8rem;
    min-width: 600px;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
    white-space: nowrap;
  }

  /* Forms - Prevent iOS zoom */
  .form-row {
    flex-direction: column;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Buttons */
  .btn-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-group .btn {
    width: 100%;
  }

  /* Cart */
  .cart-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cart-item {
    flex-direction: column;
    gap: 15px;
  }

  .cart-item-info {
    width: 100%;
  }
  
  .cart-item-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: row;
    justify-content: space-between;
  }

  .cart-item-actions > * {
    flex: 1;
  }
  
  .sticky-summary {
    position: relative;
  }

  /* Server Detail */
  .server-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .server-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .server-actions .btn {
    width: 100%;
  }

  /* Modal */
  .modal-content {
    margin: 5% 10px;
    padding: 1.5rem;
    max-width: calc(100% - 20px);
  }

  .modal-large {
    max-width: calc(100% - 20px);
  }

  /* Stats Cards */
  .stat-card {
    padding: 1rem;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  /* Dashboard Header */
  .dashboard-header h1 {
    font-size: 1.75rem;
  }

  /* Product Cards */
  .product-card {
    margin-bottom: 1rem;
  }

  .product-info {
    padding: 15px;
  }

  .product-name {
    font-size: 18px;
  }

  .product-description {
    font-size: 13px;
  }

  /* Empty States */
  .empty-state {
    padding: 2rem 1rem;
  }

  /* Top Navbar Responsive */
  .top-navbar {
    padding: 0.75rem 1rem;
  }

  .top-navbar-right {
    gap: 0.5rem;
  }

  .user-balance {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  /* Content Area */
  .content-area {
    padding: 1rem;
  }

  /* Action Buttons */
  .action-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .action-buttons .btn {
    width: 100%;
  }

  /* Image Previews */
  .image-preview {
    max-width: 100%;
    height: auto;
  }

  /* Badges */
  .badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
  }

  /* iOS Safe Area Support */
  @supports (padding: max(0px)) {
    body {
      padding-left: max(0px, env(safe-area-inset-left));
      padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .top-navbar {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
  }
}

/* Small Mobile (iPhone SE, etc) */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .product-name {
    font-size: 16px;
  }

  .table {
    font-size: 0.75rem;
  }

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