/* ===== Document pages (text-heavy) ===== */
.doc-wrap{
  max-width:900px;
  margin:18px auto 28px;
  padding:0 10px;
}

.doc{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
  padding:16px 18px;
}

/* Main doc title (preferred) */
.doc-title,
.doc h1{
  font-size:22px;
  font-weight:900;
  margin:0 0 24px 0;
  padding-bottom:10px;
  border-bottom:3px solid var(--brand);
}

/* Section headings */
.doc h2{
  margin:28px 0 12px 0;
  font-size:18px;
  font-weight:800;
  padding-bottom:6px;
  border-bottom:1px solid #cbd5e1; /* slightly more visible gray */
}

/* Text */
.doc p{
  margin:10px 0;
  line-height:1.8;
  font-size:14px;
  color:#374151;
}

.doc img{
  max-width:100%;
  height:auto;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  padding:6px;
}

.doc-img-left{
  float:left;
  width:140px;
  max-width:38%;
  margin:2px 14px 10px 0;
}

.doc-img-right{
  float:right;
  width:220px;
  max-width:46%;
  margin:2px 0 10px 14px;
}

.doc li{
  color:#374151;
  font-size:14px;
}

/* Lists */
.doc ul,
.doc ol{
  margin:10px 0;
  padding-left:22px;  /* keep only this for indentation */
  line-height:1.8;
  font-size:14px;
}

.doc ol li,
.doc ul li{
  margin-bottom:8px;
}

/* Tables */
.doc table{
  width:100%;
  border-collapse:collapse;
  margin:12px 0;
}

.doc td,
.doc th{
  border:1px solid var(--border);
  padding:8px 10px;
  font-size:13px;
  vertical-align:top;
}

/* Links inside docs */
.doc a{
  color:var(--brand);
  font-weight:700;
  text-decoration:underline;
}

.doc a:hover{
  text-decoration:none;
}


.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.data-table th {
  text-align: left;
  width: 220px;
  background: #f3f4f6;   /* soft gray instead of green */
  font-weight: 800;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
}

/* ===== Generic page container + card system ===== */
.page-wrap{
  max-width:900px;
  margin:18px auto 28px auto;
  padding:0 10px;
}
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
  overflow:hidden;
}
.card-head{
  padding:16px 18px;
  background:#f9fafb;
  border-bottom:1px solid var(--border);
}
.card-title{margin:0;font-size:18px;font-weight:900;}
.card-sub{margin:6px 0 0 0;font-size:13px;color:#6b7280;}
.card-actions{
  padding:14px 18px 18px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:flex-end;
}

/* ===== Titles ===== */

/* Main page title */
.page-title{
  margin:0 0 18px 0;
  font-size:24px;
  font-weight:900;
  padding-bottom:12px;
  border-bottom:3px solid var(--brand);  /* solid green line */
}

/* remove any previous ::after */
.page-title::after{
  display:none;
}


/* Section subtitles */
.section-title{
  margin:28px 0 12px 0;
  font-size:18px;
  font-weight:800;
  padding-bottom:8px;
  border-bottom:2px solid #d1d5db; /* keep gray line */
}

/* remove subtitle accent line */
.section-title::after{
  display:none;
}

/* Buttons */
.btn-buy{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  background:var(--brand);
  color:#fff !important;
  font-weight:900;
  text-decoration:none !important;
  line-height:1;
  box-shadow:0 6px 14px rgba(0,0,0,.10);
}
.btn-buy:hover{filter:brightness(.95); text-decoration:none !important;}
.btn-buy-sm{padding:7px 10px; border-radius:8px; font-weight:800; font-size:13px;}


/* Notices (index) */
.notice{
  border:1px solid var(--border);
  background:#fff;
  border-radius:10px;
  padding:10px 12px;
  margin:10px 0;
}
.notice-badge{
  display:inline-block;
  background:#fee2e2;
  color:#b91c1c;
  font-weight:800;
  padding:3px 8px;
  border-radius:999px;
  margin-right:8px;
  font-size:12px;
}

/* alerts */
.alert{
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
  background: #fff;
}
.alert-danger{
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.alert a{ font-weight: 800; }

/* ===== Auth (login) ===== */
.auth-wrap{max-width:520px;margin:18px auto 28px;padding:0 10px;}
.auth-card{
  background:linear-gradient(180deg,#f7fff4 0%,#ffffff 72%);
  border:1px solid #c8e5c9;
  border-radius:12px;
  box-shadow:0 10px 26px rgba(22,163,74,.12);
  overflow:hidden;
}
.auth-head{
  padding:16px 18px;
  background:linear-gradient(180deg,#6fcb55 0%,#54b83f 100%);
  border-bottom:1px solid #49a739;
}
.auth-title{margin:0;font-size:18px;font-weight:900;color:#fff;}
.auth-sub{margin:6px 0 0 0;font-size:13px;color:#e8ffe6;}
.auth-grid{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:10px 12px;
  padding:16px 18px;
  background:#f4fcef;
}
.auth-label{font-size:13px;font-weight:800;color:#1f4b21;align-self:center;}
.auth-actions{
  padding:14px 18px 18px;
  border-top:1px solid #c8e5c9;
  display:flex;
  gap:12px;
  justify-content:flex-end;
  flex-wrap:wrap;
  background:#edf9ea;
}
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card select,
.auth-card textarea{
  width:100% !important;
  box-sizing:border-box;
  border-color:#acd6a6;
  background:#fff;
}
.auth-card input[type="text"]:focus,
.auth-card input[type="password"]:focus,
.auth-card select:focus,
.auth-card textarea:focus{
  border-color:#60b65d;
  outline:0;
  box-shadow:0 0 0 2px rgba(96,182,93,.18);
}
.auth-actions input[type="submit"],
.auth-actions button{
  background:linear-gradient(180deg,#35b15c 0%,#269846 100%);
  border:1px solid #22863f;
}
.auth-actions input[type="submit"]:hover,
.auth-actions button:hover{
  filter:brightness(.96);
}
.auth-links a{
  color:#1d6b2d;
  font-weight:700;
}

.password-toggle-wrap{
  position:relative;
  display:block;
  width:100%;
}
.password-toggle-wrap > input[type="password"],
.password-toggle-wrap > input[type="text"]{
  padding-right:42px !important;
}
.password-toggle-btn{
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#6b7280;
  cursor:pointer;
  line-height:1;
}
.password-toggle-btn:hover{
  color:#111827;
  background:#f3f4f6;
}
.password-toggle-btn:focus-visible{
  outline:2px solid #0b5ed7;
  outline-offset:1px;
}
.password-toggle-btn .pwd-icon-hide{
  display:none;
}
.password-toggle-btn[aria-pressed="true"] .pwd-icon-show{
  display:none;
}
.password-toggle-btn[aria-pressed="true"] .pwd-icon-hide{
  display:inline;
}

/* Form grid */
.form-grid{
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px 12px;
  padding: 16px 18px;
}

.spec-table{width:100%;border-collapse:collapse;}
.spec-table th,.spec-table td{padding:9px 10px;border-top:1px solid var(--border);font-size:13px;vertical-align:top;}
.spec-table th{width:44%;text-align:left;color:#374151;font-weight:800;background:#fff;}

/* make wide tables scroll on small screens */
.table-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table{
  min-width: 900px; /* keeps columns readable */
}

@media (max-width: 640px){
  .doc-img-left,
  .doc-img-right{
    float:none;
    display:block;
    width:100%;
    max-width:100%;
    margin:0 0 12px 0;
  }
}
