/*
Theme Name: ramgytheme
Theme URI: https://ramgy.com/
Author: Ramgy
Description: Ramgy Platform - Master Software License & Terms.
*/

:root {
      --bg-dark: #0a0e17;
      --card-bg: rgba(20, 26, 40, 0.85);
      --border-color: rgba(255, 255, 255, 0.12);
      --accent-blue: #2563eb;
      --accent-hover: #3b82f6;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
    }

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

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        background-image: url('img/starry.gif'); !important;
        background-position: center center;
      color: var(--text-main);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    #main-app {
      flex: 1;
      padding: 40px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      background: radial-gradient(circle at center, #1e293b 0%, #0a0e17 100%);
      filter: blur(8px);
      transition: filter 0.5s ease;
    }

    #main-app.unlocked {
      filter: blur(0);
    }

    .brand-logo {
      font-size: 2.5rem;
      font-weight: 800;
      letter-spacing: 2px;
      color: #60a5fa;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .emblem {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 2px solid #60a5fa;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      font-weight: 900;
      box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      background-image: url('img/starry.gif');
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 99999;
      opacity: 1;
      visibility: visible;
      transition: opacity 0.4s ease, visibility 0.4s ease;
    }

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

    .modal-card {
      width: 90%;
      max-width: 850px;
      height: 85vh;
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .modal-header {
      padding: 20px 24px;
      background: rgba(255, 255, 255, 0.03);
      border-bottom: 1px solid var(--border-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }

    .header-title {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .header-title h2 {
      font-size: 1.25rem;
      font-weight: 600;
    }

    .lang-dropdown {
      background: #1e293b;
      color: var(--text-main);
      border: 1px solid #475569;
      padding: 8px 14px;
      border-radius: 8px;
      font-size: 0.9rem;
      cursor: pointer;
      outline: none;
    }

    .modal-body {
      flex: 1;
      padding: 24px;
      overflow-y: auto;
      font-size: 0.95rem;
      line-height: 1.6;
      color: #cbd5e1;
      border-bottom: 1px solid var(--border-color);
    }

    .modal-body h3 {
      color: #f8fafc;
      margin-bottom: 8px;
    }

    .modal-body p {
      margin-bottom: 16px;
    }

    .modal-body ul {
      margin-left: 20px;
      margin-bottom: 16px;
    }

    .modal-body li {
      margin-bottom: 8px;
    }

    .modal-footer {
      padding: 20px 24px;
      background: rgba(0, 0, 0, 0.2);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .checkbox-label {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.9rem;
      color: var(--text-muted);
      cursor: pointer;
      user-select: none;
    }

    .checkbox-label input {
      width: 18px;
      height: 18px;
      accent-color: var(--accent-blue);
      cursor: pointer;
    }

    .btn-accept {
      background: var(--accent-blue);
      color: #ffffff;
      border: none;
      padding: 12px 28px;
      border-radius: 8px;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-accept:disabled {
      background: #334155;
      color: #64748b;
      cursor: not-allowed;
    }

    .btn-accept:not(:disabled):hover {
      background: var(--accent-hover);
      box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    }