/* ============================================================
   Kent Cyber Kid - Global Stylesheet
   Remote ICT Support & Training Worldwide
   kentcyberkid.com
   ============================================================ */

/* === CSS Variables === */
:root {
  --kck-primary:   #2563EB;
  --kck-primary-d: #1d4ed8;
  --kck-navy:      #0F172A;
  --kck-bg:        #F8FAFC;
  --kck-accent:    #10B981;
  --kck-accent-d:  #059669;
  --kck-white:     #ffffff;
  --kck-gray-50:   #f8fafc;
  --kck-gray-100:  #f1f5f9;
  --kck-gray-200:  #e2e8f0;
  --kck-gray-400:  #94a3b8;
  --kck-gray-600:  #475569;
  --kck-text:      #1e293b;
  --kck-text-muted:#64748b;
  --kck-radius:    12px;
  --kck-radius-lg: 20px;
  --kck-shadow:    0 4px 16px rgba(0,0,0,.08);
  --kck-shadow-lg: 0 10px 40px rgba(0,0,0,.14);
  --kck-transition:all .3s ease;
}

/* === Dark Mode === */
[data-theme="dark"] {
  --kck-bg:       #0F172A;
  --kck-white:    #1e293b;
  --kck-gray-100: #1e293b;
  --kck-gray-200: #334155;
  --kck-text:     #f1f5f9;
  --kck-text-muted:#94a3b8;
  --kck-shadow:   0 4px 16px rgba(0,0,0,.4);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--kck-bg);
  color: var(--kck-text);
  transition: background .3s, color .3s;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; transition: var(--kck-transition); }

/* === Utilities === */
.text-accent   { color: var(--kck-accent) !important; }
.bg-navy       { background: var(--kck-navy) !important; }
.badge-cat     { background: rgba(37,99,235,.1); color: var(--kck-primary); font-size:.75rem; font-weight:600; padding:3px 10px; border-radius:50px; display:inline-block; }
.section-badge { display:inline-block; background:rgba(37,99,235,.1); color:var(--kck-primary); font-size:.78rem; font-weight:700; padding:5px 16px; border-radius:50px; letter-spacing:.5px; text-transform:uppercase; margin-bottom:10px; }
[data-theme="dark"] .section-badge { background:rgba(37,99,235,.25); }

/* === Buttons === */
.btn { border-radius: 50px !important; font-weight: 600; transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease; }
.btn:hover { transform: translateY(-3px) scale(1.015); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:focus-visible { outline: 3px solid rgba(37,99,235,.32); outline-offset: 3px; }
.btn-wa      { background: #25D366; color: #fff; border: none; }
.btn-wa:hover{ background: #1ebe57; color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.35); }
.btn-instagram { color: #fff; border: none; background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045); }
.btn-instagram:hover { color: #fff; box-shadow: 0 7px 18px rgba(225,48,108,.35); }
.btn-primary { background: var(--kck-primary); border-color: var(--kck-primary); }
.btn-primary:hover { background: var(--kck-primary-d); border-color: var(--kck-primary-d); box-shadow: 0 6px 18px rgba(37,99,235,.35); }
.btn-accent  { background: var(--kck-accent); border: none; color: #fff; }
.btn-accent:hover { background: var(--kck-accent-d); color: #fff; }
.btn-outline-primary { border-color: var(--kck-primary); color: var(--kck-primary); }
.btn-outline-primary:hover { background: var(--kck-primary); color: #fff; }

/* === Navbar === */
.kck-navbar {
  background: var(--kck-white);
  box-shadow: 0 1px 12px rgba(0,0,0,.07);
  padding: 6px 0;
  transition: var(--kck-transition);
}
[data-theme="dark"] .kck-navbar { background: var(--kck-navy); }
.brand-logo {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--kck-primary), var(--kck-accent));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: -1px;
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { font-size: 1rem; font-weight: 700; color: var(--kck-navy); }
[data-theme="dark"] .brand-text { color: #fff; }
.kck-navbar .nav-link { font-size: .78rem; font-weight: 500; color: var(--kck-text-muted); padding: 5px 8px !important; border-radius: 6px; }
.kck-navbar .nav-link:hover, .kck-navbar .nav-link.active { color: var(--kck-primary); background: rgba(37,99,235,.07); }
.dark-toggle { border-radius: 6px !important; padding: 4px 8px !important; font-size: .85rem; }
/* Smaller action buttons in navbar */
.kck-navbar .btn-sm { font-size: .75rem !important; padding: 4px 10px !important; }
.kck-navbar .btn-wa { font-size: .75rem !important; padding: 4px 10px !important; }

/* === Hero === */
.kck-hero {
  background: linear-gradient(135deg, var(--kck-navy) 0%, #1a3a6e 60%, #0d2d55 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.kck-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232563EB' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.kck-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('/images/logo.png') no-repeat 90% 50% / min(440px, 38vw) auto;
  opacity: .10; filter: grayscale(1) brightness(2.2); mix-blend-mode: screen;
}
.kck-hero .container { position: relative; z-index: 1; }
.hero-badge { background: rgba(16,185,129,.15); color: var(--kck-accent); border: 1px solid rgba(16,185,129,.3); padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600; display: inline-block; margin-bottom: 18px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-title span { color: var(--kck-accent); }
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 32px; max-width: 520px; }
.hero-search { display: flex; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; overflow: hidden; backdrop-filter: blur(10px); margin-bottom: 28px; max-width: 480px; }
.hero-search input  { flex: 1; background: none; border: none; outline: none; padding: 13px 20px; color: #fff; font-family: inherit; }
.hero-search input::placeholder { color: rgba(255,255,255,.45); }
.hero-search button { background: var(--kck-primary); border: none; padding: 13px 22px; color: #fff; font-weight: 600; cursor: pointer; transition: var(--kck-transition); }
.hero-search button:hover { background: var(--kck-primary-d); }
.hero-visual-card {
  background:
    linear-gradient(135deg, rgba(15,23,42,.78), rgba(37,99,235,.45)),
    url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=85') center / cover;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.13); border-radius: var(--kck-radius-lg);
  padding: 28px; color: #fff;
}
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--kck-accent); }
.hero-stat span   { font-size: .78rem; color: rgba(255,255,255,.6); }
.tutorial-steps { display: grid; gap: 16px; }
.tutorial-step { display: flex; align-items: flex-start; gap: 14px; padding: 15px; border: 1px solid var(--kck-gray-200); border-radius: 14px; background: var(--kck-gray-50); }
.tutorial-step span { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--kck-primary), var(--kck-accent)); font-weight: 800; }
.tutorial-step p { color: var(--kck-text); font-size: .94rem; }

/* === Cards === */
.kck-card {
  background: var(--kck-white);
  border-radius: 20px;
  box-shadow: var(--kck-shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  border: 1px solid transparent;
  overflow: hidden;
  position: relative;
}
.kck-card::before, .dash-panel::before, .dash-stat::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 4px;
  background: linear-gradient(180deg, var(--kck-primary), var(--kck-accent));
  opacity: 0; transition: opacity .28s ease;
}
.kck-card:hover, .dash-panel:hover, .dash-stat:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 18px 36px rgba(37,99,235,.16), 0 5px 15px rgba(16,185,129,.10);
}
.kck-card:hover::before, .dash-panel:hover::before, .dash-stat:hover::before { opacity: 1; }
[data-theme="dark"] .kck-card:hover { border-color: rgba(96,165,250,.65); }
[data-theme="dark"] .kck-card { background: #1e293b; border: 1px solid #334155; }

/* Course / Service cards */
.svc-icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--kck-primary), #60a5fa);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; margin-bottom: 16px;
  transition: transform .28s ease, filter .28s ease;
}
.kck-card:hover .svc-icon { transform: rotate(-5deg) scale(1.09); filter: saturate(1.2); }
.svc-icon.green { background: linear-gradient(135deg, var(--kck-accent), #34d399); }
.svc-icon.orange{ background: linear-gradient(135deg, #f97316, #fb923c); }
.svc-icon.purple{ background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

/* Reel card */
.reel-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--kck-navy), #1e3a5f);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.reel-play {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(37,99,235,.85);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; position: relative; z-index: 1;
  transition: var(--kck-transition);
}
.reel-thumb:hover .reel-play { background: var(--kck-primary); transform: scale(1.1); }

/* Tutorial card thumb */
.tut-thumb {
  height: 170px; display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; position: relative;
}

/* Pricing card */
.pricing-card { text-align: center; padding: 36px 28px; }
.pricing-card.featured { background: var(--kck-primary); color: #fff; }
.pricing-card.featured h5,
.pricing-card.featured .plan-price,
.pricing-card.featured li { color: #fff !important; }
.pricing-card.featured .text-muted { color: rgba(255,255,255,.75) !important; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--kck-navy); }
[data-theme="dark"] .plan-price { color: #fff; }
.plan-price small { font-size: 1rem; font-weight: 400; }
.popular-badge { background: var(--kck-accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 14px; border-radius: 50px; display: inline-block; margin-bottom: 10px; }

/* Testimonial */
.testimonial-card { border-left: 4px solid var(--kck-primary); padding: 24px; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--kck-primary), var(--kck-accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.stars { color: #f59e0b; }

/* === Skill Bars === */
.skill-track { background: var(--kck-gray-200); border-radius: 50px; height: 10px; overflow: hidden; }
.skill-fill  { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--kck-primary), var(--kck-accent)); width: 0; transition: width 1.2s ease; }
[data-theme="dark"] .skill-track { background: #334155; }

/* === Timeline === */
.kck-timeline { position: relative; }
.kck-timeline::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: var(--kck-gray-200); }
[data-theme="dark"] .kck-timeline::before { background: #334155; }
.tl-item { display: flex; gap: 24px; margin-bottom: 32px; }
.tl-dot { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--kck-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; z-index: 1; position: relative; }

/* === FAQ === */
.faq-item { background: var(--kck-white); border-radius: var(--kck-radius); margin-bottom: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.06); overflow: hidden; }
[data-theme="dark"] .faq-item { background: #1e293b; border: 1px solid #334155; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: .93rem; user-select: none; }
.faq-q:hover { color: var(--kck-primary); }
.faq-arrow { transition: transform .3s; color: var(--kck-text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--kck-primary); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-body p { padding: 0 22px 18px; font-size: .9rem; color: var(--kck-text-muted); margin: 0; }
.faq-item.open .faq-body { max-height: 300px; }

/* === CTA Banner === */
.kck-cta { background: linear-gradient(135deg, var(--kck-primary), var(--kck-primary-d)); padding: 70px 0; text-align: center; }
.kck-cta h2 { color: #fff; margin-bottom: 12px; }
.kck-cta p  { color: rgba(255,255,255,.8); margin-bottom: 28px; }

/* === Footer === */
.kck-footer { background: var(--kck-navy); padding: 60px 0 30px; }
[data-theme="dark"] .kck-footer { background: #020817; }
.footer-heading { color: #fff; font-size: .9rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.6); transition: var(--kck-transition); }
.footer-links a:hover { color: var(--kck-accent); padding-left: 4px; }
.social-btn { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.65); transition: var(--kck-transition); font-size: .9rem; }
.social-btn:hover { background: var(--kck-primary); color: #fff; }

/* === Floating WhatsApp === */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.7rem; box-shadow: 0 6px 20px rgba(37,211,102,.5);
  transition: var(--kck-transition); animation: waFloat 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); color: #fff; background: #1ebe57; }
.wa-tooltip {
  position: absolute; right: 68px; background: var(--kck-navy); color: #fff;
  padding: 5px 12px; border-radius: 8px; font-size: .8rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--kck-transition);
}
.wa-float:hover .wa-tooltip { opacity: 1; }
@keyframes waFloat {
  0%,100% { box-shadow: 0 6px 20px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 6px 30px rgba(37,211,102,.8); }
}

/* === Back to Top === */
.back-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%; background: var(--kck-primary);
  color: #fff; border: none; cursor: pointer; display: none;
  align-items: center; justify-content: center; box-shadow: var(--kck-shadow);
  transition: var(--kck-transition);
}
.back-top.show { display: flex; }
.back-top:hover { background: var(--kck-primary-d); transform: translateY(-3px); }

/* === Scroll Reveal === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* === Form Styles === */
.kck-form .form-control, .kck-form .form-select {
  border: 2px solid var(--kck-gray-200); border-radius: 10px !important;
  padding: 11px 16px; background: var(--kck-bg); color: var(--kck-text);
  font-family: inherit; transition: var(--kck-transition);
}
.kck-form .form-control:focus, .kck-form .form-select:focus {
  border-color: var(--kck-primary); background: var(--kck-white);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
[data-theme="dark"] .kck-form .form-control,
[data-theme="dark"] .kck-form .form-select { background: #1e293b; color: #f1f5f9; border-color: #334155; }
.kck-form label { font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.form-section { background: var(--kck-white); border-radius: var(--kck-radius-lg); padding: 36px; box-shadow: var(--kck-shadow); }
[data-theme="dark"] .form-section { background: #1e293b; border: 1px solid #334155; }

/* === Admin Styles === */
.admin-body { background: #f1f5f9; min-height: 100vh; }
[data-theme="dark"] .admin-body { background: #0F172A; }
.admin-sidebar {
  width: 260px; min-height: 100vh; background: var(--kck-navy);
  position: fixed; left: 0; top: 0; z-index: 100;
  display: flex; flex-direction: column; transition: var(--kck-transition);
}
.admin-sidebar .brand { padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.admin-sidebar .brand span { color: #fff; font-weight: 700; font-size: 1rem; }
.admin-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 10px; color: rgba(255,255,255,.65); font-size: .88rem;
  font-weight: 500; margin-bottom: 2px; transition: var(--kck-transition);
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(37,99,235,.25); color: #fff; }
.admin-nav a .nav-icon { width: 20px; text-align: center; }
.admin-nav .nav-section { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.3); padding: 12px 14px 4px; }
.admin-main { margin-left: 260px; padding: 0; min-height: 100vh; }
.admin-topbar {
  background: #fff; padding: 14px 28px; border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 99;
}
[data-theme="dark"] .admin-topbar { background: #1e293b; border-color: #334155; }
.admin-content { padding: 28px; }
.stat-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 1px 8px rgba(0,0,0,.06); border: none; }
[data-theme="dark"] .stat-card { background: #1e293b; border: 1px solid #334155; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-icon.blue   { background: rgba(37,99,235,.1);  color: var(--kck-primary); }
.stat-icon.green  { background: rgba(16,185,129,.1); color: var(--kck-accent); }
.stat-icon.orange { background: rgba(249,115,22,.1); color: #f97316; }
.stat-icon.purple { background: rgba(139,92,246,.1); color: #8b5cf6; }
.stat-icon.red    { background: rgba(239,68,68,.1);  color: #ef4444; }
.stat-icon.yellow { background: rgba(245,158,11,.1); color: #f59e0b; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--kck-navy); line-height: 1.1; }
[data-theme="dark"] .stat-num { color: #f1f5f9; }
.stat-label { font-size: .82rem; color: var(--kck-text-muted); }
.admin-table-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 8px rgba(0,0,0,.06); overflow: hidden; }
[data-theme="dark"] .admin-table-card { background: #1e293b; border: 1px solid #334155; }
.admin-table-card .card-header { padding: 18px 22px; background: #fff; border-bottom: 1px solid #f1f5f9; font-weight: 700; }
[data-theme="dark"] .admin-table-card .card-header { background: #1e293b; border-color: #334155; color: #f1f5f9; }
.table { margin: 0; }
[data-theme="dark"] .table { color: #e2e8f0; }
[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>* { background-color: rgba(255,255,255,.03); }
.status-badge { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; }
.status-paid    { background: rgba(16,185,129,.15); color: var(--kck-accent); }
.status-pending { background: rgba(245,158,11,.15); color: #f59e0b; }
.status-failed  { background: rgba(239,68,68,.15);  color: #ef4444; }
.status-new     { background: rgba(37,99,235,.15);  color: var(--kck-primary); }
.status-confirmed{background: rgba(16,185,129,.15); color: var(--kck-accent); }

/* === Payment Page === */
.payment-method-card { border: 2px solid var(--kck-gray-200); border-radius: var(--kck-radius); padding: 28px; cursor: pointer; transition: var(--kck-transition); }
.payment-method-card:hover, .payment-method-card.selected { border-color: var(--kck-primary); background: rgba(37,99,235,.04); }
.payment-method-card .method-icon { font-size: 2.5rem; margin-bottom: 12px; }
.qr-box { background: var(--kck-gray-100); border-radius: var(--kck-radius); padding: 24px; text-align: center; border: 2px dashed var(--kck-gray-200); }

.payment-hero { padding: 64px 0; background: radial-gradient(circle at top right, rgba(37,99,235,.5), transparent 38%), linear-gradient(135deg, #0f172a, #172554); }

/* Binance Pay card */
.binance-payment-card { border: 0; border-radius: 22px !important; overflow: hidden; position: relative; box-shadow: 0 18px 38px rgba(15,23,42,.22) !important; }
.binance-payment-card::after { content: ''; position: absolute; width: 220px; height: 220px; top: -120px; right: -105px; border-radius: 50%; background: rgba(245,158,11,.15); pointer-events: none; }
.binance-payment-card > * { position: relative; z-index: 1; }
.binance-payment-card .qr-box { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.06) !important; }
.binance-payment-card .qr-box > div,
.binance-payment-card .qr-box > p { display: none; }
.payment-qr-img { display: block; width: min(100%, 240px); height: auto; margin: 0 auto 14px; padding: 9px; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.payment-qr-title, .payment-qr-help { display: block; }
.payment-qr-title { color: #fff; font-size: .95rem; font-weight: 700; }
.payment-qr-help { margin-top: 4px; color: rgba(255,255,255,.65); font-size: .78rem; }
.binance-payment-card code { font-size: 1rem; letter-spacing: .05em; border-radius: 12px !important; }

/* === Downloads Page === */
.dl-card { display: flex; gap: 16px; align-items: flex-start; }
.dl-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(37,99,235,.1); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--kck-primary); flex-shrink: 0; }

/* === Mobile Sidebar === */
@media (max-width: 992px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; }
  .sidebar-overlay.show { display: block; }
}

/* ============================================================
   Customer Account System — Auth & Dashboard Styles
   ============================================================ */

/* === Auth Pages (login, register, forgot, reset) === */
.auth-body {
  font-family: 'Poppins', sans-serif;
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.92), rgba(29,78,216,.78)),
    url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=85');
  background-color: var(--kck-navy);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  min-height: calc(100vh - 154px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 34px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ig-float {
  position: fixed; bottom: 160px; right: 28px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.55rem; box-shadow: 0 6px 20px rgba(225,48,108,.42);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ig-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 9px 26px rgba(225,48,108,.55); }
.ig-tooltip {
  position: absolute; right: 62px; background: var(--kck-navy); color: #fff;
  padding: 5px 12px; border-radius: 8px; font-size: .8rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--kck-transition);
}
.ig-float:hover .ig-tooltip { opacity: 1; }
.telegram-float {
  position: fixed; bottom: 96px; right: 28px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  background: #229ED9; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.55rem; box-shadow: 0 6px 20px rgba(34,158,217,.42);
  transition: transform .25s ease, box-shadow .25s ease;
}
.telegram-float:hover { transform: scale(1.1); color: #fff; background: #168ac2; box-shadow: 0 9px 26px rgba(34,158,217,.55); }
.telegram-tooltip {
  position: absolute; right: 62px; background: var(--kck-navy); color: #fff;
  padding: 5px 12px; border-radius: 8px; font-size: .8rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--kck-transition);
}
.telegram-float:hover .telegram-tooltip { opacity: 1; }
@media (max-width: 576px) { .wa-float { bottom: 20px; right: 18px; } .telegram-float { bottom: 84px; right: 18px; } .ig-float { bottom: 148px; right: 18px; } }
.auth-card:hover { transform: translateY(-4px); box-shadow: 0 28px 72px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.2); }
[data-theme="dark"] .auth-card {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
}
.auth-brand {
  text-align: center;
  margin-bottom: 18px;
}
.auth-brand img {
  width: 88px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  object-fit: contain;
}
/* The global header already carries the official logo; keep account forms visually clean. */
.auth-body .auth-brand img { display: none; }
.auth-brand h4 { font-weight: 800; color: var(--kck-navy); margin: 0 0 4px; }
[data-theme="dark"] .auth-brand h4 { color: #f1f5f9; }
.auth-brand p  { color: var(--kck-text-muted); font-size: .87rem; margin: 0; }

/* The longer registration form uses a compact desktop grid, so it fits on one screen. */
.auth-card:has(#pwConfirm) { max-width: 720px; }
@media (min-width: 700px) {
  .auth-card:has(#pwConfirm) .kck-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .auth-card:has(#pwConfirm) .kck-form > .mb-3,
  .auth-card:has(#pwConfirm) .kck-form > .mb-4 { margin-bottom: .7rem !important; }
  .auth-card:has(#pwConfirm) .kck-form > button,
  .auth-card:has(#pwConfirm) .kck-form > .auth-divider,
  .auth-card:has(#pwConfirm) .kck-form > input[type="hidden"] { grid-column: 1 / -1; }
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--kck-text-muted); font-size: .82rem; margin: 18px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--kck-gray-200);
}

.auth-links { text-align: center; margin-top: 18px; font-size: .85rem; color: var(--kck-text-muted); }
.auth-links a { color: var(--kck-primary); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* Consistent interaction depth for account controls, service links and cards. */
.kck-card, .service-card, .course-card, .download-card, .dash-panel, .dash-stat {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.kck-card:hover, .service-card:hover, .course-card:hover, .download-card:hover, .dash-panel:hover {
  transform: translateY(-5px); box-shadow: var(--kck-shadow-lg);
}
@media (max-width: 768px) {
  .kck-hero::after { background-position: 120% 90%; background-size: 300px auto; opacity: .07; }
  .auth-body { min-height: calc(100vh - 120px); background-position: center; background-size: cover; align-items: flex-start; padding: 18px 12px; }
  .auth-card { padding: 26px 20px; }
}

/* Password strength meter */
.pw-strength { height: 5px; border-radius: 50px; margin-top: 6px; transition: var(--kck-transition); }
.pw-strength.weak   { background: #ef4444; width: 33%; }
.pw-strength.medium { background: #f59e0b; width: 66%; }
.pw-strength.strong { background: var(--kck-accent); width: 100%; }
.pw-hint { font-size: .75rem; margin-top: 4px; color: var(--kck-text-muted); }

/* Show/hide password eye button */
.pw-toggle {
  background: transparent; border: none; border-left: none;
  cursor: pointer; color: var(--kck-text-muted); padding: 0 14px;
}
.pw-toggle:hover { color: var(--kck-primary); }

/* Verification badge */
.verify-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 50px;
}
.verify-badge.verified   { background: rgba(16,185,129,.12); color: var(--kck-accent); }
.verify-badge.unverified { background: rgba(245,158,11,.12);  color: #f59e0b; }

/* === User Dashboard Layout === */
.user-dash-wrap { display: flex; min-height: 100vh; }

.user-sidebar {
  width: 240px; flex-shrink: 0; background: var(--kck-navy);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
[data-theme="dark"] .user-sidebar { background: #020817; }

.user-sidebar .usb-brand {
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 10px;
}
.user-sidebar .usb-brand span { color: #fff; font-weight: 700; font-size: .95rem; }

.user-sidebar .usb-user {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.usb-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--kck-primary), var(--kck-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.usb-user-name  { color: #fff; font-weight: 600; font-size: .88rem; line-height: 1.3; }
.usb-user-role  { color: rgba(255,255,255,.45); font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; }

.user-sidebar nav { padding: 12px 10px; flex: 1; }
.user-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  color: rgba(255,255,255,.6); font-size: .86rem; font-weight: 500;
  transition: var(--kck-transition); margin-bottom: 2px;
}
.user-sidebar nav a:hover,
.user-sidebar nav a.active { background: rgba(37,99,235,.25); color: #fff; }
.user-sidebar nav a i { width: 18px; text-align: center; }

.user-sidebar .usb-bottom {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.user-sidebar .usb-bottom a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  color: rgba(255,255,255,.5); font-size: .85rem;
  transition: var(--kck-transition);
}
.user-sidebar .usb-bottom a:hover { background: rgba(239,68,68,.15); color: #ef4444; }

/* Main area right of sidebar */
.user-main { flex: 1; min-width: 0; }

.user-topbar {
  background: var(--kck-white); border-bottom: 1px solid var(--kck-gray-200);
  padding: 10px 22px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
[data-theme="dark"] .user-topbar { background: #1e293b; border-color: #334155; }

.user-content { padding: 28px 24px; }

/* Dashboard stat cards */
.dash-stat {
  background: var(--kck-white); border-radius: var(--kck-radius);
  padding: 20px; box-shadow: var(--kck-shadow);
  display: flex; align-items: center; gap: 16px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  position: relative; overflow: hidden; border: 1px solid transparent;
}
[data-theme="dark"] .dash-stat { background: #1e293b; border: 1px solid #334155; }
.dash-stat:hover { transform: translateY(-3px); box-shadow: var(--kck-shadow-lg); }
.dash-stat-icon {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.dash-stat-icon.blue   { background: rgba(37,99,235,.1);  color: var(--kck-primary); }
.dash-stat-icon.green  { background: rgba(16,185,129,.1); color: var(--kck-accent); }
.dash-stat-icon.orange { background: rgba(249,115,22,.1); color: #f97316; }
.dash-stat-icon.purple { background: rgba(139,92,246,.1); color: #8b5cf6; }
.dash-stat-num   { font-size: 1.35rem; font-weight: 800; line-height: 1; color: var(--kck-navy); }
[data-theme="dark"] .dash-stat-num { color: #f1f5f9; }
.dash-stat-label { font-size: .78rem; color: var(--kck-text-muted); margin-top: 2px; }

/* Dashboard card panels */
.dash-panel {
  background: var(--kck-white); border-radius: var(--kck-radius);
  box-shadow: var(--kck-shadow); overflow: hidden; position: relative;
  border: 1px solid transparent;
}
[data-theme="dark"] .dash-panel { background: #1e293b; border: 1px solid #334155; }
.dash-panel-header {
  padding: 13px 18px; font-weight: 700; font-size: .85rem;
  border-bottom: 1px solid var(--kck-gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
[data-theme="dark"] .dash-panel-header { border-color: #334155; color: #f1f5f9; }
.dash-panel-body { padding: 20px; }

/* Course progress card */
.course-card-dash {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--kck-gray-100);
}
[data-theme="dark"] .course-card-dash { border-color: #334155; }
.course-card-dash:last-child { border: none; padding-bottom: 0; }
.course-thumb-sm {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--kck-primary), #60a5fa);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.enroll-status {
  font-size: .73rem; font-weight: 700; padding: 2px 9px; border-radius: 50px;
  display: inline-block;
}
.enroll-active    { background: rgba(16,185,129,.12); color: var(--kck-accent); }
.enroll-pending   { background: rgba(245,158,11,.12);  color: #f59e0b; }
.enroll-completed { background: rgba(37,99,235,.12);   color: var(--kck-primary); }
.enroll-cancelled { background: rgba(239,68,68,.12);   color: #ef4444; }

/* Mobile sidebar toggle */
.user-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 100;
}
.user-sidebar-overlay.show { display: block; }
@media (max-width: 992px) {
  .user-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 101;
    transform: translateX(-100%);
  }
  .user-sidebar.open { transform: translateX(0); }
  .user-main { margin-left: 0; }
  .user-content { padding: 20px 16px; }
}

/* === Profile Page === */
.profile-avatar-wrap {
  position: relative; display: inline-block;
}
.profile-avatar-lg {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--kck-primary), var(--kck-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.5rem; font-weight: 700; overflow: hidden;
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit-btn {
  position: absolute; bottom: 2px; right: 2px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--kck-primary);
  color: #fff; border: 2px solid #fff; display: flex;
  align-items: center; justify-content: center; font-size: .7rem; cursor: pointer;
  transition: var(--kck-transition);
}
.avatar-edit-btn:hover { background: var(--kck-primary-d); }

/* Toast notification (already used in main.js) */
.toast-msg {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--kck-navy); color: #fff; padding: 12px 24px; border-radius: 50px;
  font-size: .88rem; font-weight: 500; opacity: 0; z-index: 9999;
  transition: all .3s ease; pointer-events: none; white-space: nowrap;
}
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-msg.toast-success { background: var(--kck-accent); }
.toast-msg.toast-danger  { background: #ef4444; }

/* Logout confirm page */
.logout-card {
  background: var(--kck-white); border-radius: 20px; padding: 48px 40px;
  width: 100%; max-width: 420px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
[data-theme="dark"] .logout-card { background: #1e293b; }
