/* ==========================================================================
   GSMCRITIC PHONE PAGE — Modern Card Design
   Based on About page design principles
   ========================================================================== */

/* === CSS Variables === */
:root {
  --primary:       #476d99;
  --primary-soft:  #eef3fb;
  --primary-dark:  #2b4370;
  --green:         #1f9d55;
  --green-soft:    #e7f7ee;
  --red:           #b22e25;
  --red-soft:      #fde8e6;
  --saffron:       #ff6600;
  --bg-page:       #f4f6f9;
  --bg-card:       #ffffff;
  --text-main:     #2c3e50;
  --text-muted:    #7f8c8d;
  --text-light:    #95a5a6;
  --border:        #e0e4e8;
  --shadow:        0 2px 8px rgba(44,62,80,.08);
  --shadow-lg:     0 4px 16px rgba(44,62,80,.12);
  --radius:        16px;
  --radius-sm:     10px;
}

/* === Reset & Base === */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* === Banner Bar === */
.banner.pink, #gobackbanner.banner.pink {
  background: linear-gradient(135deg, #476d99 0%, #3a5c82 100%) !important;
  border-bottom: none !important;
  padding: 12px 18px !important;
}
#go-back-banner span.glyphicon, #gobackbanner span.glyphicon {
  font-size: 18px !important;
  color: #fff !important;
}
#go-back-banner i.swipe-text, #gobackbanner i.swipe-text {
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #fff !important;
}
.swipe-text { color: #fff !important; }

/* ==========================================================================
   MOBILE: Hero Section — Big Phone Image
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, var(--primary-soft) 100%);
  padding: 0;
  text-align: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(180deg, #ffffff 60%, var(--primary-soft) 100%);
  overflow: hidden;
}

.phone-hero-img {
  width: 80%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  margin-top: 10px;
  border-radius: 12px;
}

.hero-loader {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 10;
}

/* Score Bubble over the hero image */
.hero-score-bubble {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-soft) 100%);
  box-shadow: 0 4px 20px rgba(71,109,153,.2), inset 0 1px 3px rgba(71,109,153,.1);
  margin: -16px auto 0;
  z-index: 2;
  border: 2px solid rgba(71,109,153,.25);
}

.hero-score-bubble::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 1px solid rgba(71,109,153,.1);
  pointer-events: none;
}

.hero-score-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.hero-score-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}

/* "Check reviews" link below score bubble */
.hero-score-link {
  display: block;
  margin: 10px auto 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* ==========================================================================
   Phone Name Bar
   ========================================================================== */
.name-bar {
  padding: 16px 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.name-bar .heart-toggle {
  font-size: 28px;
  cursor: pointer;
  transition: transform .15s;
}
.name-bar .heart-toggle:hover { transform: scale(1.15); }
.red-heart { color: #b22e25 !important; }

/* ==========================================================================
   Rankings Bar
   ========================================================================== */
.rankings-bar {
  padding: 0 16px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.rank-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.rank-year, .rank-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   GSMCritic Take
   ========================================================================== */
.take-card {
  margin: 0 16px 12px;
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-main);
  box-shadow: var(--shadow);
  line-height: 1.5;
}

/* ==========================================================================
   Swipe Hint
   ========================================================================== */
.swipe-hint {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Specs Section — Horizontal Scrollable Cards
   ========================================================================== */
.specs-section {
  padding: 8px 0 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  padding: 8px 16px 12px;
  margin: 0;
  color: var(--text-main);
}
.picked-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  vertical-align: middle;
}
.picked-badge.centered {
  display: flex;
  justify-content: center;
  margin: 12px auto 20px;
}
.picked-badge img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: contain;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(71,109,153,.25);
}

/* Sticker variant — sits on the first category header */
.category-header {
  gap: 6px;
}
.category-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.picked-sticker {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
}
.picked-sticker img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: contain;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 14px rgba(71,109,153,.35), 0 0 0 2px rgba(255,255,255,.7);
  transform: rotate(4deg);
  transition: transform .2s ease;
}
.picked-sticker:hover img {
  transform: rotate(0deg) scale(1.05);
}
.picked-sticker-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--primary);
  text-align: center;
  margin-top: 2px;
}
.picked-sticker-section {
  display: flex;
  justify-content: center;
  margin: 8px auto 14px;
}

.specs-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.specs-scroll::-webkit-scrollbar { display: none; }

.spec-item {
  flex: 0 0 auto;
  min-width: 100px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
  text-align: center;
}

.spec-icon { font-size: 22px; color: var(--primary); }
.spec-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.spec-value { font-size: 14px; font-weight: 800; color: var(--text-main); }

.specs-footer { padding: 0 16px; }
.specs-full-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.screen-note {
  padding: 8px 16px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-soft);
  border-radius: 8px;
  margin: 0 16px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.screen-note-icon {
  flex-shrink: 0;
  color: var(--primary);
  opacity: .7;
}

/* ==========================================================================
   Camera Section (mobile only)
   ========================================================================== */
.camera-section {
  padding: 0;
  background: #f7f8fa;
}
.camera-hero-wrap {
  text-align: center;
  padding: 20px 0 24px;
}
.camera-hero-wrap img,
.camera-phone-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  object-position: top left;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
}
.camera-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 16px;
}
.camera-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.camera-badge {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 90px;
}
.camera-badge-num {
  font-size: 24px;
  font-weight: 900;
}
.camera-badge-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.camera-go-reviews {
  display: block;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

/* ==========================================================================
   Tabs Navigation
   ========================================================================== */
.tabs-nav {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-link {
  flex: 1 0 auto;
  text-align: center;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.tab-link.active, .tab-link[aria-selected="true"],
.tab-link:hover, .tab-link[aria-expanded="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ==========================================================================
   Reviews Tab — Ring Chart
   ========================================================================== */
.reviews-section { padding: 16px; }
.section-subtitle { font-size: 13px; color: var(--text-muted); margin: -4px 16px 12px; }

/* Reviews section */
.reviews-section {
  margin: 0 auto 16px;
}
.reviews-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.reviews-middle, .reviews-bottom {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Individual reviewer card */
.pyramid-critic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 12px;
  min-width: 80px;
}

/* Score badge */
.pyramid-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}

/* Reviewer name */
.pyramid-critic-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  max-width: 100px;
  line-height: 1.3;
}

/* Overall score */
.overall-score {
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-dark);
}
.overall-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Logo — force static position, override any old absolute rules */
.pyramid-critic img {
  display: block !important;
  position: static !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}

/* === Pyramid rows — actual pyramid shape === */
.pyramid-top { display: flex; justify-content: center; width: 100%; }
.pyramid-middle { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; width: 100%; }
.pyramid-bottom { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; width: 100%; }
.pyramid-center { display: flex; justify-content: center; margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--primary); }

/* === Reviewers — progress bar design === */
.rk-reviewers {
  margin: 16px auto;
  max-width: 500px;
}
.rk-reviewers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rk-reviewer-bar {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  align-items: center;
  gap: 8px;
}
.rk-reviewer-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rk-reviewer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--primary-soft);
}
.rk-reviewer-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--primary-soft);
  border-radius: 4px;
  overflow: hidden;
}
.rk-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 4px;
  transition: width .5s ease;
}
.rk-reviewer-score {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  min-width: 36px;
  text-align: right;
}

/* === Reviewers — progress bar design === */
.rk-reviewers {
  margin: 16px auto;
  max-width: 500px;
}
.rk-reviewers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rk-reviewer-bar {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  align-items: center;
  gap: 8px;
}
.rk-reviewer-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rk-reviewer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  object-fit: contain !important;
  border: 2px solid var(--primary-soft) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}
.rk-reviewer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx);
}
.rk-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--primary-soft);
  border-radius: 4px;
  overflow: hidden;
}
.rk-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 4px;
  transition: width .5s ease;
}
.rk-reviewer-score {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  min-width: 36px;
  text-align: right;
}

/* === Main GSMCritic score — premium ring === */
.rk-main-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 2px solid var(--primary);
}
.rk-main-score-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(71,109,153,.2) 0%, var(--primary-soft) 60%, rgba(71,109,153,.1) 100%);
  border: 3px solid var(--primary);
  box-shadow: 0 4px 16px rgba(71,109,153,.18), inset 0 2px 6px rgba(71,109,153,.12);
  position: relative;
}
.rk-main-score-ring::before {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 1px solid rgba(71,109,153,.12);
  pointer-events: none;
}
.rk-main-score-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.rk-main-score-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
}

/* === Reviews tab — redesigned with hero score === */
.reviews-tab { padding: 20px; }
.reviews-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.reviews-hero-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff 0%, var(--primary-soft) 100%);
  border: 3px solid var(--primary);
  box-shadow: 0 8px 30px rgba(71,109,153,.22), inset 0 2px 8px rgba(71,109,153,.1), 0 0 0 6px rgba(71,109,153,.06);
  position: relative;
}
.reviews-hero-ring::after {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border-radius: 50%;
  border: 1px solid rgba(71,109,153,.1);
  pointer-events: none;
}
.reviews-hero-num {
  font-size: 44px;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  letter-spacing: -1px;
}
.reviews-hero-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-top: 2px;
}
.reviews-hero-label2 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: .5px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.reviewer-card {
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: box-shadow .15s;
}
.reviewer-card:hover {
  box-shadow: 0 2px 10px rgba(71,109,153,.18);
}
.reviewer-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
  border: 1.5px solid var(--primary-soft);
  flex-shrink: 0;
}
.reviewer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.reviewer-bar-wrap {
  /* width: 50px; */
  height: 6px;
  background: var(--primary-soft);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.reviewer-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 3px;
}
.reviewer-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-dark);
  flex-shrink: 0;
  min-width: 30px;
  text-align: right;
}

.reviews-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  padding: 0 8px;
}

/* ==========================================================================
   Pros / Cons — Category Cards
   ========================================================================== */
.pros-section {
  padding: 20px;
  background: rgba(31, 157, 85, 0.06);
  border-radius: var(--radius-sm);
}
.cons-section {
  padding: 20px;
  background: rgba(178, 46, 37, 0.06);
  border-radius: var(--radius-sm);
}
.mobile-picked { display: none; }

.category-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.category-header {
  font-size: 15px;
  font-weight: 800;
  padding: 12px 16px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.category-name {
  line-height: 1;
}
.first-category .category-header {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.pro-item, .con-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.pro-item:last-child, .con-item:last-child { border-bottom: none; }

.pro-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 3px;
  box-shadow: 0 0 0 2px var(--green-soft);
}
.con-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
  box-shadow: 0 0 0 2px var(--red-soft);
}
.green-dot { background: var(--green); }
.red-dot   { background: var(--red); }

.pro-text, .con-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}
.source-link { font-weight: 600; color: var(--primary); }

/* ==========================================================================
   Rankings Tab
   ========================================================================== */
.rankings-section { padding: 16px; margin-top: 32px; }
.rankings-subtitle { font-size: 13px; color: var(--text-muted); margin: 2px 0 16px; padding-left: 16px; }

.ranking-list { display: flex; flex-direction: column; gap: 8px; }

.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  transition: background .15s;
  cursor: pointer;
}
.rank-item:hover { background: var(--primary-soft); }

.rank-label { font-size: 14px; font-weight: 600; color: var(--text-main); }
.rank-value { font-size: 18px; font-weight: 900; color: var(--primary); }

.highlight-rank { background: var(--green-soft); border-left: 4px solid var(--green); }

/* ==========================================================================
   Desktop Layout: Side-by-Side
   ========================================================================== */
@media (min-width: 960px) {

  .phone-page-desktop {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
  }

  .panel-left {
    flex: 0 0 360px;
    background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 100%);
    padding: 0 0 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border);
  }

  .panel-right {
    flex: 1;
    background: var(--bg-page);
    min-width: 0;
  }

  .phone-tabs-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
  }

  /* Desktop: hero image even bigger */
  .hero-image-wrap { justify-content: center; }
  .phone-hero-img { width: 70%; max-width: 380px; }
  .hero-score-bubble { margin-top: -20px; }

  /* Desktop: quick specs row in left panel */
  .quick-specs {
    padding: 12px 20px;
  }
  .quick-specs .specs-full-link {
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
  }
  .quick-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }
  .qs-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
  }
  .qs-icon { margin-right: 4px; font-size: 15px; }

  .take-card { margin: 0 20px 12px; }
  .rankings-bar { padding: 0 20px 12px; }
  .name-bar { padding: 16px 20px 4px; }
  .screen-note { padding: 4px 20px 12px; }

  /* Desktop: tab pane content — inline style controls visibility */
.tab-pane { display: block; }

  .phone-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    background: var(--bg-card);
    margin-bottom: 20px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: hidden;
  }
  .phone-tabs-nav li { list-style: none; }
  .phone-tabs-nav a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: all .2s;
  }
  .phone-tabs-nav a:hover,
  .phone-tabs-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-soft);
  }

  .tab-panels {
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    min-height: 500px;
  }

  /* Desktop: reviews — scale up cards */
  .pyramid-critic { padding: 10px 16px; min-width: 90px; }
  .reviews-pyramid { gap: 16px; }
  .reviews-middle, .reviews-bottom { gap: 16px; }
  .pyramid-critic-name { max-width: 110px; }

  /* Hide mobile-only things on desktop */
  .tabs-nav, .specs-scroll, .swipe-hint { display: none; }
  .camera-section { display: none; }
  .tab-link { display: none; }
  .mobile-picked { display: none; }
}

/* ==========================================================================
   Bottom spacing for phone pages
   ========================================================================== */
.page-bottom-spacer { height: 60px; margin-bottom: 0; background: transparent; }
@media (max-width: 959px) {
  .page-bottom-spacer { height: 40px; }
  .phone-page-desktop { display: block; }
  .panel-left {
    background: transparent;
    height: auto;
    position: static;
    border-right: none;
    padding: 0;
    overflow-y: visible;
  }
  .panel-right { background: transparent; }
  .phone-tabs-container { padding: 0; }
  .phone-tabs-nav { display: none; }
  .tab-pane { display: block !important; }
  .tab-pane.active, .tab-pane.show { display: block !important; }
  .tab-panels {
    box-shadow: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
}

/* ==========================================================================
   Floating elements
   ========================================================================== */
.gotop-mobile {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 999;
  cursor: pointer;
}

/* === Legacy overrides — keep old classes working === */
.reviewer-logo { width: 18px; height: 18px; border-radius: 50%; object-fit: contain; }
a.mini-rate { color: var(--primary); font-weight: 800; font-size: 14px; }
.score-index { font-weight: 900; }
.score, .score-index { font-weight: 900; letter-spacing: -0.03em; }
.score-next-to-picture { position: static !important; }
.gsmrate { color: var(--primary-dark); font-weight: 700; }
.tab-text { font-weight: 700; color: var(--text-main); }

/* Flip card (desktop score badge) */
.score-next-to-picture .flip-card-container {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  perspective: 600px;
}
.score-next-to-picture .flip-card-front,
.score-next-to-picture .flip-card-back {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  border-radius: 50%;
  backface-visibility: hidden;
}
.score-next-to-picture .flip-card-back { transform: rotateY(180deg); }
.score-next-to-picture .flip-card-container.flipped .flip-card-front { transform: rotateY(180deg); }
.score-next-to-picture .flip-card-container.flipped .flip-card-back   { transform: rotateY(0); }
.score-next-to-picture .review-link { font-size: 9px; font-weight: 700; color: var(--text-main); text-align: center; line-height: 1.2; }

/* RTL badge mobile (for original template compatibility) */
.review-link { font-size: 11px; font-weight: 700; color: var(--primary); text-decoration: none; }
.last-date-mobile { font-size: 12px; color: var(--text-light); }

/* Loading overlay during swipe */
.loading-div { text-align: center; padding: 40px; color: var(--text-muted); }
.loading-text { font-size: 15px; font-weight: 600; margin: 0; }

/* Tooltip overrides */
.fixed-tooltip .tooltip-inner { background: var(--primary-dark); color: #fff; border-radius: 8px; }


/* Mobile: single-column reviewer grid */
@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr !important;
  }
  .reviews-hero-ring {
    width: 100px !important;
    height: 100px !important;
  }
  .reviews-hero-num {
    font-size: 36px !important;
  }
}

