:root{
  --bg:#f7f9fb;
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#0f6fff;
  --accent-600:#0b58d0;
  --accent-light: rgba(15, 111, 255, 0.1);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --glass: rgba(255,255,255,0.6);
  --shadow: 0 6px 18px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}
*{
  box-sizing:border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
html,body{height:100%}
body{margin:0;background:var(--bg);color:#0f172a;line-height:1.45}
.container{max-width:1100px;margin:0 auto;padding:28px}
.header-grid{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:flex;gap:12px;align-items:center}
.logo{width:56px;height:56px;object-fit:cover;border-radius:10px;box-shadow:var(--shadow)}
.brand h1{margin:0;font-size:18px}
.tag{margin:0;color:var(--muted);font-size:13px}
.nav a{margin-left:18px;color:var(--muted);text-decoration:none}
.nav .btn-outline{border:1px solid rgba(15,23,42,0.06);padding:8px 12px;border-radius:8px}
.site-header{background:linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.9));backdrop-filter: blur(6px);position:sticky;top:0;z-index:40;border-bottom:1px solid rgba(15,23,42,0.04)}
.hero{
  padding:48px 0;
  background: linear-gradient(135deg, 
    rgba(15, 111, 255, 0.03) 0%, 
    rgba(255, 255, 255, 0.8) 100%);
}
.hero-grid{display:grid;grid-template-columns:1fr 420px;gap:28px;align-items:center}
.hero h2{font-size:36px;margin:0 0 12px}
.hero p{color:var(--muted);margin:0 0 18px}
.hero-image img{width:100%;border-radius:12px;box-shadow:var(--shadow)}
.btn-primary{
  background:var(--accent);
  color:white;
  padding:10px 16px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:600;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover{
  background:var(--accent-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(15, 111, 255, 0.25);
}
.btn-primary:active{
  transform: translateY(0);
}
.btn-primary:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-primary.loading{
  color: transparent;
}
.btn-primary.loading::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.btn-ghost{background:transparent;border:none;color:var(--accent);margin-left:12px;text-decoration:underline}
.btn-outline{
  background:transparent;
  border:1px solid rgba(15,23,42,0.08);
  padding:8px 12px;
  border-radius:8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline:hover{
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.section-title{margin:0 0 18px;font-size:22px}
.cards{display:flex;gap:16px}
.card{
  background:var(--card);
  padding:18px;
  border-radius:12px;
  box-shadow:var(--shadow);
  flex:1;
  transition: all 0.3s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.controls{display:flex;gap:12px}
.controls input{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(11,16,23,0.06);
  min-width:240px;
  transition: all 0.2s ease;
}
.controls input:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.client-area{display:grid;grid-template-columns:320px 1fr;gap:18px}
.client-list{background:var(--card);border-radius:12px;padding:12px;box-shadow:var(--shadow);height:420px;overflow:auto}
.client-list ul{list-style:none;padding:0;margin:0}
.client-list li{
  padding:10px;
  border-radius:8px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition: all 0.2s ease;
}
.client-list li:hover{
  background:rgba(15,111,255,0.04);
  transform: translateX(2px);
}
.client-list li.selected{
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  transform: translateX(2px);
}
.client-panel{background:linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));padding:18px;border-radius:12px;box-shadow:var(--shadow);min-height:420px}
.empty{color:var(--muted)}
.details.hidden{display:none}
.details h4{margin-top:0}
.team-grid{display:flex;gap:16px}
.team-card{background:var(--card);padding:12px;border-radius:12px;box-shadow:var(--shadow);flex:1;text-align:center}
.team-card img{width:100%;height:160px;object-fit:cover;border-radius:8px}
.contact-form input, .contact-form textarea{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:1px solid rgba(11,16,23,0.06);
  margin-bottom:10px;
  transition: all 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.contact-form .row{display:flex;gap:12px}
.contact-form .row input{flex:1}
.form-actions{display:flex;align-items:center;gap:12px}
.muted{color:var(--muted);font-size:12px}
.site-footer{padding:18px 0;margin-top:28px;border-top:1px solid rgba(15,23,42,0.04)}
.footer-grid{display:flex;justify-content:space-between;align-items:center}
.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(2,6,23,0.45);z-index:60}
.modal-content{background:var(--card);padding:18px;border-radius:12px;width:420px;box-shadow:0 20px 40px rgba(2,6,23,0.5)}
.modal.hidden{display:none}
.modal-content input{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:1px solid rgba(11,16,23,0.06);
  margin-bottom:10px;
  transition: all 0.2s ease;
}
.modal-content input:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.modal-actions{display:flex;gap:12px;justify-content:flex-end}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .client-area{grid-template-columns:1fr}
  .team-grid{flex-direction:column}
  .header-grid{padding:12px}
}

/* small utilities */
.hidden{display:none}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.toast {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--accent);
}

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

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

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

.toast.removing {
  animation: slideOutRight 0.3s ease forwards;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin: 0 0 4px 0;
  font-size: 14px;
}

.toast-message {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.toast-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

/* Loading States */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 10;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent-light);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner.large {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

/* Client list loading */
.client-list.loading {
  position: relative;
  overflow: hidden;
}

.client-list.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1em;
  margin: 4px 0;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

/* Form validation */
.form-field {
  position: relative;
  margin-bottom: 16px;
}

.form-field.error input {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-field.success input {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.field-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-field.error .field-error {
  display: block;
}

/* Progress indicator */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(15, 111, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 16px 0;
}

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