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

  :root {

    --bg-1: #0a0e27;

    --bg-2: #121638;

    --accent: #6366f1;

    --accent-2: #8b5cf6;

    --accent-3: #ec4899;

    --text: #e2e8f0;

    --text-dim: #94a3b8;

    --card: rgba(255,255,255,0.04);

    --border: rgba(255,255,255,0.08);

    --gold: #fbbf24;

    --green: #10b981;

    --red: #ef4444;

    --cyan: #06b6d4;

    --header-h: 80px;

  }

  html, body {

    font-family: 'Tajawal', 'Cairo', sans-serif;

    background: var(--bg-1);

    color: var(--text);

    overflow-x: hidden;

    min-height: 100vh;

    scroll-behavior: smooth;

  }

  body.rtl { font-family: 'Cairo', 'Tajawal', sans-serif; }

  body::before {

    content: '';

    position: fixed;

    inset: 0;

    background:

      radial-gradient(circle at 20% 20%, rgba(99,102,241,0.18), transparent 50%),

      radial-gradient(circle at 80% 60%, rgba(236,72,153,0.15), transparent 50%),

      radial-gradient(circle at 50% 100%, rgba(139,92,246,0.15), transparent 50%);

    pointer-events: none;

    z-index: 0;

  }

  /* Header */

  header {

    position: fixed;

    top: 0; left: 0; right: 0;

    height: var(--header-h);

    padding: 0 30px;

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 100;

    backdrop-filter: blur(12px);

    background: rgba(10,14,39,0.85);

    border-bottom: 1px solid var(--border);

  }

  .logo {

    position: absolute;

    font-size: clamp(18px, 2.5vw, 24px);

    font-weight: 800;

    background: linear-gradient(135deg, var(--accent), var(--accent-3));

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

    letter-spacing: 1px;

  }

  body.rtl .logo { right: 30px; }

  body.ltr .logo { left: 30px; }

  .header-actions {

    position: absolute;

    display: flex;

    gap: 10px;

    align-items: center;

  }

  body.rtl .header-actions { left: 30px; }

  body.ltr .header-actions { right: 30px; }

  .lang-btn {

    width: 44px; height: 44px;

    border-radius: 12px;

    background: var(--card);

    border: 1px solid var(--border);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    transition: all 0.3s;

    color: var(--text);

  }

  .lang-btn:hover {

    background: rgba(99,102,241,0.15);

    border-color: var(--accent);

    transform: scale(1.05);

  }

  .menu-btn {

    width: 46px; height: 46px;

    border: 1px solid var(--border);

    background: var(--card);

    border-radius: 12px;

    cursor: pointer;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    transition: all 0.3s ease;

  }

  .menu-btn:hover {

    background: rgba(99,102,241,0.15);

    border-color: var(--accent);

    transform: scale(1.05);

  }

  .menu-btn span {

    display: block;

    width: 22px; height: 2.5px;

    background: var(--text);

    border-radius: 2px;

    transition: all 0.35s ease;

  }

  .menu-btn.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }

  .menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }

  .menu-btn.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* Dropdown */

  .dropdown {

    position: fixed;

    top: calc(var(--header-h) + 10px);

    left: 50%;

    transform: translateX(-50%) translateY(-20px);

    background: rgba(18,22,56,0.98);

    backdrop-filter: blur(20px);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 20px;

    min-width: 320px;

    max-width: 90vw;

    max-height: 75vh;

    overflow-y: auto;

    opacity: 0;

    pointer-events: none;

    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    z-index: 99;

    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.2);

  }

  .dropdown::-webkit-scrollbar { width: 6px; }

  .dropdown::-webkit-scrollbar-track { background: transparent; }

  .dropdown::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

  .dropdown.open {

    opacity: 1;

    pointer-events: auto;

    transform: translateX(-50%) translateY(0);

  }

  .dropdown ul { list-style: none; }

  .dropdown li {

    padding: 14px 18px;

    border-radius: 12px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 14px;

    font-size: 16px;

    font-weight: 600;

    color: var(--text);

    transition: all 0.25s ease;

    margin-bottom: 4px;

    position: relative;

  }

  .dropdown li:hover {

    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));

    transform: translateX(-4px);

  }

  .dropdown li.active {

    background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.25));

  }

  .dropdown li.active::before {

    content: '';

    position: absolute;

    right: 8px;

    top: 50%;

    transform: translateY(-50%);

    width: 6px; height: 6px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow: 0 0 10px var(--accent);

  }

  body.ltr .dropdown li.active::before { right: auto; left: 8px; }

  .dropdown li .icon {

    width: 36px; height: 36px;

    border-radius: 10px;

    background: linear-gradient(135deg, var(--accent), var(--accent-2));

    display: flex; align-items: center; justify-content: center;

    font-size: 18px;

    flex-shrink: 0;

  }

  .dropdown li.game-item .icon { background: linear-gradient(135deg, #f59e0b, #ef4444); }

  .dropdown li.unban-item .icon { background: linear-gradient(135deg, #10b981, #059669); }

  /* Sections */

  main { position: relative; z-index: 1; padding-top: var(--header-h); }

  section {

    min-height: calc(100vh - var(--header-h));

    padding: 60px 30px;

    display: none;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    animation: fadeInUp 0.5s ease;

  }

  section.active { display: flex; }

  @keyframes fadeInUp {

    from { opacity: 0; transform: translateY(20px); }

    to { opacity: 1; transform: translateY(0); }

  }

  .section-title {

    font-size: clamp(28px, 5vw, 48px);

    font-weight: 800;

    margin-bottom: 14px;

    background: linear-gradient(135deg, #fff, #94a3b8);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

  }

  .section-subtitle {

    font-size: clamp(15px, 2vw, 18px);

    color: var(--text-dim);

    max-width: 600px;

    margin-bottom: 50px;

    line-height: 1.8;

  }

  /* Hero */

  .hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 18px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 100px;

    font-size: 14px;

    color: var(--text-dim);

    margin-bottom: 24px;

    animation: float 3s ease-in-out infinite;

  }

  .hero-badge .dot {

    width: 8px; height: 8px;

    border-radius: 50%;

    background: #10b981;

    box-shadow: 0 0 10px #10b981;

    animation: pulse 2s infinite;

  }

  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

  .migapp-logo-img {

    max-width: 320px;

    width: 70%;

    height: auto;

    margin: 10px auto 24px;

    display: block;

    filter: drop-shadow(0 10px 30px rgba(239,68,68,0.3));

    animation: float 3s ease-in-out infinite;

  }

  .hero-title {

    font-size: clamp(32px, 7vw, 72px);

    font-weight: 900;

    line-height: 1.1;

    margin-bottom: 20px;

    background: linear-gradient(135deg, #fff 30%, var(--accent) 70%, var(--accent-3));

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

  }

  .hero-desc {

    font-size: clamp(15px, 2vw, 20px);

    color: var(--text-dim);

    max-width: 700px;

    margin-bottom: 40px;

    line-height: 1.8;

    padding: 0 10px;

  }

  .download-btn {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding: 16px 36px;

    font-size: clamp(16px, 2.5vw, 18px);

    font-weight: 700;

    font-family: inherit;

    color: #fff;

    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));

    background-size: 200% 200%;

    border: none;

    border-radius: 16px;

    cursor: pointer;

    overflow: hidden;

    transition: all 0.3s ease;

    box-shadow: 0 10px 40px rgba(99,102,241,0.4);

    animation: gradient 4s ease infinite;

  }

  @keyframes gradient {

    0%,100% { background-position: 0% 50%; }

    50% { background-position: 100% 50%; }

  }

  .download-btn:hover {

    transform: translateY(-4px) scale(1.03);

    box-shadow: 0 15px 50px rgba(99,102,241,0.6);

  }

  .download-btn svg {

    width: 22px; height: 22px;

    animation: bounce-down 1.5s ease infinite;

  }

  @keyframes bounce-down {

    0%,100% { transform: translateY(0); }

    50% { transform: translateY(4px); }

  }

  .download-info {

    margin-top: 24px;

    display: flex;

    gap: 24px;

    flex-wrap: wrap;

    justify-content: center;

  }

  .download-info div {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

    color: var(--text-dim);

  }

  .download-info svg { width: 16px; height: 16px; color: #10b981; }

  /* Profile Section */

  .profile-section-home, .admin-section-home {

    width: 100%;

    max-width: 1100px;

    margin-top: 60px;

    padding-top: 50px;

    border-top: 1px solid var(--border);

  }

  .profile-header, .admin-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    cursor: pointer;

    padding: 18px 22px;

    border: 1px solid var(--border);

    border-radius: 18px;

    transition: all 0.3s ease;

    text-align: right;

    flex-wrap: wrap;

  }

  body.ltr .profile-header, body.ltr .admin-header { text-align: left; }

  .profile-header {

    background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(139,92,246,0.08));

    border-color: rgba(139,92,246,0.2);

  }

  .admin-header {

    background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(99,102,241,0.08));

    border-color: rgba(6,182,212,0.2);

  }

  .profile-header:hover, .admin-header:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(139,92,246,0.15);

  }

  .profile-header-left, .admin-header-left {

    display: flex;

    align-items: center;

    gap: 14px;

    flex: 1;

    min-width: 220px;

  }

  .profile-header-icon, .admin-header-icon {

    width: 56px; height: 56px;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    flex-shrink: 0;

  }

  .profile-header-icon {

    background: linear-gradient(135deg, #ec4899, #8b5cf6, #6366f1);

    box-shadow: 0 8px 25px rgba(139,92,246,0.4);

  }

  .admin-header-icon {

    background: linear-gradient(135deg, #06b6d4, #6366f1, #8b5cf6);

    box-shadow: 0 8px 25px rgba(6,182,212,0.4);

  }

  .profile-header-text, .admin-header-text { text-align: right; }

  body.ltr .profile-header-text, body.ltr .admin-header-text { text-align: left; }

  .profile-section-title, .admin-section-title {

    font-size: clamp(17px, 2.5vw, 22px);

    font-weight: 800;

    margin-bottom: 4px;

  }

  .profile-section-title {

    background: linear-gradient(135deg, #ec4899, #8b5cf6, #6366f1);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

  }

  .admin-section-title {

    background: linear-gradient(135deg, #06b6d4, #6366f1, #8b5cf6);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

  }

  .profile-section-sub, .admin-section-sub {

    font-size: 13px;

    color: var(--text-dim);

  }

  .profile-header-arrow, .admin-header-arrow {

    width: 42px; height: 42px;

    border-radius: 50%;

    background: rgba(255,255,255,0.05);

    border: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--text-dim);

    font-size: 18px;

    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    flex-shrink: 0;

  }

  .profile-section-home.expanded .profile-header-arrow,

  .admin-section-home.expanded .admin-header-arrow {

    transform: rotate(180deg);

    background: linear-gradient(135deg, #ec4899, #8b5cf6);

    color: #fff;

    border-color: transparent;

  }

  .admin-section-home.expanded .admin-header-arrow {

    background: linear-gradient(135deg, #06b6d4, #6366f1);

  }

  .profile-content, .admin-content {

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s ease, opacity 0.4s ease;

    opacity: 0;

    margin-top: 0;

  }

  .profile-section-home.expanded .profile-content,

  .admin-section-home.expanded .admin-content {

    max-height: 5000px;

    opacity: 1;

    margin-top: 24px;

  }

  .profile-grid-home {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 16px;

  }

  .profile-card-home {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 14px;

    position: relative;

    overflow: hidden;

    text-align: right;

    transition: all 0.3s ease;

  }

  body.ltr .profile-card-home { text-align: left; }

  .profile-card-home::before {

    content: '';

    position: absolute;

    inset: 0;

    background: var(--card-gradient);

    opacity: 0.05;

    transition: opacity 0.3s;

  }

  .profile-card-home:hover::before { opacity: 0.12; }

  .profile-card-home:hover {

    transform: translateY(-4px);

    border-color: var(--card-border);

    box-shadow: 0 10px 30px var(--card-shadow);

  }

  .profile-card-icon {

    flex-shrink: 0;

    width: 52px; height: 52px;

    border-radius: 14px;

    background: var(--card-gradient);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    position: relative;

    z-index: 1;

    box-shadow: 0 6px 20px var(--card-shadow);

  }

  .profile-card-content {

    flex: 1;

    position: relative;

    z-index: 1;

    min-width: 0;

  }

  .profile-card-name {

    font-size: 15px;

    font-weight: 700;

    color: #fff;

    margin-bottom: 4px;

  }

  .profile-card-desc {

    font-size: 12px;

    color: var(--text-dim);

    line-height: 1.5;

  }

  .profile-card-home.danger .profile-card-name { color: #fca5a5; }

  .profile-card-home[data-key="status"] { --card-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8); --card-border: #3b82f6; --card-shadow: rgba(59,130,246,0.3); }

  .profile-card-home[data-key="username"] { --card-gradient: linear-gradient(135deg, #8b5cf6, #6d28d9); --card-border: #8b5cf6; --card-shadow: rgba(139,92,246,0.3); }

  .profile-card-home[data-key="password"] { --card-gradient: linear-gradient(135deg, #ef4444, #b91c1c); --card-border: #ef4444; --card-shadow: rgba(239,68,68,0.3); }

  .profile-card-home[data-key="security"] { --card-gradient: linear-gradient(135deg, #f59e0b, #d97706); --card-border: #f59e0b; --card-shadow: rgba(245,158,11,0.3); }

  .profile-card-home[data-key="email"] { --card-gradient: linear-gradient(135deg, #10b981, #047857); --card-border: #10b981; --card-shadow: rgba(16,185,129,0.3); }

  .profile-card-home[data-key="private"] { --card-gradient: linear-gradient(135deg, #64748b, #334155); --card-border: #64748b; --card-shadow: rgba(100,116,139,0.3); }

  .profile-card-home[data-key="posts"] { --card-gradient: linear-gradient(135deg, #ec4899, #be185d); --card-border: #ec4899; --card-shadow: rgba(236,72,153,0.3); }

  .profile-card-home[data-key="notifications"] { --card-gradient: linear-gradient(135deg, #eab308, #a16207); --card-border: #eab308; --card-shadow: rgba(234,179,8,0.3); }

  .profile-card-home[data-key="darkmode"] { --card-gradient: linear-gradient(135deg, #475569, #0f172a); --card-border: #475569; --card-shadow: rgba(71,85,105,0.4); }

  .profile-card-home[data-key="balance"] { --card-gradient: linear-gradient(135deg, #fbbf24, #d97706); --card-border: #fbbf24; --card-shadow: rgba(251,191,36,0.35); }

  .profile-card-home[data-key="color"] { --card-gradient: linear-gradient(135deg, #ec4899, #8b5cf6, #6366f1); --card-border: #8b5cf6; --card-shadow: rgba(139,92,246,0.4); }

  .profile-card-home[data-key="delete"] { --card-gradient: linear-gradient(135deg, #dc2626, #7f1d1d); --card-border: #dc2626; --card-shadow: rgba(220,38,38,0.4); }

  /* Admin Section */

  .admin-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 26px;

    margin-bottom: 20px;

    text-align: right;

  }

  body.ltr .admin-card { text-align: left; }

  .admin-card-title {

    font-size: clamp(17px, 2.5vw, 20px);

    font-weight: 700;

    color: #fff;

    margin-bottom: 18px;

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

  }

  .admin-inputs-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 14px;

    margin-bottom: 20px;

  }

  .admin-input-wrapper {

    display: flex;

    flex-direction: column;

    gap: 6px;

  }

  .admin-input-label {

    font-size: 13px;

    font-weight: 600;

    color: var(--text-dim);

    display: flex;

    align-items: center;

    gap: 6px;

  }

  .admin-input {

    padding: 13px 18px;

    background: rgba(0,0,0,0.3);

    border: 1px solid var(--border);

    border-radius: 12px;

    color: #fff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    transition: all 0.3s;

    width: 100%;

  }

  .admin-input:focus {

    outline: none;

    border-color: var(--cyan);

    box-shadow: 0 0 20px rgba(6,182,212,0.2);

  }

  .admin-input::placeholder { color: var(--text-dim); opacity: 0.6; }

  .admin-hint {

    font-size: 13px;

    color: var(--text-dim);

    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 10px;

    flex-wrap: wrap;

  }

  .email-message-box {

    position: relative;

    background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(99,102,241,0.08));

    border: 1px solid rgba(6,182,212,0.3);

    border-radius: 16px;

    padding: 22px;

    margin-bottom: 20px;

    text-align: left;

    direction: ltr;

    overflow-x: auto;

  }

  .email-message-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 16px;

    flex-wrap: wrap;

    gap: 10px;

    direction: rtl;

  }

  body.ltr .email-message-header { direction: ltr; }

  .email-to {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

    color: var(--text-dim);

    flex-wrap: wrap;

  }

  .email-to-label { font-weight: 700; color: var(--cyan); }

  .email-to-address {

    font-family: 'Courier New', monospace;

    color: var(--text);

    background: rgba(0,0,0,0.3);

    padding: 4px 10px;

    border-radius: 6px;

    direction: ltr;

    font-size: 13px;

  }

  .email-subject {

    font-size: clamp(14px, 2vw, 16px);

    font-weight: 700;

    color: #fff;

    margin-bottom: 14px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);

    direction: ltr;

    text-align: left;

    word-break: break-word;

  }

  .email-subject::before { content: '📌 '; }

  .email-body {

    font-family: 'Courier New', monospace;

    font-size: clamp(12px, 1.6vw, 14px);

    line-height: 1.9;

    color: var(--text);

    white-space: pre-wrap;

    word-wrap: break-word;

    background: rgba(0,0,0,0.25);

    padding: 16px;

    border-radius: 10px;

    border: 1px solid var(--border);

  }

  .email-body .highlight {

    color: var(--gold);

    font-weight: 700;

    background: rgba(251,191,36,0.1);

    padding: 2px 6px;

    border-radius: 4px;

  }

  .admin-actions, .unban-actions {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    justify-content: center;

  }

  .admin-btn, .unban-btn {

    padding: 14px 24px;

    border: none;

    border-radius: 12px;

    font-family: inherit;

    font-size: clamp(14px, 2vw, 16px);

    font-weight: 700;

    cursor: pointer;

    transition: all 0.3s ease;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #fff;

  }

  .admin-btn.copy-msg, .unban-btn.copy-msg {

    background: linear-gradient(135deg, var(--accent), var(--accent-2));

    box-shadow: 0 8px 25px rgba(99,102,241,0.4);

  }

  .admin-btn.copy-msg:hover, .unban-btn.copy-msg:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 35px rgba(99,102,241,0.6);

  }

  .admin-btn.send-email {

    background: linear-gradient(135deg, #06b6d4, #6366f1);

    box-shadow: 0 8px 25px rgba(6,182,212,0.4);

  }

  .admin-btn.send-email:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 35px rgba(6,182,212,0.6);

  }

  .unban-btn.send-email {

    background: linear-gradient(135deg, #10b981, #059669);

    box-shadow: 0 8px 25px rgba(16,185,129,0.4);

  }

  .unban-btn.send-email:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 35px rgba(16,185,129,0.6);

  }

  .admin-btn svg, .unban-btn svg { width: 18px; height: 18px; }

  .admin-info, .unban-info {

    margin-top: 20px;

    padding: 16px 18px;

    background: rgba(99,102,241,0.08);

    border: 1px solid rgba(99,102,241,0.2);

    border-radius: 12px;

    text-align: right;

    font-size: 13px;

    color: var(--text-dim);

    line-height: 1.8;

  }

  body.ltr .admin-info, body.ltr .unban-info { text-align: left; }

  .admin-info-title, .unban-info-title {

    color: #fff;

    font-weight: 700;

    margin-bottom: 8px;

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

  }

  .admin-info ul, .unban-info ul { list-style: none; padding: 0; }

  .admin-info li, .unban-info li {

    padding: 4px 0;

    display: flex;

    align-items: flex-start;

    gap: 8px;

    flex-wrap: wrap;

  }

  .admin-info li::before { content: '✓'; color: var(--cyan); font-weight: 700; flex-shrink: 0; }

  .unban-info li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

  /* Commands */

  .commands-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 18px;

    max-width: 1100px;

    width: 100%;

  }

  .cmd-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 16px;

    transition: all 0.35s ease;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    text-align: right;

  }

  body.ltr .cmd-card { text-align: left; }

  .cmd-card::before {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(135deg, transparent, rgba(99,102,241,0.08));

    opacity: 0;

    transition: opacity 0.3s;

  }

  .cmd-card:hover {

    transform: translateY(-6px);

    border-color: var(--accent);

    box-shadow: 0 15px 40px rgba(99,102,241,0.2);

  }

  .cmd-card:hover::before { opacity: 1; }

  .cmd-icon {

    flex-shrink: 0;

    width: 52px; height: 52px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    color: #fff;

  }

  .cmd-icon.mod { background: linear-gradient(135deg, #10b981, #059669); }

  .cmd-icon.unmod { background: linear-gradient(135deg, #64748b, #475569); }

  .cmd-icon.ban { background: linear-gradient(135deg, #ef4444, #dc2626); }

  .cmd-icon.unban { background: linear-gradient(135deg, #f59e0b, #d97706); }

  .cmd-icon.mute { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

  .cmd-icon.unmute { background: linear-gradient(135deg, #3b82f6, #2563eb); }

  .cmd-content { flex: 1; min-width: 0; }

  .cmd-name { font-size: clamp(15px, 2vw, 18px); font-weight: 700; margin-bottom: 6px; color: #fff; }

  .cmd-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; line-height: 1.6; }

  .cmd-syntax {

    display: inline-block;

    padding: 6px 12px;

    background: rgba(0,0,0,0.3);

    border: 1px solid var(--border);

    border-radius: 8px;

    font-family: 'Courier New', monospace;

    font-size: 13px;

    color: #10b981;

    direction: ltr;

    unicode-bidi: embed;

  }

  .copy-btn {

    flex-shrink: 0;

    width: 36px; height: 36px;

    border-radius: 10px;

    background: rgba(255,255,255,0.05);

    border: 1px solid var(--border);

    color: var(--text-dim);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.25s;

  }

  .copy-btn:hover {

    background: var(--accent);

    color: #fff;

    border-color: var(--accent);

  }

  .copy-btn svg { width: 16px; height: 16px; }

  /* Download Section */

  .download-section-content { max-width: 700px; width: 100%; }

  .download-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 24px;

    padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 40px);

    margin-top: 30px;

    backdrop-filter: blur(10px);

  }

  .download-icon-big {

    width: 90px; height: 90px;

    margin: 0 auto 24px;

    background: linear-gradient(135deg, var(--accent), var(--accent-3));

    border-radius: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 20px 60px rgba(99,102,241,0.4);

    animation: float 3s ease-in-out infinite;

  }

  .download-icon-big svg { width: 44px; height: 44px; color: #fff; }

  .download-features {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

    gap: 14px;

    margin-top: 30px;

    text-align: right;

  }

  body.ltr .download-features { text-align: left; }

  .download-feature {

    padding: 14px;

    background: rgba(255,255,255,0.03);

    border: 1px solid var(--border);

    border-radius: 12px;

  }

  .download-feature-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: #fff; }

  .download-feature-desc { font-size: 12px; color: var(--text-dim); }

  /* About Section */

  .about-content { max-width: 800px; width: 100%; }

  .about-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

    gap: 18px;

    margin-top: 40px;

  }

  .about-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 24px;

    text-align: right;

    transition: all 0.3s;

  }

  body.ltr .about-card { text-align: left; }

  .about-card:hover { transform: translateY(-4px); border-color: var(--accent); }

  .about-card-icon {

    width: 48px; height: 48px;

    border-radius: 12px;

    background: linear-gradient(135deg, var(--accent), var(--accent-2));

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;

    margin-bottom: 14px;

  }

  .about-card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #fff; }

  .about-card-desc { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

  /* Game Section */

  #game { position: relative; }

  .game-container { max-width: 900px; width: 100%; }

  .game-hero {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-bottom: 28px;

    flex-wrap: wrap;

  }

  .game-hero-icon {

    width: 72px; height: 72px;

    border-radius: 20px;

    background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 36px;

    box-shadow: 0 15px 40px rgba(239,68,68,0.4);

    animation: float 3s ease-in-out infinite;

  }

  .game-hero-text { text-align: right; }

  body.ltr .game-hero-text { text-align: left; }

  .game-hero-title {

    font-size: clamp(28px, 5vw, 44px);

    font-weight: 900;

    background: linear-gradient(135deg, #fbbf24, #ef4444, #ec4899);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

    line-height: 1.1;

  }

  .game-hero-sub { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

  .start-cmd-hero {

    position: relative;

    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.15), rgba(236,72,153,0.15));

    border: 2px solid rgba(251,191,36,0.5);

    border-radius: 24px;

    padding: clamp(22px, 4vw, 35px) clamp(18px, 3vw, 30px);

    margin-bottom: 28px;

    overflow: hidden;

    text-align: right;

  }

  body.ltr .start-cmd-hero { text-align: left; }

  .start-cmd-hero::before {

    content: '';

    position: absolute;

    top: -50%; right: -20%;

    width: 300px; height: 300px;

    background: radial-gradient(circle, rgba(251,191,36,0.2), transparent 70%);

    animation: float 4s ease-in-out infinite;

  }

  .start-cmd-hero::after {

    content: '';

    position: absolute;

    bottom: -50%; left: -20%;

    width: 300px; height: 300px;

    background: radial-gradient(circle, rgba(239,68,68,0.2), transparent 70%);

    animation: float 4s ease-in-out infinite reverse;

  }

  .start-cmd-content { position: relative; z-index: 1; }

  .start-cmd-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 6px 14px;

    background: linear-gradient(135deg, #f59e0b, #ef4444);

    border-radius: 100px;

    font-size: 12px;

    font-weight: 700;

    color: #fff;

    margin-bottom: 14px;

    text-transform: uppercase;

    letter-spacing: 1px;

  }

  .start-cmd-title {

    font-size: clamp(18px, 3vw, 22px);

    font-weight: 800;

    color: #fff;

    margin-bottom: 10px;

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

  }

  .start-cmd-desc {

    font-size: 14px;

    color: var(--text-dim);

    line-height: 1.8;

    margin-bottom: 18px;

  }

  .start-cmd-box {

    display: flex;

    align-items: center;

    gap: 12px;

    background: rgba(0,0,0,0.4);

    border: 1px solid rgba(251,191,36,0.3);

    border-radius: 14px;

    padding: 14px 18px;

    flex-wrap: wrap;

  }

  .start-cmd-syntax {

    font-family: 'Courier New', monospace;

    font-size: clamp(18px, 3vw, 22px);

    font-weight: 800;

    color: #fbbf24;

    direction: ltr;

    unicode-bidi: embed;

    letter-spacing: 0.5px;

    text-shadow: 0 0 20px rgba(251,191,36,0.5);

  }

  .start-cmd-copy {

    padding: 10px 16px;

    background: linear-gradient(135deg, #f59e0b, #ef4444);

    border: none;

    border-radius: 10px;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    transition: all 0.3s;

  }

  .start-cmd-copy:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(239,68,68,0.4);

  }

  .start-cmd-copy svg { width: 16px; height: 16px; }

  .start-cmd-note {

    margin-top: 14px;

    padding: 10px 14px;

    background: rgba(251,191,36,0.08);

    border-right: 3px solid #fbbf24;

    border-radius: 8px;

    font-size: 13px;

    color: var(--gold);

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

  }

  body.ltr .start-cmd-note {

    border-right: none;

    border-left: 3px solid #fbbf24;

  }

  .game-commands-title {

    font-size: clamp(17px, 2.5vw, 20px);

    font-weight: 700;

    color: #fff;

    margin-bottom: 18px;

    text-align: right;

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

  }

  body.ltr .game-commands-title { text-align: left; }

  .game-commands-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 16px;

  }

  .game-cmd-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 18px;

    display: flex;

    align-items: center;

    gap: 14px;

    transition: all 0.35s ease;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    text-align: right;

  }

  body.ltr .game-cmd-card { text-align: left; }

  .game-cmd-card:hover {

    transform: translateY(-4px);

    border-color: var(--gold);

    box-shadow: 0 12px 30px rgba(251,191,36,0.2);

  }

  .game-cmd-icon {

    flex-shrink: 0;

    width: 48px; height: 48px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;

    color: #fff;

  }

  .game-cmd-icon.join { background: linear-gradient(135deg, #10b981, #059669); }

  .game-cmd-icon.reveal { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

  .game-cmd-content { flex: 1; min-width: 0; }

  .game-cmd-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }

  .game-cmd-desc { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.5; }

  .game-cmd-syntax {

    display: inline-block;

    padding: 5px 10px;

    background: rgba(0,0,0,0.3);

    border: 1px solid var(--border);

    border-radius: 8px;

    font-family: 'Courier New', monospace;

    font-size: 14px;

    font-weight: 700;

    color: #fbbf24;

    direction: ltr;

    unicode-bidi: embed;

  }

  /* Unban Section */

  #unban { position: relative; }

  .unban-container { max-width: 800px; width: 100%; }

  .unban-hero {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-bottom: 28px;

    flex-wrap: wrap;

  }

  .unban-hero-icon {

    width: 72px; height: 72px;

    border-radius: 20px;

    background: linear-gradient(135deg, #10b981, #059669, #14b8a6);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 36px;

    box-shadow: 0 15px 40px rgba(16,185,129,0.4);

    animation: float 3s ease-in-out infinite;

  }

  .unban-hero-text { text-align: right; }

  body.ltr .unban-hero-text { text-align: left; }

  .unban-hero-title {

    font-size: clamp(26px, 5vw, 42px);

    font-weight: 900;

    background: linear-gradient(135deg, #10b981, #14b8a6, #06b6d4);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

    line-height: 1.1;

  }

  .unban-hero-sub { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

  .unban-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: clamp(20px, 3vw, 30px);

    margin-bottom: 22px;

    text-align: right;

  }

  body.ltr .unban-card { text-align: left; }

  .unban-card-title {

    font-size: clamp(17px, 2.5vw, 20px);

    font-weight: 700;

    color: #fff;

    margin-bottom: 18px;

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

  }

  .nickname-input-group {

    display: flex;

    gap: 12px;

    align-items: center;

    flex-wrap: wrap;

    margin-bottom: 18px;

  }

  .nickname-input {

    flex: 1;

    min-width: 200px;

    padding: 13px 18px;

    background: rgba(0,0,0,0.3);

    border: 1px solid var(--border);

    border-radius: 12px;

    color: #fff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    transition: all 0.3s;

    direction: ltr;

    text-align: left;

    width: 100%;

  }

  .nickname-input:focus {

    outline: none;

    border-color: var(--green);

    box-shadow: 0 0 20px rgba(16,185,129,0.2);

  }

  .nickname-input::placeholder { color: var(--text-dim); opacity: 0.6; }

  .nickname-hint {

    font-size: 13px;

    color: var(--text-dim);

    display: flex;

    align-items: center;

    gap: 6px;

    flex-wrap: wrap;

  }

  .email-message-box-unban {

    position: relative;

    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(20,184,166,0.08));

    border: 1px solid rgba(16,185,129,0.3);

    border-radius: 16px;

    padding: 22px;

    margin-bottom: 20px;

    text-align: left;

    direction: ltr;

    overflow-x: auto;

  }

  .email-body-unban {

    font-family: 'Courier New', monospace;

    font-size: clamp(12px, 1.6vw, 14px);

    line-height: 1.9;

    color: var(--text);

    white-space: pre-wrap;

    word-wrap: break-word;

    background: rgba(0,0,0,0.25);

    padding: 16px;

    border-radius: 10px;

    border: 1px solid var(--border);

  }

  .email-body-unban .highlight {

    color: var(--gold);

    font-weight: 700;

    background: rgba(251,191,36,0.1);

    padding: 2px 6px;

    border-radius: 4px;

  }

  /* Privacy Modal */

  .modal-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.75);

    backdrop-filter: blur(10px);

    z-index: 1000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 16px;

    animation: fadeIn 0.3s ease;

  }

  .modal-overlay.show { display: flex; }

  @keyframes fadeIn {

    from { opacity: 0; }

    to { opacity: 1; }

  }

  .privacy-modal {

    background: linear-gradient(135deg, #121638, #0a0e27);

    border: 1px solid var(--border);

    border-radius: 24px;

    max-width: 900px;

    width: 100%;

    max-height: 92vh;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    box-shadow: 0 30px 80px rgba(0,0,0,0.6);

  }

  @keyframes modalSlideIn {

    from { opacity: 0; transform: translateY(40px) scale(0.9); }

    to { opacity: 1; transform: translateY(0) scale(1); }

  }

  .privacy-modal-header {

    padding: 22px 26px;

    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(236,72,153,0.1));

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    flex-wrap: wrap;

  }

  .privacy-modal-title {

    display: flex;

    align-items: center;

    gap: 12px;

    flex: 1;

    min-width: 0;

  }

  .privacy-modal-icon {

    width: 46px; height: 46px;

    border-radius: 14px;

    background: linear-gradient(135deg, var(--accent), var(--accent-3));

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    box-shadow: 0 8px 25px rgba(99,102,241,0.4);

    flex-shrink: 0;

  }

  .privacy-modal-title-text {

    flex: 1;

    min-width: 0;

  }

  .privacy-modal-title-text h2 {

    font-size: clamp(18px, 3vw, 22px);

    font-weight: 800;

    background: linear-gradient(135deg, #fff, #94a3b8);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

    margin-bottom: 2px;

    word-break: break-word;

  }

  .privacy-modal-title-text p {

    font-size: 12px;

    color: var(--text-dim);

  }

  .modal-close {

    width: 40px; height: 40px;

    border-radius: 50%;

    background: rgba(255,255,255,0.05);

    border: 1px solid var(--border);

    color: var(--text-dim);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    transition: all 0.3s;

    flex-shrink: 0;

  }

  .modal-close:hover {

    background: var(--red);

    color: #fff;

    border-color: var(--red);

    transform: rotate(90deg);

  }

  .privacy-modal-body {

    padding: clamp(20px, 3vw, 30px);

    overflow-y: auto;

    flex: 1;

  }

  .privacy-modal-body::-webkit-scrollbar { width: 8px; }

  .privacy-modal-body::-webkit-scrollbar-track { background: transparent; }

  .privacy-modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  .privacy-section {

    margin-bottom: 26px;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--border);

  }

  .privacy-section:last-child {

    border-bottom: none;

    margin-bottom: 0;

  }

  .privacy-section-title {

    font-size: clamp(16px, 2.5vw, 18px);

    font-weight: 800;

    color: #fff;

    margin-bottom: 12px;

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

  }

  .privacy-section-title .section-num {

    width: 30px; height: 30px;

    border-radius: 10px;

    background: linear-gradient(135deg, var(--accent), var(--accent-2));

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 13px;

    font-weight: 800;

    color: #fff;

    flex-shrink: 0;

  }

  .privacy-section-content {

    font-size: 14px;

    color: var(--text);

    line-height: 1.9;

    text-align: right;

  }

  body.ltr .privacy-section-content { text-align: left; }

  .privacy-section-content p { margin-bottom: 10px; }

  .privacy-section-content ul { list-style: none; padding: 0; margin-top: 10px; }

  .privacy-section-content ul li {

    padding: 8px 0;

    display: flex;

    align-items: flex-start;

    gap: 10px;

    flex-wrap: wrap;

  }

  .privacy-section-content ul li::before {

    content: '•';

    color: var(--accent);

    font-weight: 900;

    font-size: 18px;

    line-height: 1;

    flex-shrink: 0;

  }

  .privacy-highlight {

    background: rgba(99,102,241,0.1);

    border-right: 3px solid var(--accent);

    padding: 12px 16px;

    border-radius: 8px;

    margin: 12px 0;

    font-size: 13px;

    color: var(--text);

  }

  body.ltr .privacy-highlight {

    border-right: none;

    border-left: 3px solid var(--accent);

  }

  .privacy-contact {

    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.1));

    border: 1px solid rgba(16,185,129,0.3);

    border-radius: 12px;

    padding: 16px 18px;

    margin-top: 16px;

    text-align: right;

  }

  body.ltr .privacy-contact { text-align: left; }

  .privacy-contact-title {

    font-weight: 700;

    color: var(--green);

    margin-bottom: 8px;

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

  }

  .privacy-contact a {

    color: var(--cyan);

    text-decoration: none;

    font-weight: 700;

    direction: ltr;

    unicode-bidi: embed;

    word-break: break-all;

  }

  .privacy-contact a:hover { text-decoration: underline; }

  /* Footer */

  footer {

    padding: 28px 20px;

    text-align: center;

    color: var(--text-dim);

    font-size: 14px;

    border-top: 1px solid var(--border);

    position: relative;

    z-index: 1;

  }

  .footer-content {

    display: flex;

    flex-direction: column;

    gap: 14px;

    align-items: center;

  }

  .footer-links {

    display: flex;

    gap: 16px;

    flex-wrap: wrap;

    justify-content: center;

  }

  .footer-link {

    color: var(--text-dim);

    text-decoration: none;

    font-size: 14px;

    transition: all 0.3s;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 12px;

    border-radius: 8px;

    cursor: pointer;

  }

  .footer-link:hover {

    color: var(--accent);

    background: rgba(99,102,241,0.1);

  }

  .footer-link svg { width: 14px; height: 14px; }

  .footer-copyright { font-size: 13px; color: var(--text-dim); }

  /* Toast */

  .toast {

    position: fixed;

    bottom: 24px;

    left: 50%;

    transform: translateX(-50%) translateY(100px);

    background: linear-gradient(135deg, var(--accent), var(--accent-2));

    color: #fff;

    padding: 14px 24px;

    border-radius: 12px;

    font-weight: 600;

    box-shadow: 0 10px 30px rgba(99,102,241,0.4);

    opacity: 0;

    transition: all 0.4s ease;

    z-index: 1100;

    max-width: 90vw;

    text-align: center;

    font-size: 14px;

  }

  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  .toast.success { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 30px rgba(16,185,129,0.4); }

  /* ============ RESPONSIVE BREAKPOINTS ============ */

  /* Large Desktops (1400px+) */

  @media (min-width: 1400px) {

    .profile-grid-home { grid-template-columns: repeat(4, 1fr); }

    .commands-grid { grid-template-columns: repeat(3, 1fr); }

  }

  /* Desktops (1200px - 1399px) */

  @media (max-width: 1399px) and (min-width: 1200px) {

    .profile-grid-home { grid-template-columns: repeat(3, 1fr); }

  }

  /* Tablets Landscape (992px - 1199px) */

  @media (max-width: 1199px) and (min-width: 992px) {

    .profile-grid-home { grid-template-columns: repeat(2, 1fr); }

    .commands-grid { grid-template-columns: repeat(2, 1fr); }

    .admin-inputs-grid { grid-template-columns: repeat(2, 1fr); }

  }

  /* Tablets Portrait (768px - 991px) */

  @media (max-width: 991px) and (min-width: 768px) {

    :root { --header-h: 74px; }

    header { padding: 0 24px; }

    body.rtl .logo { right: 24px; }

    body.ltr .logo { left: 24px; }

    body.rtl .header-actions { left: 24px; }

    body.ltr .header-actions { right: 24px; }

    

    section { padding: 50px 24px; }

    .profile-grid-home { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .commands-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .admin-inputs-grid { grid-template-columns: repeat(2, 1fr); }

    .about-grid { grid-template-columns: repeat(2, 1fr); }

    .download-features { grid-template-columns: repeat(2, 1fr); }

    .game-commands-grid { grid-template-columns: repeat(2, 1fr); }

    

    .profile-header, .admin-header { padding: 16px 20px; }

    .profile-header-icon, .admin-header-icon { width: 52px; height: 52px; font-size: 26px; }

  }

  /* Mobile Large (576px - 767px) */

  @media (max-width: 767px) and (min-width: 576px) {

    :root { --header-h: 70px; }

    header { padding: 0 20px; }

    body.rtl .logo { right: 20px; }

    body.ltr .logo { left: 20px; }

    body.rtl .header-actions { left: 20px; }

    body.ltr .header-actions { right: 20px; }

    .logo { font-size: 20px; }

    

    section { padding: 40px 20px; }

    .profile-grid-home { grid-template-columns: 1fr; gap: 12px; }

    .commands-grid { grid-template-columns: 1fr; gap: 14px; }

    .admin-inputs-grid { grid-template-columns: 1fr; }

    .about-grid { grid-template-columns: 1fr; gap: 14px; }

    .download-features { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .game-commands-grid { grid-template-columns: 1fr; }

    

    .profile-header, .admin-header { padding: 14px 18px; }

    .profile-header-icon, .admin-header-icon { width: 48px; height: 48px; font-size: 24px; }

    .profile-header-arrow, .admin-header-arrow { width: 38px; height: 38px; }

    

    .profile-section-home, .admin-section-home { margin-top: 40px; padding-top: 40px; }

    

    .start-cmd-hero { padding: 20px 18px; }

    .start-cmd-syntax { font-size: 18px; }

    

    .admin-card, .unban-card { padding: 20px; }

    .email-message-box, .email-message-box-unban { padding: 18px; }

    

    .migapp-logo-img { max-width: 260px; width: 75%; }

    

    .privacy-modal-header { padding: 18px 20px; }

    .privacy-modal-body { padding: 20px; }

  }

  /* Mobile Small (375px - 575px) */

  @media (max-width: 575px) and (min-width: 375px) {

    :root { --header-h: 66px; }

    header { padding: 0 16px; }

    body.rtl .logo { right: 16px; }

    body.ltr .logo { left: 16px; }

    body.rtl .header-actions { left: 16px; }

    body.ltr .header-actions { right: 16px; }

    .logo { font-size: 18px; }

    .lang-btn { width: 40px; height: 40px; font-size: 18px; }

    .menu-btn { width: 42px; height: 42px; }

    

    section { padding: 32px 16px; }

    .profile-grid-home { grid-template-columns: 1fr; gap: 10px; }

    .commands-grid { grid-template-columns: 1fr; gap: 12px; }

    .admin-inputs-grid { grid-template-columns: 1fr; }

    .about-grid { grid-template-columns: 1fr; gap: 12px; }

    .download-features { grid-template-columns: 1fr; gap: 10px; }

    .game-commands-grid { grid-template-columns: 1fr; }

    

    .profile-header, .admin-header { padding: 12px 14px; gap: 10px; }

    .profile-header-left, .admin-header-left { min-width: 0; }

    .profile-header-icon, .admin-header-icon { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }

    .profile-header-arrow, .admin-header-arrow { width: 36px; height: 36px; font-size: 16px; }

    .profile-section-sub, .admin-section-sub { font-size: 12px; }

    

    .profile-section-home, .admin-section-home { margin-top: 32px; padding-top: 32px; }

    

    .profile-card-home { padding: 16px; gap: 12px; }

    .profile-card-icon { width: 46px; height: 46px; font-size: 22px; }

    .profile-card-name { font-size: 14px; }

    .profile-card-desc { font-size: 11px; }

    

    .cmd-card { padding: 16px; gap: 12px; }

    .cmd-icon { width: 46px; height: 46px; font-size: 22px; }

    .cmd-name { font-size: 15px; }

    .cmd-desc { font-size: 12px; }

    

    .start-cmd-hero { padding: 18px 16px; border-radius: 18px; }

    .start-cmd-title { font-size: 17px; }

    .start-cmd-desc { font-size: 13px; }

    .start-cmd-box { padding: 12px 14px; }

    .start-cmd-syntax { font-size: 16px; }

    .start-cmd-copy { padding: 8px 14px; font-size: 13px; }

    .start-cmd-copy span { display: none; }

    .start-cmd-note { font-size: 12px; padding: 8px 12px; }

    

    .admin-card, .unban-card { padding: 18px; border-radius: 16px; }

    .admin-card-title, .unban-card-title { font-size: 16px; }

    .email-message-box, .email-message-box-unban { padding: 16px; border-radius: 14px; }

    .email-body, .email-body-unban { padding: 12px; font-size: 11px; }

    

    .admin-btn, .unban-btn { padding: 12px 18px; font-size: 14px; width: 100%; justify-content: center; }

    .admin-btn span, .unban-btn span { font-size: 13px; }

    

    .migapp-logo-img { max-width: 220px; width: 80%; }

    .hero-title { font-size: 32px; }

    .hero-desc { font-size: 15px; }

    .download-btn { padding: 14px 28px; font-size: 15px; }

    

    .game-hero-icon, .unban-hero-icon { width: 64px; height: 64px; font-size: 30px; }

    .game-hero-title, .unban-hero-title { font-size: 26px; }

    

    .admin-info, .unban-info { padding: 14px; font-size: 12px; }

    .admin-info li, .unban-info li { font-size: 12px; }

    

    .privacy-modal-header { padding: 16px 18px; }

    .privacy-modal-body { padding: 18px; }

    .privacy-modal-title-text h2 { font-size: 17px; }

    .privacy-modal-icon { width: 40px; height: 40px; font-size: 20px; }

    .privacy-section-title { font-size: 15px; }

    .privacy-section-content { font-size: 13px; }

    

    .download-card { padding: 30px 20px; }

    .download-icon-big { width: 80px; height: 80px; }

    .download-icon-big svg { width: 38px; height: 38px; }

    

    .dropdown { min-width: calc(100% - 32px); padding: 16px; }

    .dropdown li { padding: 12px 14px; font-size: 15px; }

    

    .about-card { padding: 20px; }

    .about-card-icon { width: 44px; height: 44px; font-size: 20px; }

    .about-card-title { font-size: 16px; }

    .about-card-desc { font-size: 13px; }

  }

  /* Very Small Mobile (< 375px) */

  @media (max-width: 374px) {

    :root { --header-h: 62px; }

    header { padding: 0 12px; }

    body.rtl .logo { right: 12px; }

    body.ltr .logo { left: 12px; }

    body.rtl .header-actions { left: 12px; }

    body.ltr .header-actions { right: 12px; }

    .logo { font-size: 16px; }

    .lang-btn { width: 36px; height: 36px; font-size: 16px; }

    .menu-btn { width: 38px; height: 38px; }

    

    section { padding: 24px 12px; }

    .profile-grid-home, .commands-grid, .about-grid, .game-commands-grid { grid-template-columns: 1fr; gap: 10px; }

    .admin-inputs-grid, .download-features { grid-template-columns: 1fr; }

    

    .profile-header, .admin-header { padding: 10px 12px; gap: 8px; }

    .profile-header-icon, .admin-header-icon { width: 40px; height: 40px; font-size: 20px; }

    .profile-header-arrow, .admin-header-arrow { width: 34px; height: 34px; }

    .profile-section-title, .admin-section-title { font-size: 15px; }

    .profile-section-sub, .admin-section-sub { font-size: 11px; }

    

    .profile-card-home { padding: 12px; gap: 10px; }

    .profile-card-icon { width: 42px; height: 42px; font-size: 20px; }

    .profile-card-name { font-size: 13px; }

    .profile-card-desc { font-size: 11px; }

    

    .migapp-logo-img { max-width: 180px; }

    .hero-title { font-size: 28px; }

    .hero-desc { font-size: 14px; margin-bottom: 24px; }

    .download-btn { padding: 12px 22px; font-size: 14px; }

    .download-info { gap: 14px; }

    .download-info div { font-size: 12px; }

    

    .start-cmd-hero { padding: 14px 12px; }

    .start-cmd-title { font-size: 15px; }

    .start-cmd-desc { font-size: 12px; }

    .start-cmd-box { padding: 10px 12px; }

    .start-cmd-syntax { font-size: 14px; }

    .start-cmd-copy span { display: none; }

    .start-cmd-note { font-size: 11px; }

    

    .admin-card, .unban-card { padding: 14px; }

    .email-message-box, .email-message-box-unban { padding: 12px; }

    .email-body, .email-body-unban { padding: 10px; font-size: 10px; }

    

    .admin-btn, .unban-btn { padding: 10px 14px; font-size: 13px; }

    .admin-btn span, .unban-btn span { font-size: 12px; }

    

    .privacy-modal { border-radius: 16px; }

    .privacy-modal-header { padding: 14px 14px; }

    .privacy-modal-body { padding: 14px; }

    .privacy-modal-title-text h2 { font-size: 15px; }

    .privacy-modal-icon { width: 36px; height: 36px; font-size: 18px; }

    .privacy-section-title { font-size: 14px; }

    .privacy-section-content { font-size: 12px; }

    .privacy-section-content ul li { font-size: 12px; }

    

    .toast { padding: 12px 18px; font-size: 13px; bottom: 16px; }

  }

  /* Extra small devices */

  @media (max-width: 320px) {

    .hero-title { font-size: 24px; }

    .migapp-logo-img { max-width: 160px; }

    .profile-card-home { padding: 10px; }

    .profile-card-icon { width: 38px; height: 38px; font-size: 18px; }

    .cmd-card { padding: 12px; }

    .cmd-icon { width: 40px; height: 40px; font-size: 20px; }

  }

  /* Landscape mode on mobile */

  @media (max-height: 500px) and (orientation: landscape) {

    section { padding: 30px 20px; min-height: auto; }

    .hero-title { font-size: 28px; margin-bottom: 12px; }

    .hero-desc { font-size: 14px; margin-bottom: 20px; }

    .migapp-logo-img { max-width: 120px; margin: 8px auto 16px; }

    .profile-section-home, .admin-section-home { margin-top: 30px; padding-top: 30px; }

  }

  /* High DPI / Retina */

  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    .migapp-logo-img { image-rendering: -webkit-optimize-contrast; }

  }



/* MigApp legal pages */
.legal-page { position: relative; z-index: 1; padding: calc(var(--header-h, 80px) + 35px) 18px 50px; }
.legal-wrap { width: min(100%, 920px); margin: 0 auto; }
.legal-topbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:24px; }
.legal-brand { font-size:24px; font-weight:900; letter-spacing:.5px; background:linear-gradient(135deg,#fff,var(--accent,#6366f1),var(--accent-3,#ec4899)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.legal-lang { display:flex; gap:8px; flex-wrap:wrap; }
.legal-lang button, .legal-btn { border:1px solid var(--border,rgba(255,255,255,.08)); color:var(--text,#e2e8f0); background:rgba(255,255,255,.06); padding:10px 15px; border-radius:12px; cursor:pointer; font:inherit; font-weight:700; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; transition:.2s ease; }
.legal-lang button:hover, .legal-btn:hover { border-color:var(--accent,#6366f1); transform:translateY(-1px); }
.legal-lang button[aria-pressed="true"], .legal-btn.primary { background:linear-gradient(135deg,var(--accent,#6366f1),var(--accent-2,#8b5cf6)); border-color:transparent; color:#fff; }
.legal-card { background:rgba(18,22,56,.82); border:1px solid var(--border,rgba(255,255,255,.08)); border-radius:24px; padding:clamp(22px,5vw,42px); box-shadow:0 20px 60px rgba(0,0,0,.24); backdrop-filter:blur(18px); }
.legal-eyebrow { display:inline-flex; padding:7px 12px; border-radius:999px; background:rgba(99,102,241,.14); border:1px solid rgba(99,102,241,.28); color:#c7d2fe; font-size:13px; font-weight:700; margin-bottom:16px; }
.legal-title { font-size:clamp(30px,5vw,46px); line-height:1.15; font-weight:900; margin:0 0 12px; color:#fff; }
.legal-updated { color:var(--text-dim,#94a3b8); font-size:14px; margin-bottom:28px; }
.legal-intro { color:#cbd5e1; line-height:1.85; font-size:17px; margin-bottom:24px; }
.legal-content h2 { font-size:21px; color:#fff; margin:28px 0 10px; }
.legal-content p, .legal-content li { color:#cbd5e1; line-height:1.85; font-size:15px; }
.legal-content ul, .legal-content ol { padding-inline-start:24px; margin:10px 0 18px; }
.legal-content a { color:#a5b4fc; text-decoration:none; }
.legal-content a:hover { text-decoration:underline; }
.legal-note { margin-top:22px; padding:16px 18px; border:1px solid rgba(6,182,212,.24); border-radius:14px; background:rgba(6,182,212,.07); color:#cbd5e1; line-height:1.8; }
.legal-danger { border-color:rgba(239,68,68,.28); background:rgba(239,68,68,.07); }
.legal-form { margin-top:22px; display:grid; gap:16px; }
.legal-field label { display:block; color:#e2e8f0; font-weight:700; margin-bottom:8px; }
.legal-field input, .legal-field textarea { width:100%; padding:13px 14px; border-radius:12px; border:1px solid var(--border,rgba(255,255,255,.08)); background:rgba(5,8,28,.62); color:#fff; font:inherit; outline:none; }
.legal-field input:focus, .legal-field textarea:focus { border-color:var(--accent,#6366f1); box-shadow:0 0 0 3px rgba(99,102,241,.13); }
.legal-field textarea { min-height:100px; resize:vertical; }
.legal-check { display:flex; align-items:flex-start; gap:10px; color:#cbd5e1; font-size:14px; line-height:1.7; }
.legal-check input { margin-top:5px; accent-color:var(--accent,#6366f1); }
.legal-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:6px; }
.legal-footer { text-align:center; color:var(--text-dim,#94a3b8); margin-top:22px; font-size:13px; line-height:1.8; }
.legal-alert { padding:14px 16px; margin:18px 0; border-radius:12px; line-height:1.7; border:1px solid var(--border); background:var(--card); }
.legal-alert.success { border-color:rgba(16,185,129,.3); color:#a7f3d0; background:rgba(16,185,129,.08); }
.legal-alert.error { border-color:rgba(239,68,68,.3); color:#fecaca; background:rgba(239,68,68,.08); }
[hidden] { display:none !important; }
body.rtl .legal-card, body.rtl .legal-content, body.rtl .legal-form { text-align:right; }
body.ltr .legal-card, body.ltr .legal-content, body.ltr .legal-form { text-align:left; }
body.rtl .legal-content ul, body.rtl .legal-content ol { padding-inline-start:0; padding-inline-end:24px; }
@media (max-width:600px) {
 .legal-page { padding:calc(var(--header-h,80px) + 20px) 12px 30px; }
 .legal-topbar { align-items:flex-start; }
 .legal-brand { font-size:21px; }
 .legal-card { border-radius:18px; }
 .legal-actions > * { width:100%; }
}


/* Critical fix for legal pages: the original site stylesheet hides all section elements. */
.legal-card > section {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  align-items: initial !important;
  justify-content: initial !important;
  text-align: inherit;
  animation: none !important;
}
.legal-card > section[hidden] {
  display: none !important;
}
