/* ═══════════════════════════════════════════════════════════════════
   THE ADHYYAN SCHOOL — Downloads Portal Stylesheet
   Colors & design matched to theadhyyan.edu.in
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --tas-green: #4a5d23;
  --tas-green-dark: #3a4a1b;
  --tas-green-light: #6b8a3a;
  --tas-green-bg: #f0f4e8;
  --tas-gold: #f5a623;
  --tas-gold-light: #ffc85a;
  --tas-gold-bg: #fef9ed;
  --tas-radius: 14px;
  --tas-radius-sm: 8px;
  --tas-transition: all 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 2px 8px rgba(74,93,35,0.08);
  --shadow-md: 0 4px 20px rgba(74,93,35,0.12);
  --shadow-lg: 0 8px 40px rgba(74,93,35,0.16);
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border-color: #e8e8e8;
  --bg-light: #f9f9f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--tas-green); text-decoration: none; transition: var(--tas-transition); }
a:hover { color: var(--tas-green-dark); }

/* ─── HEADER ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,.1);
}

.header-top-bar {
  background: var(--tas-green);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.header-main { padding: 10px 0; }

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link { display: flex; align-items: center; }
.logo-img { height: 55px; width: auto; }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-info {
  display: flex;
  gap: 20px;
}

.header-contact {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-contact:hover { color: var(--tas-green); }
.header-contact i { color: var(--tas-green); font-size: 12px; }

.btn-admission {
  background: var(--tas-green);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--tas-transition);
}
.btn-admission:hover {
  background: var(--tas-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,93,35,0.3);
}

/* ─── PAGE TITLE ────────────────────────────────────────────────── */
.page-title-section {
  position: relative;
  background: var(--tas-green);
  padding: 50px 0;
  overflow: hidden;
}

.page-title-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--tas-green-dark) 0%, var(--tas-green) 50%, var(--tas-green-light) 100%);
  opacity: 0.95;
}

.page-title-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-title-section .container { position: relative; z-index: 1; }

.page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--tas-gold-light); }

/* ─── VERIFICATION MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

.modal-overlay.hidden { display: none; }

.modal-card {
  background: #fff;
  border-radius: var(--tas-radius);
  width: 100%;
  max-width: 460px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.5s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header { text-align: center; margin-bottom: 28px; }

.modal-logo { height: 50px; margin-bottom: 16px; }

.modal-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--tas-green);
  margin-bottom: 6px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group label i {
  color: var(--tas-green);
  margin-right: 4px;
  width: 16px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--tas-radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--tas-transition);
  outline: none;
  background: var(--bg-light);
}

.form-group input:focus {
  border-color: var(--tas-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74,93,35,0.1);
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-question {
  background: var(--tas-green-bg);
  border: 2px solid var(--tas-green);
  border-radius: var(--tas-radius-sm);
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--tas-green);
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.captcha-row input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--tas-radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--tas-transition);
  outline: none;
  background: var(--bg-light);
}

.captcha-row input:focus {
  border-color: var(--tas-green);
  background: #fff;
}

.captcha-refresh {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border-color);
  border-radius: var(--tas-radius-sm);
  background: #fff;
  cursor: pointer;
  color: var(--tas-green);
  font-size: 16px;
  transition: var(--tas-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.captcha-refresh:hover {
  background: var(--tas-green-bg);
  border-color: var(--tas-green);
}

.form-error {
  background: #fee;
  color: #c00;
  padding: 10px 14px;
  border-radius: var(--tas-radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
  border: 1px solid #fcc;
}
.form-error.visible { display: block; }

.btn-verify {
  width: 100%;
  padding: 14px;
  background: var(--tas-green);
  color: #fff;
  border: none;
  border-radius: var(--tas-radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--tas-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-verify:hover {
  background: var(--tas-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,93,35,0.3);
}
.btn-verify:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}
.modal-footer-note i { color: var(--tas-green); margin-right: 4px; }

/* ─── MAIN CONTENT ──────────────────────────────────────────────── */
.main-content {
  padding: 40px 0 60px;
  min-height: 60vh;
  background: var(--bg-light);
}

/* Search & Filter Bar */
.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--tas-transition);
  outline: none;
  background: #fff;
}
.search-box input:focus {
  border-color: var(--tas-green);
  box-shadow: 0 0 0 3px rgba(74,93,35,0.08);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 18px;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tas-transition);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-btn:hover {
  border-color: var(--tas-green);
  color: var(--tas-green);
}
.filter-btn.active {
  background: var(--tas-green);
  border-color: var(--tas-green);
  color: #fff;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.stat-item i { color: var(--tas-green); }
.stat-item span { font-weight: 700; color: var(--tas-green); }

/* Documents Container */
.documents-container { }

.segment-section {
  margin-bottom: 40px;
  animation: fadeInUp 0.5s ease;
}

.segment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--tas-green);
}

.segment-icon {
  width: 42px;
  height: 42px;
  background: var(--tas-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.segment-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--tas-green-dark);
}

.segment-count {
  background: var(--tas-green-bg);
  color: var(--tas-green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-left: auto;
}

/* Document Cards */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.doc-card {
  background: #fff;
  border-radius: var(--tas-radius);
  border: 1px solid var(--border-color);
  padding: 20px;
  transition: var(--tas-transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: default;
}
.doc-card:hover {
  border-color: var(--tas-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.doc-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.doc-icon.pdf { background: #fef0e8; color: #e74c3c; }
.doc-icon.link { background: var(--tas-green-bg); color: var(--tas-green); }
.doc-icon.drive { background: #e8f5e9; color: #4caf50; }

.doc-info { flex: 1; min-width: 0; }

.doc-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-session {
  font-size: 11px;
  color: var(--tas-green);
  background: var(--tas-green-bg);
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 600;
}

.doc-segment-badge {
  font-size: 11px;
  color: var(--tas-gold);
  background: var(--tas-gold-bg);
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 600;
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: center;
}

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tas-gold-bg);
  color: #b8860b;
  font-size: 14px;
  border: 1.5px solid rgba(245, 166, 35, 0.35);
  cursor: pointer;
  transition: var(--tas-transition);
}
.btn-share:hover {
  background: var(--tas-gold);
  color: #fff;
  border-color: var(--tas-gold);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tas-green);
  color: #fff;
  font-size: 15px;
  transition: var(--tas-transition);
  border: none;
  cursor: pointer;
}
.btn-download:hover {
  background: var(--tas-green-dark);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(74,93,35,0.3);
}

.highlighted-doc {
  animation: pulseHighlight 2.5s ease infinite;
  border-color: var(--tas-gold) !important;
  background: #fffdf5 !important;
}

@keyframes pulseHighlight {
  0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--tas-green-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); }

/* ─── FOOTER ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid #cecece;
}

.footer-main { padding: 50px 0 30px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-logo { height: 50px; margin-bottom: 16px; }

.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }

.footer-links li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.footer-links li i {
  color: var(--tas-green);
  margin-top: 3px;
  flex-shrink: 0;
  width: 14px;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--tas-green); }

.social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--tas-transition);
}
.social-icons a:nth-child(1) { background: #1877f2; color: #fff; }
.social-icons a:nth-child(2) { background: #000; color: #fff; }
.social-icons a:nth-child(3) { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.social-icons a:nth-child(4) { background: #ff0000; color: #fff; }
.social-icons a:nth-child(5) { background: #0077b5; color: #fff; }
.social-icons a:nth-child(6) { background: #25d366; color: #fff; }
.social-icons a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 18px 0;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* Scroll to top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--tas-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--tas-transition);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}
.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-to-top:hover {
  background: var(--tas-green-dark);
  transform: translateY(-3px);
  color: #fff;
}

/* ─── ANIMATIONS ────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-info { display: none; }
}

@media (max-width: 768px) {
  .header-flex { flex-wrap: wrap; justify-content: center; }
  .header-right { width: 100%; justify-content: center; }
  .page-title { font-size: 26px; }
  .page-title-section { padding: 30px 0; }
  .docs-grid { grid-template-columns: 1fr; }
  .search-filter-bar { flex-direction: column; }
  .search-box { min-width: 100%; }
  .filter-buttons { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-flex { flex-direction: column; text-align: center; }
  .modal-card { padding: 28px 20px; }
  .modal-header h2 { font-size: 19px; }
  .stats-bar { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .captcha-row { flex-wrap: wrap; }
  .captcha-question { min-width: auto; flex: 1; }
  .doc-card { flex-direction: column; text-align: center; align-items: center; }
  .doc-meta { justify-content: center; }
  .segment-header { flex-wrap: wrap; }
  .segment-count { margin-left: 0; }
  .viewer-container { width: 100vw; height: 100vh; border-radius: 0; }
}

/* ─── PROTECTED VIEWER MODAL ────────────────────────────────────── */
.viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.viewer-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.viewer-container {
  background: #1e293b;
  border-radius: var(--tas-radius);
  width: 95vw;
  max-width: 1250px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  animation: slideUp 0.3s ease;
  transition: all 0.3s ease;
}

.viewer-container.fullscreen {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
}

.viewer-header {
  background: #0f172a;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.viewer-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.viewer-badge {
  background: rgba(245, 166, 35, 0.2);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.viewer-title-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-viewer-action {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--tas-transition);
}

.btn-viewer-action:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-viewer-close {
  background: #e11d48;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--tas-transition);
}

.btn-viewer-close:hover {
  background: #be123c;
  transform: scale(1.05);
}

.viewer-body {
  flex: 1;
  position: relative;
  background: #334155;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.viewer-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.viewer-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  opacity: 0.13;
  overflow: hidden;
}

.watermark-item {
  transform: rotate(-25deg);
  color: #000;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: monospace;
}

.btn-view {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--tas-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--tas-transition);
}

.btn-view:hover {
  background: var(--tas-green-dark);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(74, 93, 35, 0.3);
}

/* Anti-Print & Anti-Copy Protection */
@media print {
  body, .viewer-overlay, .site-header, .page-title-section, .main-content, .site-footer {
    display: none !important;
  }
}
