/* ============================================================
   World Oculoplastic Surgery Congress 2027
   Global Stylesheet — style.css
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary:       #0038a7;      /* Royal Blue */
  --primary-dark:  #002680;
  --primary-light: #1a52c4;
  --accent:        #fbb901;      /* Golden Yellow */
  --accent-dark:   #e0a500;
  --text-dark:     #1a2332;
  --text-mid:      #4a5568;
  --text-light:    #718096;
  --bg-light:      #f4f7fc;
  --bg-white:      #ffffff;
  --bg-dark:       #0d1b3e;
  --border:        #dde5f0;
  --shadow-sm:     0 2px 8px rgba(0,56,167,0.08);
  --shadow-md:     0 8px 32px rgba(0,56,167,0.12);
  --shadow-lg:     0 20px 60px rgba(0,56,167,0.18);
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading:  'HYYaKuHei-75J', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-body:     'AnticSlab-Regular', 'Georgia', serif;
}

/* ---------- Font Face ---------- */
@font-face {
  font-family: 'HYYaKuHei-75J';
  src: url('fonts/HYYaKuHei-75J.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AnticSlab-Regular';
  src: url('fonts/AnticSlab-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CormorantGaramond-BoldItalic';
  src: url('fonts/CormorantGaramond-BoldItalic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.section-header-line {
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 16px;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,56,167,0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251,185,1,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

#main-nav.scrolled {
  background: rgba(0, 32, 100, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

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

/* Logo */
.nav-logo-icon{
  width: 136px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text .abbr {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.nav-logo-text .year {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-family: var(--font-heading);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active > .nav-link {
  color: var(--accent);
  background: rgba(255,255,255,0.08);
}

.nav-link .arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 24px;
}

/* Register button */
.btn-register-nav {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 9px 22px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid var(--accent);
}

.btn-register-nav:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251,185,1,0.4);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  /* padding: 6px; */
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   PAGE HERO BANNER (inner pages)
   ============================================================ */
.page-hero {
  background: url('../img/bg_1.jpg');
  /* background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e4d8c 100%); */
  padding: 140px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="80" r="30" fill="rgba(255,255,255,0.02)"/></svg>');
  background-size: cover;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  position: relative;
}

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  position: relative;
}

.page-hero .breadcrumb a { color: var(--accent); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
#main-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer-qr-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-qr-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-qr-img canvas,
.footer-qr-img img { width: 100%; height: 100%; }

.footer-qr-info { flex: 1; }
.footer-qr-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.footer-qr-info strong {
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
.bg-light { background: var(--bg-light); }

/* Fade-in animation on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .nav-menu { display: none; }
  .nav-toggle { display: flex; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 72px; left: 0; right: 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    background: rgba(0,30,100,0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    z-index: 999;
  }

  .nav-link { padding: 14px 16px; font-size: 1rem; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 0;
    padding: 0 0 8px 16px;
    display: none;
  }

  .nav-item.open .dropdown-menu { display: block; }
  .dropdown-item { color: rgba(255,255,255,0.7); }
  .dropdown-item:hover { background: transparent; color: var(--accent); }

  .btn-register-nav { display: block; text-align: center; margin-top: 6px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section-pad { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   REGISTER / LOGIN MODAL
   ============================================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,20,80,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.auth-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: var(--transition);
}

.auth-modal-overlay.open .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-mid);
  font-size: 1.2rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.auth-modal-close:hover {
  background: var(--border);
  color: var(--text-dark);
}

.auth-modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-modal-logo-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
}

.auth-modal-logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.auth-modal h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.auth-modal p.auth-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.auth-form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: var(--transition);
  font-family: var(--font-body);
  outline: none;
}

.auth-form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,56,167,0.1);
}

.auth-form-group input.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}

.auth-captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.captcha-box {
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: var(--transition);
  min-width: 120px;
}

.captcha-box:hover {
  opacity: 0.85;
}

.auth-error {
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
  min-height: 18px;
}

.auth-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.auth-modal-actions .btn {
  justify-content: center;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.auth-tab.active {
  color: var(--primary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.auth-tab:hover {
  color: var(--primary);
}

/* Auth Panels */
.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

/* Forgot Password Link */
.forgot-password-link {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: -8px;
  margin-bottom: 12px;
  padding: 4px 0;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* Auth Input Row (for captcha + send button) */
.auth-input-row {
  display: flex;
  gap: 8px;
}

.auth-input-row input {
  flex: 1;
}

.btn-send-code {
  padding: 10px 16px;
  font-size: 0.85rem;
  white-space: nowrap;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-send-code:hover {
  background: var(--primary-light);
}

.btn-send-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Forgot Password Modal Overlay */
.forgot-password-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 20, 80, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.forgot-password-overlay.open {
  display: flex;
  opacity: 1;
}

.forgot-password-modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 90%;
  max-width: 440px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.forgot-password-overlay.open .forgot-password-modal {
  transform: translateY(0);
}

.forgot-password-modal h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.forgot-password-modal .auth-subtitle {
  margin-bottom: 20px;
}


/* User nav button (after login) */
.nav-user-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #1a2332;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid var(--accent);
  white-space: nowrap;
}

.nav-user-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.nav-user-btn .user-arrow {
  width: 12px; height: 12px;
  transition: transform 0.25s;
}

.nav-user-btn.open .user-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
}

.nav-user-btn.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 20px;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 24px;
}

/* ============================================================
   QR FLOAT WIDGET — Conference H5 QR Code
   ============================================================ */
#qrFloatWidget {
  position: fixed;
  right: 0;
  bottom: 120px;
  z-index: 1500;
  display: flex;
  align-items: stretch;
  /* collapsed by default — panel hidden */
}

/* Tab trigger (always visible, sticks out on right) */
.qr-float-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 40px;
  min-height: 96px;
  background: var(--accent-dark);
  color: var(--primary-dark);
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  user-select: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 0;
  transition: background 0.25s, box-shadow 0.25s;
  box-shadow: -3px 0 16px rgba(0,56,167,0.22);
  border: none;
  font-family: var(--font-body);
}

.qr-float-tab:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: -4px 0 22px rgba(0,56,167,0.32);
}

.qr-float-tab svg {
  flex-shrink: 0;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

/* When open: rotate arrow */
#qrFloatWidget.open .qr-float-tab svg {
  transform: rotate(180deg);
}

/* Panel (slides in from right) */
.qr-float-panel {
  width: 0;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #fff;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 28px rgba(0,56,167,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#qrFloatWidget.open .qr-float-panel {
  width: 168px;
}

.qr-float-inner {
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.qr-float-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
}

#qrFloatCanvas {
  display: block;
  border-radius: 6px;
  border: 2px solid var(--border);
}

.qr-float-hint {
  font-size: 0.68rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.45;
  max-width: 130px;
  white-space: normal;
}

.qr-float-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 8px;
}

/* Mobile: smaller & moved up slightly */
@media (max-width: 768px) {
  #qrFloatWidget {
    bottom: 80px;
  }

  .qr-float-tab {
    width: 34px;
    min-height: 80px;
    font-size: 0.62rem;
  }

  #qrFloatWidget.open .qr-float-panel {
    width: 148px;
  }
}
