@import "global.css";
/* --- Vyra Global Text Selection (#ffbe8e) --- */
::selection {
  background-color: #ffbe8e !important;
  color: #0d0d14 !important;
}
::-moz-selection {
  background-color: #ffbe8e !important;
  color: #0d0d14 !important;
}

/* =========================================================================
   VYRA APP STORE — FEUILLE DE STYLE PRINCIPALE
   Reprend directement le design system du dashboard de Vyra :
   - Fond clair & lumineux (#F7F6F4), surfaces blanches (#FFFFFF)
   - Cartes épurées, ombres douces (0 6px 20px rgba(20,20,26,0.06))
   - Couleur d'accentuation Vyra : #ffbe8e (utilisée avec parcimonie)
   - Typographies Sora / NewTitle (titres) & Inter (textes)
   - Responsive complet : Mobile, Tablette, Desktop
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. LAYOUT DU STORE & HÉROS
   ------------------------------------------------------------------------- */
.apps-hero {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.apps-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(255, 190, 142, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.apps-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.apps-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-tint);
  border: 1px solid rgba(224, 138, 73, 0.25);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 16px;
}

.apps-hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 8px var(--accent-strong);
}

.apps-hero h1 {
  font-size: 2.2rem;
  line-height: 1.22;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.apps-hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.apps-search-wrap {
  position: relative;
  max-width: 620px;
  display: flex;
  align-items: center;
}

.apps-search-input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 48px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s var(--ease);
}

.apps-search-input:focus {
  background: var(--bg-surface);
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.apps-search-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.apps-search-kbd {
  position: absolute;
  right: 14px;
  padding: 3px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
}

/* Quick search dropdown */
.apps-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-ambient);
  z-index: 50;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.apps-search-dropdown.is-open {
  display: block;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

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

.search-dropdown-item:hover {
  background: var(--bg-page);
}

.search-dropdown-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-dropdown-info {
  flex: 1;
  min-width: 0;
}

.search-dropdown-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.search-dropdown-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-price {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-strong);
}

/* -------------------------------------------------------------------------
   2. CATÉGORIES & FILTRES
   ------------------------------------------------------------------------- */
.apps-categories-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 28px;
  scrollbar-width: thin;
}

.apps-categories-bar::-webkit-scrollbar {
  height: 4px;
}

.apps-categories-bar::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.app-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.app-cat-pill svg {
  width: 16px;
  height: 16px;
}

.app-cat-pill:hover {
  border-color: var(--accent-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.app-cat-pill.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 20, 26, 0.15);
}

.app-cat-count {
  font-size: 0.75rem;
  padding: 1px 6px;
  background: rgba(20, 20, 26, 0.08);
  border-radius: 999px;
  color: var(--text-primary);
}

.app-cat-pill.is-active .app-cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Control Bar (Filters, Sorter, View Switcher) */
.apps-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 28px;
}

.apps-control-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.apps-select {
  height: 40px;
  padding: 0 36px 0 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s var(--ease);
}

.apps-select:hover, .apps-select:focus {
  border-color: var(--accent-strong);
  background-color: var(--bg-surface);
}

.apps-results-count {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   3. CARTES D'APPLICATIONS (GRID & LIST)
   ------------------------------------------------------------------------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-ambient);
  border-color: rgba(224, 138, 73, 0.4);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.app-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20, 20, 26, 0.05);
}

.app-card-icon svg {
  width: 28px;
  height: 28px;
}

.app-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.app-card-name {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.app-card-developer {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-card-developer .verified-badge {
  display: inline-flex;
  color: #10b981;
}

.app-card-developer .official-badge {
  display: inline-flex;
  color: var(--accent-strong);
  font-weight: 600;
}

.app-card-tagline {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.84rem;
}

.app-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-primary);
}

.app-card-rating svg {
  width: 15px;
  height: 15px;
  color: #f59e0b;
  fill: #f59e0b;
}

.app-card-reviews-count {
  color: var(--text-muted);
  font-weight: 400;
}

.app-card-pricing {
  font-weight: 600;
  color: var(--text-primary);
}

.app-card-pricing.is-free {
  color: #10b981;
}

.app-card-pricing .price-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.app-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  background: var(--accent-tint);
  border: 1px solid rgba(224, 138, 73, 0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-strong);
}

/* -------------------------------------------------------------------------
   4. SECTIONS DU STORE (POPULAIRES, RECOMMANDÉES, DÉVELOPPEURS)
   ------------------------------------------------------------------------- */
.apps-section {
  margin-bottom: 48px;
}

.apps-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.apps-section-title {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.apps-section-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.apps-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-strong);
  transition: transform 0.15s var(--ease);
}

.apps-section-link:hover {
  transform: translateX(3px);
}

/* Spotlight Feature Banner */
.apps-spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-ambient);
  align-items: center;
}

.apps-spotlight-info h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.apps-spotlight-info p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.apps-spotlight-media img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-ambient);
  border: 1px solid var(--border-soft);
}

/* Developers Spotlight Grid */
.devs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.dev-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
}

.dev-card:hover {
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.dev-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(20,20,26,0.08);
}

.dev-card-name {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-card-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   5. FICHE DÉTAILLÉE D'UNE APPLICATION (APP DETAIL)
   ------------------------------------------------------------------------- */
.app-detail-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.app-detail-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-detail-icon {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.app-detail-icon svg {
  width: 44px;
  height: 44px;
}

.app-detail-title-group h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.app-detail-dev-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.app-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-btn-install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 14px rgba(20, 20, 26, 0.15);
}

.app-btn-install:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.app-btn-installed {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: none;
  cursor: default;
}

/* Detail Main Layout (2 Columns) */
.app-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

/* Screenshots Gallery */
.app-gallery-main {
  margin-bottom: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.app-gallery-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  cursor: zoom-in;
  border: 1px solid var(--border-soft);
}

.app-gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.app-gallery-thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s var(--ease);
}

.app-gallery-thumb.is-active, .app-gallery-thumb:hover {
  border-color: var(--accent-strong);
  transform: translateY(-2px);
}

/* Detail Sections */
.app-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.app-detail-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.app-detail-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Highlights list */
.app-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.app-highlights-list li svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Features Grid */
.app-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.app-feature-box {
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
}

.app-feature-box h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.app-feature-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Permissions / Scopes Card */
.app-scopes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-scope-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.app-scope-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-scope-icon svg {
  width: 16px;
  height: 16px;
}

.app-scope-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.app-scope-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Pricing Sidebar Box */
.pricing-sidebar-box {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-page) 100%);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.pricing-sidebar-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-sidebar-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-sidebar-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-sidebar-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-sidebar-features svg {
  width: 16px;
  height: 16px;
  color: #10b981;
}

/* -------------------------------------------------------------------------
   6. AVIS & NOTATIONS (REVIEWS)
   ------------------------------------------------------------------------- */
.reviews-header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.reviews-score-big {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.reviews-score-stars {
  display: flex;
  gap: 4px;
  margin: 8px 0;
}

.reviews-score-stars svg {
  width: 20px;
  height: 20px;
  color: #f59e0b;
  fill: #f59e0b;
}

.review-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}

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

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.review-user-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.review-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: #10b981;
  font-weight: 600;
}

.review-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.review-comment {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.review-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-report-btn {
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s var(--ease);
}

.review-report-btn:hover {
  color: #ef4444;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   7. MES APPLICATIONS (MY APPS) & CONFIGURATION
   ------------------------------------------------------------------------- */
.my-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.my-app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-app-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.my-app-status-badge.is-active {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.my-app-status-badge.is-paused {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.my-app-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.btn-app-config {
  flex: 1;
  height: 40px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-app-config:hover {
  background: var(--accent-strong);
}

.btn-app-secondary {
  height: 40px;
  padding: 0 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
}

.btn-app-secondary:hover {
  background: #ffffff;
  border-color: var(--border-strong);
}

.btn-app-danger {
  color: #ef4444;
}

.btn-app-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

/* -------------------------------------------------------------------------
   8. PORTAIL DÉVELOPPEURS (DEVELOPER DASHBOARD & SUBMISSION)
   ------------------------------------------------------------------------- */
.dev-revenue-card {
  background: linear-gradient(135deg, #14141a 0%, #22222d 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-ambient);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dev-rev-stat-val {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.dev-rev-stat-val.accent {
  color: var(--accent);
}

.dev-rev-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dev-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dev-table th {
  padding: 14px 18px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dev-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.dev-table tr:hover td {
  background: rgba(20, 20, 26, 0.015);
}

/* -------------------------------------------------------------------------
   9. MODALS & POPUPS (PERMISSIONS, REVIEWS, CONFIRMATION)
   ------------------------------------------------------------------------- */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 26, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.app-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.app-modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-ambient);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s var(--ease);
}

.app-modal-backdrop.is-open .app-modal-content {
  transform: scale(1);
}

.app-modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.app-modal-close-btn {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 4px;
}

.app-modal-body {
  padding: 24px 28px;
  max-height: 70vh;
  overflow-y: auto;
}

.app-modal-footer {
  padding: 18px 28px 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-page);
}

/* -------------------------------------------------------------------------
   10. RESPONSIVE DESIGN
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .app-detail-layout {
    grid-template-columns: 1fr;
  }
  .apps-spotlight {
    grid-template-columns: 1fr;
  }
  .dev-revenue-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .apps-hero {
    padding: 28px 20px;
  }
  .apps-hero h1 {
    font-size: 1.7rem;
  }
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .app-detail-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .app-features-grid {
    grid-template-columns: 1fr;
  }
  .dev-revenue-card {
    grid-template-columns: 1fr;
  }
}
