/**
 * ClockSkin.us - Master Stylesheet
 * High-Performance, Mobile-First, Accessible & SEO-Optimized
 */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --bg-primary: #0b0f19;
  --bg-surface: #131b2e;
  --bg-surface-elevated: #1a243d;
  --border-color: #233054;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-accent: #38bdf8;
  --brand-primary: #0284c7;
  --brand-hover: #0369a1;
  --brand-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --ad-bg: #0d1527;
  --ad-border: #1e293b;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-accent: #0284c7;
  --ad-bg: #f8fafc;
  --ad-border: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.brand-logo span.dot {
  color: #0ea5e9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
  text-decoration: none;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

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

.search-box-header {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-header input {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px 8px 36px;
  border-radius: 20px;
  font-size: 0.9rem;
  width: 220px;
  transition: var(--transition);
}

.search-box-header input:focus {
  outline: none;
  border-color: #0ea5e9;
  width: 280px;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.search-icon-svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  pointer-events: none;
}

.theme-toggle-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* Language Selector */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 150px;
  display: none;
  z-index: 1000;
  list-style: none;
}

.lang-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-dropdown:not(.force-closed):hover .lang-menu,
.lang-dropdown.open .lang-menu {
  display: block;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--text-main);
  font-size: 0.88rem;
  text-decoration: none;
}

.lang-menu a:hover {
  background: var(--bg-surface);
  color: var(--text-accent);
}

/* Hero Section */
.hero-section {
  padding: 48px 0 32px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-color);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title .gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 760px;
  margin: 0 auto 28px;
}

/* Brand Pills Filter */
.brand-pills-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.brand-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.brand-pill:hover, .brand-pill.active {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
  text-decoration: none;
}

/* Category Tabs */
.category-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.cat-tab {
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.cat-tab:hover, .cat-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: #0ea5e9;
  text-decoration: none;
}

/* Watch Faces Grid */
.watchfaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .watchfaces-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.wf-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.wf-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.wf-preview-wrapper {
  position: relative;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wf-watch-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 6px solid #283548;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
  background: #000;
}

.wf-watch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wf-card:hover .wf-watch-frame img {
  transform: scale(1.08);
}

.wf-badge-type {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(4px);
}

.wf-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wf-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wf-title a {
  color: var(--text-main);
  text-decoration: none;
}

.wf-title a:hover {
  color: var(--text-accent);
}

.wf-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.wf-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  font-weight: 600;
}

.wf-action-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-accent);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  transition: var(--transition);
}

.wf-action-btn:hover {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
  text-decoration: none;
}

/* Pagination */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 60px;
}

.page-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
  text-decoration: none;
}

/* Single Watch Face View */
.single-page-wrapper {
  padding: 40px 0 60px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--text-accent);
}

.breadcrumbs .sep {
  opacity: 0.5;
}

.single-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
}

.single-main-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.single-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.single-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.single-meta-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-visual-showcase {
  text-align: center;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
}

.single-dial-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 10px solid #233054;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0, 0, 0, 0.9);
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.single-dial-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.specs-table th, .specs-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

[dir="rtl"] .specs-table th,
[dir="rtl"] .specs-table td {
  text-align: right;
}

.specs-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  width: 35%;
  font-weight: 600;
}

.specs-table td {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 500;
}

/* Safe Download Card (AdSense 100% Policy Compliant) */
.safe-download-box {
  background: linear-gradient(180deg, #132238 0%, #0d1728 100%);
  border: 2px solid #0284c7;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
  position: relative;
}

.safe-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.safe-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.safe-file-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.safe-download-action {
  margin: 20px 0 14px;
}

.btn-download-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
  color: #fff;
  text-decoration: none;
}

.download-timer-msg {
  font-size: 0.95rem;
  color: var(--text-accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.safe-fallback-link {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Sidebar */
.single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-wf-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.related-item:hover {
  background: var(--bg-surface-elevated);
  text-decoration: none;
}

.related-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  object-fit: cover;
  flex-shrink: 0;
}

.related-info h4 {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.related-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* AdSense Unit Styling (Policy Strict) */
.ad-container {
  margin: 28px 0;
  text-align: center;
  clear: both;
}

.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ad-box {
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--radius-md);
  padding: 10px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Policy Content Pages (Privacy, Terms, About, Help) */
.page-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin: 30px auto;
  max-width: 900px;
}

.page-article h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.25;
}

.page-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: #38bdf8;
}

.page-article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 24px 0 10px;
}

.page-article p, .page-article ul, .page-article ol {
  margin-bottom: 18px;
  font-size: 1.02rem;
  color: var(--text-main);
}

.page-article ul, .page-article ol {
  padding-left: 28px;
}

.page-article li {
  margin-bottom: 8px;
}

.faq-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.faq-q {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #38bdf8;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
}

.form-group input, .form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.btn-submit {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-accent);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(10px);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-btn-accept {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.cookie-btn-settings {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Official Mobile Apps Promo & Store Buttons */
.apps-promo-bar {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.apps-promo-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
}

.apps-promo-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.app-store-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  min-height: 44px;
}

.store-badge-btn:hover {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
  transform: translateY(-2px);
  text-decoration: none;
}

.store-badge-btn.play {
  border-color: rgba(16, 185, 129, 0.45);
}

.store-badge-btn.play:hover {
  background: #059669;
  border-color: #059669;
}

.app-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.app-showcase-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.app-showcase-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-4px);
}

.app-platform-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}

.app-showcase-card .store-badge-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Responsive - 100% Mobile Browser Compatibility */
.mobile-menu-btn {
  display: none;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .single-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .site-header nav {
    order: 4;
    width: 100%;
    display: none;
  }
  .site-header nav.open {
    display: block;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-links a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
  .nav-links a:hover, .nav-links a.active {
    background: var(--bg-surface-elevated);
  }
  .nav-links a.active::after {
    display: none;
  }
  .header-actions {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .search-box-header {
    flex: 1;
    min-width: 0;
  }
  .search-box-header input,
  .search-box-header input:focus {
    width: 100%;
    font-size: 16px; /* Prevents iOS Safari auto-zoom */
    min-height: 42px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-section {
    padding: 32px 0 24px;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-subtitle {
    font-size: 0.98rem;
  }
  .brand-pills-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .brand-pills-bar::-webkit-scrollbar {
    display: none;
  }
  .brand-pill {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }
  .category-tabs-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cat-tab {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  .watchfaces-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .single-page-wrapper {
    padding: 20px 0 40px;
  }
  .single-main-content {
    padding: 18px;
  }
  .single-title {
    font-size: 1.45rem;
  }
  .single-dial-frame {
    width: 210px;
    height: 210px;
    border-width: 8px;
  }
  .specs-table th, .specs-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .safe-download-box {
    padding: 20px 14px;
  }
  .safe-file-details {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .btn-download-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 1rem;
  }
  .page-article {
    padding: 18px;
    margin: 16px auto;
  }
  .page-article h1 {
    font-size: 1.55rem;
  }
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px;
  }
  .lang-btn, .theme-toggle-btn {
    min-height: 42px;
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .lang-menu {
    right: auto;
    left: 0;
  }
}

/* ========================================================
   v2.3 UX, Interactive & Conversion Enhancements
   ======================================================== */

/* Favorite Heart Button on Cards */
.wf-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(6px);
}
.wf-fav-btn:hover {
  transform: scale(1.1);
  border-color: #ef4444;
}
.wf-fav-btn.is-fav {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
}

/* Filter & Sort Bar */
.filter-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover {
  color: var(--text-main);
  border-color: var(--text-accent);
}
.filter-chip.active {
  background: var(--text-accent);
  color: #0b1120;
  border-color: var(--text-accent);
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.sort-select, .compat-select {
  background: var(--bg-primary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Watch Compatibility Checker */
.compat-checker-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 18px 0 8px;
}
.compat-checker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.compat-title {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 800;
}
.compat-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.compat-select {
  min-width: 280px;
  max-width: 100%;
  padding: 10px 14px;
}
.compat-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.compat-result[hidden] {
  display: none;
}

/* Smart Device App Highlight */
.store-badge-btn.is-recommended {
  box-shadow: 0 0 0 2px #38bdf8, 0 8px 20px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}
.store-badge-btn.is-secondary {
  opacity: 0.72;
}

/* Interactive Watch Bezel Showcase & Toolbar */
.showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.showcase-tool-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.showcase-tool-btn:hover,
.showcase-tool-btn.active {
  border-color: var(--text-accent);
  color: var(--text-accent);
}
.showcase-tool-btn.is-fav {
  border-color: #ef4444;
  color: #ef4444;
}
.single-dial-frame {
  cursor: zoom-in;
  position: relative;
  transition: all 0.25s ease;
}
.single-dial-frame.watch-bezel-mode {
  padding: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #334155, #0f172a 75%);
  border: 6px solid #475569;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.12);
}
.single-dial-frame.watch-bezel-mode::after {
  content: '';
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(180deg, #94a3b8, #475569);
}
.single-dial-frame.watch-bezel-mode img {
  border-radius: 50%;
}

/* Lightbox Modal */
.wf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wf-lightbox[hidden] {
  display: none;
}
.wf-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(6px);
}
.wf-lightbox-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
}
.wf-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
}
.wf-lightbox-bezel {
  padding: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #334155, #0f172a 75%);
  border: 6px solid #475569;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
.wf-lightbox-bezel img {
  width: min(360px, 76vw);
  height: min(360px, 76vw);
  border-radius: 50%;
  display: block;
}
.wf-lightbox-caption {
  color: #f8fafc;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

/* QR Download Box & App QR */
.qr-download-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
  flex-wrap: wrap;
}
.qr-download-box img {
  border-radius: 8px;
  background: #fff;
  padding: 5px;
}
.qr-download-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 300px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.qr-download-text strong {
  color: var(--text-main);
  font-size: 0.92rem;
}
.app-qr-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.app-qr-mini img {
  background: #fff;
  padding: 4px;
  border-radius: 8px;
}

/* Guides Hub Grid & 404 Page */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.guide-hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guide-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-accent);
}
.guide-hub-card h2 {
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.4;
}
.guide-hub-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.notfound-search-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 22px;
  flex-wrap: wrap;
}
.notfound-search-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-main);
  font-size: 16px;
}
.notfound-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .compat-select {
    width: 100%;
    min-width: 0;
  }
  .qr-download-box {
    text-align: center;
  }
}

/* ========================================================
   v2.4 Popular Badge, Live Search, Bezel Colors, AOD, Share Bar
   ======================================================== */
.wf-badge-hot {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

/* Live Search Autocomplete */
.search-box-header {
  position: relative;
}
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  overflow: hidden;
  display: none;
}
.search-autocomplete-dropdown.open {
  display: block;
}
.search-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}
.search-ac-item:last-child {
  border-bottom: none;
}
.search-ac-item:hover {
  background: var(--bg-surface);
}
.search-ac-item img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.search-ac-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.search-ac-meta strong {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-ac-meta span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Bezel Color Swatches & AOD Mode */
.bezel-color-swatches {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}
.bezel-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.bezel-swatch.active {
  border-color: var(--text-accent);
  transform: scale(1.15);
}
.swatch-black { background: #1e293b; }
.swatch-silver { background: linear-gradient(135deg, #f8fafc, #94a3b8); }
.swatch-gold { background: linear-gradient(135deg, #fde047, #b45309); }

.single-dial-frame.watch-bezel-mode.bezel-silver {
  background: radial-gradient(circle at 30% 30%, #e2e8f0, #64748b 80%);
  border-color: #cbd5e1;
}
.single-dial-frame.watch-bezel-mode.bezel-gold {
  background: radial-gradient(circle at 30% 30%, #fef08a, #92400e 80%);
  border-color: #eab308;
}
.single-dial-frame.aod-mode img {
  filter: brightness(0.38) contrast(1.25);
}

/* Quick Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}
.share-bar-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.share-btn:hover {
  transform: translateY(-1px);
  border-color: var(--text-accent);
}
.share-btn.wa { border-color: rgba(34, 197, 94, 0.45); }
.share-btn.tg { border-color: rgba(56, 189, 248, 0.45); }
