/* Delivery Webapp Styles - Modern Glassmorphism */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #141416;
  --bg-tertiary: #1c1c1f;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --accent-primary: #dc2626;
  --accent-primary-light: #ef4444;
  --accent-primary-dark: #991b1b;
  --accent-success: #22c55e;
  --accent-warning: #eab308;
  --accent-danger: #ef4444;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(20, 20, 22, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(220, 38, 38, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Background Effects */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.bg-gradient-1 {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, rgba(220, 38, 38, 0.08) 40%, transparent 70%);
  filter: blur(40px);
  animation: float1 20s ease-in-out infinite;
}

.bg-gradient-2 {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0.05) 40%, transparent 70%);
  filter: blur(40px);
  animation: float2 25s ease-in-out infinite;
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-40px, 20px) rotate(-3deg); }
  66% { transform: translate(30px, -40px) rotate(3deg); }
}

/* Navbar */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-link-staff {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-badge.staff {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-dark) 100%);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-badge.admin {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link-admin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* User Dropdown */
.nav-user-dropdown {
  margin-left: auto;
  position: relative;
}

.user-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s;
}

.user-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.user-dropdown-trigger .username {
  font-weight: 500;
  font-size: 0.9rem;
}

.user-dropdown-trigger .dropdown-arrow {
  transition: transform 0.2s;
  opacity: 0.6;
}

.nav-user-dropdown:has(.user-dropdown-menu.show) .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
}

.dropdown-username {
  font-weight: 600;
  color: var(--text-primary);
}

.dropdown-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dropdown-badges {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.dropdown-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dropdown-badge.staff {
  background: rgba(220, 38, 38, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.dropdown-badge.kunde {
  background: rgba(100, 100, 100, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(100, 100, 100, 0.3);
}

.dropdown-badge.pro {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(220, 38, 38, 0.15));
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.dropdown-badge.max {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
  color: #e879f9;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.dropdown-badge.free {
  background: rgba(100, 100, 100, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(100, 100, 100, 0.2);
}

.dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0.25rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.dropdown-item svg {
  opacity: 0.7;
}

.dropdown-item-danger {
  color: var(--accent-danger);
}

.dropdown-item-danger:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--accent-danger);
}

.dropdown-item-danger svg {
  stroke: var(--accent-danger);
}

/* Plan Badges */
.badge-plan {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-plan.free {
  background: rgba(100, 100, 100, 0.3);
  color: #888;
}

.badge-plan.pro {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), rgba(249, 115, 22, 0.3));
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-plan.max {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
  color: #e879f9;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
}

/* Container */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

/* Footer */
.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer a {
  color: var(--accent-primary-light);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-full-width {
  width: 100%;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.staff {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-dark) 100%);
  color: white;
}

.badge.subscription {
  background: linear-gradient(135deg, var(--accent-success) 0%, #16a34a 100%);
  color: white;
}

.badge.pending {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge.delivered,
.badge.downloaded {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-dark) 100%);
  color: white;
}

.badge.confirmed {
  background: linear-gradient(135deg, var(--accent-success) 0%, #16a34a 100%);
  color: white;
}

.badge.expired,
.badge.deleted {
  background: var(--accent-danger);
  color: white;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* File Drop Zone */
.file-drop-zone {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: var(--accent-primary);
  background: rgba(220, 38, 38, 0.05);
}

.file-drop-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-info {
  margin-top: 0.5rem;
  color: var(--accent-success);
  font-weight: 500;
}

/* Progress Bar */
.progress-container {
  margin: 1.5rem 0;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-primary-light) 100%);
  transition: width 0.3s;
  width: 0%;
}

.progress-text {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Cards */
.delivery-card,
.subscription-card,
.stat-card,
.error-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.error-card {
  text-align: center;
  max-width: 400px;
  margin: 4rem auto;
}

.error-card h1 {
  margin-bottom: 1rem;
  color: var(--accent-danger);
}

.error-card .btn {
  margin-top: 1.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary-light) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Subscription Cards */
.subscription-card {
  margin-bottom: 2rem;
}

.subscription-card.active {
  border-color: var(--accent-success);
}

.subscription-card h3 {
  margin-bottom: 0.5rem;
}

.subscription-card .status {
  color: var(--accent-success);
  font-weight: 600;
}

.subscription-card .warning {
  color: var(--accent-warning);
}

.subscription-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary-light) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0;
}

/* Subscription Offer (inline) */
.subscription-offer {
  background: var(--glass-bg);
  border: 1px solid var(--accent-warning);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.subscription-offer h3 {
  margin-bottom: 0.5rem;
}

.offer-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.subscription-active {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--accent-success);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin: 1.5rem 0;
}

/* Tables */
.deliveries-table {
  width: 100%;
  border-collapse: collapse;
}

.deliveries-table th,
.deliveries-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.deliveries-table th {
  background: rgba(0, 0, 0, 0.3);
  font-weight: 600;
}

.deliveries-table tr.inactive {
  opacity: 0.5;
}

.file-link {
  color: var(--accent-primary-light);
  text-decoration: none;
}

.file-link:hover {
  text-decoration: underline;
}

/* Delivery Page */
.delivery-page {
  max-width: 600px;
  margin: 0 auto;
}

.delivery-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.delivery-card {
  margin-bottom: 1.5rem;
}

.file-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.file-icon {
  font-size: 3rem;
}

.file-details h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.file-size,
.file-date,
.download-count {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.delivery-actions {
  text-align: center;
}

.delivery-info {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.delivery-info h3 {
  margin-bottom: 1rem;
}

.delivery-info ul {
  list-style: none;
}

.delivery-info li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.delivery-info li::before {
  content: "✓ ";
  color: var(--accent-success);
}

/* Upload Page */
.upload-page {
  max-width: 600px;
  margin: 0 auto;
}

.upload-page h1 {
  margin-bottom: 0.5rem;
}

.upload-page .subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.upload-form {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.result-container .result {
  background: var(--glass-bg);
  border: 1px solid var(--accent-success);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.link-box {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.link-box input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-family: monospace;
}

.hint {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 1rem 0;
}

/* ================================================
   HOME PAGE - Modern Glassmorphism Landing
   ================================================ */
.home-page {
  text-align: center;
  padding: 4rem 0;
  position: relative;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 6rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--accent-primary-light);
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.home-page h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home-page h1 .highlight {
  background: linear-gradient(135deg, var(--accent-primary-light) 0%, var(--accent-primary) 50%, var(--accent-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-page .subtitle {
  color: var(--text-secondary);
  font-size: 1.35rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.home-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.trust-item .icon {
  font-size: 1.25rem;
}

/* Features Grid */
.features-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: var(--shadow-glow);
}

.feature:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* How It Works */
.how-it-works-section {
  padding: 4rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
  padding: 4rem 0;
}

.pricing-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 400px;
  margin: 2rem auto 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-light), var(--accent-primary));
}

.pricing-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.15);
  color: var(--accent-primary-light);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.pricing-price .amount {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary-light) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-price .period {
  color: var(--text-secondary);
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li .check {
  color: var(--accent-success);
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(153, 27, 27, 0.1) 100%);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Discord Button */
.btn-discord {
  background: #5865F2;
  color: white;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(88, 101, 242, 0.4);
}

.discord-icon {
  width: 20px;
  height: 20px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

/* Subscription Page */
.subscription-page {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.subscription-page .page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.subscription-page .page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subscription-page .page-header p {
  color: var(--text-secondary);
}

.subscription-active,
.subscription-offer {
  padding: 2rem;
  text-align: center;
}

.subscription-active h2 {
  margin: 1rem 0 0.5rem;
}

.subscription-active p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-badge.success {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent-success);
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.warning-box {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
  text-align: left;
}

.warning-box strong {
  color: var(--accent-warning);
}

.warning-box p {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
}

.subscription-details {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
}

.pricing-highlight {
  margin-bottom: 1.5rem;
}

.pricing-highlight .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.pricing-highlight .period {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.subscription-offer .feature-list {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.subscription-offer .feature-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.subscription-offer .feature-list li:last-child {
  border-bottom: none;
}

.subscription-offer .check {
  color: var(--accent-success);
  font-weight: bold;
}

.subscription-offer .hint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.btn-danger {
  background: var(--accent-danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

/* ================================================
   DASHBOARD PAGE - Modern Glassmorphism
   ================================================ */
.dashboard-page {
  position: relative;
  padding: 2rem 0;
}

.dashboard-page .page-header {
  margin-bottom: 2rem;
}

.dashboard-page .page-title h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dashboard-page .page-title .subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.stat-icon.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.stat-icon.downloaded {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.stat-icon.confirmed {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--accent-success);
}

.stat-content .stat-value {
  font-size: 1.75rem;
  line-height: 1;
}

.stat-content .stat-label {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Subscription Status Card */
.subscription-status-card {
  padding: 1.5rem;
}

.subscription-status-card.active {
  border-color: rgba(34, 197, 94, 0.3);
}

.subscription-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subscription-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-success);
}

.subscription-icon.inactive {
  background: rgba(100, 100, 100, 0.1);
  border-color: rgba(100, 100, 100, 0.2);
  color: var(--text-secondary);
}

.subscription-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.subscription-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.subscription-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.subscription-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Deliveries Section */
.deliveries-section {
  margin-top: 2rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-title h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-card .deliveries-table {
  border-collapse: collapse;
  width: 100%;
}

.table-card .deliveries-table th {
  background: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.table-card .deliveries-table th,
.table-card .deliveries-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.table-card .deliveries-table tbody tr:last-child td {
  border-bottom: none;
}

.table-card .deliveries-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.file-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-icon-small {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.text-muted {
  color: var(--text-secondary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(100, 100, 100, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* ================================================
   UPLOAD PAGE - Modern Glassmorphism
   ================================================ */
.upload-page .page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.upload-page .header-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.upload-page .page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.upload-page .upload-form {
  padding: 2rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.form-group label svg {
  opacity: 0.6;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.form-hint.warning {
  color: var(--accent-warning);
}

/* File Drop Zone Enhanced */
.file-drop-zone .drop-content {
  padding: 2rem;
}

.file-drop-zone .drop-icon {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.file-drop-zone .drop-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

.file-drop-zone .drop-text .highlight {
  color: var(--accent-primary);
  font-weight: 500;
}

.file-drop-zone .drop-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 0.5rem;
}

.file-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: rgba(34, 197, 94, 0.05);
  border-radius: var(--radius);
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent-success);
}

.file-info-text {
  display: flex;
  flex-direction: column;
}

.file-info-text .file-name {
  font-weight: 500;
  color: var(--text-primary);
}

.file-info-text .file-size {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.btn-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Progress Enhanced */
.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.progress-percent {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
}

/* Spinner Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Result Success */
.result-container .result {
  text-align: center;
  padding: 2.5rem;
}

.result-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-success);
}

.result h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.result-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.link-section {
  margin-bottom: 1.5rem;
}

.link-section label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.info-box svg {
  flex-shrink: 0;
  color: #3b82f6;
  margin-top: 2px;
}

.info-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.btn.copied {
  background: var(--accent-success) !important;
  border-color: var(--accent-success) !important;
  color: white !important;
}

/* ================================================
   DELIVERY PAGE - Modern Glassmorphism
   ================================================ */
.delivery-page {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.delivery-page .delivery-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text-primary);
}

.back-link.centered {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.delivery-page .delivery-header h1 {
  font-size: 1.75rem;
  margin: 0;
}

/* Delivery Main Card */
.delivery-main-card {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.file-display {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.file-icon-large {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.file-details .file-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.meta-item svg {
  opacity: 0.6;
}

.download-section {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.download-btn {
  min-width: 200px;
}

/* Subscription Offer Card */
.subscription-offer-card {
  border-color: rgba(234, 179, 8, 0.3);
  margin-bottom: 1.5rem;
}

.offer-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.offer-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-icon.warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: var(--accent-warning);
}

.offer-header h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.offer-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.offer-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.offer-price {
  margin-bottom: 1.5rem;
}

.offer-price .amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.offer-price .period {
  color: var(--text-secondary);
}

/* Subscription Info Card */
.subscription-info-card {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
  margin-bottom: 1.5rem;
}

.subscription-info-card .subscription-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent-success);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.subscription-info-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* Security Info Card */
.security-info-card {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.security-info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.security-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.security-list li svg {
  color: var(--accent-success);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 1rem;
  }

  .container {
    padding: 1rem;
  }

  .home-page h1 {
    font-size: 2rem;
  }

  .home-page .subtitle {
    font-size: 1.1rem;
  }

  .hero-section {
    padding: 2rem 0 4rem;
  }

  .trust-badges {
    flex-direction: column;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-actions {
    flex-direction: column;
  }

  .deliveries-table {
    display: block;
    overflow-x: auto;
  }

  .steps-grid {
    gap: 3rem;
  }

  /* Dashboard responsive */
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-section .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  /* Upload responsive */
  .upload-page .page-header h1 {
    font-size: 1.5rem;
  }

  .link-box {
    flex-direction: column;
  }

  .link-box .btn {
    width: 100%;
  }

  /* Delivery responsive */
  .file-display {
    flex-direction: column;
    text-align: center;
  }

  .file-icon-large {
    margin: 0 auto;
  }

  .file-meta {
    justify-content: center;
  }

  .delivery-page .delivery-header h1 {
    display: block;
    margin-bottom: 0.5rem;
  }
}

/* ================================================
   WELCOME BACK PAGE - Modern Glassmorphism
   ================================================ */
.welcome-back-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.welcome-hero {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.welcome-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

.welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-greeting {
  margin-bottom: 1rem;
}

.welcome-label {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.welcome-greeting h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.welcome-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.welcome-quick-links {
  padding: 1.5rem;
  text-align: left;
}

.welcome-quick-links h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
}

.quick-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.quick-link-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.quick-link-icon.subscription {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--accent-success);
}

.quick-link-icon.upload {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.quick-link-icon.logout {
  background: rgba(100, 100, 100, 0.1);
  border-color: rgba(100, 100, 100, 0.2);
  color: var(--text-secondary);
}

.quick-link span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ================================================
   SUBSCRIPTION PAGE - Modern Glassmorphism
   ================================================ */
.subscription-page {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 0;
}

.subscription-page .back-link {
  display: block;
  margin-bottom: 1.5rem;
}

.subscription-page .back-link.centered {
  text-align: center;
}

.subscription-page .subscription-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.subscription-page-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-success);
}

.subscription-page .subscription-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subscription-page .subscription-header .subtitle {
  color: var(--text-secondary);
}

/* Active Subscription Card */
.subscription-active-card {
  padding: 2rem;
}

.active-status {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--accent-success);
}

.status-info h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.status-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.subscription-details-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.detail-row:not(:last-child) {
  border-bottom: 1px solid var(--glass-border);
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-label svg {
  opacity: 0.6;
}

.detail-value {
  font-weight: 600;
}

.warning-box {
  display: flex;
  gap: 1rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
}

.warning-icon {
  color: var(--accent-warning);
  flex-shrink: 0;
}

.warning-content strong {
  display: block;
  margin-bottom: 0.25rem;
}

.warning-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Subscription Offer Card (Page) */
.subscription-offer-card-page {
  padding: 2rem;
  text-align: center;
}

.offer-pricing {
  margin-bottom: 2rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.price-period {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.subscription-offer-card-page .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.subscription-offer-card-page .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.subscription-offer-card-page .feature-list li:last-child {
  border-bottom: none;
}

.subscription-offer-card-page .feature-list li svg {
  color: var(--accent-success);
  flex-shrink: 0;
}

.subscription-offer-card-page .btn-large {
  width: 100%;
  margin-bottom: 1rem;
}

.stripe-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.stripe-badge svg {
  opacity: 0.6;
}

/* ================================================
   PLAN CARDS - RuffyPRO / RuffyMAX
   ================================================ */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.plan-card {
  padding: 0;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-card-image {
  width: 100%;
  /*height: 180px;*/
  overflow: hidden;
}

.plan-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plan-card-content .feature-list {
  flex: 1;
}

.plan-card-content .btn-large {
  margin-top: auto;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.plan-card.recommended {
  border-color: rgba(168, 85, 247, 0.4);
  overflow: hidden;
}

.plan-card.recommended::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #ec4899, #a855f7);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.recommended-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.plan-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.plan-badge.pro {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(249, 115, 22, 0.2));
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.plan-badge.max {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  color: #e879f9;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.plan-pricing {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.plan-pricing .price-amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.plan-card.pro .plan-pricing .price-amount {
  color: #f97316;
}

.plan-card.max .plan-pricing .price-amount {
  color: #e879f9;
}

.plan-pricing .price-period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.plan-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.plan-card .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--glass-border);
}

.plan-card .feature-list li:last-child {
  border-bottom: none;
}

.plan-card .feature-list li svg {
  color: var(--accent-success);
  flex-shrink: 0;
}

.plan-card .btn-large {
  width: 100%;
}

.btn-max {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-max:hover {
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.4);
}

/* Upgrade Hint */
.upgrade-hint {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.upgrade-hint p {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
}

.upgrade-hint .btn-secondary {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #e879f9;
}

.upgrade-hint .btn-secondary:hover {
  background: rgba(168, 85, 247, 0.25);
}

/* Dashboard MAX tier styling */
.subscription-status-card.max-tier {
  border-color: rgba(168, 85, 247, 0.3);
}

.subscription-icon.max {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.upgrade-hint-small {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.upgrade-link {
  color: #e879f9;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.upgrade-link:hover {
  color: #f0abfc;
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-greeting h1 {
    font-size: 1.75rem;
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-avatar {
    width: 80px;
    height: 80px;
  }

  .subscription-page {
    padding: 1rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }
}

/* ============================================
   ZIP Contents Card
   ============================================ */

.zip-contents-card {
  padding: 0;
  overflow: visible;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.zip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.zip-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.zip-header h3 svg {
  color: var(--accent-primary);
}

.file-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

.zip-file-list {
  position: relative;
}

.zip-file-list::-webkit-scrollbar {
  width: 6px;
}

.zip-file-list::-webkit-scrollbar-track {
  background: transparent;
}

.zip-file-list::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}

.zip-file-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.zip-file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
  position: relative;
}

.zip-file-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.zip-file-item:last-child {
  border-bottom: none;
  overflow: visible;
}

.zip-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  flex-shrink: 0;
}

.zip-file-icon svg {
  color: var(--text-secondary);
}

.zip-file-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.zip-file-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zip-file-size {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ZIP File Hosting Feature */
.zip-file-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-host {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 6px;
  color: var(--accent-primary-light);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-host:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
}

.btn-host:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  color: var(--accent-success);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-link:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
}

.btn-copy-link.copied {
  background: var(--accent-success);
  color: white;
}

.btn-cancel-host {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: var(--accent-danger);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cancel-host:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-cancel-host:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hosted state for ZIP file item */
.zip-file-item.hosted {
  background: rgba(34, 197, 94, 0.08);
}

.zip-file-item.hosted .zip-file-icon {
  background: rgba(34, 197, 94, 0.15);
}

.zip-file-item.hosted .zip-file-icon svg {
  color: var(--accent-success);
}

/* Tooltip for hosting info */
.hosting-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: help;
  flex-shrink: 0;
}

.hosting-tooltip svg {
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
}

.hosting-tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  right: -10px;
  top: calc(100% + 8px);
  width: 280px;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  z-index: 9999;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hosting-tooltip .tooltip-text::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 14px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent var(--bg-secondary) transparent;
}

.hosting-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.hosting-tooltip.max-required svg {
  color: #e879f9;
}

.hosting-tooltip.max-required .tooltip-text {
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.hosting-tooltip.max-required .tooltip-text a {
  color: #e879f9;
  text-decoration: underline;
}

.btn-host.disabled {
  background: rgba(100, 100, 100, 0.1);
  border-color: rgba(100, 100, 100, 0.2);
  color: var(--text-secondary);
}

.btn-host.disabled:hover {
  background: rgba(100, 100, 100, 0.1);
  border-color: rgba(100, 100, 100, 0.2);
}

/* Responsive for ZIP contents */
@media (max-width: 768px) {
  .zip-header {
    padding: 1rem;
  }

  .zip-file-item {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .zip-file-icon {
    width: 32px;
    height: 32px;
  }

  .zip-file-name {
    font-size: 0.85rem;
  }

  .zip-file-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
    padding-left: 44px;
  }

  .hosting-tooltip .tooltip-text {
    right: auto;
    left: -100px;
    width: 240px;
  }

  .hosting-tooltip .tooltip-text::after {
    right: auto;
    left: 110px;
  }
}

/* ============================================
   PROMO CODE PAGES
   ============================================ */

.promo-admin-page,
.promo-redeem-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.promo-admin-page .page-header,
.promo-redeem-page .page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.promo-admin-page .page-header.centered,
.promo-redeem-page .page-header.centered {
  text-align: center;
}

.promo-admin-page .header-icon,
.promo-redeem-page .header-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
}

.promo-admin-page .page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.promo-admin-page .subtitle {
  color: var(--text-secondary);
}

/* Create Code Card */
.create-code-card {
  margin-bottom: 1.5rem;
}

.create-code-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.create-code-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.create-code-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.create-code-form .form-group {
  margin-bottom: 0;
}

/* Generated Code Card */
.generated-code-card {
  text-align: center;
  margin-bottom: 1.5rem;
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.generated-code-card .success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-success);
}

.generated-code-card h3 {
  margin-bottom: 1rem;
  color: var(--accent-success);
}

.generated-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.generated-code-display code {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
}

/* Codes List Card */
.codes-list-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.data-table th {
  background: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.promo-code {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

/* Redeem Page */
.redeem-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
}

.redeem-form .form-group input {
  padding: 1.25rem;
}

/* Active Promo Card */
.active-promo-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
}

.promo-status {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.promo-status .status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-status .status-icon.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--accent-success);
}

.promo-status h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.promo-status p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.promo-details {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
}

.promo-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.promo-details .detail-row span {
  color: var(--text-secondary);
}

.promo-details .detail-row strong {
  color: var(--text-primary);
}

/* Success Card */
.success-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.success-card .success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-success);
}

.success-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent-success);
}

.success-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Dropdown Badge for Promo */
.dropdown-badge.promo {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
  .promo-admin-page,
  .promo-redeem-page {
    padding: 1rem;
  }

  .create-code-form .form-row {
    grid-template-columns: 1fr;
  }

  .generated-code-display {
    flex-direction: column;
  }

  .generated-code-display code {
    font-size: 1.5rem;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.625rem 0.5rem;
  }
}
