/* ========================================
   DocManager Pro - SaaS Document Management
   Modern & Professional UI
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius: 8px;
  --radius-lg: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Page Container --- */
.page { display: none; }
.page.active { display: flex; }

#auth-page.active {
  display: flex; align-items: flex-start; justify-content: center;
  min-height: 100vh; background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #7c3aed 100%);
  padding-top: 40px; padding-bottom: 60px;
}

#app-page.active {
  display: flex; flex-direction: column; min-height: 100vh;
}

/* ========================================
   Language Selector (top-right)
   ======================================== */
.lang-selector {
  position: fixed; top: 16px; right: 16px; z-index: 200;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25); border-radius: 20px;
  color: var(--white); font-size: 13px; font-weight: 500;
  cursor: pointer; backdrop-filter: blur(8px);
  transition: background .2s;
}
.lang-btn:hover { background: rgba(255,255,255,.25); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-name { white-space: nowrap; }
.lang-arrow { font-size: 10px; margin-left: 2px; }

.lang-dropdown {
  display: none; position: absolute; top: 44px; right: 0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); min-width: 200px; max-height: 320px;
  overflow-y: auto; z-index: 201; padding: 4px 0;
}
.lang-dropdown.show { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 14px; color: var(--gray-700);
  cursor: pointer; transition: background .15s;
}
.lang-option:hover { background: var(--gray-100); }
.lang-option.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* Inline lang selector (app navbar) */
.lang-selector-inline { position: relative; }
.lang-btn-sm {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 16px; font-size: 14px; cursor: pointer; transition: background .2s;
}
.lang-btn-sm:hover { background: var(--gray-200); }
.lang-dropdown-inline {
  display: none; position: absolute; top: 36px; right: 0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); min-width: 180px; max-height: 300px;
  overflow-y: auto; z-index: 201; padding: 4px 0;
}
.lang-dropdown-inline.show { display: block; }

/* ========================================
   Auth Page - Hero Section
   ======================================== */
.auth-container {
  width: 100%; max-width: 900px; padding: 24px;
  display: flex; flex-direction: column; align-items: center;
}

.hero {
  text-align: center; padding: 60px 20px 40px;
  max-width: 640px;
}
.hero-title {
  color: var(--white); font-size: 48px; font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 12px;
}
.hero-subtitle {
  color: rgba(255,255,255,.85); font-size: 20px; font-weight: 500;
  margin-bottom: 12px;
}
.hero-desc {
  color: rgba(255,255,255,.6); font-size: 15px;
  margin-bottom: 32px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.hero-actions .btn-outline {
  background: rgba(255,255,255,.1); color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6);
}

/* ========================================
   Auth Card (small, centered)
   ======================================== */
.auth-section {
  width: 100%; max-width: 420px; margin: 0 auto 48px;
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px 28px 24px; box-shadow: var(--shadow-lg);
}
.auth-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--gray-200); }
.auth-tabs .tab-btn {
  flex: 1; padding: 10px; border: none; background: none;
  font-size: 14px; font-weight: 600; color: var(--gray-400); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s;
}
.auth-tabs .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.auth-form { display: none; }
.auth-form.active { display: block; }

/* ========================================
   Plans Section (separate, below auth)
   ======================================== */
.plans-section {
  width: 100%; max-width: 900px; margin-bottom: 48px;
}
.section-title {
  text-align: center; color: var(--white); font-size: 28px;
  font-weight: 700; margin-bottom: 6px;
}
.section-subtitle {
  text-align: center; color: rgba(255,255,255,.6); font-size: 15px;
  margin-bottom: 32px;
}
.plans-grid-front {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.plan-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 2px solid var(--gray-200);
  padding: 28px 24px; text-align: center; transition: all .3s;
  position: relative;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.popular {
  border-color: var(--primary); background: linear-gradient(180deg, #eff6ff 0%, var(--white) 100%);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white); font-size: 12px;
  padding: 4px 16px; border-radius: 12px; font-weight: 700;
}
.plan-header h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--gray-900); margin-bottom: 16px; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--gray-400); }
.plan-features { list-style: none; text-align: left; margin-bottom: 20px; }
.plan-features li {
  padding: 7px 0; font-size: 14px; color: var(--gray-600);
  display: flex; align-items: center; gap: 8px;
}
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.plans-note {
  text-align: center; margin-top: 24px; font-size: 13px;
  color: rgba(255,255,255,.5); line-height: 1.5;
}

/* ========================================
   Auth Footer
   ======================================== */
.auth-footer {
  text-align: center; padding: 20px 0;
  color: rgba(255,255,255,.45); font-size: 13px;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
  width: 100%; max-width: 900px; margin: 0 auto 48px;
  text-align: center;
}
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 32px;
}
.feature-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; transition: all .3s;
  backdrop-filter: blur(8px);
}
.feature-card:hover {
  background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3);
  transform: translateY(-4px);
}
.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature-card h3 {
  color: var(--white); font-size: 16px; font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.5;
}

/* ========================================
   Forgot Password
   ======================================== */
.forgot-link {
  display: block; text-align: center; margin-top: 12px;
  font-size: 13px; color: var(--primary); text-decoration: none;
  font-weight: 500; transition: color .2s;
}
.forgot-link:hover { color: var(--primary-dark); text-decoration: underline; }
.forgot-desc {
  color: var(--gray-500); font-size: 13px; text-align: center;
  margin-bottom: 16px; line-height: 1.5;
}
.forgot-success {
  background: #dcfce7; color: var(--success); font-size: 13px;
  padding: 10px 14px; border-radius: var(--radius);
  text-align: center; margin-bottom: 12px; font-weight: 500;
}

/* ========================================
   Forms
   ======================================== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); font-size: 14px; transition: border-color .2s;
  background: var(--white);
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-error { color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 20px; }
.register-hint { color: var(--gray-500); font-size: 12px; text-align: center; margin-top: 12px; line-height: 1.5; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* --- Navbar --- */
.navbar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 0 24px; height: 56px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-weight: 700; font-size: 17px; color: var(--gray-900);
}
.logo-icon-sm {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: var(--white);
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius); font-size: 14px;
  color: var(--gray-600); text-decoration: none; font-weight: 500; transition: all .2s;
}
.nav-link:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-link.active { background: var(--primary-light); color: var(--primary); }
.nav-user { display: flex; align-items: center; gap: 12px; }
.user-name { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.user-plan {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary); font-weight: 600;
}

/* --- App Pages --- */
.app-page { display: none; padding: 24px; max-width: 1200px; margin: 0 auto; width: 100%; }
.app-page.active { display: block; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); }
.page-subtitle { color: var(--gray-500); font-size: 14px; margin-top: 4px; }

/* --- Cards --- */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
}
.card-header h3 { font-size: 16px; font-weight: 600; }
.card-body { padding: 20px; }

/* --- Stats Grid --- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.stat-icon.blue { background: #dbeafe; }
.stat-icon.green { background: #dcfce7; }
.stat-icon.orange { background: #fef3c7; }
.stat-icon.purple { background: #f3e8ff; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--gray-900); }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* --- Dashboard Grid --- */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }

/* --- Progress --- */
.progress-bar {
  height: 8px; background: var(--gray-200); border-radius: 4px;
  overflow: hidden; margin: 12px 0;
}
.progress-fill {
  height: 100%; background: var(--primary); border-radius: 4px;
  transition: width .5s ease;
}
.progress-fill.orange { background: var(--warning); }
.storage-detail {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--gray-600);
}
.upload-stats { display: flex; gap: 32px; margin-bottom: 8px; }
.upload-stat { display: flex; flex-direction: column; }
.upload-label { font-size: 12px; color: var(--gray-500); }
.upload-value { font-size: 20px; font-weight: 700; }

/* --- Category List --- */
.category-list { display: flex; flex-direction: column; gap: 12px; }
.category-item { display: flex; align-items: center; gap: 12px; }
.category-name { font-size: 14px; color: var(--gray-700); min-width: 50px; }
.category-bar {
  flex: 1; height: 20px; background: var(--gray-100); border-radius: 10px;
  overflow: hidden; position: relative;
}
.category-fill {
  height: 100%; background: var(--primary); border-radius: 10px;
  transition: width .5s ease;
}
.category-count { font-size: 13px; color: var(--gray-500); font-weight: 600; min-width: 30px; }

/* --- Files Toolbar --- */
.files-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.toolbar-left select, .toolbar-left input {
  padding: 8px 12px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); font-size: 13px;
}
#search-input { width: 200px; }
#sort-select { padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 13px; }

/* --- Files List --- */
.files-table {
  width: 100%; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  overflow: hidden;
}
.files-table table { width: 100%; border-collapse: collapse; }
.files-table th {
  text-align: left; padding: 12px 16px; font-size: 12px;
  font-weight: 600; color: var(--gray-500); text-transform: uppercase;
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
}
.files-table td {
  padding: 12px 16px; font-size: 14px; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.files-table tr:hover td { background: var(--gray-50); }
.file-actions { display: flex; gap: 8px; }
.file-actions button {
  padding: 4px 10px; font-size: 12px; border: 1px solid var(--gray-300);
  background: var(--white); border-radius: 4px; cursor: pointer; transition: all .2s;
}
.file-actions button:hover { background: var(--gray-100); }
.file-actions .btn-danger-text { color: var(--danger); border-color: transparent; }
.file-actions .btn-danger-text:hover { background: #fef2f2; }

/* --- Pagination --- */
.files-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.files-pagination button {
  padding: 6px 12px; border: 1px solid var(--gray-300); background: var(--white);
  border-radius: var(--radius); font-size: 13px; cursor: pointer;
}
.files-pagination button.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.files-pagination button:disabled { opacity: .5; cursor: default; }

/* --- Empty State --- */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--gray-400);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; }

/* --- Plans Grid (inside subscription page) --- */
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 24px;
}
.plans-grid .plan-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 2px solid var(--gray-200);
  padding: 28px 24px; text-align: center; transition: all .3s;
  position: relative;
}
.plans-grid .plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plans-grid .plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.plans-grid .plan-card.featured::before {
  content: attr(data-badge); position: absolute; top: 12px; right: 12px;
  background: var(--primary); color: var(--white); font-size: 11px;
  padding: 3px 10px; border-radius: 10px; font-weight: 600;
}
.plans-grid .plan-name { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.plans-grid .plan-price { margin-bottom: 20px; }
.plans-grid .plan-price .amount { font-size: 40px; font-weight: 800; color: var(--gray-900); }
.plans-grid .plan-price .period { font-size: 14px; color: var(--gray-500); }
.plans-grid .plan-features { list-style: none; text-align: left; margin-bottom: 24px; }
.plans-grid .plan-features li {
  padding: 8px 0; font-size: 14px; color: var(--gray-600);
  display: flex; align-items: center; gap: 8px;
}
.plans-grid .plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; }

.current-sub-card {
  background: var(--primary-light); border-radius: var(--radius-lg);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
}
.current-sub-card .sub-info { font-size: 14px; color: var(--primary-dark); }

/* --- Modal --- */
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: var(--white); border-radius: var(--radius-lg);
  width: 90%; max-width: 480px; box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
  background: none; border: none; font-size: 24px; color: var(--gray-400);
  cursor: pointer; padding: 0; line-height: 1;
}
.modal-body { padding: 24px; }
.upload-dropzone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; color: var(--gray-400);
  cursor: pointer; transition: border-color .2s;
}
.upload-dropzone:hover { border-color: var(--primary); color: var(--primary); }
.upload-dropzone input[type="file"] { display: none; }

/* --- Admin --- */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--gray-200); padding-bottom: 0; }
.admin-tabs .tab-btn {
  padding: 10px 20px; border: none; background: none;
  font-size: 14px; font-weight: 600; color: var(--gray-400); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s;
}
.admin-tabs .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* --- Toast --- */
.toast {
  position: fixed; bottom: 24px; right: 24px; padding: 12px 20px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  color: var(--white); z-index: 9999; transition: opacity .3s; opacity: 0; pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }

/* --- Trash --- */
.trash-toggle { margin-top: 16px; }
.trash-list { margin-top: 16px; }

/* ========================================
   RTL Support (Arabic)
   ======================================== */
[dir="rtl"] body {
  direction: rtl; text-align: right;
}
[dir="rtl"] .lang-selector { right: auto; left: 16px; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .lang-dropdown-inline { right: auto; left: 0; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .nav-user { flex-direction: row-reverse; }
[dir="rtl"] .plan-features { text-align: right; }
[dir="rtl"] .plan-features li { flex-direction: row-reverse; }
[dir="rtl"] .plans-grid .plan-features { text-align: right; }
[dir="rtl"] .plans-grid .plan-features li { flex-direction: row-reverse; }
[dir="rtl"] .files-toolbar { flex-direction: row-reverse; }
[dir="rtl"] .file-actions { flex-direction: row-reverse; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
[dir="rtl"] .stats-grid .stat-card { flex-direction: row-reverse; }
[dir="rtl"] .toast { right: auto; left: 24px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid-front { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 24px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-user .user-name { display: none; }
  .page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .files-toolbar { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .files-table { overflow-x: auto; }
  .plans-grid-front { padding: 0 8px; }
  .features-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
}
