/* ===== BASE ===== */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #020617;
  color: white;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ===== SCREENS ===== */
.screen {
  display: none !important;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  pointer-events: none;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.screen.active {
  display: flex !important;
  pointer-events: auto;
  z-index: 10;
}

/* ===== SCROLLBAR STYLING ===== */
.screen::-webkit-scrollbar,
.tab::-webkit-scrollbar,
.worker-assignments::-webkit-scrollbar,
.history-list-wrapper::-webkit-scrollbar,
.profile-container::-webkit-scrollbar {
  width: 4px;
  background: #0f172a;
}

.screen::-webkit-scrollbar-thumb,
.tab::-webkit-scrollbar-thumb,
.worker-assignments::-webkit-scrollbar-thumb,
.history-list-wrapper::-webkit-scrollbar-thumb,
.profile-container::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 10px;
}

/* Firefox */
.screen, .tab, .worker-assignments, .history-list-wrapper, .profile-container {
  scrollbar-width: thin;
  scrollbar-color: #38bdf8 #0f172a;
}

/* ================================================= */
/* ================= SPLASH ======================== */
/* ================================================= */

.splash {
  position: relative;
  overflow: hidden;
  background: #020617;
}

/* Animated Background */
.splash-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gradient-sphere {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at 30% 50%, rgba(56, 189, 248, 0.15), transparent 70%);
  border-radius: 50%;
  top: -200px;
  right: -200px;
  animation: sphereMove 20s ease-in-out infinite;
}

@keyframes sphereMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 50px) scale(1.1); }
  66% { transform: translate(50px, -30px) scale(0.9); }
}

/* Particle Network */
.particle-network {
  position: absolute;
  inset: 0;
  perspective: 1000px;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 20px #38bdf8;
  animation: particleFloat calc(8s + (var(--i) * 2s)) linear infinite;
  opacity: 0.6;
}

.particle:nth-child(1) { top: 20%; left: 10%; --i: 1; }
.particle:nth-child(2) { top: 70%; left: 20%; --i: 2; }
.particle:nth-child(3) { top: 30%; left: 80%; --i: 3; }
.particle:nth-child(4) { top: 80%; left: 70%; --i: 4; }
.particle:nth-child(5) { top: 40%; left: 40%; --i: 5; }
.particle:nth-child(6) { top: 60%; left: 60%; --i: 6; }
.particle:nth-child(7) { top: 15%; left: 50%; --i: 7; }
.particle:nth-child(8) { top: 85%; left: 30%; --i: 8; }
.particle:nth-child(9) { top: 45%; left: 90%; --i: 9; }
.particle:nth-child(10) { top: 55%; left: 15%; --i: 10; }
.particle:nth-child(11) { top: 25%; left: 65%; --i: 11; }
.particle:nth-child(12) { top: 75%; left: 45%; --i: 12; }

@keyframes particleFloat {
  0% {
    transform: translateZ(0) translateY(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateZ(100px) translateY(-50px) scale(1.5);
    opacity: 1;
  }
  50% {
    transform: translateZ(0) translateY(-100px) scale(1);
    opacity: 0.6;
  }
  75% {
    transform: translateZ(-50px) translateY(-50px) scale(0.8);
    opacity: 0.3;
  }
  100% {
    transform: translateZ(0) translateY(0) scale(1);
    opacity: 0.6;
  }
}

/* Main Content */
.splash-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
}

/* Floating Icons */
.floating-icons {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 30px;
}

.float-icon {
  position: absolute;
  font-size: 32px;
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.6));
  animation: float 6s ease-in-out infinite;
}

.float-icon.book {
  top: 0;
  left: 20px;
  animation-delay: 0s;
}

.float-icon.pencil {
  top: 40px;
  right: 0;
  animation-delay: 0.5s;
}

.float-icon.rocket {
  bottom: 0;
  left: 30px;
  animation-delay: 1s;
}

.float-icon.target {
  bottom: 30px;
  right: 20px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(20px) rotate(-5deg);
  }
}

/* Logo with 3D Effect */
.logo-wrapper {
  position: relative;
  margin: 20px 0;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.splash-logo {
  font-size: 80px;
  font-weight: 900;
  margin: 0;
  display: flex;
  gap: 5px;
  position: relative;
}

.logo-letter {
  display: inline-block;
  background: linear-gradient(135deg, #fff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
  animation: letterPop 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(50px);
}

.logo-letter:nth-child(1) { animation-delay: 0.1s; }
.logo-letter:nth-child(2) { animation-delay: 0.2s; }
.logo-letter:nth-child(3) { animation-delay: 0.3s; }
.logo-letter:nth-child(4) { animation-delay: 0.4s; }
.logo-letter:nth-child(5) { animation-delay: 0.5s; }
.logo-letter:nth-child(6) { animation-delay: 0.6s; }
.logo-letter:nth-child(7) { animation-delay: 0.7s; }

@keyframes letterPop {
  0% {
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Tagline */
.tagline-container {
  position: relative;
  margin: 20px 0;
  overflow: hidden;
}

.tagline {
  font-size: 18px;
  color: #94a3b8;
  margin: 0;
  letter-spacing: 2px;
  animation: slideUp 1s ease-out 0.8s both;
}

.tagline-underline {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  margin: 10px auto 0;
  animation: expandUnderline 1.5s ease-out 1s forwards;
}

@keyframes expandUnderline {
  to { width: 200px; }
}

/* Loading Bar */
.loading-container {
  width: 300px;
  margin: 40px 0;
  text-align: center;
}

.loading-bar {
  width: 100%;
  height: 4px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6, #ec4899);
  border-radius: 4px;
  animation: loadProgress 2s ease-out forwards;
  box-shadow: 0 0 20px #38bdf8;
}

@keyframes loadProgress {
  0% { width: 0%; }
  20% { width: 20%; }
  40% { width: 40%; }
  60% { width: 60%; }
  80% { width: 80%; }
  100% { width: 100%; }
}

.loading-text {
  color: #94a3b8;
  font-size: 14px;
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Feature Pills */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
  animation: fadeInUp 1s ease-out 1.5s both;
}

.pill {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  animation: pillGlow 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.pill:hover {
  background: #38bdf8;
  color: #020617;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(56, 189, 248, 0.4);
}

@keyframes pillGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================= */
/* =============== MAIN APP SHELL ================== */
/* ================================================= */

.screen.active .bottom-nav {
  display: flex;
}
.app-shell, #doAppShell {
  position: relative;
  height: 100vh;
  background: #020617;
  justify-content: flex-start;
  padding-bottom: 80px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

/* ===== TABS ===== */
.tab {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tab.active-tab {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* ================================================= */
/* ================= HOME TAB ====================== */
/* ================================================= */

.home-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 20px 16px 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  -webkit-overflow-scrolling: touch;
}

.welcome-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #334155;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.welcome-text h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: white;
}

.welcome-text h2 span {
  color: #38bdf8;
}

.welcome-text p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.welcome-icon {
  font-size: 48px;
  background: rgba(56, 189, 248, 0.1);
  width: 70px;
  height: 70px;
  border-radius: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-container {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.stat-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 20px;
  padding: 16px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.stat-icon {
  font-size: 28px;
  background: #1e293b;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: #94a3b8;
}

.plus-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.plus-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #020617;
  font-size: 50px;
  border: none;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.plus-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.9);
}

.plus-text {
  color: #cbd5f5;
  font-size: 16px;
  font-weight: 500;
}

.quick-actions {
  display: flex;
  gap: 12px;
  margin: 10px 0;
}

.quick-action-btn {
  flex: 1;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background: #1e293b;
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.quick-icon {
  font-size: 24px;
}

.quick-text {
  font-size: 15px;
  font-weight: 500;
  color: white;
}

.recent-activity {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 20px;
  padding: 16px;
}

.recent-activity h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #94a3b8;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  background: #1e293b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.activity-time {
  font-size: 12px;
  color: #64748b;
}

.activity-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #1e293b;
  color: #38bdf8;
}

.loading {
  color: #94a3b8;
  text-align: center;
  padding: 20px;
}

/* ================================================= */
/* ================= BOTTOM NAV ==================== */
/* ================================================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #020617;
  border-top: 1px solid #1e293b;
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.bottom-nav button {
  background: none;
  border: none;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  cursor: pointer;
}

.bottom-nav button.active {
  color: #38bdf8;
}

/* ================================================= */
/* ================= HISTORY TAB =================== */
/* ================================================= */

.history-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 10px;
  overflow: hidden;
}

.history-search-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 12px;
  flex-shrink: 0;
}

.history-search {
  width: 100%;
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.history-search:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.history-search .search-icon {
  color: #64748b;
  font-size: 16px;
}

.history-search input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  padding: 8px 0;
}

.history-search input::placeholder {
  color: #475569;
}

.history-search input:focus {
  outline: none;
}

.history-search .clear-btn {
  background: #334155;
  border: none;
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.history-search .clear-btn:hover {
  background: #ef4444;
  color: white;
}

.history-list-wrapper {
  flex: 1;
  overflow-y: auto;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.history-list {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.history-card.completed {
  box-shadow: 0 0 25px rgba(34,197,94,0.4);
  border-color: #22c55e;
}

.history-card.cancelled {
  box-shadow: 0 0 25px rgba(239,68,68,0.35);
  border-color: #ef4444;
}

.history-card.finding {
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.5);
  border-color: #eab308;
  animation: pulseYellow 1.5s infinite;
}

@keyframes pulseYellow {
  0% { box-shadow: 0 0 15px rgba(234, 179, 8, 0.3); }
  50% { box-shadow: 0 0 30px rgba(234, 179, 8, 0.7); }
  100% { box-shadow: 0 0 15px rgba(234, 179, 8, 0.3); }
}

.history-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.history-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-number {
  background: #38bdf8;
  color: #020617;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.history-top h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.history-cancel-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.history-cancel-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.history-card.completed .history-cancel-btn,
.history-card.cancelled .history-cancel-btn {
  display: none;
}

.history-files {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file {
  padding: 8px 12px;
  border-radius: 10px;
  background: #1e293b;
  font-size: 13px;
  color: #cbd5f5;
}

.file.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.history-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.completed-text {
  color: #22c55e;
}

.cancelled-text {
  color: #ef4444;
}

.history-price {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #94a3b8;
}

.history-price strong {
  color: #38bdf8;
  font-size: 15px;
}

.history-days {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.days-badge {
  background: #1e293b;
  color: #f59e0b;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #f59e0b;
}

.deadline {
  background: #1e293b;
  color: #ef4444;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #ef4444;
}

.history-card.completed .days-badge {
  color: #22c55e;
  border-color: #22c55e;
}

.history-card.cancelled .days-badge {
  color: #64748b;
  border-color: #64748b;
}

.history-date {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  border-top: 1px dashed #1e293b;
  padding-top: 8px;
}

.no-search-result {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 16px;
  background: #0f172a;
  border-radius: 16px;
  border: 1px dashed #1e293b;
  margin-top: 20px;
}

.no-history-message {
  margin-top: 40vh;
  font-size: 18px;
  color: #94a3b8;
  text-align: center;
  padding: 20px;
  animation: fadeIn 0.5s ease;
  width: 100%;
  max-width: 320px;
}

/* ================================================= */
/* ============ SUBJECT SELECTION SCREEN ============ */
/* ================================================= */

.subject-screen {
  background: linear-gradient(180deg, #020617, #030a1a, #020617);
  padding: 20px;
  align-items: flex-start;
  overflow-y: auto;
  height: 100vh;
  display: none;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.subject-screen.active {
  display: flex !important;
}

.subject-top {
  width: 100%;
  max-width: 420px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.subject-top h2 {
  margin: 0;
  font-size: 22px;
  color: white;
}

.subject-back {
  width: 40px;
  height: 40px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  color: #38bdf8;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.subject-back:hover {
  background: #38bdf8;
  color: #020617;
  transform: translateX(-3px);
}

.subject-search {
  width: 100%;
  max-width: 420px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.subject-search input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  font-size: 15px;
}

.subject-search input:focus {
  outline: none;
}

.search-icon { 
  color: #94a3b8; 
}

.clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 5px 10px;
  flex-shrink: 0;
}

.clear-btn:hover {
  color: #ef4444;
}

.subject-list {
  margin-top: 10px;
  width: 100%;
  max-width: 420px;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 100px;
  -webkit-overflow-scrolling: touch;
}

.subject-item {
  padding: 16px 14px;
  border-bottom: 1px solid #1e293b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  background: transparent;
}

.subject-item:hover {
  background: #0f172a;
  transform: translateX(5px);
  border-left: 3px solid #38bdf8;
  border-radius: 0 8px 8px 0;
}

.subject-item span:first-child {
  color: white;
  font-size: 16px;
  font-weight: 500;
}

.subject-price {
  color: #38bdf8 !important;
  font-size: 14px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.subject-item:hover .subject-price {
  background: #38bdf8;
  color: #020617 !important;
  transform: scale(1.05);
}

.no-result {
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 20px;
  background: #020617;
  border: 1px dashed #1e293b;
  border-radius: 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 16px;
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.3s ease;
  flex-shrink: 0;
}

.no-result small {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

.no-result small b {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.no-result small b:hover {
  background: #38bdf8;
  color: #020617;
  transform: scale(1.05);
}

#otherSubject {
  transition: all 0.2s ease;
}

#otherSubject:hover {
  background: #1e293b;
  border-color: #38bdf8;
}

/* ================================================= */
/* ============== POST ASSIGNMENT ================= */
/* ================================================= */

.post-screen {
  background: linear-gradient(180deg, #020617, #0f172a);
  padding: 20px 16px 120px;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.post-header {
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 0 4px;
  position: relative;
}

.post-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin: 0;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.back-btn {
  width: 42px;
  height: 42px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  color: #38bdf8;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
  transform: translateX(-3px);
}

.post-screen label {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.3px;
  padding-left: 6px;
}

.subject-row {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.subject-row input {
  width: 100%;
  height: 52px;
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 16px;
  padding: 0 48px 0 16px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.subject-row input:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.change-subject {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #334155;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.change-subject:hover {
  background: #ef4444;
  color: white;
}

.subject-price-badge {
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%);
  color: #38bdf8;
  font-weight: 600;
  font-size: 15px;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

.counter {
  width: 100%;
  max-width: 400px;
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.counter span {
  font-size: 20px;
  font-weight: 600;
  color: white;
  min-width: 40px;
  text-align: center;
}

.counter-plus,
.counter-minus {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: #1e293b;
  color: white;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.counter-plus:hover {
  background: #22c55e;
}

.counter-minus:hover {
  background: #ef4444;
}

.upload-box {
  width: 100%;
  max-width: 400px;
  background: #0f172a;
  border: 2px dashed #334155;
  border-radius: 16px;
  padding: 20px;
  margin-top: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-box:hover {
  border-color: #38bdf8;
  background: #1a2538;
  transform: translateY(-2px);
}

.photo-box:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.pdf-box:hover {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.upload-icon {
  font-size: 24px;
}

.upload-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.upload-limit {
  font-size: 12px;
  color: #94a3b8;
  background: #1e293b;
  padding: 4px 8px;
  border-radius: 20px;
}

.upload-box input {
  width: 100%;
  color: #94a3b8;
  font-size: 14px;
  background: #1e293b;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #334155;
}

.upload-box input::file-selector-button {
  background: #38bdf8;
  color: #020617;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  margin-right: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.photo-box input::file-selector-button {
  background: #f59e0b;
}

.pdf-box input::file-selector-button {
  background: #ef4444;
}

.upload-box input::file-selector-button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.upload-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  text-align: center;
}

.file-name {
  font-size: 13px;
  color: #38bdf8;
  margin-top: 8px;
  padding: 6px 10px;
  background: #1e293b;
  border-radius: 8px;
  word-break: break-all;
}

.post-screen input[type="tel"],
.post-screen input[type="email"],
.post-screen textarea {
  width: 100%;
  max-width: 400px;
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 16px;
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  transition: all 0.2s ease;
}

.post-screen input[type="tel"]:focus,
.post-screen input[type="email"]:focus,
.post-screen textarea:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.post-screen textarea {
  min-height: 100px;
  resize: vertical;
}

.post-screen input::placeholder,
.post-screen textarea::placeholder {
  color: #475569;
  font-size: 14px;
}

.total-box {
  width: 100%;
  max-width: 400px;
  margin-top: 24px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0f172a, #1a1f2e);
  border: 2px solid #334155;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.total-box span {
  color: #94a3b8;
  font-size: 15px;
}

#totalAmount {
  color: #38bdf8;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.post-screen button[onclick="postAssignment()"] {
  width: 100%;
  max-width: 400px;
  margin-top: 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  padding: 18px 20px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.post-screen button[onclick="postAssignment()"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.5);
}

.post-screen button[onclick="postAssignment()"]:active {
  transform: scale(0.98);
}

/* ================================================= */
/* ========== DO ASSIGNMENT (WORKER HOME) =========== */
/* ================================================= */

.worker-home-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 12px 0;
  overflow: hidden;
  background: #020617;
}

.worker-header {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 12px;
  flex-shrink: 0;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.worker-header h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: white;
}

.worker-count-badge {
  background: #1e293b;
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #334155;
}

.worker-date {
  font-size: 13px;
  color: #94a3b8;
  margin: 4px 0 0 0;
}

.worker-assignments {
  flex: 1;
  overflow-y: auto;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 4px 4px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

/* NO ASSIGNMENT MESSAGE */
.no-assignment-message {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  margin: auto;
  width: 100%;
}

.no-assignment-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.no-assignment-message h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px 0;
}

.no-assignment-message p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

/* ASSIGNMENT CARD */
.worker-assignment-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 16px;
  transition: all 0.2s ease;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  position: relative;
}

.worker-assignment-card:hover {
  border-color: #38bdf8;
  transform: translateX(4px);
}

.worker-assignment-card.accepted {
  border-color: #22c55e;
}

.worker-assignment-card.declined {
  border-color: #ef4444;
}

/* COUNTDOWN BADGE */
.assignment-countdown {
  position: absolute;
  top: -8px;
  left: 16px;
  background: #38bdf8;
  color: #020617;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.5);
  border: 2px solid #020617;
  z-index: 2;
}

/* CARD HEADER */
.assignment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  margin-left: 20px;
}

.assignment-subject h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.assignment-price {
  color: #38bdf8;
  font-size: 15px;
  font-weight: 600;
}

/* CARD INFO */
.assignment-info {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e293b;
  margin-left: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 13px;
}

/* USER DETAILS */
.assignment-user {
  background: #0f172a;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  margin-left: 20px;
}

.user-name {
  font-weight: 600;
  color: white;
  font-size: 14px;
  margin-bottom: 8px;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.detail-item .detail-icon {
  font-size: 14px;
  width: 24px;
  color: #38bdf8;
}

/* ACTION BUTTONS */
.assignment-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  margin-left: 20px;
}

.accept-btn, .decline-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.accept-btn {
  background: #22c55e;
  color: white;
}

.accept-btn:hover {
  background: #16a34a;
}

.decline-btn {
  background: #ef4444;
  color: white;
}

.decline-btn:hover {
  background: #dc2626;
}

.accepted .accept-btn,
.declined .decline-btn {
  display: none;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 20px;
}

.accepted .status-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.declined .status-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ================================================= */
/* =============== DO PAYMENT PAGE ================= */
/* ================================================= */

.payment-page {
  width: 100%;
  max-width: 420px;
  padding: 20px 16px 120px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.payment-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
}

.payment-card.total {
  border-color: #38bdf8;
  box-shadow: 0 0 30px rgba(56,189,248,0.5);
}

.payment-card p {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
}

.payment-card h2 {
  margin: 0;
  font-size: 32px;
  color: #38bdf8;
}

.payment-card h3 {
  margin: 0;
  font-size: 22px;
  color: #22c55e;
}

.payment-card.warning {
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239,68,68,0.4);
}

.payment-card.warning h3 {
  color: #ef4444;
}

.payment-card.warning small {
  margin-top: 6px;
  font-size: 13px;
  color: #fca5a5;
}

.pay-btn {
  margin-top: 14px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: none;
  border-radius: 14px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #020617;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(56,189,248,0.45);
  transition: all 0.2s ease;
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(56,189,248,0.65);
}

.pay-btn:active {
  transform: scale(0.97);
}

/* ================================================= */
/* ========== FINDING WRITER SCREEN ================ */
/* ================================================= */

.finding-screen {
  background: radial-gradient(circle at top, #020617, #000000);
}

.finding-screen.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.finding-box {
  width: 90%;
  max-width: 380px;
  background: linear-gradient(135deg, #0f172a, #020617);
  border: 1px solid #1e293b;
  border-radius: 28px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.3);
  animation: slideUpFade 0.6s ease;
  position: relative;
  overflow: hidden;
}

.finding-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

.finding-box > * {
  position: relative;
  z-index: 1;
}

.finding-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}

.finding-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex: 1;
  text-align: center;
}

.finding-back-btn {
  width: 40px;
  height: 40px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  color: #38bdf8;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.finding-back-btn:hover {
  background: #38bdf8;
  color: #020617;
  transform: translateX(-3px);
}

.searching-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 10px auto 20px;
}

.searching-icon {
  font-size: 48px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: bounce 2s ease infinite;
}

.searching-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #38bdf8;
  border-radius: 50%;
  opacity: 0;
  animation: wave 3s ease-out infinite;
}

.wave1 {
  width: 60px;
  height: 60px;
  animation-delay: 0s;
}

.wave2 {
  width: 80px;
  height: 80px;
  animation-delay: 0.5s;
}

.wave3 {
  width: 100px;
  height: 100px;
  animation-delay: 1s;
}

@keyframes wave {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.finding-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 10px 0 8px;
}

.highlight {
  color: #38bdf8;
  font-weight: 700;
}

.finding-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

.progress-container {
  background: #1e293b;
  border-radius: 30px;
  padding: 15px;
  margin: 20px 0;
  border: 1px solid #334155;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 4px;
  animation: progressPulse 2s ease infinite;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

#progressPercentage {
  color: #38bdf8;
  font-weight: 600;
}

#progressWriters {
  color: #94a3b8;
}

.matching-criteria {
  background: #0f172a;
  border-radius: 20px;
  padding: 15px;
  margin: 20px 0;
  border: 1px solid #1e293b;
}

.criteria-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
}

.criteria-item:last-child {
  border-bottom: none;
}

.criteria-icon {
  font-size: 18px;
  width: 28px;
  height: 28px;
  background: #1e293b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.criteria-text {
  flex: 1;
  font-size: 14px;
  color: #cbd5f5;
  text-align: left;
}

.criteria-status {
  font-size: 16px;
  font-weight: 600;
  width: 30px;
  text-align: center;
}

.criteria-status.matched {
  color: #22c55e;
  animation: popIn 0.3s ease;
}

.criteria-status.searching {
  color: #eab308;
  animation: pulse 1.5s ease infinite;
}

@keyframes popIn {
  0% { transform: scale(0); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.tips-card {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid #38bdf8;
  border-radius: 16px;
  padding: 15px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  animation: glowPulse 2s ease infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(56, 189, 248, 0.3); }
  50% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.6); }
}

.tips-icon {
  font-size: 24px;
  background: #1e293b;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tips-text {
  flex: 1;
  font-size: 13px;
  color: #cbd5f5;
  line-height: 1.5;
}

.tips-text strong {
  color: #38bdf8;
  display: block;
  margin-bottom: 4px;
}

.finding-note {
  font-size: 13px;
  color: #94a3b8;
  margin: 15px 0;
  padding: 10px;
  background: #1e293b;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cancel-btn {
  margin-top: 10px;
  width: 100%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 18px;
  padding: 16px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cancel-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.7);
}

.btn-icon {
  font-size: 18px;
  background: rgba(255, 255, 255, 0.2);
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estimated-time {
  margin-top: 15px;
  font-size: 12px;
  color: #64748b;
  padding: 8px;
  border-top: 1px dashed #1e293b;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================= */
/* ========== PROFILE SETTINGS ========== */
/* ================================================= */

.profile-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #020617;
  padding-bottom: 100px;
  -webkit-overflow-scrolling: touch;
}

/* Cover Image */
.profile-cover {
  height: 160px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  position: relative;
  overflow: hidden;
}

.cover-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(56, 189, 248, 0.3), transparent 70%),
              radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.3), transparent 70%);
  animation: coverMove 20s ease-in-out infinite;
}

@keyframes coverMove {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.1) translate(-10px, -10px); }
  66% { transform: scale(0.9) translate(10px, 10px); }
}

.cover-particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
  background-size: 50px 50px;
  animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-50px); }
}

/* Profile Info Card */
.profile-info-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 30px;
  margin: -50px 16px 20px;
  padding: 20px;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.5s ease;
  overflow: visible;
}

.profile-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: -70px auto 15px;
  z-index: 10;
}

.profile-avatar-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  animation: glowPulse 2s ease-in-out infinite;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #0f172a;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
  position: relative;
  z-index: 2;
}

.profile-avatar span {
  font-size: 42px;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.profile-avatar-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: #38bdf8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #0f172a;
  z-index: 3;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.badge-icon {
  font-size: 14px;
}

.profile-details {
  text-align: center;
  margin-bottom: 20px;
}

.profile-details h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: white;
}

.profile-bio {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  color: #38bdf8;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  color: #94a3b8;
  font-size: 12px;
}

/* Settings Sections */
.profile-settings {
  padding: 0 16px 20px;
}

.settings-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 24px;
  margin-bottom: 20px;
  overflow: hidden;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: rgba(56, 189, 248, 0.05);
  border-bottom: 1px solid #1e293b;
}

.title-icon {
  font-size: 18px;
}

.settings-list {
  padding: 8px 0;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-item:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateX(5px);
}

.setting-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.setting-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.edit-icon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.report-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.help-icon { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.about-icon { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.setting-item:hover .setting-icon {
  transform: scale(1.1) rotate(5deg);
}

.setting-info {
  flex: 1;
}

.setting-title {
  display: block;
  color: white;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.setting-desc {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.setting-arrow {
  color: #38bdf8;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.setting-item:hover .setting-arrow {
  transform: translateX(5px);
}

/* Logout Button */
.profile-logout-btn {
  width: 100%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 30px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
  position: relative;
  overflow: hidden;
}

.profile-logout-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.profile-logout-btn:hover::before {
  width: 400px;
  height: 400px;
}

.profile-logout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.6);
}

.logout-icon {
  font-size: 20px;
  position: relative;
  z-index: 2;
}

.logout-text {
  color: white;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.logout-arrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.profile-logout-btn:hover .logout-arrow {
  transform: translateX(5px);
}

/* App Version */
.app-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  color: #64748b;
  font-size: 13px;
}

.version-badge {
  background: #1e293b;
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #334155;
}

/* ================================================= */
/* ========== WORKER HISTORY ========== */
/* ================================================= */

#workerHistoryList {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 80px;
  -webkit-overflow-scrolling: touch;
}

/* ================================================= */
/* ========== DAYS SELECTOR =================== */
/* ================================================= */

.days-selector {
  width: 100%;
  max-width: 400px;
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 16px;
  padding: 16px;
  margin: 8px 0 16px;
}

.days-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.day-option {
  background: #1e293b;
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #334155;
  flex: 1 0 auto;
  text-align: center;
  min-width: 60px;
}

.day-option:hover {
  background: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.day-option.selected {
  background: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.custom-days {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.custom-days input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 12px;
  color: white;
  font-size: 14px;
}

.custom-days input:focus {
  border-color: #38bdf8;
  outline: none;
}

.custom-days button {
  background: #38bdf8;
  color: #020617;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-days button:hover {
  background: #0ea5e9;
  transform: scale(1.05);
}

.selected-days {
  margin-top: 12px;
  padding: 10px;
  background: #1e293b;
  border-radius: 12px;
  color: #38bdf8;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border: 1px dashed #38bdf8;
}

/* ================================================= */
/* ========== CANCEL POPUP ==================== */
/* ================================================= */

.cancel-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.cancel-popup.active {
  display: flex;
}

.cancel-popup-content {
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 24px;
  width: 90%;
  max-width: 340px;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.cancel-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #1e293b;
}

.cancel-popup-header h3 {
  margin: 0;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.cancel-popup-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.cancel-popup-close:hover {
  background: #ef4444;
  color: white;
}

.cancel-popup-body {
  padding: 24px 20px;
  text-align: center;
}

.cancel-popup-body p {
  margin: 0;
  color: #cbd5f5;
  font-size: 16px;
  line-height: 1.5;
}

.cancel-popup-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #1e293b;
}

.cancel-popup-no {
  flex: 1;
  background: #1e293b;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-popup-no:hover {
  background: #334155;
}

.cancel-popup-yes {
  flex: 1;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-popup-yes:hover {
  background: #dc2626;
  transform: scale(1.02);
}

/* ================================================= */
/* ========== CONGRATS POPUP ================== */
/* ================================================= */

.congrats-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500;
}

.congrats-box {
  background: #020617;
  border-radius: 20px;
  padding: 24px;
  width: 85%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 0 40px rgba(34,197,94,0.6);
}

.congrats-box h2 {
  color: #22c55e;
  margin-bottom: 8px;
}

.congrats-box p {
  color: #cbd5f5;
  font-size: 14px;
}

.congrats-box button {
  margin-top: 16px;
  background: #22c55e;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ================================================= */
/* ========== CUSTOM POPUP ==================== */
/* ================================================= */

.custom-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: slideDown 0.3s ease;
  max-width: 90%;
  width: auto;
  min-width: 300px;
}

.custom-popup.error {
  border-left: 4px solid #ef4444;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3);
}

.custom-popup.success {
  border-left: 4px solid #22c55e;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
}

.custom-popup.warning {
  border-left: 4px solid #f59e0b;
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.popup-icon {
  font-size: 24px;
}

.popup-message {
  color: white;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.popup-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 5px;
}

.popup-close:hover {
  color: #ef4444;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ================================================= */
/* ========== ROLE SCREEN ========== */
/* ================================================= */

.role-ui {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #020617;
  overflow-y: auto !important;
  display: none !important;
  -webkit-overflow-scrolling: touch;
}
.role-ui.active {
  display: block !important;
}

.role-simple-bg {
  position: fixed !important;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.simple-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.orb-top {
  background: #38bdf8;
  top: -100px;
  right: -100px;
  animation: orbMove 15s ease-in-out infinite;
}

.orb-bottom {
  background: #8b5cf6;
  bottom: -100px;
  left: -100px;
  animation: orbMove 15s ease-in-out infinite reverse;
}

@keyframes orbMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.2); }
}

.role-simple-content {
  position: relative !important;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 60px !important;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: calc(100vh - 40px) !important;
}

.role-simple-header {
  text-align: center;
  animation: fadeInDown 0.8s ease;
  margin-bottom: 20px;
}

.role-simple-title {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: white;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role-simple-subtitle {
  color: white;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: linear-gradient(90deg, 
    rgba(56, 189, 248, 0.1), 
    rgba(139, 92, 246, 0.1), 
    rgba(56, 189, 248, 0.1)
  );
  padding: 15px 30px;
  border-radius: 60px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.tagline-icon {
  font-size: 24px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.floating-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 16px;
  border-radius: 30px;
  color: #94a3b8;
  font-size: 13px;
  transition: all 0.3s ease;
  animation: chipFloat 3s ease-in-out infinite;
}

.chip:hover {
  background: #38bdf8;
  color: #020617;
  transform: translateY(-2px);
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.role-simple-cards {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.role-simple-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 28px;
  padding: 30px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.role-simple-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.2);
}

.card-simple-icon {
  width: 70px;
  height: 70px;
  background: #1e293b;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.role-simple-card:hover .card-simple-icon {
  transform: scale(1.1) rotate(5deg);
  background: #38bdf8;
}

.role-simple-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: white;
}

.card-desc {
  color: #94a3b8;
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.card-feature-simple {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
  padding: 15px 0;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}

.card-feature-simple span {
  color: #cbd5f5;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-simple-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.btn-giver {
  background: #38bdf8;
  color: #020617;
}

.btn-worker {
  background: #8b5cf6;
  color: white;
}

.card-simple-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.guest-simple-section {
  margin-bottom: 40px !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.guest-simple-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.guest-simple-divider span:first-child,
.guest-simple-divider span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1e293b, transparent);
}

.guest-simple-divider span:nth-child(2) {
  color: #64748b;
  font-size: 14px;
}

.guest-simple-btn {
  background: transparent;
  border: 1px solid #1e293b;
  border-radius: 50px;
  padding: 16px 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 16px;
  font-weight: 500;
  width: fit-content;
  margin: 0 auto; /* Yeh center karega */
}

.guest-simple-btn:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.15);
}

.guest-simple-icon {
  font-size: 20px;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.guest-simple-arrow {
  color: #38bdf8;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.guest-simple-btn:hover .guest-simple-arrow {
  transform: translate(3px, -3px);
}

.guest-simple-note {
  color: #64748b;
  font-size: 13px;
  margin-top: 15px;
  text-align: center;
  width: 100%;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================= */
/* ========== LOGIN MODAL ====== */
/* ================================================= */

.login-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: flex-start;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-modal.active {
  display: flex;
}

.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.login-modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(165deg, #0f172a, #1e293b);
  border-radius: 32px;
  padding: 40px 32px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(56, 189, 248, 0.1),
    0 0 30px rgba(56, 189, 248, 0.2);
  animation: fadeIn 0.3s ease forwards;
  margin-top: 10vh;
  border: 1px solid rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(10px);
  z-index: 1001;
}

.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.login-modal-close:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.login-modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-modal-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.5));
}

.login-modal-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-modal-subtitle {
  color: #94a3b8;
  font-size: 15px;
  margin: 0;
}

.login-google-btn {
  width: 100%;
  background: white;
  border: none;
  border-radius: 24px;
  padding: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.5);
}

.login-google-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -10px #38bdf8;
}

.google-btn-content {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 22px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  border: 1px solid #e2e8f0;
}

.google-icon {
  width: 24px;
  height: 24px;
}


.google-text {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, #8b5cf6, #38bdf8, transparent);
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.divider-text {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.login-guest-btn {
  width: 100%;
  background: transparent;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 24px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.login-guest-btn:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px #38bdf8;
}

.guest-icon {
  font-size: 20px;
  position: relative;
  z-index: 1;
  animation: wave 2s ease-in-out infinite;
}

.guest-text {
  color: white;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.guest-arrow {
  color: #38bdf8;
  font-size: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.login-guest-btn:hover .guest-arrow {
  transform: translateX(5px);
}

.login-modal-footer {
  text-align: center;
  margin-top: 16px;
}

.footer-text {
  color: #64748b;
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}

.footer-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #38bdf8;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* ================================================= */
/* ========== EDIT PROFILE ========= */
/* ================================================= */

.edit-profile-screen {
  position: relative;
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  overflow-y: auto;
  min-height: 100vh;
  display: none;
  -webkit-overflow-scrolling: touch;
}

.edit-profile-screen.active {
  display: block !important;
}

.edit-profile-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.bg-particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 2px, transparent 2px);
  background-size: 60px 60px;
  animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
  from { transform: translateY(0); }
  to { transform: translateY(-60px); }
}

.edit-profile-container {
  position: relative;
  z-index: 10;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.edit-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding: 20px 0;
}

.edit-back-btn {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.edit-back-btn:hover {
  background: #38bdf8;
  color: #020617;
  transform: translateX(-5px) rotate(-5deg);
}

.edit-header-text {
  flex: 1;
}

.edit-header-text h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px 0;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.edit-header-text p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.edit-header-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

.edit-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 12px;
  cursor: pointer;
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  animation: glowPulse 2s ease-in-out infinite;
}

.avatar-circle {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
  transition: all 0.3s ease;
}

.avatar-wrapper:hover .avatar-circle {
  transform: scale(1.05);
  border-color: #38bdf8;
}

.avatar-letter {
  font-size: 48px;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(4px);
  border: 2px solid #38bdf8;
}

.avatar-wrapper:hover .avatar-edit-overlay {
  opacity: 1;
}

.camera-icon {
  font-size: 24px;
  margin-bottom: 4px;
  animation: cameraShake 1s ease-in-out infinite;
}

@keyframes cameraShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.edit-text {
  color: white;
  font-size: 12px;
  font-weight: 600;
  background: #38bdf8;
  padding: 4px 12px;
  border-radius: 30px;
}

.avatar-hint {
  color: #64748b;
  font-size: 12px;
  margin: 0;
}

.edit-form-container {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 32px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.edit-form-group {
  margin-bottom: 24px;
}

.edit-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.label-icon {
  font-size: 18px;
  width: 24px;
  height: 24px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.label-text {
  color: #e2e8f0;
}

.edit-input-wrapper {
  position: relative;
  width: 100%;
  background: rgba(2, 6, 23, 0.6);
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.edit-input-wrapper:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.edit-input {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  outline: none;
}

.country-code {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #38bdf8;
  font-weight: 600;
  font-size: 16px;
  z-index: 3;
}

.phone-input {
  padding-left: 60px !important;
}

.edit-textarea {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  outline: none;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.input-focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6);
  transition: width 0.3s ease;
}

.edit-input-wrapper:focus-within .input-focus-border {
  width: 100%;
}

.input-hint {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 6px;
  padding-left: 12px;
}

.edit-action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.edit-cancel-btn,
.edit-save-btn {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.edit-cancel-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.edit-cancel-btn:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.edit-save-btn {
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.edit-save-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.5);
}

.edit-info-card {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(10px);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.info-content {
  flex: 1;
}

.info-content strong {
  color: white;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

.info-content p {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}

/* ================================================= */
/* ========== REPORT, HELP & ABOUT SCREENS ========= */
/* ================================================= */

.report-screen, .help-screen, .about-screen {
  position: relative;
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  overflow-y: auto;
  min-height: 100vh;
  display: none;
  -webkit-overflow-scrolling: touch;
}

.report-screen.active, .help-screen.active, .about-screen.active {
  display: block !important;
}

.report-bg, .help-bg, .about-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.report-container, .help-container, .about-container {
  position: relative;
  z-index: 10;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  min-height: 100vh;
}

/* Header Styles */
.report-header, .help-header, .about-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding: 20px 0;
}

.report-back-btn, .help-back-btn, .about-back-btn {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.report-header-text, .help-header-text, .about-header-text {
  flex: 1;
}

.report-header-text h2, .help-header-text h2, .about-header-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: white;
}

.report-header-text p, .help-header-text p, .about-header-text p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.report-header-icon, .help-header-icon, .about-header-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.header-emoji {
  font-size: 28px;
}

/* Report Form */
.report-form-container {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 32px;
  padding: 24px;
  margin-bottom: 20px;
}

.report-form-group {
  margin-bottom: 24px;
}

.report-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #94a3b8;
}

.label-text {
  color: white;
  font-weight: 500;
}

.report-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-option {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid #1e293b;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.report-option:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.report-option.selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.option-emoji {
  font-size: 20px;
  margin-right: 12px;
}

.option-text {
  flex: 1;
  color: white;
}

.option-check {
  color: #38bdf8;
  font-size: 20px;
}

.report-input-wrapper {
  position: relative;
  background: rgba(2, 6, 23, 0.6);
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  overflow: hidden;
}

.report-textarea {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: white;
  font-size: 15px;
  outline: none;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.report-upload-box {
  background: rgba(2, 6, 23, 0.6);
  border: 2px dashed #334155;
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.report-upload-box:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.upload-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.upload-text {
  display: block;
  color: white;
  font-weight: 500;
  margin-bottom: 5px;
}

.upload-hint {
  color: #64748b;
  font-size: 12px;
}

.report-action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.report-cancel-btn, .report-submit-btn {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.report-cancel-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.report-cancel-btn:hover {
  background: #ef4444;
  color: white;
}

.report-submit-btn {
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  color: white;
}

.report-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.report-info-card {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Help Page */
.help-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.help-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.help-card:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.help-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.help-card-content {
  flex: 1;
}

.help-card-content h3 {
  margin: 0 0 4px 0;
  color: white;
  font-size: 18px;
}

.help-card-content p {
  margin: 0 0 6px 0;
  color: #94a3b8;
  font-size: 14px;
}

.help-card-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.help-card-badge.online {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.help-card-arrow {
  color: #38bdf8;
  font-size: 20px;
}

.help-faq-section {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
}

.faq-title {
  color: white;
  margin: 0 0 16px 0;
  font-size: 18px;
}

.faq-item {
  border-bottom: 1px solid #1e293b;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  color: white;
  font-weight: 500;
}

.faq-icon {
  color: #38bdf8;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 16px 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.help-contact-info {
  display: flex;
  justify-content: space-around;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 20px;
  padding: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 13px;
}

.info-emoji {
  font-size: 16px;
}

/* About Page */
.about-logo-section {
  text-align: center;
  margin-bottom: 30px;
}

.about-logo-wrapper {
  position: relative;
  width: fit-content;
  margin: 0 auto 15px;
}

.about-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: glowPulse 2s ease-in-out infinite;
}

.about-logo {
  font-size: 48px;
  font-weight: 800;
  margin: 0;
  position: relative;
  z-index: 2;
}

.about-logo span {
  display: inline-block;
  background: linear-gradient(135deg, #fff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-tagline {
  color: #94a3b8;
  font-size: 16px;
}

.about-story, .about-features, .about-team {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
}

.about-story h3, .about-features h3, .about-team h3 {
  color: white;
  margin: 0 0 12px 0;
  font-size: 18px;
}

.about-story p {
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.about-stat-item {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}

.stat-number {
  display: block;
  color: #38bdf8;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  color: #94a3b8;
  font-size: 13px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  text-align: center;
}

.feature-emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.feature-title {
  display: block;
  color: white;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

.feature-desc {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.creator-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(2, 6, 23, 0.6);
  border-radius: 20px;
  padding: 16px;
}

.creator-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.creator-info h4 {
  color: white;
  margin: 0 0 4px 0;
  font-size: 18px;
}

.creator-info p {
  color: #94a3b8;
  margin: 0 0 8px 0;
  font-size: 13px;
}

.creator-contact {
  color: #38bdf8;
  font-size: 13px;
  cursor: pointer;
}

.about-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 10px;
  color: #64748b;
}

.about-copyright {
  text-align: center;
  color: #475569;
  font-size: 12px;
  padding: 20px 0;
}

/* Responsive */
@media (max-width: 480px) {
  .splash-logo {
    font-size: 60px;
  }
  
  .role-simple-title {
    font-size: 28px;
  }
  
  .profile-info-card {
    margin: -40px 12px 20px;
    padding: 16px;
  }
  
  .profile-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin: -60px auto 12px;
  }
  
  .profile-avatar span {
    font-size: 32px;
  }
  
  .profile-details h2 {
    font-size: 20px;
  }
  
  .stat-number {
    font-size: 18px;
  }
  
  .setting-item {
    padding: 14px 16px;
  }
  
  .setting-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .login-modal-content {
    padding: 32px 20px;
  }
  
  .edit-profile-header h2 {
    font-size: 24px;
  }
  
  .edit-header-icon {
    width: 48px;
    height: 48px;
  }
  
  .avatar-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .avatar-letter {
    font-size: 40px;
  }
}
/* ===== SCREEN STACKING FIX ===== */
.screen {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

body {
  overflow: hidden !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Active screen properly dikhe */
.screen.active {
  display: flex !important;
  z-index: 10 !important;
}

/* App shells ke andar scroll */
.app-shell, #doAppShell {
  height: 100% !important;
  overflow-y: auto !important;
  position: relative !important;
  -webkit-overflow-scrolling: touch;
}

/* Tabs ke andar content properly dikhe */
.tab {
  display: none !important;
  height: 100% !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.tab.active-tab {
  display: flex !important;
  flex-direction: column !important;
}

/* Role screen fix */
#roleScreen.screen {
  display: none !important;
}

#roleScreen.screen.active {
  display: block !important;
}

/* Popups sabse upar */
.login-modal.active,
.cancel-popup.active,
.congrats-popup.active,
.custom-popup {
  z-index: 1000 !important;
}
.worker-history-card {
  background: #020617;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  transition: all 0.2s ease;
}

.worker-history-card:hover {
  transform: translateX(4px);
}

.history-block-badge {
  position: absolute;
  top: -8px;
  left: 16px;
  background: #38bdf8;
  color: #020617;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #020617;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.5);
  z-index: 2;
}

/* ===== FINDING SCREEN FIX ===== */
.finding-screen {
  display: none;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden !important;
}

.finding-screen.active {
  display: flex !important;
}

.finding-box {
  width: 88%;
  max-width: 360px;
  background: linear-gradient(135deg, #0f172a, #020617);
  border: 1px solid #1e293b;
  border-radius: 28px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

.finding-header {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.finding-header h2 {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.finding-title {
  font-size: 16px;
  color: #94a3b8;
  margin: 0;
  font-weight: 500;
}

.finding-note {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 30px;
  padding: 12px 18px;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.cancel-btn {
  width: 100%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 18px;
  padding: 16px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.cancel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.6);
}