/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  padding: 0 40px;
}
.logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -1px;
}
.logo span {
  color: var(--primary);
}
.nav a {
  font-weight: 600;
  transition: color var(--transition-fast);
}
.nav a:hover {
  color: var(--primary);
}
.control-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text);
  padding: 0.5rem;
  border-radius: 4px;
  transition: background var(--transition-fast);
}
.control-btn:hover {
  background: var(--border);
}
.admin-badge {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Hero Styles */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-content {
  max-width: 800px;
  z-index: 2;
}
.subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 500;
}

/* Services Styles */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.service-card {
  background: var(--bg-secondary);
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition-fast);
}
.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}
.service-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--text-muted);
}

/* Legal Page Styles */
.legal-page {
  padding-top: 150px;
  padding-bottom: 100px;
  min-height: 100vh;
  background: var(--bg);
}
.legal-content {
  margin-top: 3rem;
  color: var(--text);
  max-width: 800px;
}
.legal-content h2 {
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}
.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
  color: var(--text-muted);
}

/* Admin Styles */
.admin-dashboard {
  padding-top: 100px;
  min-height: 100vh;
  background: var(--bg);
}
.admin-section {
  margin-top: 4rem;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.edit-block input, .edit-block textarea, .news-admin-item input, .news-admin-item textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
}
.news-admin-list {
  margin-top: 1rem;
}
.news-admin-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.text-danger { color: #ff4444; }
.cube-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.face-config {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.input-group { margin-bottom: 1rem; }
.input-group label { display: block; font-size: 0.8rem; color: #888; margin-bottom: 0.3rem; }
.input-group input { width: 100%; padding: 0.6rem; background: #000; border: 1px solid #333; color: white; }

.preview-mini {
  font-size: 0.7rem;
  color: var(--primary);
  margin-top: 0.3rem;
  font-weight: bold;
}

/* Login & Auth */
.login-page { height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-card { background: var(--bg-secondary); padding: 3rem; border-radius: 8px; border: 1px solid var(--border); width: 100%; max-width: 400px; }
.login-tabs { display: flex; gap: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.login-tabs button { padding: 0.5rem 1rem; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.login-tabs button.active { color: var(--primary); border-bottom: 2px solid var(--primary); font-weight: bold; }
.message { font-size: 0.9rem; margin-bottom: 1rem; padding: 0.5rem; border-radius: 4px; }
.message.error { background: rgba(255, 68, 68, 0.1); color: #ff4444; }
.message.success { background: rgba(34, 197, 94, 0.1); color: #22c55e; }

/* Dashboards & Tables */
.dashboard-page { padding-top: 100px; min-height: 100vh; background: var(--bg); }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-top: 3rem; }
.dashboard-section { background: var(--bg-secondary); padding: 2rem; border-radius: 8px; border: 1px solid var(--border); }
.license-card { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; background: var(--bg); border-radius: 4px; border: 1px solid var(--border); margin-top: 1rem; }
.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.status-badge.active { background: #22c55e; color: white; }
.security-warning { margin-top: 1rem; padding: 1rem; background: rgba(255, 68, 68, 0.1); border-left: 4px solid #ff4444; color: #ff4444; font-size: 0.9rem; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.stat-card { background: var(--bg); padding: 2rem; border-radius: 8px; border: 1px solid var(--border); text-align: center; }
.stat-card.danger { border-color: #ff4444; color: #ff4444; }
.stat-value { font-size: 2.5rem; font-weight: 800; margin-top: 1rem; }
.user-list-admin table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.user-list-admin th, .user-list-admin td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }

/* Cube Styles */
.cube-wrapper {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.cube-container {
  perspective: 1000px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.cube-container:active {
  cursor: grabbing;
}
.cube {
  position: relative;
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}
.face {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid var(--primary);
  background: rgba(20, 20, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: visible;
  transition: border-width 0.2s;
}
.face:hover {
  border-width: 3px;
}
.face-label {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.5rem;
  opacity: 0.3;
}
.info-trigger {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: var(--primary);
  background: var(--bg-secondary);
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10;
}
.info-modal {
  position: absolute;
  bottom: 70px;
  right: 20px;
  width: 320px;
  background: #ffffff;
  color: #000000;
  border: 1px solid #e0e0e0;
  padding: 2rem;
  border-radius: 12px;
  z-index: 20;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.close-info {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #999;
}
.info-modal h2 { margin: 0; color: #000000; font-weight: 800; }
.subtitle { font-size: 0.8rem; color: #888; margin-bottom: 1.5rem; }
.info-body p { color: #444; line-height: 1.5; }
.price-tag {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 1.5rem 0;
  color: #000000;
}
.price-tag span { font-size: 0.9rem; color: #999; font-weight: 400; }
.info-actions { 
  display: flex; 
  flex-direction: column; 
  gap: 0.8rem; 
}
.info-actions .btn-outline {
  border-color: #ddd;
  color: #333;
}
.info-actions .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.info-actions .btn-primary {
  color: white;
}

/* Footer Styles */
.footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
}
.footer-links h3, .footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.footer-links a {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.form-group input {
  width: 100%;
  padding: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus {
  border-color: var(--primary);
}
.w-full { width: 100%; }

/* Business Card Styles */
.card-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}
.business-card {
  background: #1a1a1a;
  color: white;
  width: 450px;
  padding: 2.5rem;
  border-radius: 12px;
  position: relative;
  border: 1px solid var(--primary);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.close-card {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #666;
}
.card-header span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: block;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}
.card-item a { color: white; }
.card-item a:hover { color: var(--primary); }
.card-footer {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #555;
  text-align: center;
}
