.profile-head{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 16px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  position: relative;
  overflow: hidden;
}

.profile-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.profile-head h2 {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-head .badge {
  font-size: 24px;
  padding: 12px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.kv{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:16px 24px;
  align-items:center;
  padding: 0;
}

.kv .k{
  color:var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-right: 16px;
}

.kv .k::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 2px;
}

.kv > div:nth-child(even) {
  background: rgba(15, 23, 42, 0.5);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
}

.kv > div:nth-child(even):hover {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateX(-2px);
}

.allowed-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.day-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.day-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.chat{
  display:flex;
  flex-direction:column;
  gap:16px;
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.msg{
  max-width:80%;
  padding:14px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--bg);
  position: relative;
  animation: messageSlide 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.msg:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.msg.me{
  margin-left:auto;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-color: #7c3aed;
  color: white;
}

.msg.me::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 15px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #7c3aed;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ticket-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  margin-bottom: 16px;
}

.ticket-head h3 {
  margin: 0;
  color: var(--brand);
  font-weight: 600;
}

.status-active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  animation: statusPulse 2s infinite;
}

.status-completed {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.status-expired {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.status-inactive {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.table-container {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.table-search {
  padding: 20px;
  background: rgba(79, 70, 229, 0.05);
  border-bottom: 1px solid var(--line);
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
}

.device-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 8px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
}

.device-icon.mobile {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.device-icon.desktop {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

@media (max-width: 768px) {
  .profile-head {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .kv {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .kv .k {
    padding-right: 0;
    text-align: center;
  }
  
  .kv .k::after {
    display: none;
  }
  
  .ticket-head {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .msg {
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .profile-head h2 {
    font-size: 24px;
  }
  
  .table th, .table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .search-input {
    padding: 10px 14px 10px 35px;
  }
}