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

body {
  background: #000;
  color: #fff;
  font-family: 'Courier New', monospace;
  overflow-x: hidden;
  direction: rtl;
}

#matrix {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: #000;
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.top-buttons {
  display: flex;
  gap: 10px;
}

/* كل الأزرار العلوية ذهبية */
.top-buttons a button {
  padding: 10px 15px;
  background: #FFD700;
  border: none;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  font-family: inherit;
}

.top-buttons a button:hover {
  background: #FFC700;
  box-shadow: 0 0 15px #FFD700;
}

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

/* الاسم ذهبي */
#logo {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  letter-spacing: 2px;
  text-shadow: 0 0 15px #FFD700;
}

/* الدرع ذهبي */
.hexagon {
  width: 40px;
  height: 40px;
  background: #FFD700;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 20px #FFD700;
}

/* أزرار اللغة ذهبية */
.lang-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.lang-switch button {
  padding: 8px 16px;
  background: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
  cursor: pointer;
  border-radius: 4px;
  font-family: inherit;
}

.lang-switch button.active,
.lang-switch button:hover {
  background: #FFD700;
  color: #000;
}

.line {
  width: 100%;
  max-width: 600px;
  height: 2px;
  background: #FFD700;
  border: none;
  margin: 20px 0;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 600px;
}

/* العنوان ذهبي */
#title {
  font-size: 32px;
  text-align: center;
  color: #FFD700;
  letter-spacing: 2px;
  text-shadow: 0 0 20px #FFD700;
}

.scan-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  padding: 20px;
  border: 2px solid #FFD700;
  border-radius: 10px;
}

#placeholder {
  width: 100%;
  padding: 15px;
  background: #000;
  border: 2px solid #FFD700;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  text-align: center;
}

/* زر SCAN أخضر زمردي لحاله */
#scanBtn {
  padding: 15px;
  background: #50C878;
  border: none;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
}

#scanBtn:hover {
  background: #3EB489;
  box-shadow: 0 0 25px #50C878;
}

/* الأزرار السفلية ذهبية */
.bottom-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.bottom-buttons button {
  padding: 12px 25px;
  background: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  font-family: inherit;
}

.bottom-buttons button:hover {
  background: #FFD700;
  color: #000;
}

@media (max-width: 600px) {
  header { flex-direction: column; gap: 15px; }
  #title { font-size: 24px; }
 .top-buttons { flex-wrap: wrap; justify-content: center; }
 .bottom-buttons { flex-direction: column; width: 100%; }
 .bottom-buttons button { width: 100%; }
}/* شعار نص ذهبي نيون */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

#logo {
  color: #FFD700;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow:
    0 0 5px #FFD700,
    0 0 10px #FFD700,
    0 0 20px #FFA500,
    0 0 40px #FF8C00;
  font-family: 'Courier New', monospace;
}

/* توسيع حقل الرابط */
.scan-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 650px;
  margin: 30px auto;
}

#urlInput {
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  border-radius: 12px;
  border: 2px solid #FFD700;
  background: rgba(0,0,0,0.8);
  color: #fff;
  text-align: right;
  direction: ltr;
}

#scanBtn {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

/* الكروت تحت أزرق نيون */
.bottom-buttons button {
  color: #00BFFF;
  border: 1px solid #00BFFF;
  background: rgba(0, 191, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
  padding: 18px 25px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
  margin: 0 10px;
}

.hexagon { display: none; }/* شعار + درع TP - التعديل الوحيد */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

#logo {
  color: #FFD700;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow:
    0 0 5px #FFD700,
    0 0 10px #FFD700,
    0 0 20px #FFA500,
    0 0 40px #FF8C00;
  font-family: 'Courier New', monospace;
}

.shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  background: #FFD700;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 10px #FFD700;
}.shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  background: #FFD700;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 10px #FFD700;
}.shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  background: #FFD700;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  margin-left: 8px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 10px #FFD700;
}