/* ========================================
   TERMINAL THEME VARIABLES
   ======================================== */
:root {
  --bg: #000000;
  --text: #00ff00;
  --accent: #00cccc;
  --border: #004400;
  --border-light: #003300;
  --glow: 0 0 3px #00ff00;
  --white-glow: 0 0 8px #ffffff, 0 0 15px rgba(255, 255, 255, 0.7);
  --terminal-bg: #000a00;
  --terminal-hover: #002200;
}

/* ========================================
   BASE STYLES
   ======================================== */
body {
  font-family: 'Courier New', monospace;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 2rem 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ========================================
   RESPONSIVE LAYOUT (Bootstrap-like)
   ======================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}

.col-6 {
  flex: 1 1 300px;
  min-width: 300px;
}

@media (max-width: 768px) {
  .row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .col-6 {
    width: 100%;
    min-width: auto;
  }
}

/* ========================================
   IMAGE STYLES
   ======================================== */
img.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
  background-color: var(--terminal-bg);
  box-shadow: none;
  outline: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1.display-5 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

p.lead {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #00cc00;
}

h5.text-secondary {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  font-size: 1rem;
}

/* ========================================
   CONTACT BUTTONS (Terminal Style)
   ======================================== */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.terminal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  width: 100%;
  box-sizing: border-box;
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.terminal-btn:hover {
  background: var(--terminal-hover);
  border-color: var(--accent);
  box-shadow: var(--glow);
  text-decoration: none;
  color: var(--accent);
}

/* ========================================
   PHONE BLOCKS (Signature Style)
   ======================================== */
.phone-block {
  display: inline-block;
  background-color: #000000;
  border: 1px solid #004400;
  padding: 2px 6px;
  margin-right: 2px;
  box-shadow: 0 0 3px #00ff00;
  color: white !important;
  font-weight: bold;
  text-shadow: var(--white-glow);
}

/* ========================================
   LISTS (Download Items)
   ======================================== */
.list-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.list-item-action {
  background-color: var(--terminal-bg);
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
  transition: all 0.2s;
}

.list-item-action:hover {
  background-color: var(--terminal-hover);
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateX(2px);
}

/* ========================================
   IP ADDRESS & COPY FUNCTIONALITY
   ======================================== */
.ip-address-container {
  cursor: pointer;
  user-select: none;
}

.ip-address-content {
  font-weight: bold;
  color: var(--accent);
}

@keyframes blinkEffect {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

.blink-animation {
  animation: blinkEffect 2s ease-in-out infinite;
  animation-delay: 1s;
}

/* ========================================
   COPY TOOLTIP
   ======================================== */
.copy-tooltip {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #001100;
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 9999;
  box-shadow: var(--glow);
  font-family: 'Courier New', monospace;
}

.copy-tooltip.show {
  opacity: 1;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  border-radius: 2px;
  background-color: var(--border);
  color: var(--text);
  margin-left: auto;
  border: 1px solid var(--accent);
}

.badge-warning { 
  background-color: #2a1f00; 
  color: #ffc107; 
  border-color: #ffc107; 
}

.badge-primary { 
  background-color: #001a2e; 
  color: #0dcaf0; 
  border-color: #0dcaf0; 
}

.badge-info { 
  background-color: #001a2e; 
  color: #0dcaf0; 
  border-color: #0dcaf0; 
}

/* ========================================
   SECURITY GRID
   ======================================== */
.security-checks-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.security-checks-title {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.security-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.6rem;
}

.security-link-item {
  background-color: var(--terminal-bg);
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
  transition: all 0.2s ease-in-out;
}

.security-link-item:hover {
  background-color: var(--terminal-hover);
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.security-icon { 
  font-size: 1.1rem; 
}

.security-link-text {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-badge {
  padding: 0.2em 0.5em;
  font-size: 0.7rem;
  border-radius: 2px;
  background-color: var(--border);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ========================================
   DECORATIVE LINES
   ======================================== */
.deco-line {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.5rem 0;
  position: relative;
}

.deco-line::after {
  content: "━━━━━━━━━━━━━━━━━━━━━━━";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 0.5rem;
  color: var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* ========================================
   COOKIE CONSENT BANNER (152-ФЗ)
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: -300px; /* Hidden by default */
  left: 0;
  right: 0;
  background-color: rgba(0, 10, 0, 0.95);
  border-top: 2px solid var(--accent);
  padding: 1rem 1.5rem;
  z-index: 10000;
  transition: bottom 0.4s ease-in-out;
  backdrop-filter: blur(8px);
}

.cookie-banner.show {
  bottom: 0; /* Show */
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1 1 400px;
  color: #00cccc;
  font-size: 0.85rem;
  line-height: 1.4;
}

.cookie-text a {
  color: #ffffff;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.btn-accept {
  padding: 0.5rem 1.2rem;
  background-color: #00aa66;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-accept:hover {
  background-color: #00cc77;
  box-shadow: var(--glow);
}

.btn-reject {
  padding: 0.5rem 1.2rem;
  background-color: transparent;
  color: #888;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-reject:hover {
  color: #ff6b6b;
  border-color: #ff6b6b;
}

/* ========================================
   PRIVACY POLICY MODAL (152-ФЗ, ст. 18)
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: none; /* Hidden by default */
  overflow-y: auto;
}

.modal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 800px;
  margin: 2rem;
  background-color: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  color: var(--text);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--accent);
}

.policy-title {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.policy-section {
  margin-bottom: 1.2rem;
}

.policy-section h4 {
  font-size: 1rem;
  color: #00cccc;
  margin-bottom: 0.3rem;
}

.policy-section p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #aaffaa;
}

.policy-section ul {
  list-style: none;
  padding-left: 1rem;
}

.policy-section li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #aaffaa;
  margin-bottom: 0.3rem;
}

/* ========================================
   FOOTER (152-ФЗ)
   ======================================== */
footer {
  background-color: var(--terminal-bg);
  border-top: 1px solid var(--border-light);
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #66aa66;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  text-shadow: var(--glow);
}

/* ========================================
   COOKIE SETTINGS PANEL (152-ФЗ)
   ======================================== */
.cookie-settings-toggle {
  position: fixed;
  bottom: 0.8rem;
  right: 1rem;
  z-index: 9998;
  background-color: var(--terminal-bg);
  border: 1px solid var(--border);
  color: #66aa66;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.cookie-settings-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ========================================
   DATA SUBJECT RIGHTS SECTION (152-ФЗ)
   ======================================== */
.rights-section {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background-color: rgba(0, 20, 0, 0.5);
}

.rights-title {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.rights-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #aaffaa;
}

.rights-email {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  background-color: var(--terminal-bg);
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

.rights-email:hover {
  box-shadow: var(--glow);
  border-color: var(--accent);
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { 
  width: 10px; 
}

::-webkit-scrollbar-track { 
  background: var(--border-light); 
}

::-webkit-scrollbar-thumb { 
  background-color: var(--accent); 
  border-radius: 5px; 
}