:root {
  --primary-gradient: linear-gradient(135deg, #6366f1, #a855f7);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
  --text-color: #1f2937;
  --text-secondary: #6b7280;
}

body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
  margin: 0; 
  color: var(--text-color);
  background: #ffffff;
}

.container { 
  flex-direction: column;
  justify-content: center; 
  align-items: center; 
  min-height: calc(100vh - 60px); 
  padding: 20px; 
  box-sizing: border-box;
}

.hidden { display: none !important; }
.flex { display: flex !important; }

/* Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
}
.small-card { max-width: 360px; padding: 2.5rem 2rem; }

.icon-wrapper {
  width: 64px; height: 64px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: white; font-size: 28px;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}
.admin-icon { background: linear-gradient(135deg, #3b82f6, #06b6d4); box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3); }

h1 { margin: 0 0 10px 0; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { margin: 0 0 25px 0; font-size: 24px; font-weight: 700; }
.subtitle { color: var(--text-secondary); margin-bottom: 30px; font-size: 15px; }

/* Inputs */
.input-group { position: relative; margin-bottom: 20px; text-align: left; width: 100%; }
.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; z-index: 2;}
input { 
  width: 100%; 
  padding: 16px 16px 16px 48px; 
  border: 1.5px solid #e5e7eb; 
  border-radius: 16px; 
  font-size: 15px; 
  background: #f9fafb; 
  transition: all 0.3s ease;
  outline: none;
  color: var(--text-color);
  box-sizing: border-box;
}
input:focus { border-color: #6366f1; background: white; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.05); }
input::placeholder { color: #9ca3af; }

/* Buttons */
.btn-primary { 
  width: 100%; 
  padding: 16px; 
  border: none; 
  border-radius: 16px; 
  background: var(--primary-gradient); 
  color: white; 
  font-size: 16px; font-weight: 700; 
  cursor: pointer; 
  transition: all 0.3s; 
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
  position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 20px rgba(99, 102, 241, 0.25); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }
.loading { opacity: 0.8; cursor: wait; }

/* Result Area */
.result-box { 
  margin-top: 25px; 
  padding: 20px; 
  background: #f0fdf4; 
  border: 1px solid #dcfce7; 
  border-radius: 16px; 
  text-align: left; 
}
.result-header { color: #166534; font-weight: 700; font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.short-url { 
  display: block; 
  font-size: 16px; font-weight: 700; color: #111827; 
  text-decoration: none; word-break: break-all; margin-bottom: 15px; 
  padding: 12px; background: white; border: 1px solid #e5e7eb; border-radius: 12px;
}
.btn-copy { 
  width: 100%; padding: 12px; border: none; border-radius: 12px; 
  color: white; font-weight: 600; font-size: 14px; cursor: pointer; 
  transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-copy:hover { opacity: 0.9; }

/* Footer */
.footer { padding: 20px; text-align: center; border-top: 1px solid #f3f4f6; }
.footer a { color: #9ca3af; text-decoration: none; font-size: 12px; transition: 0.2s; }
.footer a:hover { color: var(--text-color); }

/* Animations */
.fade-in { animation: fadeIn 0.6s ease-out forwards; opacity: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.slide-up { animation: slideUp 0.4s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
  .glass-card { padding: 2rem 1.5rem; }
  h1 { font-size: 24px; }
}
