/* ==========================================================
   SMART-QR.IN — Modern Digital Visiting Card & Platform CSS
   Brand: SmartQR (www.smart-qr.in)
   Developed by Softech Infotech
   ========================================================== */

@import url('./theme.css');

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--gray-50);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  width: 100%;
}
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.dashboard-page .navbar-container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0.85rem 2rem;
  box-sizing: border-box;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.brand-logo:hover {
  text-decoration: none;
  color: var(--dark);
}
.brand-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  box-shadow: 0 4px 10px rgba(255, 101, 0, 0.25);
  flex-shrink: 0;
}
.brand-badge {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0;
  background: transparent;
  margin-left: 1px;
}
.nav-back-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: #ffffff;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.nav-back-icon-btn:hover {
  background: var(--gray-100);
  color: var(--primary);
  border-color: var(--gray-300);
  text-decoration: none;
  transform: translateX(-2px);
}
.nav-back-icon-btn svg {
  color: var(--primary);
}

/* Dashboard Sectioned UI Architecture */
.dash-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 0;
  margin-bottom: 1.25rem;
  position: sticky;
  top: 65px;
  z-index: 90;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  max-width: 100%;
  box-sizing: border-box;
}
.dash-nav-pills::-webkit-scrollbar {
  display: none;
}
.dash-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--gray-200);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dash-pill-btn:hover {
  color: var(--primary);
  border-color: var(--primary-100);
  background: var(--primary-light);
  text-decoration: none;
}
.dash-pill-btn.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 101, 0, 0.28);
}
.dash-pill-btn.active svg {
  stroke: #ffffff;
}

.dash-section-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  box-sizing: border-box;
}
.dash-section-card:hover {
  border-color: #D1D5DB;
  box-shadow: var(--shadow-md);
}

.dash-section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.dash-section-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-section-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.dash-section-header p {
  font-size: 0.84rem;
  color: var(--gray-500);
  line-height: 1.4;
  margin: 0;
}

.dash-sub-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
.dash-sub-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-family);
}
.btn:hover {
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(255, 101, 0, 0.28);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface);
  color: var(--secondary);
  border-color: var(--border-color);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--table-header);
  color: var(--secondary);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover:not(:disabled) {
  background: var(--primary-light);
}
.btn-success {
  background: var(--success);
  color: var(--text-white);
}
.btn-success:hover:not(:disabled) {
  background: #15803D;
}
.btn-danger {
  background: var(--danger);
  color: var(--text-white);
}
.btn-danger:hover:not(:disabled) {
  background: #B91C1C;
}
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
  background: radial-gradient(circle at top, #e0e7ff 0%, #f8fafc 60%);
}
.hero-container {
  max-width: 900px;
  margin: 0 auto;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--gray-200);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.hero-title .gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-500);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--gray-500);
}
.hero-price-tag strong {
  font-size: 1.4rem;
  color: var(--dark);
}

/* Features Grid */
.section {
  padding: 4.5rem 1.5rem;
}
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}
.section-badge {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.feature-desc {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Documents Banner (Menu, Price list, Catalogue, Brochure) */
.doc-showcase {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin: 3rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.doc-showcase-text h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.doc-showcase-text p {
  color: var(--gray-400);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.doc-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.doc-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
}
.doc-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}
.doc-pill-icon {
  font-size: 1.5rem;
}

/* Pricing Card */
.pricing-wrap {
  max-width: 460px;
  margin: 0 auto;
}
.pricing-card {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.pricing-ribbon {
  position: absolute;
  top: 15px;
  right: -35px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
  text-transform: uppercase;
}
.pricing-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--dark);
  margin: 1rem 0 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1;
}
.pricing-price .price-val,
.pricing-price .dynamic-price {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.pricing-price .price-period {
  font-size: 1.05rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-left: 0.25rem;
}
.pricing-price > span:not(.price-val):not(.dynamic-price) {
  font-size: 1.05rem;
  color: var(--gray-500);
  font-weight: 500;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--gray-700);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--gray-200);
}
.pricing-features li:last-child {
  border-bottom: none;
}
.pricing-check {
  color: var(--success);
  font-weight: bold;
}

/* Auth Split-Screen Layout (Login & Signup) */
.auth-split-wrapper {
  min-height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}

.auth-brand-panel {
  background: var(--secondary);
  color: var(--text-white);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 101, 0, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: auto 0;
}

.auth-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 101, 0, 0.14);
  border: 1px solid rgba(255, 101, 0, 0.35);
  color: #FF8533;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.auth-brand-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.auth-brand-title span {
  color: var(--primary);
}

.auth-brand-desc {
  color: #9CA3AF;
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.auth-mini-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-mini-qr {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-form-panel {
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrap .form-control {
  padding-right: 2.75rem;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.password-toggle-btn:hover {
  color: var(--secondary);
  background: var(--table-header);
}

@media (max-width: 900px) {
  .auth-split-wrapper {
    grid-template-columns: 1fr;
  }
  .auth-brand-panel {
    display: none;
  }
  .auth-form-panel {
    padding: 2rem 1rem;
    min-height: calc(100vh - 67px);
  }
}

/* Auth Cards (Login & Signup) */
.auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background: var(--background);
}
.auth-card {
  background: var(--surface);
  width: 100%;
  max-width: 460px;
  padding: 2.5rem 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
}
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-header-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(255, 101, 0, 0.14);
}
.auth-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.auth-header p {
  color: var(--gray-500);
  font-size: 0.94rem;
  line-height: 1.5;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--dark);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(255, 101, 0, 0.16);
}
.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.35rem;
}
.slug-preview {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.84rem;
  color: var(--primary);
  margin-top: 0.45rem;
  word-break: break-all;
}
.auth-session-alert {
  background: var(--primary-light);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.auth-footer-nav {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-window {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-fit-window {
  max-width: 390px;
  overflow-y: hidden;
  scrollbar-width: none;
}
.modal-fit-window::-webkit-scrollbar {
  display: none;
}
.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: var(--dark);
}
.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}
.modal-footer {
  padding: 0.85rem 1.25rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--dark);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); color: var(--dark); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 3.5rem 1.5rem 2rem;
  font-size: 0.9rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand h4 {
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.footer-col h5 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul a {
  color: var(--gray-400);
}
.footer-col ul a:hover {
  color: white;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================
   DIGITAL PROFILE CARD VIEW (Mobile-First Frame)
   ========================================================== */
.card-wrapper {
  max-width: 480px;
  margin: 1.5rem auto 3rem;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  position: relative;
}
.card-banner {
  height: 140px;
  background: linear-gradient(135deg, var(--theme-color, #2563eb), #1e293b);
  position: relative;
}
.card-avatar-wrap {
  position: absolute;
  bottom: -45px;
  left: 24px;
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-md);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-avatar {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--theme-color, #2563eb);
}
.card-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-body {
  padding: 55px 22px 24px;
}
.card-business-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
}
.card-tagline {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}
.card-description {
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.85rem 0 1.25rem;
}

/* Quick Actions (Call, WhatsApp, Maps, Save Contact) */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.25rem;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.action-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}
.action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.action-btn.call .action-icon { color: #2563eb; }
.action-btn.whatsapp .action-icon { color: #16a34a; }
.action-btn.maps .action-icon { color: #ea580c; }
.action-btn.save .action-icon { color: #9333ea; }

/* Documents Section (Menu, Price list, Catalogue, Brochure) */
.profile-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.profile-docs-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.doc-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--dark);
  transition: all 0.2s ease;
}
.doc-card-link:hover {
  border-color: var(--theme-color, #2563eb);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.doc-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.doc-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.doc-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.doc-tag {
  font-size: 0.75rem;
  color: var(--gray-400);
}
.doc-arrow {
  color: var(--gray-400);
  font-weight: bold;
}

/* Offer Banner */
.offer-banner-card {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px dashed #d97706;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.offer-icon {
  font-size: 1.75rem;
}
.offer-text h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 2px;
}
.offer-text p {
  font-size: 0.82rem;
  color: #78350f;
  line-height: 1.35;
}

/* Bank & UPI QR */
.bank-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--gray-200);
}
.bank-row:last-child {
  border-bottom: none;
}
.bank-label {
  color: var(--gray-500);
}
.bank-val {
  font-weight: 600;
  color: var(--dark);
}

/* Social Buttons Row */
.social-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.social-icon-btn:hover {
  background: var(--theme-color, #2563eb);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Floating Footer CTA */
.card-floating-cta {
  position: sticky;
  bottom: 12px;
  margin: 0 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 50;
}
.card-floating-cta span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .doc-showcase {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .doc-items-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nav-links {
    display: none;
  }
}

/* ==========================================================
   OFFICIAL PROFILE VIEW STYLES & AUTHENTIC LOGOS
   ========================================================== */
.profile-view-wrap {
  width: 100%;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  display: block;
  position: relative;
}

.profile-header {
  height: 110px;
  min-height: 110px;
  flex-shrink: 0;
  position: relative;
  background: var(--theme-color, #FF6500);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-logo-wrap {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: white;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  max-width: 180px;
  max-height: 180px;
  box-sizing: border-box;
}

.profile-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

.profile-logo-inner img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Logo Shapes */
.profile-logo-wrap.shape-round,
.profile-logo-wrap.shape-round .profile-logo-inner {
  border-radius: 50% !important;
}

.profile-logo-wrap.shape-square,
.profile-logo-wrap.shape-square .profile-logo-inner {
  border-radius: 18px !important;
}

.profile-logo-wrap.shape-rectangle {
  border-radius: 14px !important;
}
.profile-logo-wrap.shape-rectangle .profile-logo-inner {
  border-radius: 12px !important;
}

.profile-logo-wrap.shape-imagesize {
  border-radius: 10px !important;
}
.profile-logo-wrap.shape-imagesize .profile-logo-inner {
  border-radius: 8px !important;
}

/* Logo Background: Transparent removes any white background frame */
.profile-logo-wrap.bg-transparent {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}
.profile-logo-wrap.bg-transparent .profile-logo-inner {
  background: transparent !important;
  padding: 0 !important;
}

/* Shape selection buttons in dashboard */
.shape-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.shape-btn:hover {
  border-color: var(--primary);
  background: #f8fafc;
}
.shape-btn.active-shape {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: 0 0 0 2px rgba(255, 101, 0, 0.18);
}

.profile-title-sec {
  padding: 44px 20px 14px;
  text-align: center;
}

.profile-biz-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.profile-hours-pill {
  font-size: 10px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.profile-biz-desc {
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  line-height: 1.45;
  margin: 0;
  font-family: inherit;
}

.profile-content {
  padding: 0 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Info Card */
.infoCard {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.infoRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.infoRow:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.infoRow:first-child {
  padding-top: 0;
}

.infoIcon {
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.infoText {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

/* Actions Grid (Call, Contact, Email, Website) */
.actionGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.actionItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.2s;
  cursor: pointer;
  border-style: solid;
  min-width: 0;
  overflow: hidden;
}

.actionItem span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actionItem:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  text-decoration: none;
}

.actionItem .arrow {
  margin-left: auto;
  color: #cbd5e1;
  font-size: 12px;
}

/* Section Label */
.sectionLabel {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  margin-bottom: 2px;
  margin-left: 2px;
}

/* Connect Grid (Google Review, WhatsApp, UPI, FB, Insta, YT, LinkedIn, X) */
.connectGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.connectItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s, background 0.2s;
  min-width: 0;
  overflow: hidden;
}

.connectItem span:not(.connectIcon) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.connectItem:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  text-decoration: none;
}

.connectIcon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.connectIcon svg, .connectIcon img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Bank Box */
.bankBox {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.bankRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12.5px;
}

.bankLabel {
  color: #64748b;
  font-weight: 500;
}

.bankValue {
  font-weight: 600;
  font-family: inherit;
  color: #0f172a;
  text-align: right;
}

/* Offers Slider */
.offersSection {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.offersSlider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.offerCard {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offerCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
}

.offerImageWrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.offerDots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  z-index: 5;
  pointer-events: auto;
}

.offerDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.offerDotActive {
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.offerImage {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

.offerTitleBar {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
}

.offerTitleText {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offerActionPill {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ==========================================================
   SMART-QR DASHBOARD FORM & PHONE PREVIEW STYLES
   (Matches Softech Infotech /dashboard/smartqr)
   ========================================================== */
.smartqr-dashboard-content,
.oneqr-dashboard-content {
  display: flex;
  gap: 28px;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .smartqr-dashboard-content,
  .oneqr-dashboard-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

html {
  scroll-behavior: smooth;
}

[id^="sec-"] {
  scroll-margin-top: 140px;
}

.smartqr-form-col,
.oneqr-form-col {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  box-sizing: border-box;
}

.smartqr-preview-col,
.oneqr-preview-col {
  flex: 0 0 350px;
  width: 350px;
  max-width: 350px;
  position: sticky;
  top: 85px;
  box-sizing: border-box;
  z-index: 40;
}

.previewPhone {
  background: #ffffff;
  border: 10px solid var(--secondary);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(23, 23, 23, 0.08);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 350px;
  height: min(700px, calc(100vh - 110px));
  margin: 0 auto;
  box-sizing: border-box;
}

.previewPhone .profile-view-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.previewPhone .profile-view-wrap::-webkit-scrollbar {
  width: 4px;
}

.previewPhone .profile-view-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.subscriptionCard {
  background: white;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

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

.colorPickerRow input[type="color"] {
  width: 44px;
  height: 40px;
  padding: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
}

.linkItem {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.removeBtn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

.removeBtn:hover {
  background: #dc2626;
}

.addBtn {
  background: #f1f5f9;
  color: #334155;
  border: 1px dashed #cbd5e1;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  margin-top: 8px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}

.addBtn:hover {
  background: #e2e8f0;
}

.oneqr-section-title,
.sectionTitle {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

.saveBtn {
  background: var(--primary, #0026bd);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.saveBtn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.saveBtn:active {
  transform: translateY(1px);
}

.saveBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* ==========================================================
   SMARTQR SAAS DASHBOARD SHELL (SIDEBAR + TOPBAR + OVERVIEW)
   ========================================================== */
.sq-app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--background);
}

.sq-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 200;
  transition: width 0.2s ease-in-out, transform 0.25s ease-in-out;
  border-right: 1px solid #262626;
}

.sq-sidebar.collapsed {
  width: 72px;
}

.sq-sidebar-header {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 64px;
}

.sq-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  overflow: hidden;
  white-space: nowrap;
}

.sq-sidebar-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.sq-sidebar.collapsed .sq-sidebar-brand-text,
.sq-sidebar.collapsed .sq-nav-group-label,
.sq-sidebar.collapsed .sq-nav-item span,
.sq-sidebar.collapsed .sq-sidebar-footer-text {
  display: none;
}

.sq-sidebar.collapsed .sq-sidebar-header {
  justify-content: center;
  padding: 1rem 0.5rem;
}

.sq-sidebar.collapsed .sq-collapse-btn {
  display: none;
}

.sq-collapse-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D1D5DB;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.sq-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.sq-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #374151 transparent;
}

.sq-nav-group {
  margin-bottom: 1.1rem;
}

.sq-nav-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
  padding: 0 0.65rem;
  margin-bottom: 0.35rem;
}

.sq-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  color: #D1D5DB;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  margin-bottom: 2px;
  font-family: var(--font-family);
}

.sq-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
}

.sq-nav-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 101, 0, 0.35);
}

.sq-nav-item svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.sq-sidebar-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  color: #9CA3AF;
}

.sq-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sq-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
}

.sq-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sq-topbar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.sq-mobile-sidebar-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sq-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.55);
  z-index: 190;
}

.sq-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sq-stat-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.sq-stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sq-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
}

.sq-progress-bar {
  width: 100%;
  height: 7px;
  background: var(--table-header);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.sq-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.35s ease;
}

.sq-mobile-view-switch {
  display: none;
  gap: 8px;
  margin-bottom: 1rem;
  background: var(--table-header);
  padding: 4px;
  border-radius: var(--radius-md);
}

.sq-mobile-view-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.sq-mobile-view-btn.active {
  background: var(--surface);
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1180px) {
  .sq-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .sq-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    width: 260px !important;
  }
  .sq-sidebar.mobile-open {
    transform: translateX(0);
  }
  .sq-sidebar-backdrop.open {
    display: block;
  }
  .sq-mobile-sidebar-btn {
    display: inline-flex;
  }
  .sq-topbar {
    padding: 0.75rem 1rem;
  }
  .sq-mobile-view-switch {
    display: flex;
  }
  .sq-mobile-hide {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .sq-overview-grid {
    grid-template-columns: 1fr;
  }
  .sq-topbar-hide-sm {
    display: none !important;
  }
}
