/* Samos Transfer – shared layout & theme */
:root {
  --primary: #0b3d6e;
  --primary-light: #1565a8;
  --accent: #00b4a0;
  --bg: #f0f4f8;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 8px 30px rgba(11, 61, 110, 0.08);
  --header-from: #0b3d6e;
  --header-to: #072a4d;
  --btn-bg: #f1f5f9;
  --radius: 16px;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --accent: #2dd4bf;
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --header-from: #0f172a;
  --header-to: #020617;
  --btn-bg: #334155;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  transition: background 0.35s ease, color 0.35s ease;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* Header */
header {
  background: linear-gradient(145deg, var(--header-from) 0%, var(--header-to) 100%);
  color: #fff;
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
}

.logo {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.updated-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.75rem 0 0.25rem;
}

.brand h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand p {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 1px;
}

/* Nav / menu */
.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.menu-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 190px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 0.4rem;
  z-index: 200;
}

.menu-dropdown.open {
  display: block;
}

.menu-dropdown a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
}

.menu-dropdown a:hover {
  background: var(--btn-bg);
}

.menu-dropdown a.active {
  background: rgba(11, 61, 110, 0.1);
  color: var(--primary);
  font-weight: 600;
}

[data-theme="dark"] .menu-dropdown a.active {
  background: rgba(59, 130, 246, 0.15);
}

.lang-toggle,
.theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  height: 38px;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-toggle {
  min-width: 38px;
  padding: 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.theme-toggle {
  width: 38px;
  font-size: 1.05rem;
}

.lang-toggle:hover,
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Shared UI */
main {
  padding: 1.35rem 0 3rem;
}

.back-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(11, 61, 110, 0.06);
  border: 1px solid var(--border);
}

.back-mode:hover {
  background: rgba(11, 61, 110, 0.1);
}

[data-theme="dark"] .back-mode {
  background: rgba(59, 130, 246, 0.1);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

footer strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.3rem;
}

footer a {
  color: var(--muted);
}

@media (max-width: 639px) {
  .brand h1 {
    font-size: 1.05rem;
  }

  .menu-btn {
    font-size: 0.85rem;
    height: 36px;
    padding: 0 0.7rem;
  }
}
