/* ============================================
   99 DIGITAL - Components
   Nav, Buttons, Notifications, Form, Floating, Footer
   ============================================ */

/* === NAV === */
nav.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 8, 12, .88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
}

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

/* Logo image (uploaded via admin) */
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-mobile {
  display: none;
}

/* Nav end group (lang toggle + CTA) */
.nav-end {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: .3s;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Meta Business Partner Badge */
.meta-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 8px 20px;
  white-space: nowrap;
}
.meta-badge svg {
  flex-shrink: 0;
  height: 32px;
  width: 32px;
  filter: brightness(1.3) drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}
.meta-badge span {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.meta-badge-mobile {
  display: none;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: none;
}
@media (max-width: 768px) {
  .meta-badge:not(.meta-badge-mobile) { display: none; }
  .meta-badge-mobile { display: flex; }
  .meta-badge-mobile svg { height: 24px; width: 24px; }
  .meta-badge-mobile span { font-size: 13px; }
}

/* === BUTTONS === */
.btn-p {
  padding: 15px 36px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: .3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
  color: var(--bg);
}

.btn-g {
  padding: 15px 36px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: .3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-g:hover {
  border-color: var(--dim);
  color: var(--text);
}

/* === CTA GROUP === */
.cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 100px;
  background: var(--ad);
  border: 1px solid rgba(0, 229, 160, .18);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 28px;
}

/* === NOTIFICATIONS === */
.notif-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
}

.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.notif.missed {
  border-color: rgba(255, 71, 87, .08);
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon svg {
  width: 18px;
  height: 18px;
}

.notif-text {
  font-size: 14px;
  color: var(--dim);
  flex: 1;
  text-align: right;
}

.notif-text b {
  color: var(--text);
  font-weight: 600;
}

.notif-time {
  font-size: 11px;
  color: rgba(255, 255, 255, .12);
  white-space: nowrap;
}

/* === FORM === */
.form-box {
  max-width: 520px;
  margin: 48px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 15px;
  outline: none;
  transition: .3s;
  text-align: right;
  direction: rtl;
}

.form-field input:focus {
  border-color: var(--accent);
}

.form-field input::placeholder {
  color: var(--dim);
}

.form-field select {
  color: var(--dim);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: .3s;
  margin-top: 6px;
}

.form-submit:hover {
  box-shadow: var(--glow);
  transform: translateY(-2px);
  color: var(--bg);
}

.form-guarantee {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 14px;
  text-align: center;
}

.form-note {
  font-size: 11px;
  color: var(--dim);
  margin-top: 6px;
  text-align: center;
}

/* Volume selector */
.volume-label {
  display: block;
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 10px;
  text-align: right;
}

.volume-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.volume-option {
  padding: 12px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dim);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
  text-align: center;
}

.volume-option:hover {
  border-color: var(--accent);
  color: var(--text);
}

.volume-option.selected {
  background: var(--ad);
  border-color: var(--accent);
  color: var(--accent);
}

.form-trust-line {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .5px;
  color: rgba(107,114,128,.6);
  margin-top: 8px;
  text-align: center;
}

.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}

.form-field input.error {
  border-color: var(--red);
}

.form-field input.error + .form-error {
  display: block;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 32px 16px;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ad);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}

.form-success-icon svg {
  width: 32px;
  height: 32px;
}

.form-success-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.form-success-text {
  color: var(--dim);
  line-height: 1.7;
}

.form-success-phone {
  display: inline-block;
  margin-top: 12px;
  color: #00B67A;
  font-weight: 700;
  font-size: 1.15em;
  text-decoration: none;
  direction: ltr;
}

.form-success-phone:hover {
  text-decoration: underline;
}

/* === FIXED BOTTOM BAR (Mobile only) === */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
}

.bottom-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  color: #fff;
}

.bottom-bar-btn:active { opacity: 0.85; }

.bottom-bar-wa {
  background: #25D366;
}

.bottom-bar-phone {
  background: #00B67A;
}

@media (max-width: 768px) {
  .fixed-bottom-bar {
    display: flex;
  }
  body {
    padding-bottom: 56px;
  }
}

/* === FOOTER === */
footer.site-footer {
  position: relative;
  z-index: 1;
  padding: 28px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dim);
}

/* Footer Meta Badge */
.footer-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 8px 20px;
}
.footer-meta-badge svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  filter: brightness(1.3) drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}
.footer-meta-badge span {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  nav.site-header {
    padding: 0 16px;
    height: 56px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* When separate mobile logo exists, swap them */
  .logo-img.logo-desktop {
    display: none;
  }
  .logo-img.logo-mobile {
    display: block;
  }

  /* Size for all logo images on mobile */
  nav.site-header .logo-img {
    height: 28px;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 12px;
  }

  .cta-group {
    flex-direction: column;
  }

  footer.site-footer {
    padding: 28px 20px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  .footer-meta-badge {
    padding: 6px 14px;
    gap: 6px;
  }
  .footer-meta-badge svg {
    width: 18px;
    height: 18px;
  }
  .footer-meta-badge span {
    font-size: 11px;
  }

  .volume-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-box {
    padding: 28px 20px;
  }

  .form-field input,
  .form-field select {
    font-size: 16px;
    padding: 14px 16px;
  }

  .form-submit {
    font-size: 16px;
    padding: 16px;
    min-height: 52px;
  }

  .btn-p {
    padding: 14px 28px;
    font-size: 14px;
    min-height: 48px;
  }

  .btn-g {
    padding: 12px 24px;
    font-size: 14px;
    min-height: 48px;
  }
}

@media (max-width: 360px) {
  footer.site-footer {
    padding: 20px 12px;
    font-size: 11px;
  }

  .btn-p {
    padding: 12px 20px;
    font-size: 13px;
  }
}
