/*
Theme Name: KingFy Enterprises
Theme URI: https://kingfy.in
Author: KingFy Enterprises
Author URI: https://kingfy.in
Description: Premium mobile-first theme for KingFy Enterprises — Customer Rewards, Daily Offers, Mobile Accessories, Parts, Electronics & Blog. Fully integrated with KingFy Customer Rewards plugin.
Version: 3.4.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kingfy
Tags: mobile-first, rewards, ecommerce, blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =====================================================
   KINGFY ENTERPRISES THEME V3.0.0
   Mobile-first • Premium • Customer Rewards Ready
   ===================================================== */

:root {
  --kf-primary: #0f766e;
  --kf-primary-dark: #0d9488;
  --kf-accent: #f59e0b;
  --kf-accent-dark: #d97706;
  --kf-success: #10b981;
  --kf-danger: #ef4444;
  --kf-warning: #f59e0b;
  --kf-dark: #0f172a;
  --kf-gray-900: #1e293b;
  --kf-gray-800: #334155;
  --kf-gray-700: #475569;
  --kf-gray-600: #64748b;
  --kf-gray-500: #94a3b8;
  --kf-gray-400: #cbd5e1;
  --kf-gray-300: #e2e8f0;
  --kf-gray-200: #f1f5f9;
  --kf-gray-100: #f8fafc;
  --kf-white: #ffffff;
  --kf-radius: 12px;
  --kf-radius-sm: 8px;
  --kf-radius-lg: 16px;
  --kf-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --kf-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --kf-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--kf-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--kf-gray-800);
  background: var(--kf-gray-100);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kf-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--kf-primary-dark); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ========== LAYOUT ========== */
.kf-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.kf-section { padding: 24px 0; }
.kf-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--kf-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== HEADER ========== */
.kf-header {
  background: var(--kf-white);
  box-shadow: var(--kf-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.kf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.kf-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--kf-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kf-logo span { color: var(--kf-accent); }

.kf-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.kf-nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--kf-dark);
  border-radius: 2px;
  transition: 0.3s;
}

.kf-nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--kf-white);
  box-shadow: var(--kf-shadow-lg);
  padding: 16px;
  flex-direction: column;
  gap: 4px;
}

.kf-nav.active { display: flex; }

.kf-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--kf-gray-800);
  font-weight: 500;
  border-radius: var(--kf-radius-sm);
}

.kf-nav a:hover, .kf-nav a.active {
  background: var(--kf-gray-100);
  color: var(--kf-primary);
}

/* ========== HERO / TODAY'S OFFER ========== */
.kf-offer-hero {
  background: linear-gradient(135deg, var(--kf-primary) 0%, #134e4a 100%);
  color: var(--kf-white);
  border-radius: var(--kf-radius-lg);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.kf-offer-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.kf-offer-badge {
  display: inline-block;
  background: var(--kf-accent);
  color: var(--kf-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.kf-offer-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.kf-offer-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.kf-countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.kf-countdown-item {
  background: rgba(0,0,0,0.25);
  border-radius: var(--kf-radius-sm);
  padding: 10px 8px;
  min-width: 58px;
}

.kf-countdown-num {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  line-height: 1.2;
}

.kf-countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.kf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--kf-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  text-align: center;
}

.kf-btn-primary {
  background: var(--kf-accent);
  color: var(--kf-dark);
}

.kf-btn-primary:hover {
  background: var(--kf-accent-dark);
  color: var(--kf-white);
  transform: translateY(-1px);
}

.kf-btn-outline {
  background: transparent;
  border: 2px solid var(--kf-white);
  color: var(--kf-white);
}

.kf-btn-outline:hover {
  background: var(--kf-white);
  color: var(--kf-primary);
}

.kf-btn-success {
  background: var(--kf-success);
  color: var(--kf-white);
}

.kf-btn-block { width: 100%; }

/* ========== ACTIVITY CARD ========== */
.kf-card {
  background: var(--kf-white);
  border-radius: var(--kf-radius-lg);
  box-shadow: var(--kf-shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.kf-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--kf-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kf-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--kf-gray-200);
}

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

.kf-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.kf-activity-icon.pending { background: var(--kf-gray-200); }
.kf-activity-icon.done { background: #d1fae5; color: var(--kf-success); }

.kf-activity-content { flex: 1; }
.kf-activity-content h4 { font-size: 0.95rem; font-weight: 600; color: var(--kf-dark); }
.kf-activity-content p { font-size: 0.8rem; color: var(--kf-gray-600); margin-top: 2px; }

/* ========== REWARDS SUMMARY ========== */
.kf-rewards-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.kf-stat-box {
  background: var(--kf-gray-100);
  border-radius: var(--kf-radius);
  padding: 16px 12px;
  text-align: center;
}

.kf-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--kf-primary);
  display: block;
}

.kf-stat-label {
  font-size: 0.75rem;
  color: var(--kf-gray-600);
  margin-top: 2px;
}

/* ========== CATEGORY GRID ========== */
.kf-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kf-cat-card {
  background: var(--kf-white);
  border-radius: var(--kf-radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--kf-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kf-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--kf-shadow-lg);
}

.kf-cat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.kf-cat-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--kf-dark);
}

/* ========== PRODUCT / REWARD CARDS ========== */
.kf-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kf-product-card {
  background: var(--kf-white);
  border-radius: var(--kf-radius);
  overflow: hidden;
  box-shadow: var(--kf-shadow);
}

.kf-product-img {
  height: 120px;
  background: var(--kf-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.kf-product-body { padding: 12px; }

.kf-product-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--kf-dark);
  margin-bottom: 4px;
}

.kf-product-points {
  font-size: 0.85rem;
  color: var(--kf-primary);
  font-weight: 700;
}

/* ========== BLOG CARDS ========== */
.kf-blog-list { display: flex; flex-direction: column; gap: 12px; }

.kf-blog-card {
  background: var(--kf-white);
  border-radius: var(--kf-radius);
  overflow: hidden;
  box-shadow: var(--kf-shadow);
  display: flex;
  gap: 12px;
}

.kf-blog-img {
  width: 100px;
  min-height: 80px;
  background: var(--kf-gray-200);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.kf-blog-body { padding: 12px 12px 12px 0; flex: 1; }

.kf-blog-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--kf-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.kf-blog-meta {
  font-size: 0.75rem;
  color: var(--kf-gray-500);
}

/* ========== DASHBOARD ========== */
.kf-dashboard-header {
  background: linear-gradient(135deg, var(--kf-primary), #134e4a);
  color: white;
  border-radius: var(--kf-radius-lg);
  padding: 24px 20px;
  margin-bottom: 20px;
}

.kf-dashboard-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.kf-dashboard-header p { opacity: 0.85; font-size: 0.9rem; }

/* ========== FOOTER ========== */
.kf-footer {
  background: var(--kf-dark);
  color: var(--kf-gray-400);
  padding: 32px 0 80px;
  margin-top: 40px;
}

.kf-footer-inner {
  display: grid;
  gap: 24px;
}

.kf-footer h4 {
  color: var(--kf-white);
  font-size: 1rem;
  margin-bottom: 12px;
}

.kf-footer a { color: var(--kf-gray-400); }
.kf-footer a:hover { color: var(--kf-white); }

.kf-footer-bottom {
  border-top: 1px solid var(--kf-gray-800);
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
}

/* ========== WHATSAPP FLOAT ========== */
.kf-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.kf-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.kf-whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ========== NOTIFICATIONS ========== */
.kf-notif {
  background: var(--kf-white);
  border-left: 4px solid var(--kf-primary);
  border-radius: var(--kf-radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: var(--kf-shadow);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========== FORMS ========== */
.kf-form-group { margin-bottom: 16px; }

.kf-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--kf-dark);
}

.kf-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--kf-gray-300);
  border-radius: var(--kf-radius-sm);
  background: var(--kf-white);
  transition: border-color 0.2s;
}

.kf-input:focus {
  outline: none;
  border-color: var(--kf-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* ========== TABLE ========== */
.kf-table-wrap { overflow-x: auto; }

.kf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.kf-table th, .kf-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--kf-gray-200);
}

.kf-table th {
  background: var(--kf-gray-100);
  font-weight: 600;
  color: var(--kf-dark);
}

/* ========== BADGES ========== */
.kf-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.kf-badge-success { background: #d1fae5; color: #065f46; }
.kf-badge-warning { background: #fef3c7; color: #92400e; }
.kf-badge-danger { background: #fee2e2; color: #991b1b; }
.kf-badge-info { background: #e0f2fe; color: #075985; }

/* ========== ALERTS ========== */
.kf-alert {
  padding: 14px 16px;
  border-radius: var(--kf-radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.kf-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.kf-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.kf-alert-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.kf-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ========== STORE INFO ========== */
.kf-store-card {
  background: var(--kf-white);
  border-radius: var(--kf-radius-lg);
  padding: 20px;
  box-shadow: var(--kf-shadow);
}

.kf-store-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--kf-dark);
}

.kf-store-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
  .kf-container { padding: 0 24px; }
  .kf-offer-title { font-size: 1.75rem; }
  .kf-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .kf-product-grid { grid-template-columns: repeat(3, 1fr); }
  .kf-rewards-summary { grid-template-columns: repeat(4, 1fr); }
  .kf-blog-card { flex-direction: row; }
  .kf-blog-img { width: 140px; min-height: 100px; }
}

@media (min-width: 768px) {
  .kf-header-inner { height: 70px; }
  .kf-nav-toggle { display: none; }
  .kf-nav {
    display: flex;
    position: static;
    flex-direction: row;
    box-shadow: none;
    padding: 0;
    gap: 4px;
  }
  .kf-nav a { padding: 8px 14px; font-size: 0.9rem; }
  .kf-offer-hero { padding: 40px 32px; }
  .kf-section { padding: 32px 0; }
  .kf-footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .kf-product-grid { grid-template-columns: repeat(4, 1fr); }
  .kf-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* ========== UTILITY ========== */
.kf-text-center { text-align: center; }
.kf-mt-1 { margin-top: 8px; }
.kf-mt-2 { margin-top: 16px; }
.kf-mt-3 { margin-top: 24px; }
.kf-mb-1 { margin-bottom: 8px; }
.kf-mb-2 { margin-bottom: 16px; }
.kf-mb-3 { margin-bottom: 24px; }
.kf-flex { display: flex; }
.kf-items-center { align-items: center; }
.kf-justify-between { justify-content: space-between; }
.kf-gap-1 { gap: 8px; }
.kf-gap-2 { gap: 16px; }
.kf-hidden { display: none !important; }
.kf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========== V3.1 UI UPGRADE ========== */
.kf-home { padding-top: 20px; padding-bottom: 32px; }

.kf-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--kf-primary);
  letter-spacing: -0.02em;
}
.kf-logo-text span { color: var(--kf-accent); }
.kf-logo img, .custom-logo { max-height: 40px; width: auto; }

.kf-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.kf-nav-list li a {
  display: block;
  padding: 12px 16px;
  color: var(--kf-gray-800);
  font-weight: 600;
  border-radius: var(--kf-radius-sm);
  font-size: 0.95rem;
}
.kf-nav-list li a:hover,
.kf-nav-list .current-menu-item a {
  background: var(--kf-gray-100);
  color: var(--kf-primary);
}
.kf-nav-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--kf-gray-200); }
.kf-btn-nav { width: 100%; padding: 10px 16px; font-size: 0.9rem; }

.kf-btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.kf-btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.kf-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--kf-primary);
  color: var(--kf-primary);
}
.kf-btn-ghost:hover { background: var(--kf-primary); color: #fff; }

.kf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.kf-section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ecfdf5, #fef3c7);
  color: var(--kf-primary);
  padding: 4px 10px;
  border-radius: 20px;
}
.kf-section-card { border: 1px solid var(--kf-gray-200); }
.kf-home-section { margin: 28px 0; }
.kf-notif-stack { margin-bottom: 16px; }

/* Guides grid — image + title only */
.kf-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.kf-guide-card {
  background: var(--kf-white);
  border-radius: var(--kf-radius);
  overflow: hidden;
  box-shadow: var(--kf-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.kf-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--kf-shadow-lg);
  color: var(--kf-primary);
}
.kf-guide-img {
  aspect-ratio: 16 / 10;
  background: var(--kf-gray-200);
  overflow: hidden;
  position: relative;
}
.kf-guide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kf-guide-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.5rem;
}
.kf-guide-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 12px;
  color: var(--kf-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Share buttons */
.kf-share-box {
  margin-top: 28px;
  padding: 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%);
  border-radius: var(--kf-radius-lg);
  border: 1px solid #bbf7d0;
}
.kf-share-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: var(--kf-dark); }
.kf-share-desc { font-size: 0.85rem; color: var(--kf-gray-600); margin-bottom: 14px; }
.kf-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kf-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff !important;
  transition: transform 0.15s, opacity 0.15s;
}
.kf-share-btn:hover { transform: scale(1.04); opacity: 0.95; color: #fff !important; }
.kf-share-wa { background: #25D366; }
.kf-share-fb { background: #1877F2; }
.kf-share-tg { background: #0088cc; }
.kf-share-x { background: #0f172a; }
.kf-share-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.kf-article-hero {
  margin: -20px -20px 20px;
  border-radius: var(--kf-radius-lg) var(--kf-radius-lg) 0 0;
  overflow: hidden;
}
.kf-article-hero img { width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.kf-article-title { font-size: 1.55rem; font-weight: 800; color: var(--kf-dark); line-height: 1.3; margin-bottom: 8px; }
.kf-article-meta { font-size: 0.85rem; color: var(--kf-gray-500); margin-bottom: 10px; }
.kf-article-body { line-height: 1.75; font-size: 1.05rem; }
.kf-article-nav { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--kf-gray-200); }

/* Login page */
.kf-login-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.kf-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--kf-shadow-lg);
  padding: 32px 24px;
  border: 1px solid var(--kf-gray-200);
}
.kf-login-brand { text-align: center; margin-bottom: 24px; }
.kf-login-brand .kf-logo-text { font-size: 1.75rem; }
.kf-login-brand p { color: var(--kf-gray-600); font-size: 0.9rem; margin-top: 6px; }
.kf-btn-google {
  background: #fff;
  color: var(--kf-gray-800) !important;
  border: 1.5px solid var(--kf-gray-300);
  font-weight: 600;
  gap: 10px;
}
.kf-btn-google:hover { background: var(--kf-gray-100); border-color: var(--kf-gray-400); color: var(--kf-dark) !important; }
.kf-login-hint { text-align: center; font-size: 0.8rem; color: var(--kf-gray-500); margin-top: 8px; }
.kf-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--kf-gray-500);
  font-size: 0.85rem;
}
.kf-login-divider::before,
.kf-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--kf-gray-300);
}
.kf-remember { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.kf-login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.85rem;
}
.kf-login-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--kf-gray-500);
  text-align: center;
  line-height: 1.5;
}

.kf-store-note { margin-top: 12px; font-size: 0.85rem; color: var(--kf-gray-600); }

/* WhatsApp — always visible when present */
.kf-whatsapp-float {
  bottom: 20px;
  right: 16px;
  width: 58px;
  height: 58px;
  z-index: 9999;
}

@media (min-width: 640px) {
  .kf-guides-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .kf-guide-title { font-size: 0.95rem; min-height: 3.8em; }
}
@media (min-width: 768px) {
  .kf-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    box-shadow: none;
    padding: 0;
    gap: 8px;
    background: transparent;
  }
  .kf-nav-list {
    flex-direction: row;
    width: auto;
    gap: 2px;
  }
  .kf-nav-list li a { padding: 8px 12px; font-size: 0.9rem; }
  .kf-nav-actions {
    margin: 0;
    padding: 0;
    border: none;
    margin-left: 8px;
  }
  .kf-btn-nav { width: auto; }
  .kf-nav-toggle { display: none; }
  .kf-article-title { font-size: 1.85rem; }
}

/* Login — single Google / Nextend */
.kf-nextend-wrap { margin-bottom: 8px; }
.kf-nextend-wrap .nsl-container,
.kf-social-login .nsl-container { width: 100% !important; }
.kf-nextend-wrap .nsl-button,
.kf-social-login .nsl-button {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px !important;
  height: 48px !important;
}
.kf-login-form .kf-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.kf-share-bar-wrap {
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}
.kf-share-bar {
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #10b981);
  border-radius: 6px;
  transition: width 0.35s ease;
  min-width: 2px;
}
.kf-share-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--kf-gray-600);
}

.kf-store-your-points {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--kf-gray-700);
}
.kf-reward-card { color: inherit; }
.kf-reward-card:hover { color: var(--kf-primary); }
.kf-reward-days {
  font-size: 0.75rem;
  color: var(--kf-gray-600);
  margin-top: 4px;
}
.kf-reward-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kf-primary);
}
.kf-store-note-bottom {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--kf-gray-600);
  text-align: center;
}
.kf-reward-highlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.kf-reward-hl-item {
  background: var(--kf-gray-100);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.kf-reward-hl-label {
  display: block;
  font-size: 0.75rem;
  color: var(--kf-gray-600);
  margin-bottom: 4px;
}
.kf-reward-hl-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--kf-primary);
}
.kf-reward-block {
  margin-top: 20px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--kf-gray-200);
  border-radius: 12px;
}
.kf-reward-block h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--kf-dark);
}
.kf-reward-block-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--kf-gray-800);
  white-space: pre-wrap;
}
@media (min-width: 640px) {
  .kf-reward-highlight { grid-template-columns: repeat(4, 1fr); }
}

/* Footer legal + social */
.kf-footer-col { min-width: 0; }
.kf-footer-about {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.kf-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kf-footer-links a { color: var(--kf-gray-400); }
.kf-footer-links a:hover { color: #fff; }

.kf-footer-social { margin-top: 12px; }
.kf-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.kf-social-link:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.kf-social-fb {
  background: #1877F2;
  color: #fff !important;
}
.kf-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  font-weight: 800;
}

.kf-footer-legal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--kf-gray-800);
}
.kf-footer-legal-title {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.kf-footer-legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.kf-footer-legal-list li {
  display: flex;
  align-items: center;
}
.kf-footer-legal-list li:not(:last-child)::after {
  content: '·';
  margin: 0 10px;
  color: var(--kf-gray-600);
  speak: never;
}
.kf-footer-legal-list a {
  color: var(--kf-gray-400);
  font-size: 0.8rem;
  line-height: 1.4;
}
.kf-footer-legal-list a:hover { color: #fff; }

.kf-footer-tagline {
  margin-top: 6px;
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .kf-footer-legal-list {
    flex-direction: column;
    gap: 10px;
  }
  .kf-footer-legal-list li:not(:last-child)::after {
    display: none;
  }
}
.kf-progress-wrap { margin: 12px 0 8px; }
.kf-progress-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--kf-gray-700); }
.kf-progress-track { height: 12px; background: #e2e8f0; border-radius: 8px; overflow: hidden; }
.kf-progress-fill { height: 100%; background: linear-gradient(90deg, #0f766e, #f59e0b); border-radius: 8px; transition: width 0.4s; }
.kf-earn-list { margin: 0; padding-left: 4px; list-style: none; }
.kf-earn-list li { padding: 4px 0; font-size: 0.95rem; }

/* Leader strip (header top) */
.kf-leader-strip {
  background: linear-gradient(90deg, #0f766e, #134e4a);
  color: #fff;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.kf-leader-strip-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  overflow: hidden;
}
.kf-leader-strip-label {
  font-weight: 800;
  color: #fde68a !important;
  white-space: nowrap;
  text-decoration: none;
}
.kf-leader-strip-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.kf-leader-strip-list::-webkit-scrollbar { display: none; }
.kf-leader-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 2px 8px 2px 4px;
  white-space: nowrap;
}
.kf-leader-chip img { border-radius: 50%; }
.kf-leader-chip-rank { font-weight: 700; color: #fde68a; font-size: 0.75rem; }
.kf-leader-chip-pts { opacity: 0.9; font-weight: 600; }
.kf-leader-strip-more {
  color: #fff !important;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
}
.kf-leader-strip-empty { opacity: 0.9; }
.kf-leader-strip-empty a { color: #fde68a; }

/* Full leaderboard */
.kf-lb-note { font-size: 0.9rem; color: var(--kf-gray-600); margin-bottom: 16px; }
.kf-lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kf-lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--kf-gray-200);
  border-radius: 12px;
  padding: 10px 14px;
}
.kf-lb-top10 { border-color: #fbbf24; background: linear-gradient(90deg, #fffbeb, #fff); }
.kf-lb-rank { font-weight: 800; min-width: 36px; color: var(--kf-primary); }
.kf-lb-avatar { border-radius: 50%; object-fit: cover; }
.kf-lb-info { flex: 1; min-width: 0; }
.kf-lb-name { font-weight: 700; }
.kf-lb-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.kf-lb-badge {
  font-size: 0.7rem;
  background: var(--kf-gray-100);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--kf-gray-700);
}
.kf-lb-pts { text-align: right; }
.kf-lb-pts strong { display: block; font-size: 1.1rem; color: var(--kf-primary); }
.kf-lb-pts span { font-size: 0.75rem; color: var(--kf-gray-600); }
.kf-tip-item { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--kf-gray-100); }
.kf-tip-item p { margin: 4px 0 0; font-size: 0.9rem; color: var(--kf-gray-700); }
.kf-encourage { border-left: 4px solid #f59e0b; }





/* ===== Comments cards (highlight + mobile safe) ===== */
.kf-comments-wrap,
.kf-comments,
#kf-comments,
#comments{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow-x:hidden;
  padding:12px 0;
  margin-top:12px;
}
.kf-comments-title{margin:0 0 12px;font-size:1.1rem;font-weight:700;color:#0f172a}
.kf-comments-empty{color:#64748b;font-size:0.9rem;margin:0 0 12px}
.kf-comment-list{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:12px;
  width:100%;max-width:100%;
}
.kf-comment-list .children{
  list-style:none;margin:10px 0 0 0;padding:0 0 0 10px;
  border-left:2px solid #e2e8f0;
  display:flex;flex-direction:column;gap:10px;
  width:100%;max-width:100%;box-sizing:border-box;
}
.kf-comment-card{list-style:none;margin:0;width:100%;max-width:100%}
.kf-comment-card-inner{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-left:4px solid #0f766e;
  border-radius:12px;
  padding:12px;
  box-shadow:0 1px 3px rgba(15,23,42,.06);
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.kf-comment-head{display:flex;align-items:center;gap:10px;margin-bottom:8px;min-width:0}
.kf-comment-avatar{flex-shrink:0}
.kf-comment-avatar img{border-radius:50%;display:block;width:40px;height:40px}
.kf-comment-meta{min-width:0;flex:1}
.kf-comment-author{display:block;font-size:0.95rem;color:#0f172a}
.kf-comment-time{display:block;font-size:0.75rem;color:#94a3b8;margin-top:2px}
.kf-comment-text{
  font-size:0.95rem;line-height:1.55;color:#334155;margin:0 0 10px;
  overflow-wrap:anywhere;word-break:break-word;
}
.kf-comment-text p{margin:0 0 6px}
.kf-comment-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.kf-comment-reply a,
.kf-comment-helpful{
  display:inline-flex;align-items:center;gap:4px;
  font-size:0.8rem;font-weight:600;color:#0f766e;
  background:#ecfdf5;border:1px solid #a7f3d0;border-radius:999px;
  padding:5px 12px;cursor:pointer;text-decoration:none;
}
.kf-comment-helpful.is-on{background:#0f766e;color:#fff;border-color:#0f766e}

/* Form — prevent horizontal overflow on phones */
.kf-comment-form-card{
  margin-top:16px;padding:12px;
  background:#fff;
  border:1px solid #e2e8f0;border-radius:12px;
  width:100%;max-width:100%;box-sizing:border-box;
  overflow-x:hidden;
}
.kf-comment-form,
#kf-commentform,
.comment-form{
  width:100%;max-width:100%;box-sizing:border-box;
}
.kf-comment-form p,
.comment-form p,
.comment-form .comment-notes,
.comment-form .logged-in-as{
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
  font-size:0.85rem;
  line-height:1.4;
}
.kf-comment-form label,
.comment-form label{display:block;margin-bottom:4px;font-size:0.9rem}
.kf-comment-form textarea,
.comment-form textarea,
#comment{
  width:100% !important;
  max-width:100% !important;
  min-height:100px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:12px;
  font-size:16px; /* stops iOS zoom */
  box-sizing:border-box !important;
  display:block;
}
.kf-comment-form input[type="text"],
.kf-comment-form input[type="email"],
.kf-comment-form input[type="url"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"]{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  padding:10px 12px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  font-size:16px;
}
.kf-comment-form .form-submit,
.comment-form .form-submit{margin-top:10px}
.kf-comment-form .form-submit input,
.comment-form .form-submit input,
.kf-btn.kf-btn-primary{
  max-width:100%;
}

/* Single article container safety */
.kf-single,
.kf-article,
.kf-card.kf-article{
  max-width:100%;
  overflow-x:hidden;
  box-sizing:border-box;
}
.kf-share-box{
  max-width:100%;
  box-sizing:border-box;
  overflow-x:hidden;
}
.kf-share-btns{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-width:100%;
}

.kf-comment-thanks{
  position:fixed;inset:0;background:rgba(15,23,42,.45);
  z-index:100020;display:flex;align-items:center;justify-content:center;
  padding:16px;
}
.kf-comment-thanks-inner{
  background:#fff;border-radius:16px;padding:24px 20px;max-width:min(320px,100%);
  text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.2);
  box-sizing:border-box;
}
.kf-comment-thanks-icon{font-size:2rem;display:block;margin-bottom:8px}
.kf-comment-thanks-inner p{margin:0 0 14px;font-weight:600;color:#0f172a;line-height:1.4}

@media (max-width:480px){
  .kf-comments-wrap,
  .kf-comment-form-card{padding-left:0;padding-right:0}
  .kf-comment-card-inner{padding:12px 10px}
  .kf-comment-list .children{padding-left:8px;margin-left:0}
}



/* Shop products — 2 per row mobile, 1000x800 ratio */
.kf-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
@media(min-width:768px){.kf-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(min-width:1100px){.kf-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.kf-product-img{aspect-ratio:5/4;overflow:hidden;background:#f1f5f9}
.kf-product-img img{width:100%;height:100%;object-fit:cover;display:block}
