/* myyo.app ultra-modern UI */
:root{
  --bg: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-glass: rgba(255, 255, 255, 0.03);
  --muted: #94a3b8;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-solid: #6366f1;
  --primary-hover: #5b21b6;
  --danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  --success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --gradient-accent: linear-gradient(45deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --backdrop-blur: blur(8px);
  --border-glass: 1px solid rgba(255, 255, 255, 0.1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 87, 108, 0.05), transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.card {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.15);
}
.grid{display:grid; gap:16px}
.grid.cols-2{grid-template-columns: repeat(2, minmax(0,1fr))}
@media (max-width: 768px){.grid.cols-2{grid-template-columns:1fr}}
.muted{color:var(--muted)}
.hr{height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); margin:18px 0}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary-solid) 0%, #8b5cf6 100%);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, #7c3aed 0%, var(--primary-solid) 100%);
}

.btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.1);
  transform: translateY(-4px) scale(1.05);
}

.btn.danger {
  background: var(--danger);
}

.btn.danger:hover {
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
}

.btn.success {
  background: var(--success);
}

.btn.success:hover {
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.btn.warning {
  background: var(--warning);
}

.btn.warning:hover {
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}
.btn:disabled{
  opacity:0.6;
  cursor:not-allowed;
  transform:none !important;
  box-shadow:none !important;
}
.btn.loading{
  pointer-events:none;
}
.btn.loading::after{
  content:'';
  position:absolute;
  width:16px;
  height:16px;
  border:2px solid transparent;
  border-top:2px solid currentColor;
  border-radius:50%;
  animation:spin 1s linear infinite;
}
@keyframes spin{
  to { transform:rotate(360deg); }
}

.form-group {
  margin-bottom: 28px;
  position: relative;
}

.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 24px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 16px;
  font-weight: 500;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  font-weight: 400;
}

textarea.input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
}

.input:focus {
  border-color: var(--primary-solid);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 32px rgba(99, 102, 241, 0.1);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px) scale(1.02);
}

.input:invalid:not(:placeholder-shown) {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12), 0 4px 20px rgba(255, 107, 107, 0.1);
}

.input:valid:not(:placeholder-shown) {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12), 0 4px 20px rgba(16, 185, 129, 0.1);
}

.input:invalid:not(:placeholder-shown):focus {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2), 0 8px 32px rgba(255, 107, 107, 0.15);
  background: rgba(255, 107, 107, 0.12);
}

.input:valid:not(:placeholder-shown):focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 8px 32px rgba(16, 185, 129, 0.15);
  background: rgba(16, 185, 129, 0.12);
}

.label {
  display: block;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 0.3px;
}

.form-group:focus-within .label {
  color: var(--primary-solid);
  transform: translateY(-3px) scale(1.05);
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}
.form-row{
  display:flex; 
  gap:16px;
}
.form-row > *{
  flex:1;
}
.form-error{
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 8px;
  display: none;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 12px;
  border-left: 4px solid #ff6b6b;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.form-group.error .form-error{
  display: block;
  animation: slideInDown 0.3s ease;
}
.form-group.error .input{
  border-color: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15), 0 4px 20px rgba(255, 107, 107, 0.1);
  background: rgba(255, 107, 107, 0.05);
}

.hero {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  opacity: 0.05;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.hero .title {
  font-size: clamp(48px, 10vw, 80px);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
  letter-spacing: -2px;
}

.hero .subtitle {
  font-size: clamp(18px, 4vw, 24px);
  color: var(--text-secondary);
  margin: 0 auto 48px;
  max-width: 700px;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.3s both;
  font-weight: 400;
}

.hero .actions {
  display: flex; 
  gap:16px; 
  justify-content:center; 
  flex-wrap:wrap;
  animation:fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero .actions {
    flex-direction: column;
    align-items: center;
  }
  
  .profile-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .profile-stats {
    margin-left: 0;
    text-align: center;
  }
  
  .link-item {
    padding: 14px 16px;
  }
  
  .link-item .content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .link-item .actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-row .url-prefix {
    border-radius: 16px;
    border-right: 2px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding: 16px;
  }
  
  .form-row input {
    border-radius: 16px !important;
    border-left: 2px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 18px !important;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .input {
    padding: 16px 18px;
    font-size: 16px;
  }
  
  .btn {
    padding: 16px 24px;
    font-size: 16px;
    width: 100%;
  }
  
  .auth-card {
    padding: 32px 24px;
    margin: 20px;
  }
  
  .auth-title {
    font-size: 28px;
  }
  
  .auth-submit {
    padding: 16px;
  }
  
  .analytics-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .analytics-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 12px;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .profile-card {
    padding: 16px;
  }
  
  .profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  
  .link-item {
    padding: 12px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .input {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 15px;
    width: 100%;
  }
  
  .form-help {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .current-url {
    padding: 12px 16px;
    margin-top: 16px;
  }
  
  .auth-card {
    padding: 24px 20px;
    margin: 16px;
  }
  
  .auth-title {
    font-size: 24px;
  }
  
  .auth-submit {
    padding: 14px;
    font-size: 15px;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .input {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  .analytics-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .analytics-header h1 {
    font-size: 1.75rem;
  }
  
  .section-header h2 {
    font-size: 1.25rem;
  }
  
  .analytics-item {
    padding: 0.75rem;
  }
  
  .chart-container {
    padding: 1rem;
  }
  
  .chart {
    height: 250px;
  }
}

/* Modern Alert Styles */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin: 16px 0;
  display: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

.alert.show {
  display: block;
}

.alert.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.alert.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.alert.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.alert.info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Özel URL Form Stilleri */
.url-prefix {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  border-radius: 16px 0 0 16px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-row {
  display: flex;
  align-items: stretch;
}

.form-row input {
  border-radius: 0 16px 16px 0 !important;
  border-left: none !important;
  flex: 1;
  padding-left: 20px !important;
}

.form-row:focus-within .url-prefix {
  border-color: var(--primary-solid);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-solid);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-help {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 8px;
  display: block;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.current-url {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(46, 204, 113, 0.12);
  border: 2px solid rgba(46, 204, 113, 0.3);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.current-url:hover {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(46, 204, 113, 0.2);
}

.current-url a {
  color: #2ecc71;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.current-url a:hover {
  color: #27ae60;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: var(--border-glass);
  background: var(--gradient-card);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  overflow: hidden;
}

.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.link-item:hover::before {
  transform: scaleX(1);
}

.link-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(255,255,255,0.05));
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  animation: float 2s ease-in-out infinite;
}
.link-item .content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.link-item .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.link-item .icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.link-item:hover .icon::before {
  left: 100%;
}

.link-item:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.link-item .info {
  flex: 1;
}

.link-item .title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
  transition: all 0.2s ease;
}

.link-item .title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, var(--text), var(--primary-solid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.link-item .title a:hover {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.link-item .meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.link-item .actions{
  display:flex;
  gap:8px;
  opacity:0.7;
  transition:opacity 0.2s ease;
}
.link-item:hover .actions{
  opacity:1;
}
.link-item::before{ 
  content:'⋮⋮'; 
  position:absolute; 
  left:8px; 
  top:50%; 
  transform:translateY(-50%); 
  color:var(--muted); 
  cursor:grab;
  opacity:0.5;
  transition:opacity 0.2s ease;
}
.link-item:hover::before{
  opacity:1;
}
.link-item.dragging{ 
  opacity:0.6; 
  border-color:var(--primary); 
  background:rgba(108,92,231,0.08);
  transform:rotate(2deg);
}
/* Analytics Styles */
.analytics-header {
  text-align: center;
  margin-bottom: 2rem;
}

.analytics-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--gradient-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.analytics-header .subtitle {
  color: var(--muted);
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: 50%;
  color: white;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.analytics-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.chart-section, .links-section {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Chart Styles */
.chart-container {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(74, 144, 226, 0.1));
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.08);
}

.chart {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
}

.chart-card{ padding:16px; background:#111826; border:1px solid rgba(255,255,255,0.06); border-radius:12px; }

/* Analytics List */
.analytics-list {
  max-height: 400px;
  overflow-y: auto;
}

.analytics-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background-color 0.2s ease;
}

.analytics-item:hover {
  background: rgba(108, 92, 231, 0.05);
}

.analytics-item:last-child {
  border-bottom: none;
}

.rank {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  min-width: 30px;
}

.link-info {
  flex: 1;
}

.link-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.link-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clicks-count {
  color: var(--muted);
  font-size: 0.9rem;
  min-width: 80px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gradient-accent));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.empty-state p {
  font-size: 0.9rem;
}

.profile-card {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.15);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.profile-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.profile-card:hover .profile-avatar::before {
  left: 100%;
}

.profile-card:hover .profile-avatar {
  transform: scale(1.05);
}

.profile-info h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--primary-solid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.profile-info .plan {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 12px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.profile-info .plan:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.profile-stats {
  margin-left: auto;
  text-align: right;
}

.profile-stats .stat {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-stats .stat-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  display: block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer{margin-top:40px; color:var(--muted); text-align:center}

/* Auth Pages */
.auth-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  opacity: 0.8;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}

.auth-form {
  margin-bottom: 32px;
}

.auth-form .form-group {
  margin-bottom: 24px;
}

.auth-form .form-group:last-child {
  margin-bottom: 32px;
}

.auth-form .label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin-bottom: 8px;
}

.auth-submit {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer .muted {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.auth-footer a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-footer a:hover {
  color: #8b5cf6;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.auth-alert {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid transparent;
  animation: slideInDown 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ff6b6b;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN & MOBILE OPTIMIZATION ===== */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .hero h1 {
    font-size: 72px;
  }
  
  .hero p {
    font-size: 22px;
  }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
    padding: 0 24px;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 56px;
  }
}

/* Small screens (576px to 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .header {
    padding: 16px 0;
  }
  
  .brand h1 {
    font-size: 28px;
  }
  
  .hero {
    padding: 80px 0 60px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  
  .hero p {
    font-size: 18px;
    margin-bottom: 32px;
  }
  
  .card {
    padding: 32px 24px;
    margin: 16px 0;
  }
  
  .btn {
    padding: 14px 24px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 12px;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .link-item {
    padding: 20px 16px;
    margin-bottom: 12px;
  }
  
  .link-item .content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .link-item .info {
    width: 100%;
  }
  
  .link-item .title {
    font-size: 16px;
  }
  
  .link-item .meta {
    font-size: 13px;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-card {
    padding: 20px 16px;
  }
  
  .stat-value {
    font-size: 28px;
  }
  
  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  
  .profile-avatar {
    margin: 0 auto 20px;
  }
  
  .profile-stats {
    margin: 20px auto 0;
    text-align: center;
  }
  
  /* Auth pages mobile optimization */
  .auth-container {
    padding: 16px;
    min-height: calc(100vh - 80px);
  }
  
  .auth-card {
    padding: 32px 24px;
    max-width: 100%;
  }
  
  .auth-title {
    font-size: 28px;
  }
  
  .auth-subtitle {
    font-size: 15px;
  }
  
  /* Profile page mobile optimization */
  .profile-hero {
    padding: 60px 0 32px;
  }
  
  .profile-avatar-large {
    width: 100px;
    height: 100px;
    font-size: 40px;
  }
  
  .profile-username {
    font-size: 28px;
  }
  
  .profile-bio {
    font-size: 16px;
  }
  
  .profile-link-item {
    padding: 16px 20px;
    margin-bottom: 12px;
  }
  
  .profile-link-title {
    font-size: 16px;
  }
  
  .profile-link-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Extra small screens (up to 575px) */
@media (max-width: 575px) {
  .container {
    padding: 0 16px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .card {
    padding: 24px 20px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .input {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .link-item {
    padding: 16px 12px;
  }
  

  
  .profile-avatar-large {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }
  
  .profile-username {
    font-size: 24px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .card:hover,
  .link-item:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .link-item:active {
    transform: scale(0.99);
  }
  
  /* Increase touch targets */
  .btn {
    min-height: 48px;
  }
  
  .input {
    min-height: 48px;
  }
  
  .link-item {
    min-height: 60px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-size: 400px 400px;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 32px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .auth-container {
    padding: 12px;
  }
  
  .auth-card {
    padding: 24px 20px;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .btn {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .link-item {
    break-inside: avoid;
  }
}

/* Profile Image Styles */
.current-profile-image {
  margin-bottom: 16px;
  text-align: center;
}

.profile-image-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.profile-image-preview:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* Dashboard profile avatar with image support */
.profile-avatar {
  position: relative;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* File input styling */
input[type="file"] {
  padding: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: var(--primary-solid);
  background: rgba(255, 255, 255, 0.05);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--primary-solid);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Link description styles */
.description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.link-item .description {
  margin-top: 6px;
  margin-bottom: 4px;
}

.profile-link-description {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
  opacity: 0.9;
}

/* Textarea for description */
textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* Category Management Styles */
.category-management {
  margin-top: 20px;
}

.category-form .form-row {
  display: flex;
  gap: 15px;
  align-items: end;
  flex-wrap: wrap;
}

.category-form .form-group {
  flex: 1;
  min-width: 150px;
}

.color-input {
  width: 60px !important;
  height: 40px;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}

.categories-list {
  margin-top: 30px;
}

.categories-list h3 {
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 16px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.category-item:hover {
  background: var(--bg-hover);
  border-color: var(--primary-solid);
}

.category-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.category-name {
  font-weight: 500;
  color: var(--text-primary);
}

.category-actions {
  display: flex;
  gap: 8px;
}

.category-actions .btn {
  padding: 4px 8px;
  font-size: 12px;
  min-width: auto;
}

/* Category Filter Styles */
.category-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary-solid);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--primary-solid);
  color: white;
  border-color: var(--primary-solid);
}

.filter-btn.category-filter-btn {
  border-left: 4px solid var(--category-color, var(--primary-solid));
}

/* Link item category indicator */
.link-item[data-category] {
  border-left: 4px solid var(--category-color, var(--primary-solid));
}

.link-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-secondary);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.link-category-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-form .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .category-filter {
    justify-content: center;
  }
}

/* Social Media Platforms - Removed to prevent conflicts */

/* Profile Social Media Links - Removed to prevent conflicts */

/* Social Media Icons Section - Simplified for profile page */
.social-icons-section {
  margin-bottom: 32px !important;
  clear: both;
}

.social-icons-section h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin: 0 0 16px 0 !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
  display: block !important;
}

.social-icons-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.social-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  background: var(--gradient-card) !important;
  border: var(--border-glass) !important;
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 20px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: var(--backdrop-blur) !important;
  -webkit-backdrop-filter: var(--backdrop-blur) !important;
  box-sizing: border-box !important;
}

.social-icon svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: var(--shadow) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Platform specific hover colors */
.social-icon[data-platform="instagram"]:hover {
  background: linear-gradient(45deg, #E4405F, #F56040) !important;
  color: white !important;
}

.social-icon[data-platform="x"]:hover {
  background: linear-gradient(45deg, #000000, #333333) !important;
  color: white !important;
}

.social-icon[data-platform="linkedin"]:hover {
  background: linear-gradient(45deg, #0077B5, #005885) !important;
  color: white !important;
}

.social-icon[data-platform="youtube"]:hover {
  background: linear-gradient(45deg, #FF0000, #CC0000) !important;
  color: white !important;
}

.social-icon[data-platform="tiktok"]:hover {
  background: linear-gradient(45deg, #000000, #333333) !important;
  color: white !important;
}

.social-icon[data-platform="github"]:hover {
  background: linear-gradient(45deg, #333333, #555555) !important;
  color: white !important;
}

.social-icon[data-platform="facebook"]:hover {
  background: linear-gradient(45deg, #1877F2, #0C5DBD) !important;
  color: white !important;
}

.social-icon[data-platform="discord"]:hover {
  background: linear-gradient(45deg, #5865F2, #4752C4) !important;
  color: white !important;
}

/* Other links section */
.other-links-section {
  margin-bottom: 32px;
}

.other-links-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .social-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}