:root {
    --bg-color: #121212;
    --bg-gradient-1: #121212;
    --bg-gradient-2: #1a1a1a;
    --text-color: #faf7f7;
    --text-muted: #94a3b8;
    --card-bg: rgba(0, 0, 0, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --header-bg: #000000;
    --toggle-bg: rgba(0, 0, 0, 0.8);
    --toggle-color: #faf7f7;
    --modal-bg: #000000;
}

body.light-theme {
    --bg-color: #e5e7eb;
    --bg-gradient-1: #e5e7eb;
    --bg-gradient-2: #d1d5db;
    --text-color: #111827;
    --text-muted: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 0, 0, 0.1);
    --header-bg: #ffffff;
    --toggle-bg: rgba(255, 255, 255, 0.9);
    --toggle-color: #111827;
    --modal-bg: #ffffff;
}

html {
    background-color: var(--bg-color);
}

html,
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: var(--bg-color);
    background-image: linear-gradient(
      135deg,
      var(--bg-gradient-1) 25%,
      var(--bg-gradient-2) 25%,
      var(--bg-gradient-2) 50%,
      var(--bg-gradient-1) 50%,
      var(--bg-gradient-1) 75%,
      var(--bg-gradient-2) 75%,
      var(--bg-gradient-2)
    );
    background-size: 40px 40px;
    animation: move 4s linear infinite;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

.top-right-actions {
    position: fixed;
    top: 20px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.theme-toggle, .lang-toggle {
    background-color: var(--toggle-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--toggle-color);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover, .lang-toggle:hover {
    background-color: #f59e0b;
    color: #000000;
    transform: scale(1.08);
}

.btn-signup {
    background-color: #f59e0b;
    color: #000000;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.header-box {
    background-color: var(--header-bg);
    border-radius: 30px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3);
    display: block;
    width: max-content;
    margin: 0 auto;
    padding: 10px 24px;
    transform: translateY(30px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header-box:hover {
    transform: translateY(27px);
}

.header-box h1 {
    margin: 0;
    font-size: 22px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.icons-group {
    display: flex;
    gap: 14px;
}

.icons-group i {
    color: var(--text-color);
    transition: color 0.3s ease;
    cursor: pointer;
}

.icons-group i:hover {
    color: #f59e0b;
}

.title-text {
    color: var(--text-color);
}

.main-content {
    max-width: 900px;
    margin: 70px auto 40px auto;
    padding: 0 20px 60px 20px;
}

.hero {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 50px 30px;
    backdrop-filter: blur(8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 32px;
    margin: 18px 0 10px 0;
    color: var(--text-color);
}

.hero p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 550px;
    margin: 0 auto 28px auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary {
    background-color: #f59e0b;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card i {
    font-size: 28px;
    color: #f59e0b;
    margin-bottom: 12px;
}

.feature-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--text-color);
}

.feature-card p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.faq-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 35px;
}

.faq-section h2 {
    margin-top: 0;
    text-align: center;
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 25px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.faq-item h4 {
    margin: 0 0 6px 0;
    color: #f59e0b;
    font-size: 15px;
}

.faq-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.site-footer {
    padding: 0 20px 24px;
    color: var(--text-muted);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 85px 20px 20px;
    box-sizing: border-box;
}

.auth-card {
    background: var(--modal-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 35px;
    width: min(350px, 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    box-sizing: border-box;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-color);
}

.auth-card h2 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #f59e0b;
}

.btn-submit {
    width: 100%;
    padding: 11px;
    background-color: #f59e0b;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #d97706;
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-switch p {
    margin: 0;
}

.auth-switch a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .top-right-actions {
        top: 14px;
        right: 14px;
        gap: 8px;
    }

    .header-box {
        max-width: calc(100% - 32px);
        padding: 10px 16px;
        box-sizing: border-box;
    }

    .header-box h1 {
        gap: 10px;
        font-size: 18px;
    }

    .icons-group {
        gap: 8px;
    }

    .faq-section {
        padding: 24px 18px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 22px;
    }
}


.btn-github {
  background: transparent;
  position: relative;
  padding: 0px 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgb(248, 248, 248);
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: rgb(248, 248, 248);
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
}

.btn-github span {
  margin: 6px;
}

.btn-github::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: "";
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  left: -5em;
  text-align: center;
  transition: box-shadow 0.25s ease-out;
  z-index: -1;
}

.btn-github:hover {
  color: rgb(36, 41, 46);
  border: 1px solid rgb(36, 41, 46);
}

.btn-github:hover::before {
  box-shadow: inset 0 0 0 10em rgb(213, 219, 224);
}

body.light-theme .btn-github {
  color: rgb(36, 41, 46);
  border-color: rgb(36, 41, 46);
}

body.light-theme .btn-github:hover {
  color: rgb(248, 248, 248);
  border-color: rgb(248, 248, 248);
}

body.light-theme .btn-github:hover::before {
  box-shadow: inset 0 0 0 10em rgb(36, 41, 46);
}


.btn-discord {
  background: transparent;
  position: relative;
  padding: 0px 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(88, 101, 242, 1);
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: rgba(88, 101, 242, 1);
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
}

.btn-discord span {
  margin: 6px;
}

.btn-discord::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: '';
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  left: -5em;
  text-align: center;
  transition: box-shadow 0.25s ease-out;
  z-index: -1;
}

.btn-discord:hover {
  color: #fff;
  border: 1px solid rgba(88, 101, 242, 1);
}

.btn-discord:hover::before {
  box-shadow: inset 0 0 0 10em rgba(88, 101, 242, 1);
}
