* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  height: 100vh;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes sendPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.anim-fade { animation: fadeIn 0.4s ease-out; }
.anim-slide-l { animation: slideInLeft 0.3s ease-out; }
.anim-slide-r { animation: slideInRight 0.3s ease-out; }
.anim-modal { animation: modalIn 0.25s ease-out; }
.anim-pulse-dot { animation: pulse-dot 1.5s ease-in-out infinite; }
.anim-spin { animation: spin-slow 1.2s linear infinite; }
.anim-send { animation: sendPulse 0.3s ease-out; }

.shimmer-bg {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.email-row {
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.email-row:hover {
  background-color: rgba(255,255,255,0.04);
}
.email-row:active {
  transform: scale(0.998);
}

.folder-btn {
  transition: all 0.15s ease;
}
.folder-btn:hover {
  background-color: rgba(255,255,255,0.06);
}
.folder-btn.active {
  background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(219,39,119,0.08));
  border-right: 2px solid #ec4899;
}

.connect-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.95), rgba(12,19,34,0.98));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 120px rgba(236,72,153,0.06);
}

.input-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}
.input-field:focus {
  outline: none;
  border-color: rgba(236,72,153,0.5);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(236,72,153,0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #ec4899, #db2777);
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(236,72,153,0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(236,72,153,0.45);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.detail-panel {
  background: linear-gradient(180deg, rgba(15,23,42,0.5), rgba(8,14,26,0.8));
}

.compose-overlay {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.compose-modal {
  background: linear-gradient(145deg, #0f172a, #0c1322);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 100px rgba(0,0,0,0.7);
}

.sidebar-bg {
  background: linear-gradient(180deg, #0c1322, #080e1a);
  border-right: 1px solid rgba(255,255,255,0.05);
}

.unread-badge {
  background: linear-gradient(135deg, #ec4899, #be185d);
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 6px;
  font-weight: 600;
}

.status-msg {
  background: linear-gradient(90deg, transparent, rgba(236,72,153,0.06), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@media (max-width: 768px) {
  body { overflow: auto; height: auto; }
}