:root {
  --primary: #0f7b3d;
  --primary-dark: #0a5a2c;
  --bot-bg: #f5f7f6;
  --user-bg: linear-gradient(135deg, #0f7b3d, #3bbf77);
  --border-soft: rgba(0, 128, 0, 0.25);
  --shadow-soft: 0 20px 40px rgba(0,0,0,0.15);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}
@media print {
    body {
        display: none !important;
    }
}

 body{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: green;
    background-color: white;
    background-image: url('../img/background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: var(--font-body);
    font-weight: bold;
 }

.status.success { color: green; }
.status.error { color: red; }

.opacity-shield {
  opacity: 1 !important;
}

#guidance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.guidance-popup {
  background: #fff;
  padding: 20px 24px;
  /*max-width: 320px;*/
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: fadeIn 0.4s ease;
  width: clamp(300px, 92vw, 560px);
  max-width: 560px;
}

.guidance-popup h4 {
  margin-bottom: 10px;
}

.guidance-popup button {
  margin-top: 15px;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInGuide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ifa-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  min-width: 15px;

  /* ⬅️ Outlined style instead of filled */
  background: transparent;
  color: #2e7d32;
  border: 1.5px solid #2e7d32;
  border-radius: 50%;

  font-size: 9px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  margin-left: 4px;
  font-style: normal;
  vertical-align: middle;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;

  /* Subtle hover feedback */
  transition: background 0.15s, color 0.15s;
}

.ifa-tip:hover,
.ifa-tip:active {
  background: #2e7d32;
  color: white;
}

/* The tooltip text is now a fixed overlay, not absolute inside the icon */
#ifa-tip-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.45);
  padding: 16px;
  justify-content: center;
  align-items: flex-end;
}

#ifa-tip-overlay.visible {
  display: flex;
}

#ifa-tip-box {
  background: #1b4332;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 12px 12px 12px 12px;
  padding: 16px 18px;
  max-width: 480px;
  width: 100%;
  position: relative;
}

#ifa-tip-box .ifa-tip-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

@media (min-width: 640px) {
  #ifa-tip-overlay {
    background: transparent;
    align-items: flex-start;
    pointer-events: none;
  }

  #ifa-tip-overlay.visible {
    display: block;
    pointer-events: none;
  }

  #ifa-tip-box {
    position: fixed;
    pointer-events: auto;
    width: 260px;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
}


.history-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--of-line, rgba(20,40,30,.12));
  border-left: 4px solid var(--of-green, #0f7b3d);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 0;
  box-shadow: 0 2px 10px rgba(12,61,36,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.history-card.numerology { border-left-color: var(--of-gold, #b8860b); }

.history-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #0a5a2c; background: #e8f5e9;
  padding: 3px 9px; border-radius: 20px; margin-bottom: 9px;
}
.history-badge.numerology { color: #8a6d0b; background: #fbf3dc; }

.history-card .h-index { color: var(--of-muted, #94a09a); font-weight: 700; }
.history-card .h-title {
  font-size: 15px; font-weight: 700; line-height: 1.4;
  color: var(--of-green-ink, #0c3d24); margin: 0 0 7px;
}
.history-card .h-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  font-size: 12px; color: var(--of-ink-soft, #6b7770); margin-bottom: 3px;
}
.history-card .h-chip {
  background: #f1f7f1; border: 1px solid #e0efe0; border-radius: 6px;
  padding: 1px 8px; font-size: 11px; color: #2c4a38; white-space: nowrap;
}
.history-note .note-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--of-ink-soft, #6b7770); margin-bottom: 5px;
}
.history-empty {
  text-align: center; color: var(--of-ink-soft, #6b7770);
  padding: 32px 16px; border: 1px dashed var(--of-line, rgba(20,40,30,.15));
  border-radius: 12px; background: #fafdfa; font-size: 14px; line-height: 1.5;
}
#myHistoryContainer > h2 {
  font-size: 20px; font-weight: 700; color: var(--of-green-ink, #0c3d24);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  border-bottom: 1px solid var(--of-line, rgba(20,40,30,.12));
  padding-bottom: 10px; margin-bottom: 16px;
}
#myHistoryContainer > h2 a { color: var(--of-green, #0f7b3d); font-weight: 600; }

.history-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.15);
}

.history-note textarea {
  width: 100%;
  min-height: 70px;
  max-height: 200px;     
  resize: vertical;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.2);
  background: #fafafa;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.history-note textarea:focus {
  outline: none;
  border-color: var(--of-green, #0f7b3d);
  box-shadow: 0 0 0 3px rgba(15,123,61,0.12);
  background: #fff;
}

.note-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.6;
  font-style: italic;
}

@media (max-width: 600px) {
  .history-card {
    padding: 12px;
  }

  .history-note textarea {
    font-size: 14px;
    min-height: 80px;
  }
}
.history-note textarea.saved {
  border-color: #3a7;
}

#myHistoryContainer {
  padding-bottom: 80px; 
  position: relative;
}

#historyPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 22px 0 6px;
  position: static;
  background: none;
}

/* numbered buttons use .page-btn below; prev/next get matching outline pills */
#historyPagination #prevPageBtn,
#historyPagination #nextPageBtn {
  border: 1px solid var(--of-green, #0f7b3d);
  background: #fff;
  color: var(--of-green, #0f7b3d);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s, opacity .15s;
}
#historyPagination #prevPageBtn:hover:not(:disabled),
#historyPagination #nextPageBtn:hover:not(:disabled) {
  background: var(--of-green, #0f7b3d);
  color: #fff;
}
#historyPagination #prevPageBtn:disabled,
#historyPagination #nextPageBtn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.history-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 10px;
    opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.history-container.show {
  opacity: 1;
  max-height: none;  
  overflow: visible;
}

.history-list {
  padding-right: 5px;  
  margin-bottom: 10px;
}

.history-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  /*gap: 8px;*/
  margin: 30px 0;
  flex-wrap: wrap;
  color: green;
}

#pageNumbers {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-btn{
  border:1px solid #e0efe0;
  background:#f1f7f1;
  color:#2c4a38;
  padding:6px 11px;
  margin:2px;
  cursor:pointer;
  border-radius:8px;
  font-weight:600;
  transition:background .15s, color .15s;
}

.page-btn:hover{ background:#e3f1e3; }

.page-btn.active{
  background:var(--of-green,#0f7b3d);
  color:#fff;
  border-color:var(--of-green,#0f7b3d);
  font-weight:bold;
}

.page-ellipsis{
  padding:6px 4px;
  opacity:0.55;
  align-self:center;
  color:var(--of-ink-soft,#6b7770);
}

#pageInfo{
  font-weight:600 !important;
  font-size:12px;
  color:var(--of-ink-soft,#6b7770);
}

button:disabled{
  opacity:0.4;
  cursor:not-allowed;
}

#historyList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible;    
}

.history-card { display: flex; flex-direction: column; }

.history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12,61,36,0.10);
}

#chatbot-container {
  position: fixed;
  bottom: 20px;
  /*right: 20px;*/
  left: 20px; 
  width: 360px;
  height: 420px;

  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  overflow: hidden;

  z-index: 1000;
}

#chatbot-header {
  height: 48px;
  line-height: 48px;

  padding: 0 14px;
  font-weight: 600;
  font-size: 14px;

  background: #f5f6f7;
  border-bottom: 1px solid #dadde1;
}

#chatbot-header button {
  background: #ffffff;
  color: #0f7b3d;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  transition: 
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#chatbot-header button:hover {
  background: #0f7b3d;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 123, 61, 0.35);
  transform: translateY(-1px);
}

#chatbot-header button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(15, 123, 61, 0.25);
}

#chatbot-header button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 123, 61, 0.35);
}

#chatbot-messages {
  position: absolute;
  top: 48px;        
  bottom: 100px;   
  left: 0;
  right: 0;

  padding: 12px;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 8px;

  background: #f0f2f5;
}

.chat-message-wrapper {
  display: flex;
}

.align-left { justify-content: flex-start; }
.align-right { justify-content: flex-end; }

.chat-message {
  max-width: 75%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  text-align: left !important;
}

.user-message {
  background: green;
  color: white;
  border-radius: 18px 18px 4px 18px;
}

.bot-message {
  background: #e4e6eb;
  color: #050505;
  border-radius: 18px 18px 18px 4px;
}

#chatbot-input-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  height: 100px;

  display: flex;
  align-items: flex-end;
  gap: 8px;

  padding: 10px;
  background: #ffffff;

  z-index: 10;
}

#chatbot-input {
  flex: 1;
  height: 80px;
  max-height: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ccd0d5;
  resize: none;
  overflow-y: auto;
  line-height: 1.4;
}


#chatbot-input::placeholder {
  color: #65676b;
  font-size: 13px;
  font-weight: normal;
}

.queryBtn {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: none;

  background: #0f7b3d;
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.queryBtn:hover {
  background: #0a5a2c;
  transform: scale(1.05);
}

#chatbot-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: green;
  color: #fff;
  border: none;

  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

@media (max-width: 768px) {
  #chatbot-container {
    width: 100vw;
    height: 50vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
}

.custom-modal {
  display: none;
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6);
}

.custom-modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
}

.customClose {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.custom-modal-content label {
    display: block;
    text-align: left;
    font-weight: 600; 
}

.success-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 15px 22px;
    border-radius: 10px;
    display: none;
    font-size: 16px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.success-check {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.success-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


 .blink-text {
  animation: blink-animation 1s steps(5, end) infinite;
}
#flag {
  position: fixed;
  top: 2%;
  left: 2%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}
@keyframes blink-animation {
  20%, 100% {
    opacity: 0;
  }
}

.header {
  width: 100%;
  text-align: right;
  padding: 10px;
}
.language-selector {
  padding: 5px;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.lang-label {
    position: absolute;
    top: 50%;
    font-size: 12px;
    font-weight: bold;
    color: white;
    transform: translateY(-50%);
    pointer-events: none;
}

.lang-label.left {
    left: 8px;
}

.lang-label.right {
    right: 8px;
}

.languageBtn {
    position: fixed;
    top: 0.5px;
    left: 10px;
    color: green;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 5px;
    background: white;
    z-index: 9999;

    max-width: 65vw;
    white-space: nowrap;
    overflow: hidden;
}

.languageBtn select {
    border: none;
    outline: none;
    color: green;
    font-weight: bold;
    background: transparent;
    max-width: 100px;
}

@media (max-width: 380px) {

    .historyBtn {
        font-size: 12px;
        padding: 3px 6px !important;
    }

    .languageBtn {
        font-size: 12px;
    }

}

.historyBtn {
    position: fixed;
    top: 0.5px;
    right: 10px; 
    border: 1px solid green;
    color: green;
    font-weight: bold;
    padding: 4px 8px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.9;
    transition: 0.2s;
}


.historyBtn:hover {
    opacity: 1;
}

@media (max-width: 360px) {

    .historyBtn {
        font-size: 0;
    }

    .historyBtn::before {
        content: "History ▼";
        font-size: 12px;
    }

}


.moving-bg {
  position: relative;
  top: -10px;
  background-size: contain;
  animation: moveAround 10s linear infinite;
  z-index: 1;
}

#adminPasswordContainer {
  display: none; 
  position: relative;
  z-index: 0;
}

@keyframes moveAround {
/*  0%   { transform: translate(-1px, -1px); }
  25%  { transform: translate(0px, 0px); }
  50%  { transform: translate(-2px, -2px); }
  75%  { transform: translate(0px, -20px); }
  100% { transform: translate(-1px, -1px); }*/
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    background-image: url('../img/bird.gif');
    background-position: center;
    background-repeat: no-repeat;
    background-size: clamp(80px, 30%, 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden; 
}

.admin{
    border: 1px solid green; 
}


.numerology{
    font-family: Courier, monospace;
     font-weight: bold;
    text-align: center;
    margin-top: 5vh;
  
}
h1 {
    margin-bottom: 20px;
}
/*
#birthdate-box {
        margin-bottom: 10px;
    }  

input#birthdate[type="text"],
input#birthdate[type="date"]  {
    width: 80%;
    max-width: 250px;
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}  */   

#birthdate-box {
  margin-bottom: 10px;
}

input#birthdate[type="text"],
input#birthdate[type="date"] {
  width: 100%;
  max-width: none;
}

button {
    font-size: 16px;
    background-color: #4caf50;
    color: green;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.3);
    transform: scale(1.05);
}

.footer {
    color: black;
    text-align: center;
}

.footer h4 {
    color: green;
}

.footer a {
    color: #f8b400;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer ul {
    padding: 0;
    list-style: none;
}

.footer .list-inline li {
    display: inline;
    margin: 0 10px;
}

.footer .list-inline li a {
    color: #fff;
    font-size: 20px;
}

.footer .list-inline li a:hover {
    color: #f8b400;
}

.calculator {
    position: relative;
    width: 200px;
    height: 200px;
    margin: auto;
    background-image: url('../img/random.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 333s linear infinite;
}

.calculator button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px dotted green;
    background-color: white;
    color: green;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    transition: background-color 0.3s ease-in-out;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.calculator button:hover {
    background-color: white;
    border: 1px solid green;
    color: green;
}

.calculator button:focus {
    outline: none;
    background-color: white;
    border: 1px solid green;
    color: green;
}

.calculator button.clicked {
    font-weight: bold;
}

.app-btn {
    border: 1px solid green; 
    color: green; 
    background-color: white; 
    font-weight: bold;
}


.odusign {
    font-family: Courier, monospace;
    font-weight: bold;
    text-align: center;
    font-size: 20px;
}

.odu-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(50%, 220px);
  margin: auto;
}
.odu-header {
    position: absolute;
    top: -20px;
    z-index: 2;
    width: 92px;
}

.odu-footer {
    position: absolute;
    bottom: -23px;
    z-index: 2;
    width: 100px;
}

.odu-line-container {
    display: flex;
    justify-content: center;
    gap: 29px;
    margin: 4px 0;
    position: relative;
    z-index: 1;
}

.odu-line {
    width: 30px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
}

.odu-open {
    background-image: url("../img/openOpele.png");
}

.odu-close {
    background-image: url("../img/closeOpele.png");
}

.align-left {
    justify-content: flex-start;
}

.align-right {
    justify-content: flex-end;
}

 .modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
  }
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
  }
  .close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  .close-btn:hover,
  .close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  .cancel-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
  }
  #payButton {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
  }

  .socials a {
    color: green;
  }

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

  .socials img {
    height: 25px;
  }

  #waveform-container {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 30px;
  align-items: end;
}

#waveform-container.paused {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

#waveform-container.paused .wave-bar {
  animation-play-state: paused !important;
}

.wave-bar {
  width: 4px;
  height: 100%;
  background: green;
  animation: pulse 1s infinite ease-in-out;
}

.wave-bar:nth-child(2) {
  animation-delay: 0.1s;
}
.wave-bar:nth-child(3) {
  animation-delay: 0.2s;
}
.wave-bar:nth-child(4) {
  animation-delay: 0.3s;
}
.wave-bar:nth-child(5) {
  animation-delay: 0.4s;
}

  .termsModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
  }

  .termsModal-content {
    background: #fff;
    margin: 5vh auto;
    padding: 1.5em;
    border-radius: 10px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.6;
  }

  .termsClose {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: green;
    cursor: pointer;
    margin-top: -10px;
    margin-right: -10px;
  }

  .termsClose:hover {
    color: green;
  }

    .aboutModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
  }

  .aboutModal-content {
    background: #fff;
    margin: 5vh auto;
    padding: 1.5em;
    border-radius: 10px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.6;
  }

  .aboutClose {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: green;
    cursor: pointer;
    margin-top: -10px;
    margin-right: -10px;
  }

  .aboutClose:hover {
    color: green;
  }

  #translate-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #222;
    border: none;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.85;
    transition: 0.2s;
}
#translate-btn:hover {
    opacity: 1;
    background: #444;
}

.lang {
    position: fixed;
    top: 5px;
    left: 10px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.85;
    transition: 0.2s;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: green;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(36px);
}


.donate-btn {
  color: green;
  text-decoration: none;
  margin-top: 2vh;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.25s ease;
  background-color: white;
  border: 1px solid green;
  font-weight: bold;
  display: inline-block;
}

.donate-btn:hover {
  text-decoration: none !important;
  background-color: white;
  color: black;
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.3);
  transform: scale(1.05);
}

.heart {
  display: inline-block;
  animation: pulse 1.2s infinite;
}

.guidance-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f9f9f9;
  font-style: italic;
  font-size: 14px;
  color: black;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 8px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: green;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

.kb-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}

.kb-page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.kb-ellipsis {
  padding: 0 2px;
  font-size: 13px;
  color: #888;
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.kb-page-btn {
  border: 1px solid #d4edda;
  background: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: bold;
  font-size: 13px;
  color: #1b4332;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.kb-page-btn:hover:not(:disabled) {
  background: #e8f5e8;
  border-color: #2e7d32;
  transform: none;
  box-shadow: none;
}

.kb-page-btn.active {
  background: #2e7d32;
  color: #ffffff;
  border-color: #2e7d32;
}

.kb-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.kb-page-ellipsis {
  padding: 0 4px;
  font-size: 13px;
  color: #888;
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.kb-page-info {
  font-size: 11px;
  margin-top: 8px;
  color: #888;
  font-style: italic;
  font-weight: normal;
  letter-spacing: 0.3px;
}

#pageNumbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.history-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 16px 0;
}

.kb-media {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kb-media-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #008000;
  background: #f8fff8;
  color: black;
  cursor: pointer;
  font-size: 14px;
}

.kb-sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 300px;
  height: 100vh;
  background: #fff;
  border-left: 2px solid #ddd;
  box-shadow: -3px 0 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transition: right 0.4s ease-in-out;
  z-index: 9999;
  padding: 10px 15px;
  font-family: var(--font-body);
}

.kb-sidebar.active {
  right: 0;
}

.kb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ccc;
}

.kb-btn, .kb-toggle {
  background: #00796b;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.2s;
}
.kb-btn:hover, .kb-toggle:hover {
  background: #004d40;
}

.kb-toggle {
  position: fixed;
  bottom: 20px;
  right: 380px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9998;
}

@media (max-width: 768px) {
  .kb-sidebar {
    width: 90%;
    right: -100%;
  }
  .kb-sidebar.active {
    right: 0;
  }
  .kb-toggle {
    right: 20px;
    bottom: 80px;
  }
}

#kb-search {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.kb-item {
  padding: 8px 10px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.kb-item:hover {
  background: #eaf6ff;
}

.feedback-section {
  animation: fadeIn 0.3s ease-in-out;
}

.feedback-btn:hover {
  transform: scale(1.2);
  transition: 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes buttonPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.donate-btn.attention {
  animation: buttonPulse 1.5s ease-in-out infinite;
}

@media (max-width: 480px) {
    .switch {
        width: 60px;
        height: 30px;
    }

    .slider:before {
        height: 22px;
        width: 22px;
        bottom: 4px;
        left: 4px;
    }

    input:checked + .slider:before {
        transform: translateX(30px);
    }

    .lang-label {
        font-size: 10px;
    }

    #flag {
  position: fixed;
  /*top: 35%;*/
  top: 2%;
  left: 5%;
  transform: translate(-50%, -50%); 
  z-index: 1000;
}
}

  @media (max-width: 600px) {
    .termsModal-content {
      padding: 1em;
      font-size: 0.95rem;
    }
  }
  @media (max-width: 600px) {
    .aboutModal-content {
      padding: 1em;
      font-size: 0.95rem;
    }
  }

@keyframes pulse {
  0%, 100% { height: 10%; }
  50% { height: 100%; }
}

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .ifaDetails {
    margin-top: -10px;
    }

      #audioModal div {
    width: 95%;
    font-size: 14px;
  }

#flag {
  position: fixed;
  /*top: 35%;*/
  top: 2%;
  left: 5%;
  transform: translate(-50%, -50%); 
  z-index: 1000;
}

.moving-bg {
        width: clamp(80px, 30%, 200px);
        height: auto;
    }

}

@media (min-width: 768px) and (max-width: 1024px) {

  .app-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .app-section > div {
    width: 100% !important;
    max-width: 700px;
    margin-bottom: 14px;
  }

  #main-content {
    text-align: left;
  }

  .moving-bg {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto 10px auto;
    display: block;
  }

  .calculator {
    margin: 20px auto;
    position: relative;
  }

  .numerology {
    margin-top: 10px;
    text-align: center;
  }

  select,
  input,
  button {
    font-size: 16px;
    padding: 10px;
  }

  #divinationResultContainer {
    width: 100%;
    padding: 10px 20px;
  }

  .kb-sidebar {
    width: 85%;
  }

  .kb-toggle {
    right: 20px;
  }

  .odu-container {
    width: 90%;
  }
}

.acc-header:hover {
  transform: none !important;
  box-shadow: none !important;
}
/* ===================================================================
   Divination result cards (v2) — consistent card system + hero
   Cohesive with theme tokens: --primary, --primary-dark, --radius-md,
   --border-soft, --shadow-soft. Inherits the global Courier face.
   =================================================================== */

/* "Are you new to Ifa divination?" banner */
.dv-guide {
  background: linear-gradient(135deg, #f0f7f0, #e8f5e8);
  border: 1px solid rgba(15, 123, 61, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 18px auto 0;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  animation: fadeInGuide 0.5s ease;
}

/* Featured headline card: Odù name + main message (the lead result) */
.dv-hero {
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  margin: 18px auto 14px;
  animation: dvCardIn 0.5s ease both;
}
.dv-hero__band {
  background: linear-gradient(135deg, var(--primary), #3bbf77);
  color: #fff;
  padding: 16px 18px;
  text-align: center;
}
.dv-hero__odu {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.25;
}
.dv-hero__tags { margin-top: 6px; font-size: 12.5px; opacity: 0.92; }
.dv-hero__body { padding: 16px 18px; line-height: 1.8; font-size: 14px; color: #1b2a1f; }

/* Collapsible accordion sections (Words of Ifa, Audio & Video, Orisha, …) */
.dv-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 123, 61, 0.06);
  animation: dvCardIn 0.45s ease both;
}
.dv-card__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #f0f7f0, #e8f5e8);
  font-family: inherit;
  font-weight: bold;
  font-size: 14px;
  color: var(--primary-dark);
  text-align: left;
  transition: background 0.2s ease;
}
.dv-card__header:hover { background: linear-gradient(135deg, #e8f5e8, #dcefdc); }
.dv-card__title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.dv-arrow { transition: transform 0.25s ease; font-size: 12px; flex-shrink: 0; color: var(--primary); }
.dv-card.is-open .dv-arrow { transform: rotate(180deg); }
.dv-card__body { padding: 15px 16px; line-height: 1.75; font-size: 14px; }

@keyframes dvCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .dv-hero__odu { font-size: 16px; }
  .dv-hero__band, .dv-hero__body,
  .dv-card__header, .dv-card__body { padding-left: 14px; padding-right: 14px; }
}

/* ==================================================================
   ORÍRÙN — Self-hosted body font (Source Sans 3)
   Subset includes Latin Extended Additional (U+1E00–1EFF) so the
   Yorùbá marks ẹ ọ ṣ and stacks ọ̀ ẹ́ ṣẹ́ render natively, offline.
   ================================================================== */
@font-face{ font-family:'Source Sans 3'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../fonts/SourceSans3-Regular.woff2') format('woff2'); }
@font-face{ font-family:'Source Sans 3'; font-style:normal; font-weight:500; font-display:swap;
  src:url('../fonts/SourceSans3-Medium.woff2') format('woff2'); }
@font-face{ font-family:'Source Sans 3'; font-style:normal; font-weight:700; font-display:swap;
  src:url('../fonts/SourceSans3-Bold.woff2') format('woff2'); }

/* ==================================================================
   ORÍRÙN — UI refresh (v3.1) — cleaner & minimal
   One type family (Source Serif 4 — Claude-style serif), flat hairline surfaces, calm footer.
   Fixes: numerology monospace, loud footer, chat-bubble overlap.
   ================================================================== */
:root{
  --of-green:#0f7b3d; --of-green-deep:#0a5a2c; --of-green-ink:#0c3d24;
  --of-gold:#b8860b;
  --of-gold-soft:#d9b44a;
  --of-ink:#26302a; --of-ink-soft:#6b7770; --of-muted:#94a09a;
  --of-line:rgba(20,40,30,.12);
  --font-body:'Source Serif 4','Source Sans 3',ui-serif,Georgia,Cambria,'Times New Roman',Times,serif;
}

/* one clean family; calmer weights */
body{ font-family:var(--font-body); font-weight:400; color:var(--of-ink); -webkit-font-smoothing:antialiased; }
button, input, select, textarea, optgroup{ font-family:var(--font-body); }
h1,h2,h3,h4,h5,h6{ font-family:var(--font-body); font-weight:700; letter-spacing:0; color:var(--of-green-ink); }
p{ line-height:1.65; }

/* kill leftover typewriter font in the numerology block */
.numerology, .numerology *{ font-family:var(--font-body) !important; }
#configurationResult.odusign{ font-family:var(--font-body) !important; font-style:normal; }
input#birthdate[type="date"], input#birthdate[type="text"]{ font-family:var(--font-body) !important; }

/* heading: simple + thin rule */
#main-content > h3,
#numerology-section > h3{ font-size:20px; margin-bottom:16px; }
#main-content > h3::after,
#numerology-section > h3::after{
  content:""; display:block; width:40px; height:2px; margin:8px auto 0;
  background:var(--of-green); border-radius:2px; opacity:.55;
}

/* homage: flat, lighter */
.text-center p:has(> span[data-translate="header"]){
  background:#0e5a32 !important; color:#eef4ea !important;
  padding:12px 18px !important; border-radius:12px !important;
  font-family:var(--font-body) !important; font-weight:500 !important;
  font-size:12.5px !important; line-height:1.65 !important; letter-spacing:.2px;
  border:none !important; box-shadow:none !important;
  max-width:760px; margin:10px auto 0 !important;
}

/* form cards: flat, hairline */
#main-content.ifaDetails, #numerology-section.numerology{
  background:#fff; border:1px solid var(--of-line); border-radius:14px;
  padding:22px 20px; box-shadow:0 1px 3px rgba(20,40,30,.05);
}
#numerology-section.numerology{ margin-top:18px; }
.app-section{ margin-top:8px; }
#configurationResult.odusign{ margin:0 0 4px; }

/* labels */
#main-content label, #numerology-section label{
  font-family:var(--font-body); font-weight:700; font-size:12.5px;
  letter-spacing:.2px; color:var(--of-green-deep);
}

/* inputs / selects: lighter, less tall */
.form-control, #fullname,
input#birthdate[type="date"], input#birthdate[type="text"]{
  font-family:var(--font-body); font-size:15px; font-weight:500; color:var(--of-ink);
  background:#fff; border:1px solid var(--of-line); border-radius:10px;
  padding:10px 13px; height:auto; line-height:1.4; box-shadow:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, #fullname:focus, input#birthdate:focus{
  border-color:var(--of-green); box-shadow:0 0 0 2px rgba(15,123,61,.12); outline:none;
}
select.form-control{
  cursor:pointer; -webkit-appearance:none; -moz-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%230f7b3d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; padding-right:32px;
}

/* form-field rhythm (replaces the old <br> spacers): compact, consistent */
#main-content .form-control,
#numerology-section .form-control{ margin-bottom:14px; }

/* buttons: flat, solid, restrained */
.app-btn{
  font-family:var(--font-body); font-weight:700; font-size:14px; letter-spacing:.2px;
  border:1.5px solid var(--of-green); color:var(--of-green); background:#fff;
  border-radius:10px; padding:10px 20px; box-shadow:none;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.app-btn:hover{ background:var(--of-green); color:#fff; transform:none !important; box-shadow:none !important; }
#divination-btn, #determine-btn{
  background:var(--of-green); color:#fff !important; border:none; border-radius:10px; box-shadow:none;
}
#divination-btn{ display:block; margin:8px auto 0; }
#divination-btn:hover, #determine-btn:hover{ background:var(--of-green-deep); transform:none !important; box-shadow:none !important; }

#numerology-section p b{ color:var(--of-ink-soft); font-weight:700; }

/* number picker: flat */
.calculator button{
  border:1px solid var(--of-line); background:#fff; color:var(--of-green-deep);
  font-family:var(--font-body); font-weight:700; box-shadow:none;
}
.calculator button:hover, .calculator button:focus, .calculator button.clicked{
  background:var(--of-green) !important; color:#fff !important; border-color:var(--of-green) !important;
}

/* result cards: flatter */
.dv-hero{ box-shadow:0 1px 4px rgba(20,40,30,.08); }
.dv-card{ box-shadow:none; }
.dv-hero__odu{ font-family:var(--font-body); font-weight:700; }
.dv-card__header, .dv-card__body, .dv-hero__body{ font-family:var(--font-body); }
.dv-card__body, .dv-hero__body{ font-weight:400; }

/* modals */
.modal-content{
  width:min(92vw,520px) !important; margin:8vh auto !important; border:none !important;
  border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.18); padding:24px; font-family:var(--font-body);
}
.cancel-btn, #payButton{ border-radius:10px; font-family:var(--font-body); font-weight:700; }

/* footer: calmer, muted, smaller — and clear of the chat bubble */
.col-12.text-center{ color:var(--of-ink-soft) !important; padding-bottom:96px; }
.col-12.text-center p{ font-size:13px; line-height:1.6; }
.socials img{ height:22px !important; transition:transform .15s ease; }
.socials a:hover img{ transform:translateY(-1px); }
#chatbot-toggle{ background:var(--of-green) !important; box-shadow:0 6px 16px rgba(15,123,61,.32) !important; }

@media (max-width:600px){
  #main-content.ifaDetails, #numerology-section.numerology{ padding:14px 14px; border-radius:12px; }
  #main-content .form-control, #numerology-section .form-control{ margin-bottom:10px; }
  #main-content > h3, #numerology-section > h3{ font-size:19px; margin-bottom:12px; }
  .text-center p:has(> span[data-translate="header"]){ font-size:11.5px !important; padding:10px 14px !important; }
  .col-12.text-center p{ font-size:12.5px; }
}

/* ==================================================================
   ORÍRÙN — UI refresh (v3.2) — desktop composition
   Center & constrain the layout, tame the decorative bird, soften the
   busy background photo, and give both panels a clear card identity.
   ================================================================== */

/* Soften the background photo so it reads as calm texture, not clutter */
body{
  background-image:linear-gradient(rgba(255,255,255,.64),rgba(255,255,255,.74)),url('../img/background.jpg') !important;
  background-attachment:fixed;
}

/* Center & constrain the main three-column section */
.app-section{ max-width:1040px; margin:6px auto 0 !important; }

/* Tame the decorative bird at every width (was rendering at 292px) */
.moving-bg{ width:clamp(84px,11vw,140px) !important; height:auto !important; opacity:.85; }
#configurationResult.odusign{ display:flex; flex-direction:column; align-items:center; justify-content:flex-start; }

/* Both panels read clearly as cards, with a quiet sacred-green accent */
#main-content.ifaDetails,
#numerology-section.numerology{
  border:1px solid rgba(20,40,30,.14) !important;
  border-top:3px solid var(--of-green) !important;
  box-shadow:0 6px 20px rgba(20,45,30,.07) !important;
}

/* Desktop: stretch columns so the two panels are equal height */
@media (min-width:1025px){
  .app-section{ align-items:stretch; }
  #numerology-section.numerology{ margin-top:0 !important; }
}

/* ==================================================================
   ORÍRÙN — UI refresh (v3.3) — the bird / Odù-sign panel
   Make the left column intentional in both states: a soft sacred orb
   behind the messenger bird, level with the form, refined cast labels.
   ================================================================== */

/* Soft luminous orb behind the messenger bird */
.moving-bg{
  background:radial-gradient(circle at 50% 46%, rgba(15,123,61,.13), rgba(15,123,61,0) 66%) !important;
  border-radius:50%;
}

/* Panel content centred; sits level with the form card on desktop */
#configurationResult.odusign{ gap:6px; }
@media (min-width:1025px){
  #configurationResult.odusign{ align-self:center; }
}

/* Refined cast-Odù labels (result state) */
#configurationResult.odusign p{ margin:0; }
#configurationResult.odusign > p:first-child{
  font-weight:700; font-size:14px; color:var(--of-green-ink); margin-bottom:6px; line-height:1.4;
}
#configurationResult.odusign > p:first-child strong{ color:var(--of-green); }
#configurationResult.odusign p a[onclick^="displayMeaning"]{
  display:inline-block; margin-top:8px;
  background:rgba(15,123,61,.08); color:var(--of-green-deep) !important;
  border:1px solid var(--of-line); border-radius:999px;
  padding:4px 14px; font-weight:700; font-size:13px; text-decoration:none;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
#configurationResult.odusign p a[onclick^="displayMeaning"]:hover{
  background:var(--of-green); color:#fff !important; border-color:var(--of-green);
}

/* ── Chatbot header: keep the Close button pinned far-right and visible.
      A flex row stops a longer translated title from wrapping and pushing
      the button onto a clipped second line (where it used to disappear). ── */
#chatbot-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: auto;
  min-height: 48px;
  line-height: 1.2;
}
#chatbot-header .chatbot-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#chatbot-header .chatbot-close {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

/* ── Info tooltip popover — refined, modern styling ─────────────── */
#ifa-tip-overlay { padding: 16px; }
#ifa-tip-overlay.visible { animation: ifaTipFade .15s ease-out; }

#ifa-tip-box {
  background: #143524;
  color: #f3f7f4;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: .1px;
  border-radius: 14px;
  padding: 15px 17px;
  max-width: 360px;
  width: 100%;
  max-height: min(60vh, 440px);
  overflow-y: auto;
  box-shadow: 0 14px 36px rgba(10,30,20,.30), 0 2px 6px rgba(10,30,20,.18);
  border: 1px solid rgba(255,255,255,.08);
  -webkit-font-smoothing: antialiased;
}
#ifa-tip-content { display: block; }
#ifa-tip-content::before {            /* keeps line 1 clear of the close button */
  content: ""; float: right; width: 22px; height: 14px;
}
#ifa-tip-box .ifa-tip-close {
  position: absolute;
  top: 8px; right: 9px;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.10);
  border: none; border-radius: 50%;
  color: #dfe9e2; font-size: 12px; line-height: 1;
  cursor: pointer; padding: 0;
  transition: background .15s, color .15s;
}
#ifa-tip-box .ifa-tip-close:hover { background: rgba(255,255,255,.20); color: #fff; }

@keyframes ifaTipFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes ifaTipPop {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 640px) {
  #ifa-tip-box {
    position: fixed;            /* viewport-positioned by openIfaTip */
    width: 300px; max-width: 300px;
    font-size: 13px; line-height: 1.55;
    animation: ifaTipPop .16s cubic-bezier(.2,.8,.2,1);
  }
  #ifa-tip-box::after {                /* pointer arrow toward the icon */
    content: "";
    position: absolute;
    left: var(--tip-arrow-left, 22px);
    width: 12px; height: 12px;
    background: #143524;
    transform: rotate(45deg);
    border: 1px solid rgba(255,255,255,.08);
  }
  #ifa-tip-box.tip-below::after { top: -6px;    border-right: none; border-bottom: none; }
  #ifa-tip-box.tip-above::after { bottom: -6px; border-left: none;  border-top: none;  }
}
/* ── App-native reading: summary clamp, grouped details, media reveal, action bar ── */
.dv-interp-wrap:not(.is-open) .dv-interp{
  display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden;
}
.dv-readmore{
  margin-top:8px; padding:0; background:none; border:none; cursor:pointer;
  font-family:var(--font-body); font-weight:600; font-size:13px; color:var(--of-green);
}
.dv-readmore .arr{ display:inline-block; transition:transform .2s; }
.dv-interp-wrap.is-open .dv-readmore .arr{ transform:rotate(180deg); }
.dv-readmore .label-less{ display:none; }
.dv-interp-wrap.is-open .dv-readmore .label-more{ display:none; }
.dv-interp-wrap.is-open .dv-readmore .label-less{ display:inline; }

.odu-details{ display:flex; flex-direction:column; }
.odu-detail + .odu-detail{ margin-top:12px; padding-top:12px; border-top:1px solid var(--of-line); }
.odu-detail__k{ font-size:12.5px; font-weight:700; color:var(--of-green-deep); margin-bottom:3px; }
.odu-detail__v{ font-size:14px; line-height:1.6; color:var(--of-ink); }

.media-showall{
  margin-top:10px; padding:8px 14px; background:none; cursor:pointer;
  font-family:var(--font-body); font-weight:600; font-size:13px; color:var(--of-green);
  border:1px solid var(--of-line); border-radius:8px;
}

.dv-actions{ display:flex; gap:10px; margin:18px 0 6px; }
.dv-actions__btn{
  flex:1; border-radius:10px; padding:11px 12px; cursor:pointer;
  font-family:var(--font-body); font-weight:700; font-size:14px;
}
.dv-actions__btn--ghost{ border:1.5px solid var(--of-green); color:var(--of-green); background:#fff; }
.dv-actions__btn--solid{ border:none; color:#fff; background:var(--of-green); }

/* ── Words of Ifá — refined sacred-verse (quote) treatment ── */
.ase-verse{
  margin:2px 0; padding:4px 0 4px 16px;
  border-left:3px solid var(--of-green);
  color:var(--of-ink); font-size:14.5px; line-height:1.85;
}
.ase-verse p{ margin:0 0 12px; color:var(--of-ink); }
.ase-verse p:last-child{ margin:0; }
.ase-more-btn{
  margin-top:14px; padding:8px 14px; cursor:pointer; background:none;
  font-family:var(--font-body); font-weight:600; font-size:13px; color:var(--of-green);
  border:1px solid var(--of-line); border-radius:8px;
}
.ase-more-btn:hover{ background:rgba(15,123,61,.06); }
#extraAse{ color:var(--of-ink); line-height:1.75; }

/* ── Sacred-modern · Stage 1: parchment canvas, gold accents, framed diagram ── */

/* Odù diagram — rest it on a calm pedestal instead of floating on the page */
#configurationResult.odusign{
  background:#fff;
  border:1px solid var(--of-line);
  border-radius:16px;
  box-shadow:0 4px 16px rgba(20,40,30,.06);
  padding:16px 12px 18px;
  margin:6px auto 16px;
  max-width:330px;
}

/* Hero — a fine gold rule between the Odù name and its tags */
.dv-hero__band .dv-hero__tags{ position:relative; padding-top:8px; }
.dv-hero__band .dv-hero__tags::before{
  content:""; display:block; width:34px; height:2px; margin:0 auto 8px;
  background:var(--of-gold-soft); border-radius:2px;
}

/* Homage — a fine gold hairline frames the ancestral invocation */
.text-center p:has(> span[data-translate="header"]){
  border:1px solid rgba(184,134,11,.45) !important;
}

/* ── Reading column: comfortable measure on desktop (not full-card sprawl) ── */
@media (min-width:1025px){
  #divinationResult{ max-width:720px; margin-left:auto; margin-right:auto; }
}

/* ── Form tabs — only where the two form cards stack (small screens) ── */
.form-tabs{ display:none; }
@media (max-width:575px){
  .form-tabs{
    display:flex; gap:6px; width:100%; margin:0 0 12px; padding:5px;
    background:#fff; border:1px solid var(--of-line); border-radius:12px;
    box-shadow:0 2px 10px rgba(15,123,61,.06);
  }
  .form-tab{
    flex:1; padding:11px 8px; border:none; border-radius:9px; cursor:pointer;
    font-family:var(--font-body); font-weight:700; font-size:14px;
    color:var(--of-ink-soft); background:transparent; transition:background .15s,color .15s;
  }
  .form-tab.is-active{ background:var(--of-green); color:#fff; }
  .tab-hidden{ display:none !important; }
  /* the active tab is the heading on small screens — avoid the duplicate */
  #main-content > h3, #numerology-section > h3{ display:none; }
}

/* Pedestal is for the opele diagram only — when the bird is shown (initial /
   numerology state), drop the frame so it isn't a tiny bird in an empty box */
#configurationResult.odusign:has(.moving-bg){
  background:none; border:none; box-shadow:none; padding:0; max-width:none;
}

/* ── Numerology: 'or' divider between the Reveal-Message flow and Pick a Number ── */
.num-divider{
  display:flex; align-items:center; gap:12px;
  margin:18px 4px 14px; color:var(--of-muted);
  font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.12em;
}
.num-divider::before, .num-divider::after{
  content:""; flex:1; height:1px; background:var(--of-line);
}

/* ── Numerology sub-toggle — two methods within the Numerology tab (small screens) ── */
.num-subtabs{ display:none; }
@media (max-width:575px){
  .num-subtabs{
    display:flex; gap:6px; width:100%; margin:0 0 14px; padding:4px;
    background:#eef4ee; border:1px solid var(--of-line); border-radius:10px;
  }
  .num-subtab{
    flex:1; padding:9px 6px; border:none; border-radius:7px; cursor:pointer;
    font-family:var(--font-body); font-weight:600; font-size:13px;
    color:var(--of-ink-soft); background:transparent; transition:background .15s,color .15s;
  }
  .num-subtab.is-active{ background:var(--of-green); color:#fff; }
  .num-pane.pane-hidden{ display:none !important; }
  .num-divider{ display:none; }   /* the sub-toggle replaces the 'or' divider here */
}

/* ── App download badges — visible on the web, hidden inside the installed app ── */
.app-download{ display:none; margin:6px auto 16px; text-align:center; }
html.or-web .app-download{ display:block; }
@media (display-mode: standalone){ .app-download{ display:none !important; } }  /* extra guard */
.app-download__title{ margin:0 0 10px; font-weight:700; font-size:15px; color:var(--of-ink); }
.app-download__badges{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.store-badge{
  display:inline-flex; align-items:center; gap:9px;
  background:#000; color:#fff; text-decoration:none;
  padding:8px 16px; border-radius:11px; min-width:150px;
  transition:opacity .15s;
}
.store-badge:hover{ opacity:.88; }
.store-badge svg{ width:22px; height:22px; flex-shrink:0; fill:#fff; }
.store-badge span{ display:flex; flex-direction:column; line-height:1.15; text-align:left; }
.store-badge small{ font-size:9.5px; text-transform:uppercase; letter-spacing:.05em; opacity:.92; }
.store-badge strong{ font-size:15px; font-weight:600; }
/* ==================================================================
   iOS App Store wrapper (WKWebView) — kill the website-like
   rubber-band / overscroll "stretch" so it feels native.
   Scoped to html.ios-app ONLY, so the website and the Android
   (Play Store TWA) build keep their normal scrolling untouched.
   overscroll-behavior is honoured by iOS 16+ WebKit; for older
   iOS the definitive fix is webView.scrollView.bounces = false
   in the native wrapper (see notes).
   ================================================================== */
html.ios-app,
html.ios-app body {
  overscroll-behavior: none;          /* no bounce/chaining at the edges */
}
html.ios-app body {
  overflow-x: hidden;                 /* no sideways stretch */
}