:root {
  --bg-primary: #1B1F23;
  --bg-secondary: #2a2f36;
  --text-primary: #E0E0E0;
  --inactive: #3E4451;
}

/* === Base Styles === */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

header {
  background: var(--bg-secondary);
  box-shadow: 0 2px 8px #0004;
  padding: 0;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
}

.main-logo {
  height: 48px;
  width: 48px;
  border-radius: 10px;
  background: #222;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1.5px;
}

nav {
  border-top: 1px solid var(--inactive);
  background: var(--bg-secondary);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 2rem;
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-size: 1.08rem;
}

nav a.active,
nav a:hover {
  background: var(--inactive);
  color: #fff;
}

.account-nav {
  margin-left: auto;
}

/* === Main Content === */
main {
  max-width: 1100px;
  margin: 2.5rem auto 0 auto;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 14px;
  box-shadow: 0 4px 24px #0003;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: #222;
  object-fit: cover;
}

.hero h2 {
  margin-top: 0.5rem;
  font-size: 2rem;
  letter-spacing: 1px;
}

.featured {
  margin-top: 2rem;
}
.featured h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.featured-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: var(--bg-primary);
  border-radius: 10px;
  box-shadow: 0 2px 12px #0002;
  padding: 1.5rem;
  width: 270px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px #0004;
}

.card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: #222;
  object-fit: cover;
}

.card h3 {
  margin: 0.5rem 0 0.7rem 0;
  font-size: 1.2rem;
}

.card p {
  color: var(--text-primary);
  font-size: 1rem;
}

.card a {
  color: #7ecfff;
  text-decoration: underline;
  transition: color 0.2s;
}

.card a:hover {
  color: #fff;
}

/* === News Section === */
.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.news-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 4px 24px #0003;
  padding: 1.5rem;
  width: 320px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.news-card:hover {
  box-shadow: 0 8px 32px #0005;
  transform: translateY(-4px) scale(1.03);
}
.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.news-date {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 0.7rem;
}
.news-content {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.news-filter {
  margin: 1.5rem auto 0 auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.news-filter button {
  background: #23283b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.news-filter button.active,
.news-filter button:hover {
  background: #4c8bf5;
}
#news-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0008;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#news-modal .modal-content {
  background: var(--bg-secondary, #23283b);
  padding: 2rem;
  border-radius: 12px;
  max-width: 420px;
  text-align: left;
  color: #fff;
}
#close-news-modal {
  float: right;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* === Launcher Features === */
.launcher-hero {
  text-align: center;
  margin: 2.5rem 0 1.5rem 0;
}
.launcher-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.launcher-feature {
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 4px 24px #0003;
  padding: 1.5rem;
  width: 320px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.launcher-feature:hover {
  box-shadow: 0 8px 32px #0005;
  transform: translateY(-4px) scale(1.03);
}
.launcher-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}
.download-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #4c8bf5;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  margin-top: 1.2rem;
}
.download-btn:hover {
  background: #356ad8;
}
.info-btn {
  background: none;
  border: none;
  color: #4c8bf5;
  font-size: 1.1em;
  cursor: pointer;
  margin-left: 0.5em;
}
#sys-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0008;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#sys-modal .modal-content {
  background: var(--bg-secondary, #23283b);
  padding: 2rem;
  border-radius: 12px;
  max-width: 420px;
  text-align: left;
  color: #fff;
}
#close-sys-modal {
  float: right;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* === Account Popup Styles === */
#account-popup {
  position: fixed;
  top: 90px;
  right: 40px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 18px;
  box-shadow: 0 8px 32px #000b, 0 1.5px 8px #4c8bf555;
  padding: 2.2rem 2.5rem 1.7rem 2.5rem;
  z-index: 1002;
  min-width: 260px;
  max-width: 95vw;
  display: block;
  border: 1.5px solid var(--inactive);
  animation: popup-fadein 0.18s;
}
#account-popup .popup-content {
  position: relative;
}
#close-popup {
  position: absolute;
  top: -18px;
  right: -18px;
  background: var(--inactive);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0003;
  transition: background 0.2s;
}
#close-popup:hover {
  background: #4c8bf5;
}
.popup-btn {
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.8rem;
  border-radius: 8px;
  background: #4c8bf5;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.popup-btn:hover {
  background: #2563eb;
  box-shadow: 0 4px 16px #0004;
}
#account-popup h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}
#account-popup .popup-content > div {
  text-align: center;
}
.hidden {
  display: none !important;
}

/* === Settings/Account Settings === */
.settings-wrapper {
  display: flex;
  gap: 2.5rem;
  min-height: 600px;
}
.settings-tabs {
  min-width: 210px;
  max-width: 230px;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
  padding: 2rem 1.2rem 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: fit-content;
}
.settings-tab {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.08rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-weight: 600;
}
.settings-tab.active, .settings-tab:hover {
  background: #4c8bf5;
  color: #fff;
}
.settings-content {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
  padding: 2.5rem 2rem;
  min-width: 0;
}
.settings-section { margin-bottom: 2.5rem; }
.settings-section h3 { margin-bottom: 1rem; }
.settings-form label {
  font-weight: 600;
  color: #7ecfff;
  margin-bottom: 0.4rem;
  display: block;
  letter-spacing: 0.2px;
}
.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="password"],
.settings-form select,
.settings-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid #3E4451;
  background: #23283b;
  color: #e0e0e0;
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 1.5px 8px #0002;
}
.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
  border: 1.5px solid #4c8bf5;
  box-shadow: 0 2px 12px #4c8bf533;
}
.settings-form button,
.edit-btn {
  background: linear-gradient(90deg, #4c8bf5 60%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  margin-top: 0.3rem;
}
.settings-form button:disabled,
.edit-btn:disabled {
  background: #3E4451;
  color: #aaa;
  cursor: not-allowed;
  opacity: 0.7;
}
.settings-form button:hover:not(:disabled),
.edit-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #2563eb 60%, #4c8bf5 100%);
  box-shadow: 0 4px 16px #0004;
  transform: translateY(-2px) scale(1.03);
}

/* --- Custom File Input Styling --- */
.settings-form input[type="file"] {
  display: none;
}
.custom-file-label {
  display: inline-block;
  background: #23283b;
  color: #7ecfff;
  border: 1.5px solid #4c8bf5;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1.2rem;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.custom-file-label:hover {
  background: #4c8bf5;
  color: #fff;
  border-color: #2563eb;
}
#profile-pic-preview {
  display: block;
  margin-bottom: 1rem;
  border: 2.5px solid #4c8bf5;
  box-shadow: 0 2px 12px #4c8bf533;
}
.settings-info {
  color: #7ecfff;
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
}
.settings-list {
  background: #23283b;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.settings-list li {
  margin-bottom: 0.5rem;
}
.delete-account {
  border: 1.5px solid #e74c3c;
  border-radius: 8px;
  padding: 1.2rem;
  background: #2a2323;
  margin-top: 2rem;
}
.delete-account-btn {
  background: linear-gradient(90deg, #e74c3c 60%, #c0392b 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 12px #e74c3c33;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  margin-top: 0.7rem;
}
.delete-account-btn:hover {
  background: linear-gradient(90deg, #c0392b 60%, #e74c3c 100%);
  box-shadow: 0 4px 24px #e74c3c55;
  transform: translateY(-2px) scale(1.04);
  color: #fff;
  opacity: 0.95;
}
.delete-account-btn:active {
  background: #b93222;
  color: #fff;
  transform: scale(0.98);
}

/* === Footer === */
footer {
  background: var(--bg-secondary);
  color: var(--inactive);
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 3rem;
  font-size: 1rem;
  border-top: 1px solid var(--inactive);
}

/* === 2FA Methoden Panel im Epic Games Stil === */
.twofa-methods-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.twofa-method-card {
    background: #23283b;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0002;
    padding: 1.3rem 1.5rem 1.2rem 1.5rem;
    min-width: 260px;
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    transition: border 0.2s, box-shadow 0.2s;
}
.twofa-method-card.active {
    border: 2px solid var(--accent, #4c8bf5);
    box-shadow: 0 4px 24px #4c8bf533;
}
.twofa-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}
.twofa-method-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #f3f6fa);
}
.twofa-method-status {
    font-size: 0.98rem;
    font-weight: 500;
    color: #e74c3c;
}
.twofa-method-card.active .twofa-method-status {
    color: #27ae60;
}
.twofa-method-desc {
    color: var(--text-secondary, #a6a28c);
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
}
.twofa-method-note {
    color: #e6b800;
    font-size: 0.92em;
}
.twofa-method-toggle {
    padding: 0.6rem 1.2rem;
    border-radius: 7px;
    border: none;
    background: var(--accent, #4c8bf5);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.twofa-method-toggle[disabled] {
    background: #44495c;
    color: #aaa;
    cursor: not-allowed;
}
.twofa-method-toggle:hover:not([disabled]) {
    background: #2563eb;
}
@media (max-width: 900px) {
    .twofa-methods-list {
        flex-direction: column;
        gap: 1rem;
    }
    .twofa-method-card {
        min-width: 0;
        width: 100%;
    }
}
.twofa-method-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.5rem;
}
.twofa-set-primary {
    background: #222;
    color: #7ecfff;
    border: 1.5px solid #4c8bf5;
    border-radius: 7px;
    padding: 0.6rem 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.twofa-set-primary[disabled] {
    background: #44495c;
    color: #aaa;
    border-color: #44495c;
    cursor: not-allowed;
}
.twofa-set-primary.primary {
    background: #4c8bf5;
    color: #fff;
    border-color: #2563eb;
}
.twofa-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.twofa-modal.hidden { display: none; }
.twofa-modal-content {
    background: #23283b;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    min-width: 320px;
    max-width: 95vw;
    box-shadow: 0 4px 24px #0008;
    color: #fff;
    text-align: center;
}
.close-twofa-modal, .close-twofa-app-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}
#twofa-app-qr img {
    margin: 1.2rem auto;
    display: block;
    width: 180px;
    height: 180px;
}
#twofa-app-modal .twofa-modal-content {
    background: #222b3a;
    border-radius: 16px;
    padding: 2.5rem 2.2rem 2rem 2.2rem;
    min-width: 340px;
    max-width: 98vw;
    box-shadow: 0 8px 32px #000b, 0 1.5px 8px #4c8bf555;
    color: #e0e0e0;
    text-align: center;
    position: relative;
}

#twofa-app-modal h3 {
    font-size: 1.35rem;
    color: #7ecfff;
    margin-bottom: 1.1rem;
    letter-spacing: 0.5px;
}

#twofa-app-qr {
    margin: 1.2rem auto 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
#twofa-app-qr img {
    width: 170px;
    height: 170px;
    border-radius: 12px;
    background: #23283b;
    box-shadow: 0 2px 16px #4c8bf533;
    border: 2.5px solid #4c8bf5;
    padding: 8px;
}

#twofa-app-modal p {
    color: #b8c6e0;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

#twofa-app-code {
    width: 70%;
    margin: 0.7rem auto 1.1rem auto;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1.5px solid #4c8bf5;
    background: #23283b;
    color: #e0e0e0;
    font-size: 1.18rem;
    text-align: center;
    outline: none;
    box-shadow: 0 1.5px 8px #0002;
    letter-spacing: 0.25em;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: border 0.2s, box-shadow 0.2s;
}
#twofa-app-code:focus {
    border: 1.5px solid #2563eb;
    box-shadow: 0 2px 12px #4c8bf533;
}

#twofa-app-confirm {
    background: linear-gradient(90deg, #4c8bf5 60%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.5rem;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px #0002;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    margin-top: 0.3rem;
}
#twofa-app-confirm:hover:not(:disabled) {
    background: linear-gradient(90deg, #2563eb 60%, #4c8bf5 100%);
    box-shadow: 0 4px 16px #0004;
    transform: translateY(-2px) scale(1.03);
}
#twofa-app-error {
    color: #e74c3c;
    font-size: 1rem;
    margin-top: 1rem;
    min-height: 1.2em;
}

@media (max-width: 600px) {
    #twofa-app-modal .twofa-modal-content {
        min-width: 0;
        padding: 1.2rem 0.5rem;
    }
    #twofa-app-qr img {
        width: 120px;
        height: 120px;
        padding: 4px;
    }
    #twofa-app-code {
        width: 95%;
    }
}

/* === Footer (alternative .site-footer) === */
.site-footer {
    background: #23272a;
    color: #fff;
    padding: 2rem 0 1rem 0;
    font-size: 1rem;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: bold;
    font-size: 1.2rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #7289da;
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social img {
    filter: brightness(0.9);
    transition: filter 0.2s;
}
.footer-social img:hover {
    filter: brightness(1.2);
}
.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #bbb;
}
@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

/* === Cookie Banner === */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #23283b;
  color: #fff;
  z-index: 9999;
  padding: 1.2rem 0.5rem;
  box-shadow: 0 -2px 12px #0005;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cookie-banner-content {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}
.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
}
#cookie-banner button {
  background: #4c8bf5;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
#cookie-banner button:hover {
  background: #2563eb;
}

/* === Responsive Design Ergänzungen === */
@media (max-width: 900px) {
  .settings-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  .settings-tabs {
    flex-direction: row;
    max-width: 100vw;
    min-width: 0;
    padding: 1rem 0.5rem;
    border-radius: 10px;
    box-shadow: none;
    gap: 0.5rem;
  }
  .settings-tab {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    padding: 0.7rem 0.2rem;
  }
  .settings-content {
    padding: 1.2rem 0.5rem;
    border-radius: 10px;
  }
  main, .container, .profile-social-card, .edit-card {
    padding: 1rem !important;
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
  }
  .featured-cards, .news-list {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .card, .news-card {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .logo-title {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  main, .container, .profile-social-card, .edit-card {
    padding: 1rem !important;
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
  }
  .featured-cards, .news-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
  }
  .card, .news-card {
    width: 45vw !important;
    min-width: 220px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .logo-title {
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 700px) {
  main, .container, .profile-social-card, .edit-card {
    padding: 1rem !important;
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
  }
  .featured-cards, .news-list {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .card, .news-card {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .logo-title {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
}

/* === Animations === */
@keyframes popup-fadein {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}