body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #121212 0%, #1e1e2e 100%);
    color: #ffffff;
    padding: 20px 20px 80px;
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 100px;
}


.menu {
    position: fixed;
    top: 25px; /* فاصله از بالا */
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1e1e2e, #2a2a3e);
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* سایه به سمت پایین */
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    border-radius: 12px;
}


.menu button {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    margin: 0 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.menu button:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, #005bb5, #3f3fb5);
}

.menu button:active {
    transform: scale(0.98);
}

.section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.active {
    display: block;
    opacity: 1;
}

.card {
    background: #1e1e2e;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h2,
h3 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-weight: 600;
}

.stats {
    list-style: none;
    padding: 0;
    direction: rtl;
}

.stats li {
    margin: 15px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.2s;
    text-align: right;
}

.stats li:hover {
    background: rgba(255, 255, 255, 0.1);
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #2a2a3e;
    color: #ffffff;
    font-size: 15px;
    text-align: left;
    direction: ltr;
}

input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 5px rgba(0, 122, 255, 0.5);
}

button {
    padding: 14px;
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: linear-gradient(135deg, #005bb5, #3f3fb5);
    transform: scale(1.02);
}

button:active {
    transform: scale(0.98);
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    direction: ltr;
}

ul li a {
    color: #40c4ff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-left: 24px;
    transition: color 0.2s;
}

ul li a::before {
    content: '🔗';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

ul li a:hover {
    color: #0288d1;
}

ul li button {
    background: linear-gradient(135deg, #ff3b30, #d32f2f);
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

ul li button:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

.channel-info {
    display: flex;
    flex-direction: column;
}

.channel-name {
    color: #e0e0e0;
    font-size: 14px;
    margin-top: 4px;
}