/* --- FONT FAMILY: Vazirmatn from Google Fonts --- */
body {
    font-family: "Vazirmatn", system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 20px 10px;
    background-color: #f6f8fa;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.02"/%3E%3C/svg%3E');
    color: #1f2328;
    text-align: center;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

:root {
    --bg-color: #f6f8fa;
    --card-bg: #ffffff;
    --text-primary: #1f2328;
    --text-secondary: #57606a;
    --border-color: #dce1e7;
    --accent-1: #0969da;
    --accent-2: #8060ff;
    --accent-3: #dd1173;
}

.background-loaded {
    background-image: none;
}

header {
    background: none;
    margin-bottom: 40px;
    padding: 20px;
}

h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: chromatic-text 5s linear infinite;
}

@keyframes liquid-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes chromatic-text {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

button {
    color: white;
    border: none;
    padding: 16px 25px;
    margin: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 90%;
    max-width: 420px;
    background: linear-gradient(120deg, var(--accent-1), var(--accent-2), var(--accent-3));
    background-size: 300% 300%;
    animation: liquid-gradient 8s ease infinite;
    box-shadow: 0 4px 15px 0 rgba(128, 96, 255, 0.25);
    align-items: center;
    justify-content: space-between;
}

button img {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px 0 rgba(128, 96, 255, 0.35);
}

button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px 0 rgba(128, 96, 255, 0.25);
}

.back-button, .close-button {
    background: var(--text-secondary);
    box-shadow: 0 4px 15px 0 rgba(87, 96, 106, 0.2);
}
.back-button:hover, .close-button:hover {
    background: #3d464f;
    box-shadow: 0 8px 20px 0 rgba(87, 96, 106, 0.3);
}

.faq-container, .support-container {
    width: 95%;
    max-width: 800px;
    margin: 20px auto;
}

.faq, .support {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px 30px;
    margin: 20px 0;
    text-align: right;
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.02),
      0 4px 8px rgba(0, 0, 0, 0.03),
      0 10px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq:hover, .support:hover {
    transform: translateY(-6px);
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.03),
      0 8px 16px rgba(0, 0, 0, 0.04),
      0 20px 40px rgba(0, 0, 0, 0.05);
}

.faq h2, .support h2 {
    margin: 0;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.faq h2::after {
    content: '❯';
    margin-right: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent-1);
    transition: transform 0.3s ease;
}
.faq h2.active::after {
    transform: rotate(90deg);
}

.support h2::after {
    content: '✔';
    color: var(--accent-1);
    margin-right: 15px;
    font-size: 1.5em;
}

.answer {
    display: none;
    padding: 20px 0 5px 0;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-secondary);
}
.answer img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

#video-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(246, 248, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#video-player {
    width: 95%;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    h1 { font-size: 2em; }
    .faq h2, .support h2 { font-size: 1.1em; }
    body { padding: 15px 5px; }
    .faq, .support { padding: 20px; }
}
