/* ============================================
   COMMON SHARED STYLES
   Used across account, settings, admin, and admin-user pages
   ============================================ */

/* CSS Variables */
:root {
  --bg-dark: #f5f5f5;
  --card-dark: rgba(255, 255, 255, 0.95);
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-dark: #e0e0e0;
  --accent-color: #ff5722;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --blur-amount: 20px;
  --heading-weight: 800;
  --body-weight: 400;
  --input-bg: #ffffff;
  --theme-hue: var(--accent-color);
  --button-text: white;
}

/* Base Body Styles */
body {
  margin: 0;
  font-family: "Google Sans Flex", sans-serif;
  color: var(--text-primary);
  background-color: #f5f5f5;
  background-attachment: fixed;
  min-height: 100vh;
  padding: 2em;
}

/* ============================================
   PAGE HEADER (Shared by account, admin, and settings pages)
   ============================================ */

/* Base header styles - shared by account-header and admin-header */
.account-header,
.admin-header {
  margin-top: 2em;
  margin-bottom: 2em;
}

.account-header h1,
.admin-header h1 {
  font-size: 2.5em;
  margin: 0;
  color: var(--text-primary);
  font-weight: var(--heading-weight);
}

.account-header p,
.admin-header p {
  color: var(--text-secondary);
  margin: 0 0 1em 0;
}

/* Account-specific header elements */
.account-header-top {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 0.5em;
}

.account-tier-badge {
  display: inline-block;
  padding: 0.4em 1em;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2em;
}

.account-tier-badge.tier-free {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.account-tier-badge.tier-pro {
  background: linear-gradient(135deg, var(--accent-color), #e64a19);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.account-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background-color: var(--card-dark);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.account-user {
  color: var(--text-primary);
  font-weight: 500;
}

.account-header-actions {
  display: flex;
  gap: 1em;
  align-items: center;
}

.settings-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5em 1em;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 0.9em;
  box-sizing: border-box;
}

.settings-link:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
}

.whatsapp-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5em 1em;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 0.9em;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  text-align: center;
}

.whatsapp-link:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
}

.whatsapp-link .whatsapp-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.logout-link {
  color: var(--accent-color);
  text-decoration: none;
  padding: 0.5em 1em;
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  transition: all 0.2s;
  box-sizing: border-box;
}

.logout-link:hover {
  background-color: rgba(255, 87, 34, 0.2);
}

/* ============================================
   STATS GRID & CARDS
   ============================================ */

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

.stat-card {
  background-color: var(--card-dark);
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-label,
.stat-label {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .stat-value,
.stat-value {
  font-size: 2em;
  font-weight: 800;
  color: var(--accent-color);
  margin: 0;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section-header {
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--border-dark);
  width: 100%;
  box-sizing: border-box;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: var(--text-primary);
}

/* Common section container */
.tracks-section,
.user-section,
.users-section,
.gates-section,
.files-section {
  background-color: var(--card-dark);
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 2em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.tracks-section h2,
.user-section h2,
.users-section h2,
.gates-section h2,
.files-section h2 {
  margin: 0 0 1em 0;
  color: var(--text-primary);
}

/* ============================================
   TABLE STYLES
   ============================================ */

/* Table wrapper for horizontal scrolling */
.gates-table-wrapper,
.users-table-wrapper,
.files-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
  margin-top: 1em;
}

/* Common table styles */
.gates-table,
.tracks-table,
.users-table,
.files-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  margin-top: 1em;
}

.gates-table th,
.tracks-table th,
.users-table th,
.files-table th {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  padding: 1em;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-dark);
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

.gates-table td,
.tracks-table td,
.users-table td,
.files-table td {
  padding: 1em;
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-primary);
}

.gates-table tr:hover,
.tracks-table tr:hover,
.users-table tr:hover,
.files-table tr:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.gates-table a,
.tracks-table a,
.users-table a,
.files-table a {
  color: var(--accent-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

.gates-table a:hover,
.tracks-table a:hover,
.users-table a:hover,
.files-table a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Actions column container */
.gates-table td:last-child {
  white-space: nowrap;
  text-align: left;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
}

.badge-success {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.badge-secondary {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

.status-badge {
  display: inline-block;
  padding: 0.35em 0.75em;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}

.status-active {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.status-banned {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid #f44336;
}

/* ============================================
   ACTION BUTTONS & LINKS
   ============================================ */

.action-link {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: rgba(255, 87, 34, 0.2);
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9em;
}

.action-link:hover {
  background-color: rgba(255, 87, 34, 0.3);
  transform: translateY(-1px);
}

.action-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5em;
  margin-left: 0;
  flex-shrink: 0;
  line-height: 1;
  vertical-align: middle;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.05);
}

.action-button:last-child {
  margin-right: 0;
}

.action-button:hover {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.edit-button {
  color: var(--warning-color);
}

.duplicate-button {
  color: var(--text-primary);
}

.delete-button {
  color: #f44336;
}

/* ============================================
   GATE LINK CELL
   ============================================ */

.gate-link-cell {
  display: flex;
  align-items: center;
  gap: 0.5em;
  max-width: 300px;
  flex-wrap: nowrap;
}

.gate-url-input {
  flex: 1;
  padding: 0.5em 0.75em;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-primary);
  font-size: 0.85em;
  font-family: 'Courier New', monospace;
  cursor: text;
  transition: all 0.2s ease;
  min-width: 0;
  height: 32px;
  box-sizing: border-box;
  line-height: 1.4;
}

.gate-url-input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 87, 34, 0.05);
  box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.15);
}

.copy-btn {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  line-height: 1;
}

.copy-btn:hover {
  background: rgba(255, 87, 34, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.05);
}

.open-btn {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  line-height: 1;
  margin-left: 0;
}

.open-btn:hover {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4CAF50;
  color: #4CAF50;
  transform: scale(1.05);
}

/* ============================================
   SLUG LINK
   ============================================ */

.slug-link {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--accent-color);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 3em;
  color: var(--text-secondary);
}

.empty-state p {
  margin: 0 0 1.5em 0;
  font-size: 1.1em;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  animation: modalFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(12px);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    backdrop-filter: blur(12px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
}

.modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
  margin: 3% auto;
  border-radius: 20px;
  width: 95%;
  max-width: 1000px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  color: var(--text-primary);
  backdrop-filter: blur(30px);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2em 2em 1.5em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 2em;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.close-button {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 600;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.close-button:hover,
.close-button:focus {
  background: rgba(255, 87, 34, 0.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
}

/* Modal Body */
.modal-body {
  padding: 2em;
}

/* ============================================
   FORM STYLES
   ============================================ */

/* Card styles (for modals) */
.card {
  background-color: var(--card-dark);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.card a {
  color: var(--accent-color);
}

.card a:hover {
  opacity: 0.8;
}

/* ============================================
   SHARED FORM STYLES
   Used across settings, gate forms, and other pages
   ============================================ */

.form-group {
  margin-bottom: 1.5em;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5em;
  font-size: 0.95em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.field-hint {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.85em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.form-input {
  width: 100%;
  padding: 0.875em 1em;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-primary);
  font-size: 1em;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 87, 34, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.15);
  position: relative;
}

.form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1em;
  margin-top: 2em;
  padding-top: 2em;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--accent-color), #e64a19);
  color: white;
  border: none;
  padding: 1em 2em;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-text {
  z-index: 1;
}

.btn-spinner {
  z-index: 1;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cancel-button {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
  padding: 1em 1.5em;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 100px;
  max-width: 120px;
}

.cancel-button:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
  padding: 0.75em 1.5em;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Responsive form styles */
@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
    gap: 0.75em;
  }

  .btn-primary,
  .cancel-button {
    width: 100%;
  }
}

/* Form inputs within cards */
.card form {
  margin-top: 20px;
}

.card label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  color: var(--text-primary);
}

.card input[type="text"],
.card input[type="url"],
.card input[type="email"],
.card input[type="file"] {
  width: calc(100% - 22px);
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border-dark);
  border-radius: 5px;
  background-color: var(--input-bg);
  color: var(--text-primary);
}

.card input[type="text"]:focus,
.card input[type="url"]:focus,
.card input[type="email"]:focus {
  outline: none;
  border-color: var(--theme-hue);
  box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

.card input[type="checkbox"] {
  accent-color: var(--theme-hue);
}

.card button {
  width: auto;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  margin-right: 10px;
}

.card button[type="submit"] {
  background-color: var(--theme-hue);
  color: var(--button-text);
}

.card button[type="button"] {
  background-color: #e0e0e0;
  color: white;
}

.card button[type="button"]:hover {
  background-color: #d0d0d0;
}

button {
  background-color: var(--theme-hue);
  width: 100%;
  color: var(--button-text);
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.82;
}

/* Gate form styles (file input, checkbox, form sections, buttons) moved to gate-form.css */

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  body {
    padding: 1em;
    box-sizing: border-box;
  }

  .account-header,
  .admin-header {
    margin-top: 1.5em;
  }

  .account-header h1,
  .admin-header h1 {
    font-size: 2em;
  }

  .account-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }

  .account-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
  }

  .settings-link,
  .whatsapp-link,
  .logout-link {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    width: 100%;
    box-sizing: border-box;
  }

  /* Scrollable wrapper for tables - symmetric borders on both sides */
  .gates-table-wrapper,
  .users-table-wrapper,
  .files-table-wrapper {
    margin-left: -1em;
    margin-right: -1em;
    padding-left: 1em;
    padding-right: 1em;
    width: calc(100% + 2em);
    position: relative;
    box-sizing: border-box;
  }

  /* Clip table wrapper overflow to respect section border-radius on both sides */
  .tracks-section,
  .user-section,
  .users-section,
  .gates-section,
  .files-section {
    overflow: hidden;
  }

  .gates-table-wrapper::-webkit-scrollbar,
  .users-table-wrapper::-webkit-scrollbar,
  .files-table-wrapper::-webkit-scrollbar {
    height: 8px;
  }

  .gates-table-wrapper::-webkit-scrollbar-track,
  .users-table-wrapper::-webkit-scrollbar-track,
  .files-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
  }

  .gates-table-wrapper::-webkit-scrollbar-thumb,
  .users-table-wrapper::-webkit-scrollbar-thumb,
  .files-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
  }

  .gates-table-wrapper::-webkit-scrollbar-thumb:hover,
  .users-table-wrapper::-webkit-scrollbar-thumb:hover,
  .files-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #e64a19;
  }

  .gates-table,
  .tracks-table,
  .users-table,
  .files-table {
    font-size: 0.9em;
    min-width: 700px;
  }

  .gates-table th,
  .gates-table td,
  .tracks-table th,
  .tracks-table td,
  .users-table th,
  .users-table td,
  .files-table th,
  .files-table td {
    padding: 0.75em 0.5em;
  }

  /* Gate form responsive styles moved to gate-form.css */

  .modal-content {
    width: 95%;
    margin: 2% auto;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.5em;
  }

  .modal-header h2 {
    font-size: 1.5em;
  }

  .modal-body {
    padding: 1.5em;
  }
}

/* Extra small screens - phones in portrait */
@media (max-width: 480px) {
  body {
    padding: 0.5em;
  }

  .gates-table-wrapper,
  .users-table-wrapper,
  .files-table-wrapper {
    margin-left: -0.5em;
    margin-right: -0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    width: calc(100% + 1em);
    position: relative;
  }

  .gates-table,
  .tracks-table,
  .users-table {
    font-size: 0.8em;
    min-width: 600px;
  }

  .files-table {
    font-size: 0.8em;
    min-width: 500px;
  }

  .gates-table th,
  .gates-table td,
  .tracks-table th,
  .tracks-table td,
  .users-table th,
  .users-table td,
  .files-table th,
  .files-table td {
    padding: 0.5em 0.4em;
  }

  .gate-link-cell {
    max-width: 200px;
    gap: 0.4em;
  }

  .gate-url-input {
    font-size: 0.75em;
    padding: 0.4em 0.5em;
    height: 28px;
  }

  .copy-btn,
  .open-btn {
    width: 28px;
    height: 28px;
    font-size: 0.9em;
    flex-shrink: 0;
  }

  .action-button {
    width: 28px;
    height: 28px;
    font-size: 1em;
    margin-right: 0.4em;
  }

  .action-button:last-child {
    margin-right: 0;
  }
}

/* ============================================
   NOTIFICATION STYLES
   Shared across landing, account, settings pages
   ============================================ */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 450px;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(400px);
  }
}

.success-notification {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
  backdrop-filter: blur(20px);
}

.error-notification {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.95), rgba(198, 40, 40, 0.95));
  backdrop-filter: blur(20px);
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding: 1.25em 1.5em;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.notification-icon {
  font-size: 1.75em;
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
  color: white;
}

.notification-text strong {
  display: block;
  font-size: 1.1em;
  margin-bottom: 0.25em;
  font-weight: 700;
}

.notification-text p {
  margin: 0;
  font-size: 0.9em;
  opacity: 0.95;
  line-height: 1.4;
}

.notification-close {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 1.5em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

