/* ── nsnip.io Design System (Deneb Digital) ── */
/* Bootstrap 5 mobile-first, matching nsnip.io Jekyll theme */

:root {
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-mono: 'Courier Prime', monospace;
  --font-logo: 'Courier Prime', monospace;
  --white: #fff;
  --text: #7a808d;
  --title: #333;
  --theme-color: #202020;
  --theme-nostr: #9333eacc;
  --accent: #f7931a;
  --accent-light: rgba(247, 147, 26, 0.1);
  --bg-copyright: #edecf0;
  --red: #ef4444;
  --green: #22c55e;
}

/* ── Base ── */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--title);
  margin: 0;
  font-weight: 700;
}

a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--theme-color); }

/* ── Header ── */
.header_area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s;
  background: transparent;
  padding: 12px 0;
}

.header_area.sticky {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 8px 0;
}

.header_area .navbar {
  align-items: flex-end;
}

.header_area .navbar-brand {
  margin-right: auto;
}

.header_area .navbar-brand img {
  width: 211px;
  height: auto;
  display: block;
}

.header_area.sticky .navbar-brand img {
  width: 211px;
  height: auto;
}

.header_area .navbar-nav {
  align-items: flex-end;
}

.header_area .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-size: 15px;
  padding: 4px 16px 0 !important;
  transition: color 0.3s;
}

.header_area .nav-link:hover,
.header_area .nav-link.active {
  color: var(--title) !important;
}

.header_area .nav-link.active::after {
  content: '';
  display: block;
  width: 20px;
  height: 3px;
  background: var(--theme-color);
  margin-top: 2px;
}

/* Mobile sidenav */
.sidenav_menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #222d32;
  z-index: 9999;
  padding: 50px 30px;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
}

.sidenav_menu.active {
  transform: translateX(0);
}

.sidenav_menu .nav-link {
  color: var(--white) !important;
  font-size: 16px;
  padding: 10px 0 !important;
  display: block;
}

.sidenav_menu .close_btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--white);
  color: var(--theme-color);
  display: block;
  text-decoration: none;
}

/* Hamburger icon */
.navbar-toggler {
  border: none;
  padding: 4px;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--title);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ── Buttons ── */
.zorry_btn {
  display: inline-block;
  min-width: 140px;
  height: 45px;
  line-height: 45px;
  color: var(--white);
  font: 500 14px var(--font-body);
  text-align: center;
  background: var(--theme-color);
  border-radius: 23px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  padding: 0 24px;
  text-decoration: none;
}
.zorry_btn:hover {
  color: var(--white);
  box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
  text-decoration: none;
}

.nostr_btn {
  display: inline-block;
  min-width: 140px;
  height: 45px;
  line-height: 45px;
  color: var(--white);
  font: 500 14px var(--font-body);
  text-align: center;
  background: var(--theme-nostr);
  border-radius: 23px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  padding: 0 24px;
  text-decoration: none;
}
.nostr_btn:hover {
  color: var(--white);
  box-shadow: 2px 4px 15px rgba(147,51,234,0.3);
  text-decoration: none;
}

.accent_btn {
  display: inline-block;
  min-width: 140px;
  height: 45px;
  line-height: 45px;
  color: var(--white);
  font: 600 14px var(--font-body);
  text-align: center;
  background: var(--accent);
  border-radius: 23px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  padding: 0 24px;
  text-decoration: none;
}
.accent_btn:hover {
  color: var(--white);
  box-shadow: 2px 4px 15px rgba(247,147,26,0.4);
  text-decoration: none;
}

/* ── Section Title ── */
.section_title {
  max-width: 570px;
  margin: 0 auto 45px;
  text-align: center;
}
.section_title h2 {
  margin-bottom: 14px;
  font-size: 32px;
}
@media (min-width: 768px) {
  .section_title h2 { font-size: 40px; }
}
.section_title p {
  color: var(--text);
  font-size: 16px;
}

/* ── Section Padding ── */
.section_padding {
  padding: 60px 0;
}
@media (min-width: 768px) {
  .section_padding { padding: 100px 0; }
}

/* ── Cards (nsnip-style) ── */
.nsnip-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.nsnip-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.nsnip-card h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 16px;
}

/* ── Feature Cards ── */
.feature-card {
  background: var(--white);
  border: 2px dashed var(--white);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  height: 100%;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 2px 4px 15px rgba(0,0,0,0.1);
}
.feature-card .icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 2px 4px 12px rgba(0,0,0,0.1);
  margin: 0 auto 16px;
  font-size: 28px;
}
.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
}

/* ── Security Grid ── */
.sec-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s;
  height: 100%;
}
.sec-card:hover {
  box-shadow: 2px 4px 15px rgba(0,0,0,0.08);
}
.sec-card h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.sec-card p {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

/* ── Footer ── */
.nsnip_footer {
  background: var(--white);
}
.nsnip_footer .widget_wrapper {
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 0 40px;
}
@media (min-width: 768px) {
  .nsnip_footer .widget_wrapper { padding: 80px 0 50px; }
}
.nsnip_footer .widget_title {
  margin-bottom: 20px;
}
.nsnip_footer .widget_title img {
  height: 36px;
  margin-bottom: 12px;
  display: block;
}
.nsnip_footer .widget_title p {
  font-size: 14px;
  color: var(--text);
}
.nsnip_footer .social li {
  display: inline-block;
  margin-right: 8px;
}
.nsnip_footer .social li a {
  display: block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: #f9e6d4;
  color: #fba543;
  font-size: 14px;
  transition: all 0.4s;
}
.nsnip_footer .social li a:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 2px 4px 12px rgba(247,147,26,0.3);
}
.nsnip_footer .contact_info .single_info {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.nsnip_footer .contact_info .icon {
  font-size: 13px;
  color: var(--title);
  margin-right: 10px;
  width: 20px;
}
.nsnip_footer .contact_info .info a {
  color: var(--text);
  font-size: 14px;
}
.nsnip_footer .contact_info .info a:hover {
  color: var(--accent);
}
.nsnip_footer .copyright_area {
  background: var(--bg-copyright);
  padding: 12px 0;
  text-align: center;
}
.nsnip_footer .copyright_area p {
  font-size: 13px;
  color: var(--title);
  margin: 0;
}
.nsnip_footer .copyright_area a {
  color: var(--accent);
}

/* ── Form elements ── */
.nsnip-label {
  display: block;
  font-size: 11px;
  color: var(--text);
  margin-bottom: 4px;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nsnip-input {
  width: 100%;
  background: #faf9f7;
  border: 1px solid #ddd;
  color: var(--title);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s;
}
.nsnip-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.nsnip-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
}
.nsnip-checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.nsnip-checkbox span {
  font-size: 14px;
  color: var(--title);
}

/* ── Price display ── */
.price-box {
  text-align: center;
  margin-top: 20px;
  padding: 18px;
  background: #faf9f7;
  border-radius: 10px;
  border: 1px solid #eee;
}
.price-box .amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-heading);
}
.price-box .sub {
  font-size: 13px;
  color: var(--text);
  margin-top: 4px;
}

/* ── Modal ── */
.nsnip-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.nsnip-modal.open { display: flex; }
.nsnip-modal-card {
  background: var(--white);
  border-radius: 14px;
  padding: 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
}
.nsnip-modal-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  color: var(--title);
}

/* ── Misc ── */
.mono { font-family: var(--font-mono); }

.badge-accent {
  background: var(--accent);
  color: #000;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
}

.tag-public {
  background: #e0fff8;
  color: #00a88a;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-private {
  background: #ffe0f0;
  color: #cc0066;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Animations ── */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #eee;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* ── Admin-specific ── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  color: var(--text);
  border-bottom: 2px solid #eee;
  padding: 10px 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: #faf9f7;
}

/* History items */
.history-item {
  padding: 12px 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
  cursor: pointer;
}
.history-item:hover {
  border-color: var(--accent);
}
.history-item .name {
  font-weight: 700;
  color: var(--title);
  font-size: 14px;
}
.history-item .meta {
  color: var(--text);
  font-size: 12px;
}
.del-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Nsnip items (intro page) ── */
.nsnip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #faf9f7;
  transition: border-color 0.2s;
}
.nsnip-item:hover { border-color: var(--accent); }
.nsnip-name { font-size: 14px; font-weight: 700; }
.nsnip-name a { color: var(--title); }
.nsnip-name a:hover { color: var(--accent); }
.nsnip-meta { font-size: 12px; color: var(--text); margin-top: 2px; }
.nsnip-pin {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  background: #fef9f0;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid #fde8c8;
  white-space: nowrap;
}

/* ── Progress bar ── */
.progress-bar-nsnip {
  background: #eee;
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}
.progress-fill-nsnip {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s;
  border-radius: 4px;
}

/* ── Pay summary ── */
.pay-summary {
  background: #faf9f7;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--text);
}
.pay-summary .total-row {
  border-top: 1px solid #ddd;
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 700;
  color: var(--title);
}
