.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.5;
}

.btn:active {
  transform: scale(0.97);
}

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

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

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

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

.btn-outline:active {
  transform: translateY(0) scale(0.97);
}

.btn-outline:disabled,
.btn-outline.disabled {
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

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

.btn-danger-outline:hover {
  background-color: var(--danger-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}

.btn-ghost:hover {
  background-color: var(--bg-color);
  color: var(--text-dark);
}

.btn-icon {
  padding: 10px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.25rem;
}

.btn-icon:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-disabled {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  border: none;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

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

.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo i {
  font-size: 1.75rem;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
  font-weight: 600;
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background-color: var(--bg-color);
}

.user-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--primary-color);
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.user-avatar:hover {
  box-shadow: 0 0 0 4px var(--primary-light);
}

.user-avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
  border-width: 0;
}

.footer {
  background-color: var(--white);
  padding: 60px 0 40px;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.7;
  font-size: 0.9rem;
}

.footer-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-interactive:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card.is-selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.empty-state p {
  font-size: 1.1rem;
  font-weight: 500;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  font-size: 0.95rem;
  font-family: inherit;
  background-color: var(--white);
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control:disabled {
  background-color: var(--bg-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-control-icon {
  padding-left: 40px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-control {
  border-color: var(--danger);
}

.form-group.has-error .form-error {
  display: block;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-primary { background-color: var(--primary-light); color: var(--primary-color); }
.badge-success { background-color: var(--success-light); color: var(--success); }
.badge-warning { background-color: var(--warning-light); color: var(--warning); }
.badge-danger { background-color: var(--danger-light); color: var(--danger); }
.badge-info { background-color: var(--info-light); color: var(--info); }

.status-available {
  background-color: var(--success);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-busy {
  background-color: var(--danger);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.page-title-banner {
  background-color: var(--primary-light);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-title-banner h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: bold;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.icon-circle-primary { background-color: var(--primary-light); color: var(--primary-color); }
.icon-circle-warning { background-color: var(--warning-light); color: var(--warning); }
.icon-circle-info { background-color: var(--info-light); color: var(--info); }
.icon-circle-danger { background-color: var(--danger-light); color: var(--danger); }
.icon-circle-success { background-color: var(--success-light); color: var(--success); }

.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-color);
  min-width: 300px;
  max-width: 420px;
  animation: toast-in 0.4s ease forwards;
  pointer-events: auto;
  font-size: 0.9rem;
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }

.toast.toast-out {
  animation: toast-out 0.3s ease forwards;
}

.toast-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0;
  line-height: 1;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-sm { max-width: 400px; }
.modal-md { max-width: 600px; }
.modal-lg { max-width: 800px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.role-admin { background: var(--danger-light); color: var(--danger); }
.role-guide { background: var(--info-light); color: var(--info); }
.role-user { background: var(--bg-light); color: var(--text-muted); }

.badge-pill {
  padding-left: 8px;
  padding-right: 8px;
  border-radius: var(--radius-full);
}

.price-large {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-old {
  text-decoration: line-through;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.upload-area {
  border: 2px dashed var(--border-color);
  padding: 30px;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-color);
}

.upload-area:hover {
  border-color: var(--primary-color);
  background: rgba(10, 169, 130, 0.04);
}

.upload-area i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.upload-area p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

.upload-area.has-file {
  border-color: var(--success);
  border-style: solid;
}

.upload-area.has-file i {
  color: var(--success);
}

.upload-preview {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.alert-box[hidden],
[hidden] {
  display: none !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.06);
  border-left: 4px solid var(--danger);
  color: var(--danger);
}

.alert-success {
  background: rgba(16, 185, 129, 0.06);
  border-left: 4px solid var(--success);
  color: var(--success);
}

.lang-tag {
  background: var(--bg-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  display: inline-block;
  border: 1px solid var(--border-color);
  margin: 2px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step.active .step-number {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.step.active {
  color: var(--primary-color);
  font-weight: 600;
}

.step.completed .step-number {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--border-color);
  margin: 0 12px;
}

.step.completed + .step-line,
.step-line.completed {
  background: var(--success);
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 8px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    gap: 2px;
    display: none;
  }

  .nav-links.is-active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-actions {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .page-title-banner h1 {
    font-size: 1.75rem;
  }

  .progress-steps {
    flex-wrap: wrap;
    gap: 8px;
  }

  .step-line {
    width: 30px;
    margin: 0 4px;
  }

  .step span:not(.step-number) {
    display: none;
  }
}

@media (max-width: 480px) {
  .params-grid {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: var(--radius-md);
  }

  .section {
    padding: 40px 0;
  }

  .container {
    padding: 0 16px;
  }
}
