/* ==========================================================
   SMART-QR — Company Landing Page Styles for Public Profiles
   Fully Responsive for Desktop, Tablet, and Mobile
   ========================================================== */

body.profile-page {
  background-color: var(--background, #F8F9FA);
  color: var(--text-primary, #171717);
  font-family: var(--font-family, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphic Navbar */
.profile-top-bar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
  width: 100%;
}

.profile-top-bar .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.profile-top-bar .brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-gradient, linear-gradient(135deg, #FF6500, #E65600));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Page Wrapper */
.company-landing-wrapper {
  width: 100%;
  max-width: 1180px;
  margin: 1.5rem auto 3.5rem;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* Hero / Company Card */
.company-hero-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  overflow: hidden;
  margin-bottom: 1.75rem;
  position: relative;
}

.company-hero-banner {
  height: 140px;
  position: relative;
  background: var(--theme-color, #FF6500);
  background-image: linear-gradient(135deg, var(--theme-color, #FF6500) 0%, rgba(23, 23, 23, 0.85) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background 0.3s ease;
}

.company-logo-container {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.profile-logo-wrap {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 4px 16px 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: 16px !important;
}
.profile-logo-wrap.shape-rectangle,
.profile-logo-wrap.shape-rectangle .profile-logo-inner {
  border-radius: 14px !important;
}
.profile-logo-wrap.shape-imagesize,
.profile-logo-wrap.shape-imagesize .profile-logo-inner {
  border-radius: 12px !important;
}

.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;
}

/* Company Title & Tagline Section */
.company-title-section {
  padding: 55px 24px 18px;
  text-align: center;
}

.profile-biz-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.profile-biz-desc {
  font-size: 14px;
  font-weight: 400;
  color: #334155;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 650px;
  font-family: inherit;
}

/* Quick Actions Row */
.company-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 24px 28px;
}

.actionItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.actionItem:hover {
  background: var(--primary-light, #FFF2E8);
  border-color: var(--primary-100, #FFE4D1);
  color: var(--theme-color, #FF6500);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 101, 0, 0.12);
  text-decoration: none;
}

.actionItem .arrow {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.2s;
}
.actionItem:hover .arrow {
  color: var(--theme-color, #FF6500);
  transform: translate(2px, -2px);
}

.actionItem-qr {
  background: var(--primary-light, #FFF2E8);
  border-color: var(--primary-100, #FFE4D1);
  color: var(--primary-dark, #CC5100);
  font-weight: 700;
}
.actionItem-qr:hover {
  background: #dbeafe;
}

/* Two-Column Responsive Grid */
.company-landing-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Section Cards */
.company-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.company-card-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.company-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--theme-color, #FF6500);
  background: var(--primary-light, #FFF2E8);
  border: 1px solid var(--primary-100, #FFE4D1);
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.company-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}

/* Location & Details */
.infoRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.infoRow:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.infoRow:first-child {
  padding-top: 0;
}

.infoIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.infoText {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.45;
  flex: 1;
}

.gmap-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  margin-left: 10px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.gmap-pill-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Offers Slider */
.offersSection {
  overflow: hidden;
}

.offersSlider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.offersSlider::-webkit-scrollbar {
  height: 6px;
}
.offersSlider::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.offerCard {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  box-sizing: border-box;
}

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

.offerImage {
  width: 100%;
  display: block;
}

.offerTitleBar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.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: var(--theme-color, #FF6500);
  background: var(--primary-light, #FFF2E8);
  border: 1px solid var(--primary-100, #FFE4D1);
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.offerDots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 9999px;
}

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

.offerDotActive {
  background: #ffffff;
  width: 16px;
  border-radius: 4px;
}

/* Documents & Links */
.profile-docs-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s;
}

.doc-card-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateX(2px);
  text-decoration: none;
}

.doc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.doc-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

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

.doc-tag {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.doc-arrow {
  color: #94a3b8;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Direct UPI Payment Card */
.upi-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 0.5rem 0;
}

.upi-qr-wrapper {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.upi-qr-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.upi-info {
  width: 100%;
}

.upi-payee-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.upi-vpa-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: monospace;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: 9999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upi-copy-action {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  cursor: pointer;
  padding: 0;
}

/* Bank Details Box */
.bankBox {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
}

.bankRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
}
.bankRow:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.bankRow:first-child {
  padding-top: 0;
}

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

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

/* Social & Connect Grid */
.connectGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.connectItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  box-sizing: border-box;
}

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

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

/* Company Landing Page Footer */
.company-landing-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #64748b;
}

.company-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Modals */
.modal-img-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.modal-img-overlay.active {
  display: flex;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 899px) {
  .company-landing-wrapper {
    max-width: 480px;
    margin: 0.5rem auto 2rem;
    padding: 0 0.75rem;
  }
  #active-card-container[style*="block"] {
    display: flex !important;
    flex-direction: column;
  }
  .company-hero-card,
  .company-landing-grid,
  .company-main-col,
  .company-side-col {
    display: contents;
  }
  .company-hero-banner {
    order: 0;
    height: 110px;
    border-radius: 16px 16px 0 0;
  }
  .company-title-section {
    order: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 46px 16px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  }
  #offers-container {
    order: 2;
  }
  #info-card {
    order: 3;
  }
  .company-quick-actions {
    order: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    margin-bottom: 12px;
  }
  #connect-section {
    order: 5;
  }
  #upi-payment-card {
    order: 6;
  }
  #bank-section {
    order: 7;
  }
  #docs-section {
    order: 8;
  }
  #links-section {
    order: 9;
  }
  .company-landing-footer {
    order: 99;
    margin-top: 1rem;
    border-radius: 14px;
  }
  .profile-biz-title {
    font-size: 20px;
  }
  .actionItem {
    justify-content: flex-start;
    padding: 10px 10px;
    font-size: 12.5px;
    min-width: 0;
  }
  .actionItem .arrow {
    margin-left: auto;
  }
  .company-section-card {
    padding: 1rem;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  .company-card-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
  }
  .company-card-badge {
    display: none;
  }
  .connectGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .connectItem {
    padding: 10px 10px;
    font-size: 12.5px;
    min-width: 0;
  }
  .company-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .company-landing-wrapper {
    padding: 0 0.6rem;
  }
  .company-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .connectGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
