/* =========================================================
   HIGH VALYRIAN TRANSLATOR
   PREMIUM DARK VALYRIAN THEME
   CLEAN FRONTEND + HISTORY LAYOUT
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  font-family: Georgia, "Times New Roman", serif;

  color: #ead7b0;

  background: #080707;

  overflow-x: hidden;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}


/* =========================================================
   PAGE BACKGROUND
========================================================= */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  z-index: -3;

  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(115, 19, 25, 0.24),
      transparent 32%
    ),
    radial-gradient(
      circle at 15% 70%,
      rgba(100, 15, 18, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 85% 65%,
      rgba(120, 25, 20, 0.18),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #050505 0%,
      #100b0b 48%,
      #070606 100%
    );
}

.page-background {
  position: fixed;
  inset: 0;

  z-index: -2;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82),
      transparent 22%,
      transparent 78%,
      rgba(0, 0, 0, 0.82)
    );

  opacity: 0.95;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.translator-page {
  width: min(100%, 1080px);

  margin: 0 auto;

  padding: 55px 24px 70px;
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
  text-align: center;

  margin-bottom: 42px;
}

.dragon-logo {
  width: 74px;
  height: 74px;

  margin: 0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 39px;

  border: 1px solid rgba(225, 174, 93, 0.65);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(125, 20, 28, 0.7),
      rgba(30, 8, 10, 0.95)
    );

  box-shadow:
    0 0 18px rgba(145, 23, 31, 0.45),
    inset 0 0 18px rgba(0, 0, 0, 0.65);

  animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    box-shadow:
      0 0 18px rgba(145, 23, 31, 0.35),
      inset 0 0 18px rgba(0, 0, 0, 0.65);
  }

  50% {
    box-shadow:
      0 0 32px rgba(170, 28, 38, 0.65),
      inset 0 0 20px rgba(0, 0, 0, 0.65);
  }
}

.eyebrow {
  margin-bottom: 10px;

  color: #a9875a;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 4px;

  text-transform: uppercase;
}

.hero-section h1 {
  max-width: 900px;

  margin: 0 auto;

  color: #e9c98e;

  font-size: clamp(42px, 7vw, 76px);

  line-height: 0.98;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1px;

  text-shadow:
    0 2px 0 #5f401f,
    0 0 25px rgba(192, 106, 43, 0.22);
}

.hero-description {
  max-width: 650px;

  margin: 20px auto 0;

  color: #9f8d7b;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 16px;

  line-height: 1.7;
}


/* =========================================================
   TRANSLATOR CARD
========================================================= */

.translator-card {
  position: relative;

  padding: 30px;

  border: 1px solid rgba(217, 174, 102, 0.72);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(25, 19, 18, 0.96),
      rgba(10, 9, 9, 0.98)
    );

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 223, 169, 0.07);

  backdrop-filter: blur(12px);
}

.translator-card::before {
  content: "";

  position: absolute;

  inset: 8px;

  border: 1px solid rgba(255, 214, 126, 0.075);

  border-radius: 13px;

  pointer-events: none;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 14px;

  margin-bottom: 22px;
}

.section-heading h2 {
  color: #aa9b89;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 2px;

  text-transform: uppercase;
}

.section-line {
  width: 55px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(190, 144, 79, 0.6)
    );
}

.section-line:last-child {
  transform: rotate(180deg);
}


/* =========================================================
   TRANSLATION AREA
========================================================= */

.translation-area {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    78px
    minmax(0, 1fr);

  align-items: center;

  gap: 14px;
}

.language-panel {
  min-width: 0;
}

.language-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 9px;
}

.language-badge {
  display: inline-flex;

  align-items: center;

  min-height: 28px;

  padding: 5px 13px;

  color: #e7c78d;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1.2px;

  text-transform: uppercase;

  border: 1px solid rgba(204, 156, 85, 0.62);

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      rgba(91, 62, 28, 0.72),
      rgba(39, 25, 17, 0.82)
    );

  box-shadow:
    inset 0 1px rgba(255, 235, 190, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.3);
}

.character-count {
  color: #71675f;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 11px;
}


/* =========================================================
   TEXTAREAS
========================================================= */

.language-panel textarea {
  width: 100%;

  min-height: 260px;

  padding: 20px;

  resize: vertical;

  color: #eee0ca;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 17px;

  line-height: 1.6;

  border: 1px solid rgba(164, 151, 139, 0.28);

  border-radius: 13px;

  outline: none;

  background:
    linear-gradient(
      145deg,
      rgba(65, 62, 63, 0.7),
      rgba(26, 24, 24, 0.92)
    );

  box-shadow:
    inset 0 1px 8px rgba(255, 255, 255, 0.04),
    inset 0 -15px 35px rgba(0, 0, 0, 0.24),
    0 8px 25px rgba(0, 0, 0, 0.25);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.language-panel textarea::placeholder {
  color: #827970;
}

.language-panel textarea:focus {
  border-color: rgba(203, 151, 71, 0.75);

  box-shadow:
    0 0 0 3px rgba(145, 22, 29, 0.13),
    0 0 24px rgba(150, 27, 31, 0.14),
    inset 0 1px 8px rgba(255, 255, 255, 0.04);
}


/* =========================================================
   SWAP BUTTON
========================================================= */

.swap-container {
  display: flex;

  justify-content: center;
  align-items: center;
}

.swap-button {
  width: 64px;
  height: 64px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 2px;

  color: #dba66f;

  border: 1px solid rgba(178, 51, 58, 0.72);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(103, 22, 27, 0.75),
      rgba(22, 8, 9, 0.98)
    );

  box-shadow:
    0 0 20px rgba(157, 28, 36, 0.28),
    inset 0 0 14px rgba(0, 0, 0, 0.7);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.swap-icon {
  font-family: Arial, Helvetica, sans-serif;

  font-size: 30px;

  line-height: 1;
}

.swap-text {
  font-family: Arial, Helvetica, sans-serif;

  font-size: 8px;

  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.swap-button:hover {
  transform: rotate(180deg) scale(1.07);

  border-color: #d86d66;

  box-shadow:
    0 0 30px rgba(190, 37, 47, 0.55),
    inset 0 0 15px rgba(0, 0, 0, 0.75);
}


/* =========================================================
   COPY BUTTON
========================================================= */

.copy-button {
  padding: 5px 10px;

  color: #a9957d;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.8px;

  text-transform: uppercase;

  border: 1px solid rgba(179, 153, 119, 0.28);

  border-radius: 5px;

  background: rgba(255, 255, 255, 0.025);

  transition: all 0.2s ease;
}

.copy-button:hover {
  color: #e9c98e;

  border-color: rgba(216, 171, 99, 0.6);

  background: rgba(174, 122, 55, 0.09);
}


/* =========================================================
   TRANSLATE BUTTON
========================================================= */

.translate-button {
  position: relative;

  width: 100%;

  min-height: 62px;

  margin-top: 20px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  color: #f6dfb5;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 16px;

  font-weight: 800;

  letter-spacing: 1px;

  text-transform: uppercase;

  border: 1px solid #C59B27;
  border-radius: 6px;

  background: radial-gradient(circle, #9E0008 0%, #680005 50%, #3B0003 100%);

  box-shadow: 
    inset 0px 1px 1px rgba(255, 220, 130, 0.4), /* Inner Gold Rim Highlight */
    inset 0px -2px 5px rgba(0, 0, 0, 0.8),       /* Inner Dark Bottom Shadow */
    0px 4px 12px rgba(0, 0, 0, 0.6);
  overflow: hidden;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.translate-button::before {
  content: "";

  position: absolute;

  top: 0;
  left: -100%;

  width: 70%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.12),
      transparent
    );

  transform: skewX(-20deg);

  transition: left 0.6s ease;
}

.translate-button:hover::before {
  left: 140%;
}

.translate-button:hover {
  transform: translateY(-2px);

  border-color: #d26962;

  box-shadow:
    0 12px 32px rgba(129, 17, 25, 0.6),
    0 0 24px rgba(165, 30, 38, 0.25),
    inset 0 1px rgba(255, 210, 193, 0.25);
}

.translate-button:active {
  transform: translateY(1px);
}

.translate-button:disabled {
  cursor: wait;

  opacity: 0.7;

  transform: none;
}

.button-icon {
  font-size: 20px;
}


/* =========================================================
   STATUS
========================================================= */

.translation-status {
  min-height: 22px;

  margin-top: 10px;

  text-align: center;

  color: #9d8d7a;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 12px;
}

.translation-status[data-type="success"] {
  color: #b8a16e;
}

.translation-status[data-type="warning"] {
  color: #c39a63;
}

.translation-status[data-type="error"] {
  color: #c97870;
}


/* =========================================================
   QUICK PHRASES
========================================================= */

.quick-phrases {
  margin-top: 28px;
}

.small-heading {
  margin-bottom: 15px;
}

.small-heading h2 {
  font-size: 11px;
}

.small-heading .section-line {
  width: 35px;
}

.phrase-list {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;
}

.phrase-chip {
  padding: 10px 17px;

  color: #c99c6d;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 12px;

  font-weight: 700;

  border: 1px solid rgba(157, 76, 67, 0.5);

  border-radius: 7px;

  background:
    linear-gradient(
      145deg,
      rgba(70, 25, 23, 0.72),
      rgba(35, 15, 15, 0.85)
    );

  transition: all 0.25s ease;
}

.phrase-chip:hover {
  color: #f0d19c;

  border-color: rgba(210, 119, 92, 0.85);

  background:
    linear-gradient(
      145deg,
      rgba(105, 31, 31, 0.85),
      rgba(45, 15, 16, 0.95)
    );

  transform: translateY(-2px);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   RECENT TRANSLATIONS
========================================================= */

.recent-section {
  position: relative;

  margin-top: 36px;

  padding-top: 30px;

  border-top: 1px solid rgba(177, 151, 116, 0.14);
}


/* =========================================================
   HISTORY HEADER
========================================================= */

.recent-header {
  position: relative;

  min-height: 42px;

  margin-bottom: 18px;

  display: flex;

  align-items: center;
  justify-content: center;
}

.recent-header .section-heading {
  margin-bottom: 0;
}

.recent-heading-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  color: #d8a94f;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 21px;

  filter:
    drop-shadow(
      0 0 7px rgba(216, 169, 79, 0.25)
    );
}


/* =========================================================
   CLEAR HISTORY BUTTON
========================================================= */

.clear-history-button {
  position: absolute;

  right: 0;
  top: 50%;

  min-height: 40px;

  padding: 0 15px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  color: #d8a94f;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.6px;

  text-transform: uppercase;

  border: 1px solid rgba(167, 72, 52, 0.65);

  border-radius: 8px;

  background:
    linear-gradient(
      145deg,
      rgba(75, 25, 22, 0.65),
      rgba(35, 13, 13, 0.85)
    );

  box-shadow:
    inset 0 1px rgba(255, 215, 160, 0.05),
    0 5px 15px rgba(0, 0, 0, 0.22);

  transform: translateY(-50%);

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.clear-history-button span:first-child {
  font-size: 15px;
}

.clear-history-button:hover {
  color: #f0c36a;

  border-color: rgba(205, 87, 62, 0.9);

  background:
    linear-gradient(
      145deg,
      rgba(102, 30, 28, 0.8),
      rgba(47, 14, 15, 0.95)
    );

  transform:
    translateY(calc(-50% - 2px));

  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.35),
    0 0 15px rgba(151, 39, 37, 0.15);
}

.clear-history-button:active {
  transform: translateY(-50%);
}


/* =========================================================
   HISTORY CONTAINER
========================================================= */

.recent-translations {
  width: 100%;

  max-height: 330px;

  padding: 12px;

  overflow-y: auto;

  border: 1px solid rgba(155, 133, 108, 0.34);

  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      rgba(23, 19, 18, 0.94),
      rgba(9, 8, 8, 0.98)
    );

  box-shadow:
    inset 0 1px rgba(255, 224, 173, 0.035),
    inset 0 -20px 40px rgba(0, 0, 0, 0.18),
    0 10px 35px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   HISTORY SCROLLBAR
========================================================= */

.recent-translations::-webkit-scrollbar {
  width: 6px;
}

.recent-translations::-webkit-scrollbar-track {
  margin: 8px 0;

  background: transparent;
}

.recent-translations::-webkit-scrollbar-thumb {
  border-radius: 20px;

  background:
    linear-gradient(
      180deg,
      #9b3135,
      #57151a
    );
}

.recent-translations::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(
      180deg,
      #c34b45,
      #762025
    );
}

.recent-translations {
  scrollbar-width: thin;

  scrollbar-color:
    #762025
    transparent;
}


/* =========================================================
   HISTORY ITEM
   IMPORTANT:
   This matches the DOM created by app.js
========================================================= */

.recent-translation-item {
  position: relative;

  display: grid;

  grid-template-columns:
    105px
    minmax(0, 1fr)
    58px
    minmax(0, 1fr)
    42px;

  align-items: center;

  column-gap: 18px;

  min-height: 145px;

  margin-bottom: 10px;

  padding: 22px 24px;

  overflow: hidden;

  border: 1px solid rgba(153, 119, 76, 0.28);

  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      rgba(31, 25, 22, 0.88),
      rgba(15, 12, 12, 0.96)
    );

  box-shadow:
    inset 0 1px rgba(255, 224, 170, 0.035),
    0 5px 18px rgba(0, 0, 0, 0.22);

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.recent-translation-item:last-child {
  margin-bottom: 0;
}

.recent-translation-item:hover {
  border-color: rgba(203, 151, 71, 0.42);

  background:
    linear-gradient(
      145deg,
      rgba(39, 29, 24, 0.94),
      rgba(16, 12, 11, 0.98)
    );

  transform: translateY(-1px);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 214, 126, 0.035);
}


/* =========================================================
   HISTORY TIME
========================================================= */

.history-time {
  grid-column: 1;

  display: flex;

  align-items: center;

  gap: 7px;

  min-width: 0;

  color: #d9c6a0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 14px;

  white-space: nowrap;
}

.history-time-icon {
  color: #c99a43;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 18px;

  line-height: 1;

  filter:
    drop-shadow(
      0 0 6px rgba(201, 154, 67, 0.18)
    );
}

.history-time-text {
  color: #d9c6a0;
}


/* =========================================================
   HISTORY ORIGINAL COLUMN
========================================================= */

.history-original-column {
  grid-column: 2;

  min-width: 0;
}

.history-original-column .recent-original {
  margin-top: 6px;
}


/* =========================================================
   HISTORY RESULT COLUMN
========================================================= */

.history-result-column {
  grid-column: 4;

  min-width: 0;
}

.history-result-column .recent-result {
  margin-top: 6px;
}


/* =========================================================
   HISTORY LABEL
========================================================= */

.history-label {
  display: block;

  color: #c9963c;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1.5px;

  line-height: 1.2;

  text-transform: uppercase;

  white-space: nowrap;
}


/* =========================================================
   HISTORY TEXT
========================================================= */

.recent-original,
.recent-result {
  min-width: 0;

  margin: 0;

  overflow-wrap: anywhere;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 18px;

  line-height: 1.45;
}

.recent-original {
  color: #ead7b0;
}

.recent-result {
  color: #d9a441;

  font-weight: 600;

  text-shadow:
    0 0 10px rgba(211, 157, 62, 0.08);
}


/* =========================================================
   HISTORY ARROW
========================================================= */

.history-arrow {
  grid-column: 3;

  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  justify-self: center;

  color: #dca63f;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 25px;

  font-weight: 300;

  border: 1px solid rgba(214, 157, 64, 0.35);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(121, 70, 20, 0.16),
      rgba(20, 12, 8, 0.35)
    );

  box-shadow:
    0 0 14px rgba(176, 112, 28, 0.08),
    inset 0 0 10px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   HISTORY COPY BUTTON
========================================================= */

.history-copy-button {
  grid-column: 5;

  width: 36px;
  height: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  justify-self: center;

  padding: 0;

  color: #b9985c;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 15px;

  border: 1px solid rgba(180, 145, 82, 0.35);

  border-radius: 7px;

  background:
    rgba(255, 255, 255, 0.025);

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.history-copy-button:hover {
  color: #f0d19c;

  border-color: rgba(216, 171, 99, 0.7);

  background:
    rgba(174, 122, 55, 0.1);

  transform: translateY(-2px);

  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.3);
}

.history-copy-button:active {
  transform: translateY(0);
}

.history-copy-button.copied {
  color: #d9bd77;

  border-color: rgba(217, 189, 119, 0.65);

  background:
    rgba(170, 135, 61, 0.12);

  box-shadow:
    0 0 12px rgba(190, 150, 60, 0.12);
}

.history-copy-icon {
  display: block;

  line-height: 1;
}


/* =========================================================
   EMPTY HISTORY
========================================================= */

.recent-empty {
  min-height: 150px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 10px;

  color: #756c63;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 12px;

  text-align: center;
}

.recent-empty-icon {
  color: #a06c4c;

  font-size: 25px;

  opacity: 0.8;

  filter:
    drop-shadow(
      0 0 8px rgba(160, 108, 76, 0.18)
    );
}

.recent-empty p {
  margin: 0;

  color: #746b63;

  font-size: 12px;
}


/* =========================================================
   HISTORY FOOTER MESSAGE
========================================================= */

.history-footer-message {
  display: flex;

  align-items: center;

  gap: 7px;

  margin-top: 5px;

  color: #d6c29c;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 14px;

  font-weight: 600;
}

.history-footer-message span:first-child {
  font-size: 17px;

  line-height: 1;
}

.history-footer-message span:last-child {
  color: #d8c39c;
}


/* =========================================================
   TOOL INTRO
========================================================= */

.tool-intro {
  max-width: 800px;

  margin: 45px auto 0;

  text-align: center;
}

.tool-intro h2 {
  margin-bottom: 13px;

  color: #c9a66f;

  font-size: 25px;
}

.tool-intro p {
  color: #81776f;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 14px;

  line-height: 1.8;
}




/* =========================================================
   ACCESSIBILITY
========================================================= */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .translator-page {
    width: min(100%, 900px);
  }

  .recent-translation-item {
    grid-template-columns:
      90px
      minmax(0, 1fr)
      50px
      minmax(0, 1fr)
      40px;

    column-gap: 12px;

    padding: 20px 16px;
  }

  .recent-original,
  .recent-result {
    font-size: 16px;
  }

  .history-time {
    font-size: 13px;
  }
}


/* =========================================================
   TABLET / SMALL SCREEN
========================================================= */

@media (max-width: 800px) {

  .translator-page {
    padding: 40px 18px 55px;
  }

  .translation-area {
    grid-template-columns: 1fr;
  }

  .swap-container {
    padding: 3px 0;
  }

  .swap-button {
    width: 50px;
    height: 50px;
  }

  .swap-icon {
    font-size: 24px;
  }

  .swap-text {
    display: none;
  }

  .language-panel textarea {
    min-height: 210px;
  }


  /* HISTORY */

  .recent-header {
    justify-content: center;

    padding-bottom: 48px;
  }

  .clear-history-button {
    right: 50%;

    top: auto;
    bottom: 0;

    transform: translateX(50%);
  }

  .clear-history-button:hover {
    transform:
      translateX(50%)
      translateY(-2px);
  }

  .recent-translation-item {
    grid-template-columns:
      80px
      minmax(0, 1fr)
      46px
      minmax(0, 1fr)
      38px;

    min-height: 130px;

    column-gap: 10px;

    padding: 18px 14px;
  }

  .history-time {
    font-size: 12px;
  }

  .history-time-icon {
    font-size: 16px;
  }

  .history-label {
    font-size: 9px;
  }

  .recent-original,
  .recent-result {
    font-size: 15px;
  }

  .history-arrow {
    width: 38px;
    height: 38px;

    font-size: 21px;
  }

  .history-copy-button {
    width: 34px;
    height: 34px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

  .translator-page {
    padding: 28px 12px 45px;
  }

  .hero-section {
    margin-bottom: 28px;
  }

  .dragon-logo {
    width: 62px;
    height: 62px;

    font-size: 32px;
  }

  .eyebrow {
    font-size: 9px;

    letter-spacing: 2px;
  }

  .hero-section h1 {
    font-size: 38px;
  }

  .hero-description {
    font-size: 14px;
  }

  .translator-card {
    padding: 18px 13px;

    border-radius: 13px;
  }

  .translator-card::before {
    inset: 5px;
  }

  .language-panel textarea {
    min-height: 190px;

    padding: 15px;

    font-size: 15px;
  }

  .translate-button {
    min-height: 56px;

    font-size: 14px;
  }

  .phrase-list {
    gap: 7px;
  }

  .phrase-chip {
    padding: 8px 11px;

    font-size: 11px;
  }


  /* =======================================================
     MOBILE HISTORY
  ======================================================= */

  .recent-section {
    margin-top: 28px;

    padding-top: 24px;
  }

  .recent-header {
    padding-bottom: 46px;
  }

  .recent-heading-icon {
    font-size: 18px;
  }

  .clear-history-button {
    min-height: 36px;

    padding: 0 12px;

    font-size: 10px;
  }

  .recent-translations {
    max-height: 420px;

    padding: 8px;

    border-radius: 10px;
  }

  .recent-translation-item {
    display: grid;

    grid-template-columns: 1fr 1fr;

    grid-template-areas:
      "time time"
      "original original"
      "arrow arrow"
      "result copy";

    gap: 10px;

    min-height: auto;

    padding: 18px 14px;
  }

  .history-time {
    grid-area: time;

    justify-content: center;

    padding-bottom: 3px;
  }

  .history-original-column {
    grid-area: original;

    text-align: center;
  }

  .history-arrow {
    grid-area: arrow;

    width: 32px;
    height: 32px;

    margin: 2px auto;

    font-size: 20px;
  }

  .history-result-column {
    grid-area: result;

    text-align: center;
  }

  .history-copy-button {
    grid-area: copy;

    align-self: center;

    justify-self: end;
  }

  .recent-original,
  .recent-result {
    font-size: 15px;

    text-align: center;
  }

  .history-label {
    font-size: 9px;
  }

  .history-footer-message {
    justify-content: center;

    font-size: 12px;
  }


  /* TOOL INTRO */

  .tool-intro {
    margin-top: 32px;
  }

  .tool-intro h2 {
    font-size: 21px;
  }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

  .translator-page {
    padding-left: 9px;
    padding-right: 9px;
  }

  .translator-card {
    padding-left: 10px;
    padding-right: 10px;
  }

  .recent-translations {
    padding: 6px;
  }

  .recent-translation-item {
    padding: 16px 10px;
  }

  .recent-original,
  .recent-result {
    font-size: 14px;
  }

  .clear-history-button {
    font-size: 9px;
  }
}
/* =========================================================
   FINAL HISTORY FIX
   Matches current app.js history structure
========================================================= */

/* History container */
.recent-translations {
  max-height: 300px;
  padding: 10px;

  overflow-y: auto;

  border: 1px solid rgba(155, 133, 108, 0.34);
  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      rgba(23, 19, 18, 0.94),
      rgba(9, 8, 8, 0.98)
    );

  box-shadow:
    inset 0 1px rgba(255, 224, 173, 0.035),
    inset 0 -20px 40px rgba(0, 0, 0, 0.18),
    0 10px 35px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   HISTORY CARD
========================================================= */

.recent-translation-item {
  position: relative;

  display: grid;

  /*
     TIME | ENGLISH | ARROW | VALYRIAN | COPY
  */
  grid-template-columns:
    105px
    minmax(0, 1fr)
    64px
    minmax(0, 1fr)
    46px;

  align-items: center;

  min-height: 92px;

  margin-bottom: 10px;
  padding: 16px 18px;

  gap: 12px;

  overflow: hidden;

  border: 1px solid rgba(153, 119, 76, 0.28);
  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      rgba(31, 25, 22, 0.88),
      rgba(15, 12, 12, 0.96)
    );

  box-shadow:
    inset 0 1px rgba(255, 224, 170, 0.035),
    0 5px 18px rgba(0, 0, 0, 0.22);

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.recent-translation-item:last-child {
  margin-bottom: 0;
}


.recent-translation-item:hover {
  border-color: rgba(203, 151, 71, 0.42);

  background:
    linear-gradient(
      145deg,
      rgba(39, 29, 24, 0.94),
      rgba(16, 12, 11, 0.98)
    );

  transform: translateY(-1px);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 214, 126, 0.035);
}


/* =========================================================
   TIME
========================================================= */

.history-time {
  grid-column: 1;

  display: flex;
  align-items: center;

  gap: 7px;

  min-width: 0;

  color: #ead7b0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 14px;

  white-space: nowrap;
}

.history-time-icon {
  color: #dca63f;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;

  filter:
    drop-shadow(
      0 0 5px rgba(214, 157, 64, 0.2)
    );
}

.history-time-text {
  color: #ead7b0;
}


/* =========================================================
   ENGLISH COLUMN
========================================================= */

.history-original-column {
  grid-column: 2;

  min-width: 0;
}

.history-original-column .history-label,
.history-result-column .history-label {
  display: block;

  margin-bottom: 5px;

  color: #c9963c;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 1.5px;

  text-transform: uppercase;

  white-space: nowrap;
}


.recent-original {
  margin: 0;

  min-width: 0;

  color: #ead7b0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 17px;
  line-height: 1.35;

  overflow-wrap: anywhere;
}


/* =========================================================
   CENTER ARROW
========================================================= */

.history-arrow {
  grid-column: 3;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  justify-self: center;

  color: #dca63f;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 24px;
  font-weight: 300;

  border: 1px solid rgba(214, 157, 64, 0.35);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(121, 70, 20, 0.16),
      rgba(20, 12, 8, 0.35)
    );

  box-shadow:
    0 0 14px rgba(176, 112, 28, 0.08),
    inset 0 0 10px rgba(0, 0, 0, 0.35);
}


/* IMPORTANT:
   Remove old pseudo-element arrow */
.recent-translation-item::before {
  content: none !important;
}


/* =========================================================
   HIGH VALYRIAN COLUMN
========================================================= */

.history-result-column {
  grid-column: 4;

  min-width: 0;
}

.recent-result {
  margin: 0;

  min-width: 0;

  color: #d9a441;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 17px;
  font-weight: 600;

  line-height: 1.35;

  overflow-wrap: anywhere;

  text-shadow:
    0 0 10px rgba(211, 157, 62, 0.08);
}


/* =========================================================
   REMOVE OLD PSEUDO LABELS
========================================================= */

.recent-original::before,
.recent-result::before {
  content: none !important;
}


/* =========================================================
   HISTORY COPY BUTTON
========================================================= */

.history-copy-button {
  grid-column: 5;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  justify-self: end;

  padding: 0;

  color: #c99b45;

  border: 1px solid rgba(190, 144, 79, 0.35);

  border-radius: 7px;

  background:
    rgba(255, 255, 255, 0.025);

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}


.history-copy-button:hover {
  color: #f0ca78;

  border-color: rgba(214, 157, 64, 0.7);

  background:
    rgba(174, 122, 55, 0.09);

  transform: translateY(-1px);
}


.history-copy-button.copied {
  color: #e5c36f;

  border-color: rgba(214, 157, 64, 0.75);

  background:
    rgba(174, 122, 55, 0.12);
}


.history-copy-icon {
  font-size: 13px;
}


/* =========================================================
   REMOVE "YOUR LATEST FORGED TRANSLATIONS"
========================================================= */

.history-footer-message {
  display: none !important;
}


/* =========================================================
   EMPTY HISTORY
========================================================= */

.recent-empty {
  min-height: 120px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 8px;

  color: #756c63;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 12px;

  text-align: center;
}

.recent-empty-icon {
  color: #a06c4c;

  font-size: 22px;

  opacity: 0.8;

  filter:
    drop-shadow(
      0 0 8px rgba(160, 108, 76, 0.18)
    );
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

  .recent-translation-item {
    grid-template-columns:
      80px
      minmax(0, 1fr)
      50px
      minmax(0, 1fr)
      40px;

    padding: 14px;

    gap: 9px;
  }

  .history-time {
    font-size: 12px;
  }

  .recent-original,
  .recent-result {
    font-size: 15px;
  }

  .history-arrow {
    width: 36px;
    height: 36px;

    font-size: 21px;
  }

  .history-copy-button {
    width: 34px;
    height: 34px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .recent-translations {
    max-height: 400px;

    padding: 8px;
  }

  .recent-translation-item {
    grid-template-columns: 1fr;

    gap: 10px;

    min-height: auto;

    padding: 16px;
  }

  .history-time,
  .history-original-column,
  .history-arrow,
  .history-result-column,
  .history-copy-button {
    grid-column: 1;
  }

  .history-time {
    justify-content: center;

    font-size: 12px;
  }

  .history-original-column,
  .history-result-column {
    text-align: center;
  }

  .history-original-column .history-label,
  .history-result-column .history-label {
    text-align: center;
  }

  .recent-original,
  .recent-result {
    text-align: center;

    font-size: 15px;
  }

  .history-arrow {
    justify-self: center;

    width: 32px;
    height: 32px;

    font-size: 19px;
  }

  .history-copy-button {
    justify-self: center;

    width: 34px;
    height: 34px;
  }
}
/* =========================================================
   STEP 1 — INPUT / OUTPUT POLISH
========================================================= */

.language-panel textarea {
  border-color: rgba(190, 155, 100, 0.30);

  background:
    linear-gradient(
      145deg,
      rgba(43, 37, 34, 0.78),
      rgba(17, 15, 15, 0.96)
    );

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}


/* INPUT / OUTPUT HOVER */

.language-panel textarea:hover {
  border-color: rgba(210, 169, 100, 0.48);
}


/* FOCUS */

.language-panel textarea:focus {
  border-color: rgba(225, 181, 100, 0.72);

  background:
    linear-gradient(
      145deg,
      rgba(52, 43, 37, 0.86),
      rgba(20, 17, 16, 0.98)
    );

  box-shadow:
    0 0 0 2px rgba(210, 165, 83, 0.08),
    0 0 22px rgba(155, 92, 35, 0.12),
    inset 0 1px 8px rgba(255, 255, 255, 0.035);
}


/* OUTPUT BOX */

#valyrianOutput {
  color: #e4bd68;

  background:
    linear-gradient(
      145deg,
      rgba(48, 38, 30, 0.78),
      rgba(18, 15, 13, 0.97)
    );
}


/* PLACEHOLDER */

.language-panel textarea::placeholder {
  color: #756d65;
  opacity: 1;
}
/* =========================================================
   STEP 2 — FORGE TRANSLATION BUTTON POLISH
========================================================= */

.translate-button {
  border-color: rgba(174, 61, 63, 0.95);

  background:
    linear-gradient(
      180deg,
      #a52b31 0%,
      #7d171e 50%,
      #500d12 100%
    );

  box-shadow:
    0 8px 24px rgba(80, 7, 12, 0.48),
    0 0 18px rgba(143, 25, 31, 0.12),
    inset 0 1px rgba(255, 215, 190, 0.20),
    inset 0 -5px 10px rgba(0, 0, 0, 0.22);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease;
}


/* HOVER */

.translate-button:hover {
  transform: translateY(-2px);

  border-color: rgba(221, 116, 103, 0.95);

  filter: brightness(1.06);

  box-shadow:
    0 12px 30px rgba(111, 12, 20, 0.58),
    0 0 25px rgba(171, 35, 42, 0.22),
    inset 0 1px rgba(255, 225, 210, 0.25),
    inset 0 -5px 10px rgba(0, 0, 0, 0.20);
}


/* ACTIVE */

.translate-button:active {
  transform: translateY(1px);

  box-shadow:
    0 5px 14px rgba(80, 7, 12, 0.45),
    inset 0 3px 8px rgba(0, 0, 0, 0.22);
}


/* BUTTON ICON */

.translate-button .button-icon {
  filter:
    drop-shadow(
      0 0 5px rgba(255, 194, 117, 0.25)
    );

  transition:
    transform 0.22s ease;
}


/* ICON HOVER */

.translate-button:hover .button-icon {
  transform: scale(1.08);
}


/* DISABLED / LOADING */

.translate-button:disabled {
  cursor: wait;

  opacity: 0.72;

  transform: none;

  filter: none;

  box-shadow:
    0 5px 15px rgba(70, 7, 11, 0.35),
    inset 0 1px rgba(255, 215, 190, 0.12);
}

/* =========================================================
   STEP 3 — QUICK PHRASES POLISH
========================================================= */

.phrase-list {
  gap: 11px;
}


/* PHRASE BUTTON */

.phrase-chip {
  position: relative;

  padding: 10px 16px;

  color: #cda66d;

  border: 1px solid rgba(177, 125, 67, 0.42);
  border-radius: 7px;

  background:
    linear-gradient(
      145deg,
      rgba(58, 28, 25, 0.78),
      rgba(25, 13, 13, 0.94)
    );

  box-shadow:
    inset 0 1px rgba(255, 220, 170, 0.035),
    0 4px 12px rgba(0, 0, 0, 0.20);

  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}


/* HOVER */

.phrase-chip:hover {
  color: #efd08b;

  border-color: rgba(218, 168, 91, 0.72);

  background:
    linear-gradient(
      145deg,
      rgba(76, 31, 29, 0.88),
      rgba(34, 14, 14, 0.97)
    );

  transform: translateY(-2px);

  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.30),
    0 0 14px rgba(155, 91, 38, 0.10),
    inset 0 1px rgba(255, 220, 170, 0.05);
}


/* ACTIVE */

.phrase-chip:active {
  transform: translateY(0);

  box-shadow:
    0 3px 9px rgba(0, 0, 0, 0.25),
    inset 0 2px 5px rgba(0, 0, 0, 0.18);
}


/* EMOJI */

.phrase-chip span {
  display: inline-block;

  margin-left: 4px;

  transition:
    transform 0.22s ease;
}


/* EMOJI HOVER */

.phrase-chip:hover span {
  transform: scale(1.12);
}
/* =========================================================
   STEP 4 — HISTORY MICRO POLISH
========================================================= */

/* HISTORY ITEM */

.recent-translation-item {
  border-color: rgba(171, 136, 91, 0.26);

  background:
    linear-gradient(
      145deg,
      rgba(31, 25, 22, 0.90),
      rgba(14, 11, 11, 0.97)
    );

  box-shadow:
    inset 0 1px rgba(255, 224, 170, 0.025),
    0 5px 16px rgba(0, 0, 0, 0.20);
}


/* HISTORY HOVER */

.recent-translation-item:hover {
  border-color: rgba(205, 158, 78, 0.48);

  background:
    linear-gradient(
      145deg,
      rgba(38, 29, 24, 0.94),
      rgba(16, 12, 11, 0.98)
    );

  transform: translateY(-1px);

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.24),
    0 0 14px rgba(151, 93, 35, 0.06),
    inset 0 1px rgba(255, 214, 126, 0.035);
}


/* TIME */

.history-time {
  display: flex;
  align-items: center;
  gap: 5px;

  color: #74695e;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
}

.history-time-icon {
  color: #a9824a;

  font-size: 13px;

  opacity: 0.8;
}

.history-time-text {
  color: #756b62;
}


/* HISTORY LABEL */

.history-label {
  display: block;

  margin-bottom: 7px;

  color: #bd8d3f;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;

  letter-spacing: 1.4px;
  text-transform: uppercase;
}


/* HISTORY ARROW */

.history-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  color: #d6a044;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;

  border: 1px solid rgba(207, 151, 58, 0.30);
  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(121, 70, 20, 0.14),
      rgba(20, 12, 8, 0.32)
    );

  box-shadow:
    0 0 12px rgba(176, 112, 28, 0.06),
    inset 0 0 9px rgba(0, 0, 0, 0.32);

  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}


/* ARROW HOVER */

.recent-translation-item:hover .history-arrow {
  border-color: rgba(216, 166, 78, 0.48);

  box-shadow:
    0 0 16px rgba(176, 112, 28, 0.10),
    inset 0 0 9px rgba(0, 0, 0, 0.32);

  transform: scale(1.04);
}


/* HISTORY COPY BUTTON */

.history-copy-button {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #a98b68;

  border: 1px solid rgba(177, 145, 105, 0.26);
  border-radius: 7px;

  background:
    rgba(255, 255, 255, 0.025);

  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}


/* COPY HOVER */

.history-copy-button:hover {
  color: #e6c27a;

  border-color: rgba(216, 171, 99, 0.58);

  background:
    rgba(174, 122, 55, 0.08);

  transform: translateY(-1px);
}


/* COPIED STATE */

.history-copy-button.copied {
  color: #e6c27a;

  border-color: rgba(216, 171, 99, 0.65);

  background:
    rgba(174, 122, 55, 0.10);
}


/* HISTORY TEXT */

.recent-original {
  color: #e7d5b5;
}

.recent-result {
  color: #d9a441;

  text-shadow:
    0 0 9px rgba(211, 157, 62, 0.07);
}
/* =========================================================
   STEP 5 — LOWER CONTENT POLISH
========================================================= */

.tool-intro {
  max-width: 780px;

  margin: 48px auto 0;

  padding: 0 20px;

  text-align: center;
}


/* HEADING */

.tool-intro h2 {
  margin-bottom: 14px;

  color: #d1b17a;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;

  letter-spacing: 0.2px;

  text-shadow:
    0 0 18px rgba(191, 139, 57, 0.08);
}


/* DESCRIPTION */

.tool-intro p {
  max-width: 690px;

  margin: 0 auto;

  color: #81776f;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 14px;
  line-height: 1.85;

  letter-spacing: 0.1px;
}


/* SUBTLE TOP SEPARATOR */

.tool-intro::before {
  content: "";

  display: block;

  width: 90px;
  height: 1px;

  margin: 0 auto 24px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(197, 151, 75, 0.45),
      transparent
    );
}


/* MOBILE */

@media (max-width: 520px) {

  .tool-intro {
    margin-top: 36px;
    padding: 0 12px;
  }

  .tool-intro h2 {
    font-size: 21px;
  }

  .tool-intro p {
    font-size: 13px;
    line-height: 1.75;
  }

}
/* =========================================================
   STEP 6 — HISTORY READABILITY POLISH
========================================================= */

.history-time-text {
  font-size: 9px;
  letter-spacing: 0.2px;
}

.history-time-icon {
  font-size: 11px;
}


/* HISTORY LABELS */

.history-label {
  margin-bottom: 5px;

  font-size: 9px;
  letter-spacing: 1.2px;
}


/* ORIGINAL TEXT */

.recent-original {
  font-size: 13px;
  line-height: 1.35;
}


/* VALYRIAN RESULT */

.recent-result {
  font-size: 13px;
  line-height: 1.35;

  font-weight: 600;
}


/* COPY BUTTON */

.history-copy-button {
  width: 32px;
  height: 32px;

  flex-shrink: 0;
}


/* ARROW */

.history-arrow {
  width: 36px;
  height: 36px;

  font-size: 19px;
}


/* MOBILE */

@media (max-width: 600px) {

  .history-time-text {
    font-size: 8px;
  }

  .history-label {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .recent-original,
  .recent-result {
    font-size: 12px;
  }

  .history-arrow {
    width: 32px;
    height: 32px;

    font-size: 17px;
  }

  .history-copy-button {
    width: 30px;
    height: 30px;
  }

}
/* =========================================================
   STEP 7 — UNIVERSAL MOBILE RESPONSIVE POLISH
========================================================= */

/* TABLET + MOBILE */

@media (max-width: 768px) {

  .translator-page {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .translator-card {
    width: 100%;
  }

  .translation-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .language-panel {
    width: 100%;
  }

  .swap-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .swap-button {
    margin: 0;
  }

  .translate-button {
    width: 100%;
  }

  .phrase-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
  }

  .recent-section {
    width: 100%;
    overflow: hidden;
  }

  .recent-translations {
    width: 100%;
    overflow-x: hidden;
  }

  .recent-translation-item {
    width: 100%;
  }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 600px) {

  .translator-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .translator-card {
    padding: 18px;
  }

  .hero-section h1 {
    font-size: clamp(34px, 9vw, 52px);
    line-height: 0.95;
  }

  .hero-description {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .translation-area {
    gap: 12px;
  }

  .language-panel textarea {
    width: 100%;
    min-height: 125px;
  }

  .swap-button {
    width: 42px;
    height: 42px;
  }

  .swap-text {
    display: none;
  }

  .quick-phrases {
    width: 100%;
  }

  .phrase-chip {
    white-space: nowrap;
  }

  .recent-header {
    gap: 10px;
  }

  .clear-history-button {
    white-space: nowrap;
  }

  .tool-intro {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 430px) {

  .translator-card {
    padding: 14px;
  }

  .hero-section {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-section h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .hero-description {
    font-size: 12px;
    line-height: 1.65;
  }

  .section-heading h2 {
    font-size: 11px;
  }

  .language-header {
    gap: 6px;
  }

  .language-badge {
    font-size: 8px;
  }

  .character-count {
    font-size: 8px;
  }

  .copy-button {
    font-size: 8px;
  }

  .language-panel textarea {
    min-height: 115px;
    font-size: 12px;
  }

  .translate-button {
    min-height: 42px;
  }

  .button-text {
    font-size: 10px;
  }

  .phrase-list {
    gap: 6px;
  }

  .phrase-chip {
    font-size: 9px;
    padding: 7px 9px;
  }

  .recent-header {
    align-items: center;
  }

  .clear-history-button {
    font-size: 8px;
    padding: 7px 9px;
  }

}


/* =========================================================
   EXTRA SMALL PHONES
========================================================= */

@media (max-width: 360px) {

  .translator-page {
    padding-left: 7px;
    padding-right: 7px;
  }

  .translator-card {
    padding: 11px;
  }

  .hero-section h1 {
    font-size: 29px;
  }

  .hero-description {
    font-size: 11px;
  }

  .language-panel textarea {
    min-height: 105px;
  }

  .recent-translation-item {
    gap: 6px;
  }

  .recent-original,
  .recent-result {
    font-size: 11px;
  }

  .history-label {
    font-size: 7px;
  }

  .history-time-text {
    font-size: 7px;
  }

  .history-arrow {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .history-copy-button {
    width: 27px;
    height: 27px;
  }

}
/* =========================================================
   STEP 7 FIX — REMOVE HORIZONTAL OVERFLOW
========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  max-width: 100%;
}


/* MAIN PAGE */

.translator-page {
  width: 100%;
  max-width: 100%;
}


/* TRANSLATOR CARD */

.translator-card {
  width: 100%;
  max-width: 100%;
}


/* TRANSLATION AREA */

.translation-area {
  width: 100%;
  max-width: 100%;
}


/* LANGUAGE PANELS */

.language-panel {
  min-width: 0;
  max-width: 100%;
}


/* TEXTAREAS */

.language-panel textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


/* QUICK PHRASES */

.phrase-list {
  max-width: 100%;
}


/* RECENT HISTORY */

.recent-section,
.recent-translations {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}


/* HISTORY CARD */

.recent-translation-item {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}


/* HISTORY CONTENT */

.history-original-column,
.history-result-column {
  min-width: 0;
  max-width: 100%;
}


/* LONG TEXT */

.recent-original,
.recent-result {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* =========================================================
   STEP 8 — TRANSLATOR CARD PREMIUM POLISH
========================================================= */

/* MAIN TRANSLATOR CARD */

.translator-card {
  border-color: rgba(230, 198, 92, 0.28);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 214, 126, 0.035);

  background:
    linear-gradient(
      145deg,
      rgba(24, 18, 16, 0.98),
      rgba(13, 10, 9, 0.98)
    );
}


/* =========================================================
   INPUT / OUTPUT PANELS
========================================================= */

.language-panel {
  border-color: rgba(230, 198, 92, 0.20);

  background:
    linear-gradient(
      145deg,
      rgba(30, 23, 20, 0.96),
      rgba(18, 14, 13, 0.96)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 214, 126, 0.025),
    0 8px 20px rgba(0, 0, 0, 0.16);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}


/* PANEL HOVER */

.language-panel:hover {
  border-color: rgba(230, 198, 92, 0.34);

  box-shadow:
    inset 0 1px 0 rgba(255, 214, 126, 0.035),
    0 10px 24px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   TEXTAREA
========================================================= */

.language-panel textarea {
  background:
    linear-gradient(
      145deg,
      rgba(25, 20, 18, 0.96),
      rgba(15, 12, 11, 0.98)
    );

  border-color: rgba(230, 198, 92, 0.14);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}


/* TEXTAREA FOCUS */

.language-panel textarea:focus {
  outline: none;

  border-color: rgba(230, 198, 92, 0.48);

  box-shadow:
    0 0 0 2px rgba(230, 198, 92, 0.045),
    0 0 18px rgba(230, 198, 92, 0.07);

  background:
    linear-gradient(
      145deg,
      rgba(29, 23, 20, 0.98),
      rgba(17, 13, 12, 0.98)
    );
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.language-panel textarea::placeholder {
  color: rgba(220, 210, 194, 0.42);
}


/* =========================================================
   LANGUAGE BADGES
========================================================= */

.language-badge {
  border-color: rgba(230, 198, 92, 0.30);

  background: rgba(230, 198, 92, 0.035);

  box-shadow:
    inset 0 0 8px rgba(230, 198, 92, 0.025);
}


/* =========================================================
   COPY BUTTON
========================================================= */

.copy-button {
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.copy-button:hover {
  color: #f0ce73;

  border-color: rgba(230, 198, 92, 0.45);

  background: rgba(230, 198, 92, 0.06);

  box-shadow:
    0 0 12px rgba(230, 198, 92, 0.08);
}


/* =========================================================
   SWAP BUTTON
========================================================= */

.swap-button {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.swap-button:hover {
  transform: scale(1.06);

  border-color: rgba(230, 198, 92, 0.55);

  background: rgba(230, 198, 92, 0.055);

  box-shadow:
    0 0 18px rgba(230, 198, 92, 0.10);
}

.swap-button:active {
  transform: scale(0.96);
}
/* =========================================================
   STEP 9 — FORGE TRANSLATION BUTTON POLISH
========================================================= */

.translate-button {
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(230, 198, 92, 0.32);

  background:
    linear-gradient(
      180deg,
      #b51f2b 0%,
      #8f111c 100%
    );

  box-shadow:
    0 6px 18px rgba(120, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 214, 126, 0.10);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}


/* HOVER */

.translate-button:hover:not(:disabled) {
  transform: translateY(-1px);

  border-color: rgba(230, 198, 92, 0.58);

  box-shadow:
    0 8px 24px rgba(120, 0, 0, 0.30),
    0 0 18px rgba(230, 198, 92, 0.08),
    inset 0 1px 0 rgba(255, 214, 126, 0.14);

  filter: brightness(1.06);
}


/* ACTIVE / PRESS */

.translate-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.995);

  box-shadow:
    0 3px 10px rgba(120, 0, 0, 0.22),
    inset 0 2px 5px rgba(0, 0, 0, 0.16);
}


/* BUTTON ICON */

.translate-button .button-icon {
  transition:
    transform 0.25s ease;
}

.translate-button:hover:not(:disabled) .button-icon {
  transform: scale(1.08);
}


/* LOADING / DISABLED */

.translate-button:disabled {
  cursor: wait;

  opacity: 0.72;

  filter: saturate(0.72);

  box-shadow:
    0 4px 12px rgba(80, 0, 0, 0.18);
}


/* KEYBOARD FOCUS */

.translate-button:focus-visible {
  outline: none;

  border-color: rgba(230, 198, 92, 0.68);

  box-shadow:
    0 0 0 2px rgba(230, 198, 92, 0.10),
    0 0 20px rgba(230, 198, 92, 0.10);
}
/* =========================================================
   MOBILE HISTORY CARD FIX
========================================================= */

@media (max-width: 600px) {

  .recent-translation-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time copy"
      "original original"
      "arrow arrow"
      "result result";

    gap: 10px;

    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    padding: 16px 14px;
  }


  /* TIME */

  .history-time {
    grid-area: time;

    justify-content: flex-start;
    min-width: 0;
  }


  /* COPY BUTTON */

  .history-copy-button {
    grid-area: copy;

    justify-self: end;

    width: 34px;
    height: 34px;
  }


  /* ENGLISH */

  .history-original-column {
    grid-area: original;

    width: 100%;
    min-width: 0;

    text-align: center;
  }


  /* ARROW */

  .history-arrow {
    grid-area: arrow;

    justify-self: center;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;
  }


  /* HIGH VALYRIAN */

  .history-result-column {
    grid-area: result;

    width: 100%;
    min-width: 0;

    text-align: center;
  }


  /* TEXT */

  .recent-original,
  .recent-result {
    width: 100%;
    max-width: 100%;

    margin: 0;

    overflow-wrap: anywhere;
    word-break: break-word;
  }


  /* LABELS */

  .history-label {
    display: block;

    margin-bottom: 5px;
  }


  /* TIME TEXT */

  .history-time-text {
    white-space: nowrap;
  }

}
/* =========================================================
   STEP 10 — QUICK PHRASES PREMIUM POLISH
========================================================= */

.phrase-chip {
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(230, 198, 92, 0.22);

  background:
    linear-gradient(
      145deg,
      rgba(38, 28, 23, 0.95),
      rgba(20, 15, 13, 0.95)
    );

  color: #d9c49a;

  box-shadow:
    inset 0 1px 0 rgba(255, 214, 126, 0.035),
    0 4px 12px rgba(0, 0, 0, 0.14);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}


/* HOVER */

.phrase-chip:hover {
  transform: translateY(-2px);

  color: #f0ce73;

  border-color: rgba(230, 198, 92, 0.48);

  background:
    linear-gradient(
      145deg,
      rgba(52, 38, 28, 0.98),
      rgba(25, 18, 15, 0.98)
    );

  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.22),
    0 0 14px rgba(230, 198, 92, 0.07),
    inset 0 1px 0 rgba(255, 214, 126, 0.05);
}


/* CLICK */

.phrase-chip:active {
  transform: translateY(0) scale(0.97);
}


/* KEYBOARD FOCUS */

.phrase-chip:focus-visible {
  outline: none;

  border-color: rgba(230, 198, 92, 0.60);

  box-shadow:
    0 0 0 2px rgba(230, 198, 92, 0.08),
    0 0 16px rgba(230, 198, 92, 0.08);
}


/* EMOJI */

.phrase-chip span {
  transition:
    transform 0.22s ease;
}

.phrase-chip:hover span {
  transform: scale(1.12);
}
/* =========================================================
   STEP 14 — TOOL INTRO PREMIUM POLISH
========================================================= */

.tool-intro {
  margin-top: 54px;
  padding: 42px 24px 34px;
  text-align: center;
  border-top: 1px solid rgba(230, 198, 92, 0.14);
}


/* =========================================================
   DECORATIVE DIVIDER
========================================================= */

.tool-intro-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.tool-intro-divider span:not(.tool-intro-dragon) {
  width: 70px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(230, 198, 92, 0.45)
  );
}

.tool-intro-divider span:last-child {
  background: linear-gradient(
    90deg,
    rgba(230, 198, 92, 0.45),
    transparent
  );
}

.tool-intro-dragon {
  color: #d9ad45;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(
    0 0 8px rgba(230, 198, 92, 0.12)
  );
}


/* =========================================================
   MAIN HEADING
========================================================= */

.tool-intro h2 {
  margin: 0 auto;

  color: #dfbd73;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(
    25px,
    3vw,
    36px
  );

  line-height: 1.2;

  letter-spacing: -0.02em;

  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.tool-intro-description {
  max-width: 760px;

  margin: 18px auto 0;

  color: rgba(218, 207, 188, 0.72);

  font-size: 15px;

  line-height: 1.8;

  letter-spacing: 0.01em;
}


/* =========================================================
   FEATURE GRID
========================================================= */

.tool-features {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  max-width: 900px;

  margin: 38px auto 0;

  border-top: 1px solid
    rgba(230, 198, 92, 0.10);

  border-bottom: 1px solid
    rgba(230, 198, 92, 0.10);
}


/* =========================================================
   FEATURE ITEM
========================================================= */

.tool-feature {
  position: relative;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  padding: 28px 18px;

  min-width: 0;
}


/* Vertical separators */

.tool-feature:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 24px;
  right: 0;

  width: 1px;
  height: calc(100% - 48px);

  background:
    rgba(230, 198, 92, 0.10);
}


/* =========================================================
   FEATURE ICON
========================================================= */

.tool-feature-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  margin-bottom: 14px;

  border: 1px solid
    rgba(230, 198, 92, 0.35);

  border-radius: 50%;

  background:
    rgba(230, 198, 92, 0.025);

  color: #d9ad45;

  font-size: 18px;

  box-shadow:
    inset 0 0 12px
      rgba(230, 198, 92, 0.025);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}


/* =========================================================
   FEATURE HEADING
========================================================= */

.tool-feature h3 {
  margin: 0;

  color: #d7af55;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


/* =========================================================
   FEATURE DESCRIPTION
========================================================= */

.tool-feature p {
  max-width: 160px;

  margin: 8px auto 0;

  color: rgba(205, 193, 173, 0.60);

  font-size: 12px;

  line-height: 1.6;
}


/* =========================================================
   FEATURE HOVER
========================================================= */

.tool-feature:hover .tool-feature-icon {
  transform: translateY(-2px);

  border-color:
    rgba(230, 198, 92, 0.55);

  background:
    rgba(230, 198, 92, 0.055);

  box-shadow:
    0 0 16px
      rgba(230, 198, 92, 0.06);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

  .tool-intro {
    margin-top: 44px;
    padding: 36px 20px 30px;
  }

  .tool-features {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .tool-feature:nth-child(2)::after {
    display: none;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

  .tool-intro {
    margin-top: 38px;
    padding: 32px 16px 26px;
  }

  .tool-intro-divider {
    gap: 10px;
    margin-bottom: 20px;
  }

  .tool-intro-divider span:not(.tool-intro-dragon) {
    width: 42px;
  }

  .tool-intro h2 {
    font-size: 25px;
    line-height: 1.25;
  }

  .tool-intro-description {
    margin-top: 15px;

    font-size: 13px;

    line-height: 1.75;
  }

  .tool-features {
    grid-template-columns: 1fr;

    margin-top: 30px;
  }

  .tool-feature {
    padding: 22px 16px;
  }

  .tool-feature:not(:last-child)::after {
    top: auto;
    right: 18%;
    bottom: 0;

    width: 64%;
    height: 1px;

    background:
      rgba(230, 198, 92, 0.09);
  }

  .tool-feature:nth-child(2)::after {
    display: block;
  }

  .tool-feature-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 11px;
  }

}
/* =========================================================
   STEP 15 — FOOTER PREMIUM POLISH
========================================================= */

.site-footer {
  position: relative;

  margin-top: 42px;
  padding: 30px 20px 34px;

  text-align: center;

  border-top: 1px solid
    rgba(230, 198, 92, 0.12);
}


/* =========================================================
   DECORATIVE TOP LINE
========================================================= */

.site-footer::before {
  content: "";

  position: absolute;

  top: -1px;
  left: 50%;

  width: 90px;
  height: 1px;

  transform: translateX(-50%);

  background:
    rgba(230, 198, 92, 0.45);

  box-shadow:
    0 0 10px
      rgba(230, 198, 92, 0.08);
}


/* =========================================================
   DRAGON ICON
========================================================= */

.footer-dragon {
  width: 38px;
  height: 38px;

  margin: 0 auto 12px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid
    rgba(230, 198, 92, 0.28);

  border-radius: 50%;

  color: #d9ad45;

  font-size: 17px;

  background:
    rgba(230, 198, 92, 0.025);

  opacity: 0.85;
}


/* =========================================================
   FOOTER TITLE
========================================================= */

.site-footer p {
  margin: 0;

  color: #d8b66b;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 16px;

  font-weight: 600;

  letter-spacing: 0.04em;
}


/* =========================================================
   FOOTER SUBTITLE
========================================================= */

.site-footer > span {
  display: block;

  margin-top: 7px;

  color:
    rgba(205, 193, 173, 0.48);

  font-size: 11px;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

  .site-footer {
    margin-top: 32px;
    padding: 26px 16px 30px;
  }

  .footer-dragon {
    width: 34px;
    height: 34px;

    margin-bottom: 10px;

    font-size: 15px;
  }

  .site-footer p {
    font-size: 14px;
  }

  .site-footer > span {
    font-size: 9px;

    line-height: 1.6;

    letter-spacing: 0.09em;
  }

}
/* =========================================================
   BRIGHT GOLD BORDER OVERRIDE
   Paste at the VERY END of style.css
========================================================= */

.translator-card,
.language-panel,
.recent-section,
.recent-translations,
.recent-translation-item,
.tool-intro {
  border-color: rgba(230, 198, 92, 0.38) !important;
}

/* Main translator card */
.translator-card {
  box-shadow:
    0 0 0 1px rgba(230, 198, 92, 0.08),
    0 0 18px rgba(230, 198, 92, 0.04);
}

/* Language panels */
.language-panel {
  border-color: rgba(230, 198, 92, 0.32) !important;
}

/* Recent translation outer box */
.recent-translations {
  border-color: rgba(230, 198, 92, 0.35) !important;
}

/* Individual history cards */
.recent-translation-item {
  border-color: rgba(230, 198, 92, 0.30) !important;
}

/* Gold divider lines */
.section-line {
  background: rgba(230, 198, 92, 0.38) !important;
}

/* Small premium glow on important borders */
.recent-translation-item:hover,
.language-panel:hover {
  border-color: rgba(230, 198, 92, 0.55) !important;
}
/* =========================================
   LOGO SIZE FIX — BUTTON
========================================= */

.button-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}


/* =========================================
   LOGO SIZE FIX — FOOTER
========================================= */

.footer-dragon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}


/* =========================================
   LOGO SIZE FIX — HISTORY FOOTER
========================================= */

.history-footer-message img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.tool-intro img {
  width: 180px !important;
  height: 180px !important;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
}


/* ONLY FOR FANS IMAGE */
.tool-feature:last-child .tool-feature-icon img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain;
  display: block;
}


/* =========================================
   FOR FANS LOGO — CIRCLE FIX
========================================= */

.tool-feature:last-child .tool-feature-icon {
  width: 48px !important;
  height: 48px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.tool-feature:last-child .tool-feature-icon img {
  width: 41px !important;
  height: 41px !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
}

/* ============================================================
   HIGH VALYRIAN HERO — BACKGROUND IMAGE
   ============================================================ */

.hero-section {
    position: relative;
    overflow: hidden;

    /*background-image:
        linear-gradient(
            to bottom,
            rgba(5, 5, 5, 0.20),
            rgba(5, 5, 5, 0.55)
        ),
        url("../assets/images/valyrian-hero.jpg");*/

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 430px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 70px 24px;
}


/* ============================================================
   HERO BACKGROUND IMAGE
   ============================================================ */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;
}


/* Keep existing hero content above image */

.hero-section > *:not(.hero-background-image) {
    position: relative;
    z-index: 2;
}
/* ============================================================
   HERO IMAGE BORDER
   ============================================================ */

.hero-section {
    border: 1px solid rgba(255, 214, 126, 0.30);
}

/* ============================================================
   HERO IMAGE — ROUNDED CORNERS
   ============================================================ */

.hero-section {
    border-radius: 24px;
    overflow: hidden;
}



.hero-description {
    color: #a89768;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 0 12px rgba(255, 220, 150, 0.18);
}

.hero-section .eyebrow {
    color: #e6c65c;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 0 12px rgba(255, 214, 126, 0.22);

    letter-spacing: 0.18em;
    font-weight: 600;
}

/* =========================================================
   HIGH VALYRIAN — BRIGHT GOLD METALLIC TITLE
   Paste at the very bottom of style.css
========================================================= */

.hero-section h1 {
    background: linear-gradient(
        180deg,
        #fff4b0 0%,
        #ffd45a 22%,
        #f5b52e 45%,
        #c9820d 68%,
        #ffe27a 85%,
        #b87308 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    text-shadow:
        0 0 8px rgba(151, 123, 46, 0.55),
        0 0 18px rgba(155, 124, 62, 0.35),
        0 0 35px rgba(255, 160, 20, 0.18);

    filter: drop-shadow(
        0 3px 8px rgba(0, 0, 0, 0.8)
    );
}


/* =========================================================
   REMOVE RED / BROWN BACKGROUND BEHIND HERO LOGO
========================================================= */

.hero-section .dragon-logo {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.hero-section .dragon-logo img {
    background: transparent !important;
    box-shadow: none !important;
    mix-blend-mode: normal;
    filter:
        drop-shadow(0 0 6px rgba(255, 200, 70, 0.35))
        drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8));
}
/* =========================================================
   HIGH VALYRIAN TRANSLATOR — FOOTER SAFETY FIX
========================================================= */

.about-footer .footer-brand {
    display: block !important;
    width: 100%;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;

    position: static !important;
    transform: none !important;
}

.about-footer .footer-brand-logo {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 13px !important;

    width: fit-content;

    margin: 0 0 18px 0 !important;
    padding: 0 !important;

    position: static !important;
    transform: none !important;

    text-decoration: none !important;
}

.about-footer .footer-logo-image {
    display: block !important;

    width: 50px !important;
    height: 50px !important;

    flex: 0 0 50px;

    object-fit: contain;
}

.about-footer .footer-logo-text {
    display: flex !important;

    flex-direction: column !important;
    align-items: flex-start !important;

    position: static !important;
    transform: none !important;

    line-height: 1;
}

.about-footer .footer-brand > p {
    display: block !important;

    width: 100%;
    max-width: 350px;

    margin: 0 !important;
    padding: 0 !important;

    position: static !important;
    transform: none !important;

    color: #998c7a !important;

    font-size: 12px !important;
    line-height: 1.8 !important;

    text-align: left !important;
}

.about-footer .footer-column {
    position: static !important;
    min-width: 0;
}

.about-footer .footer-column p {
    margin: 0 !important;
    padding: 0 !important;

    text-align: left !important;
}

.about-footer .footer-bottom {
    text-align: left !important;
}

@media (max-width: 560px) {

    .about-footer .footer-logo-image {
        width: 44px !important;
        height: 44px !important;

        flex-basis: 44px;
    }

    .about-footer .footer-brand > p {
        max-width: 100%;
    }

}

/* =========================================================
   MAIN WEBSITE FOOTER
========================================================= */

.about-footer {
    width: 100%;
    margin: 48px 0 0;

    padding:
        52px max(24px, calc((100% - 1180px) / 2))
        24px;

    display: grid;

    grid-template-columns:
        minmax(280px, 1.45fr)
        0.7fr
        1fr
        1fr;

    gap: 46px;

    background:
        linear-gradient(
            180deg,
            #0b0906 0%,
            #060504 100%
        );

    border-top:
        1px solid rgba(216, 170, 69, 0.22);

    color: #b9ad9b;

    font-family:
        Arial,
        sans-serif;

    text-align: left;
}


/* BRAND */

.about-footer .footer-brand {
    display: block;
    min-width: 0;
}

.about-footer .footer-brand-logo {
    display: inline-flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 18px;

    color: inherit;

    text-decoration: none;
}

.about-footer .footer-logo-image {
    width: 50px;
    height: 50px;

    display: block;

    object-fit: contain;
}

.about-footer .footer-logo-text {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    line-height: 1;
}

.about-footer .footer-logo-main {
    color: #e5b74c;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;

    font-weight: 700;

    letter-spacing: 0.06em;
}

.about-footer .footer-logo-sub {
    margin-top: 5px;

    color: #918574;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.22em;
}

.about-footer .footer-brand > p {
    max-width: 350px;

    margin: 0;

    color: #998c7a;

    font-size: 12px;

    line-height: 1.8;
}


/* COLUMNS */

.about-footer .footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;

    min-width: 0;
}

.about-footer .footer-column h3 {
    margin: 0 0 7px;

    color: #d6aa4e;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.16em;
}

.about-footer .footer-column a,
.about-footer .footer-column a:visited {
    color: #9b8f7e;

    font-size: 12px;

    line-height: 1.6;

    text-decoration: none;
}

.about-footer .footer-column a:hover {
    color: #efd386;
}

.about-footer .footer-column p {
    max-width: 225px;

    margin: 0;

    color: #928777;

    font-size: 12px;

    line-height: 1.75;
}


/* BOTTOM */

.about-footer .footer-bottom {
    grid-column: 1 / -1;

    width: 100%;

    margin-top: 12px;

    padding-top: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid rgba(216, 170, 69, 0.11);

    color: #71685e;

    font-size: 10px;
}


/* TABLET */

@media (max-width: 900px) {

    .about-footer {
        grid-template-columns:
            1fr 1fr;

        padding:
            44px 28px
            22px;
    }

    .about-footer .footer-brand {
        grid-column:
            1 / -1;
    }
}


/* MOBILE */

@media (max-width: 560px) {

    .about-footer {
        grid-template-columns:
            1fr;

        gap: 30px;

        padding:
            38px 22px
            22px;
    }

    .about-footer .footer-brand {
        grid-column: auto;
    }

    .about-footer .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 7px;
    }
}
