@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Colors */
:root {
  --green-primary: #2e7d32;
  --green-hover: #1b5e20;
  --blue-telegram: #0b5fa5;
  --red-rank: #ff3d00;
  --orange-bonus: #ff6f00;
  
  --bg-dark: #0b0f19;
  --bg-mobile: #ffffff;
  
  --text-dark: #212121;
  --text-grey: #666666;
  --text-light: #ffffff;
  
  --border-grey: #e0e0e0;
  --bg-tabs: #f5f5f5;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.2s ease-in-out;
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-dark);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Mobile-Centric Wrapper (Centered on Desktop) */
.mobile-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-mobile);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Green App Header */
.app-header {
  background-color: var(--green-primary);
  color: var(--text-light);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-icon {
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.header-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Podium Banner Section */
.podium-section {
  display: flex;
  padding: 20px 12px;
  background-color: #fff;
  gap: 6px;
  align-items: flex-end; /* Align elements to bottom */
  border-bottom: 8px solid #f5f5f5;
}

.podium-col {
  flex: 1;
  border-radius: 8px;
  text-align: center;
  padding: 15px 8px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.podium-no1 {
  background: linear-gradient(180deg, #ff4a68 0%, #d81b43 100%);
  height: 255px;
  order: 2; /* Middle column */
}

.podium-no2 {
  background: linear-gradient(180deg, #8ba8c4 0%, #5d7c99 100%);
  height: 215px;
  order: 1; /* Left column */
}

.podium-no3 {
  background: linear-gradient(180deg, #ffb800 0%, #fb8400 100%);
  height: 195px;
  order: 3; /* Right column */
}

.podium-rank {
  font-size: 0.75rem;
  font-weight: 800;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.podium-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-color: #fff;
  margin-bottom: 10px;
  overflow: hidden;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.podium-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-icon-fallback {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-primary);
}

.podium-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.podium-download {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: auto;
  transition: var(--transition-smooth);
}

.podium-download:hover {
  background-color: #fff;
  color: #d81b43;
}

.podium-no2 .podium-download:hover {
  color: #5d7c99;
}

.podium-no3 .podium-download:hover {
  color: #fb8400;
}

.podium-trusted {
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Telegram Channel Banner */
.telegram-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--blue-telegram);
  padding: 14px 16px;
  color: var(--text-light);
  border-bottom: 8px solid #f5f5f5;
}

.telegram-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.telegram-join-btn {
  background-color: #ffffff;
  color: var(--blue-telegram);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: var(--transition-smooth);
}

.telegram-join-btn:hover {
  background-color: #f5f5f5;
  transform: translateY(-1px);
}

/* ALL YONO APPS Title Section */
.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 10px;
}

.section-line {
  height: 2px;
  width: 45px;
  background: linear-gradient(90deg, transparent, #8b5cf6);
}

.section-line-right {
  height: 2px;
  width: 45px;
  background: linear-gradient(90deg, #8b5cf6, transparent);
}

.section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #6a1b9a;
  margin: 0 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Tabs Section */
.tabs-wrapper {
  display: flex;
  background-color: var(--bg-tabs);
  border-radius: 50px;
  padding: 4px;
  margin: 10px 16px 15px;
  border: 1px solid var(--border-grey);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-grey);
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background-color: #ffffff;
  color: var(--green-primary);
  border: 1px solid var(--green-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* App Vertical Stack Listing */
.apps-list {
  padding: 0 16px 30px;
}

.app-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eeeeee;
  position: relative;
  transition: var(--transition-smooth);
}

.app-row:hover {
  background-color: #fafafa;
}

.app-rank-num {
  position: absolute;
  top: 10px;
  left: -4px;
  background-color: var(--red-rank);
  color: var(--text-light);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.app-icon-container {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f9f9f9;
  margin-right: 14px;
  border: 1px solid var(--border-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.app-row-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon-fallback-sm {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-primary);
}

.app-row-details {
  flex: 1;
  min-width: 0; /* allows text truncation */
}

.app-row-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-row-bonus {
  font-size: 0.78rem;
  color: var(--text-grey);
  margin-bottom: 2px;
}

.app-row-bonus span {
  color: var(--orange-bonus);
  font-weight: 700;
}

.app-row-withdrawal {
  font-size: 0.78rem;
  color: var(--text-grey);
}

.app-row-withdrawal span {
  color: var(--green-primary);
  font-weight: 700;
}

.app-row-action {
  margin-left: 12px;
}

.btn-download-green {
  background-color: var(--green-primary);
  color: var(--text-light);
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-download-green:hover {
  background-color: var(--green-hover);
}

.btn-secondary-action {
  background-color: var(--bg-tabs);
  border: 1px solid var(--border-grey);
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary-action:hover {
  background-color: var(--border-grey);
}

.btn-delete-red {
  background-color: #d32f2f;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-delete-red:hover {
  background-color: #b71c1c;
}


/* Footer Section */
.footer-disclaimer {
  background-color: #f9f9f9;
  padding: 20px 16px;
  border-top: 1px solid var(--border-grey);
  font-size: 0.75rem;
  color: var(--text-grey);
  text-align: center;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-primary);
}

.footer-copyright {
  font-size: 0.72rem;
  color: #999;
  text-align: center;
  padding-bottom: 25px;
}

/* Local SEO Text (at bottom of listing) */
.seo-text-section {
  padding: 20px 16px;
  background-color: #fafafa;
  border-top: 1px solid var(--border-grey);
}

.seo-text-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.seo-text-section p {
  font-size: 0.8rem;
  color: var(--text-grey);
  margin-bottom: 15px;
  line-height: 1.5;
}

/* FAQ Accordion in list style */
.faq-section {
  margin-top: 15px;
}

.faq-item {
  border: 1px solid var(--border-grey);
  border-radius: 6px;
  background-color: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--green-primary);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer-content {
  padding: 0 16px 12px;
  font-size: 0.78rem;
  color: var(--text-grey);
  line-height: 1.4;
  border-top: 1px solid #f5f5f5;
  padding-top: 10px;
}

/* ======================================================== */
/* ADMIN DASHBOARD (WIDE VIEWPORT OUTSIDE MOBILE FRAME)     */
/* ======================================================== */
/* ======================================================== */
/* ADMIN DASHBOARD (MATCHING FRONTEND CSS THEME)            */
/* ======================================================== */
.admin-card {
  background: #ffffff;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 20px 15px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.admin-card h3 {
  margin-bottom: 15px;
  color: var(--text-dark);
  font-size: 1.05rem;
  border-bottom: 2px solid var(--green-primary);
  padding-bottom: 6px;
  display: inline-block;
}

.admin-table-wrapper {
  overflow-x: auto;
  margin-top: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-grey);
  font-size: 0.8rem;
}

.admin-table th {
  color: var(--text-grey);
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--bg-tabs);
}

.admin-table td {
  color: var(--text-dark);
}

.admin-actions {
  display: flex;
  gap: 6px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: var(--bg-tabs);
  border: 1px solid var(--border-grey);
  color: var(--text-dark);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--green-primary);
  background-color: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-help {
  font-size: 0.7rem;
  color: var(--text-grey);
  margin-top: 4px;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.alert-success {
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.2);
  color: var(--green-primary);
}

.alert-error {
  background: rgba(211, 47, 47, 0.1);
  border: 1px solid rgba(211, 47, 47, 0.2);
  color: #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .mobile-wrapper {
    max-width: 100%;
    box-shadow: none;
  }
}
