:root {
    --primary: #309255;
    --primary-hover: #267a45;
    --primary-glow: rgba(48, 146, 85, 0.25);
    --bg-body: #0a0a0a;
    --bg-header: rgba(15, 15, 15, 0.85);
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-code: #000000;
    --text-main: #ffffff;
    --text-muted: #999;
    --border: #2a2a2a;
    --max-w: 1300px;
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex; flex-direction: column;
}
body, button {
    font-family: 'Vazirmatn', sans-serif;
}

.app-wrapper {
    flex: 1;
    display: flex; flex-direction: column;
}

.app-header {
    height: 70px;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}

.header-content {
    max-width: var(--max-w); margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
}

.logo-section { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-symbol { 
    width: 36px; height: 36px; background: var(--primary); color: #fff;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; box-shadow: 0 0 15px var(--primary-glow);
}
.logo-text h1 { font-size: 1.2rem; font-weight: 900; letter-spacing: 1px; margin: 0; }
.logo-text span { font-size: 0.75rem; color: var(--text-muted); display: block; }

/* عناصر موبایل در دسکتاپ مخفی هستند */
.search-trigger-mobile { display: none; }
.close-search-mobile { display: none; }

.search-section { position: relative; width: 320px; }
.search-section input {
    width: 100%; background: #1a1a1a; border: 1px solid var(--border);
    padding: 10px 40px 10px 15px; border-radius: 50px;
    color: #fff; font-family: inherit; font-size: 0.9rem; transition: 0.3s;
}
.search-section .search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-section input:focus { border-color: var(--primary); background: #000; }

.view-container {
    max-width: var(--max-w); margin: 0 auto; width: 100%;
    padding: 30px 20px; display: none; flex: 1;
}
.view-container.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:translateY(0)} }

.home-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0 30px;
    height: 80px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s;
}

.home-toolbar:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.preview-input-wrap {
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1); 
    padding-left: 30px;
}

.preview-input-wrap input {
    width: 100%;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
    height: 100%;
    outline: none;
}

.preview-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.slider-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    width: auto;
    min-width: 280px;
    position: relative;
}

.help-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 50%;
}
.help-trigger:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.05);
}

.sep-line {
    width: 2px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 5px;
}

.slider-wrap span {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--primary);
    min-width: 45px;
    text-align: center;
    font-weight: bold;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    height: 30px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: none;
    transition: background 0.3s;
}

input[type=range]:hover::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.4);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--primary);
    margin-top: -7px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.1s, background 0.2s;
}

input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: var(--primary);
    border-color: #fff;
    box-shadow: 0 0 15px var(--primary);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
input[type=range]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.feature-container {
  width: 100%;
  margin-bottom: 30px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  direction: rtl;
}

.feature-title {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 15px;
  text-align: right;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.feature-list {
  display: flex;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
}

.feature-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  border-radius: 12px;
  background-color: rgba(25, 25, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  backdrop-filter: blur(4px);
}

.feature-pill:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.feature-pill:active {
  transform: translateY(0) scale(0.98);
}

.feature-pill.active {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.feature-pill::before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  flex-shrink: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.feature-pill.active::before {
  background-color: #10b981;
  border-color: #10b981;
}

.feature-pill::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translateY(-65%) rotate(45deg) scale(0);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-pill.active::after {
  opacity: 1;
  transform: translateY(-65%) rotate(45deg) scale(1);
}

.feature-pill input[type="checkbox"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}
.controls-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    direction: rtl;
    align-items: stretch;
}
.controls-wrapper .feature-container {
    flex: 3;
    min-width: 300px;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
}
.feature-list {
    flex-grow: 1;
    align-content: flex-start;
}
.controls-wrapper .axes-section {
    flex: 2;
    min-width: 280px;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
}

.controls-wrapper .feature-container:only-child {
    flex: 100%;
}

.axes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.axis-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 100%; 
}

.axis-label {
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
    font-weight: 500;
    opacity: 0.9;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    opacity: 0.7;
}

.custom-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px 10px 35px;
    font-size: 14px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    direction: rtl;
}

.custom-select:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.custom-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
    background-color: rgba(16, 185, 129, 0.05);
}

.custom-select option {
    background-color: #1f1f1f;
    color: #e5e7eb;
    padding: 10px;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-value {
    min-width: 30px;
    text-align: center;
    font-size: 13px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    direction: ltr;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: 2px solid #1f1f1f;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.5);
    transition: transform 0.1s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.custom-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: 2px solid #1f1f1f;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.5);
}

@media (max-width: 768px) {
    .search-trigger-mobile {
        display: flex;
        align-items: center; justify-content: center;
        width: 40px; height: 40px;
        color: #fff; font-size: 1.4rem;
        cursor: pointer;
    }

    .search-section {
        display: none;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; height: 100%;
        background: var(--bg-header);
        z-index: 200;
        padding: 0 10px;
        align-items: center;
        border: none;
    }
    
    .search-section.active {
        display: flex;
    }

    .search-section input {
        width: 100%;
        height: 50px;
        border-radius: 8px;
        padding-left: 50px;
        padding-right: 45px;
        background: var(--bg-card);
    }
    
    .search-section .search-icon {
        right: 20px;
    }
    
    .close-search-mobile {
        display: block;
        position: absolute;
        left: 10px; top: 50%; transform: translateY(-50%);
        background: transparent; border: none;
        color: #fff; font-size: 1.5rem;
        cursor: pointer;
    }
    .font-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .back-btn {
        font-size: 0.8rem;
        padding: 0 12px;
        height: 38px;
    }

    .font-hero-info {
        flex: 1;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .font-hero-info h1 {
        font-size: 1.3rem !important;
    }

    .font-hero-info span {
        font-size: 0.8rem;
    }

    .download-btn {
        font-size: 0.8rem;
        padding: 0 12px;
        height: 38px;
    }

    .home-toolbar {
        flex-direction: column-reverse;
        height: auto;
        padding: 20px;
        border-radius: 20px;
    }
    .preview-input-wrap {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
        width: 100%;
    }
    .slider-wrap {
        width: 100%;
        border-right: none;
        padding-right: 0;
        justify-content: space-between;
    }
    
    .list-header-labels {
        display: none;
    }

    .font-list-row {
        display: flex !important;
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }
    .fl-info {
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .fl-fa {
        margin-top: 0 !important;
    }

    .fl-preview {
        width: 100%;
        text-align: right;
        border: none !important;
        padding: 0 !important;
        margin-top: 5px;
    }

    .fl-meta, .list-header-labels {
        display: none !important;
    }
    .install-layout {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }

    .install-sidebar {
        width: 100%;
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
    }

    .checklist-container {
        flex-direction: row !important;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 10px;
    }

    .check-item {
        flex-shrink: 0;
        min-width: max-content;
        padding: 10px 16px;
    }
    .about-stats {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .stat-item {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px dashed var(--border);
    }

    .stat-item:last-child {
        border-bottom: none;
    }
    .feature-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to left, transparent, black 20px, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to left, transparent, black 20px, black 95%, transparent);
  }
  
  .feature-list::-webkit-scrollbar {
    display: none;
  }

  .feature-pill {
    flex: 0 0 auto;
    padding: 8px 14px 8px 10px;
    font-size: 12px;
  }

  .axes-grid {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .controls-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .controls-wrapper .feature-container,
    .controls-wrapper .axes-section {
        flex: auto;
        width: 100%;
        min-width: 0;
    }
    
    .axes-grid {
        grid-template-columns: 1fr;
    }
}

.list-header-labels {
    display: grid; 
    grid-template-columns: 250px 1fr 150px;
    padding: 0 20px 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: bold;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.fonts-list-container {
    display: flex; flex-direction: column; gap: 10px;
}

.font-list-row {
    display: grid;
    grid-template-columns: 250px 1fr 150px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.font-list-row:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.fl-info { display: flex; flex-direction: column; }
.fl-name { font-weight: 800; font-size: 1.1rem; color: #fff; }
.fl-fa { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.fl-preview {
    font-size: 1.5rem; color: #eee;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    direction: rtl; text-align: right;
    padding: 0 30px;
    border-left: 1px dashed var(--border);
    border-right: 1px dashed var(--border);
}

.fl-meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    font-size: 0.8rem; color: var(--text-muted);
}
.tag-var {
    background: rgba(48, 146, 85, 0.2); color: var(--primary);
    padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold;
}

.font-hero {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border);
}
.back-btn {
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    padding: 8px 16px; border-radius: 50px; cursor: pointer; display: flex; gap: 6px; align-items: center; transition: 0.3s;
}
.back-btn:hover { border-color: #fff; color: #fff; }

.font-hero-info { text-align: center; }
.font-hero-info h1 { font-size: 2.5rem; margin: 0; line-height: 1.2; }
.font-hero-info span { color: var(--primary); font-size: 1rem; }

.download-btn {
    background: var(--primary); color: #fff; text-decoration: none;
    padding: 10px 24px; border-radius: 50px; font-weight: bold;
    display: flex; gap: 8px; align-items: center; box-shadow: 0 0 15px var(--primary-glow);
    transition: 0.3s;
}
.download-btn:hover { background: #fff; color: var(--primary); }

.sticky-nav {
    position: sticky; top: 70px; z-index: 90;
    background: rgba(10,10,10,0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); margin-bottom: 30px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 10px;
}
.tabs-list { display: flex; gap: 20px; }
.tab-btn {
    background: transparent; border: none; border-bottom: 3px solid transparent;
    color: var(--text-muted); padding: 15px 10px; cursor: pointer;
    font-size: 1rem; font-weight: bold; font-family: inherit; transition: 0.3s;
}
.tab-btn:hover { color: #fff; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.slider-control { display: flex; align-items: center; gap: 10px; width: 250px; }
.slider-control.hidden { visibility: hidden; opacity: 0; }
.slider-control span { font-family: monospace; color: var(--primary); width: 40px; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }

.specimen-list { display: flex; flex-direction: column; gap: 40px; padding-bottom: 50px; }
.specimen-row { border-bottom: 1px dashed var(--border); padding-bottom: 20px; }
.w-label { display: block; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 10px; font-family: monospace; }
.w-text {
    width: 100%; background: transparent; border: none; color: #fff;
    direction: rtl; outline: none; line-height: 1.5;
}

.install-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }

.install-code-area p { margin: 20px auto;}
.install-sidebar { border-left: 1px solid var(--border); padding-left: 30px; }
.sidebar-head h3 { margin-bottom: 5px; color: #fff; }
.sidebar-head span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }

.checklist-container { display: flex; flex-direction: column; gap: 8px; }
.check-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; background: rgba(255,255,255,0.03); border-radius: 6px; cursor: pointer;
    border: 1px solid transparent; transition: 0.2s;
}
.check-item:hover { border-color: var(--text-muted); }
.check-item.checked { border-color: var(--primary); background: rgba(48, 146, 85, 0.1); }
.check-item svg { font-size: 1.2rem; color: var(--text-muted); }
.check-item.checked svg { color: var(--primary); }
.check-item span { font-size: 0.9rem; }
.icon-svg { width: 1.2em; height: 1.2em; fill: currentColor; vertical-align: middle; display: inline-block; }
.logo-symbol .icon-svg { width: 24px; height: 24px; }
.search-icon { position: absolute; top: 50%; transform: translateY(-50%); right: 10px; color: #888; }

.code-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mt-20 { margin-top: 20px; }

.code-header {
    direction: ltr; background: #1a1a1a; padding: 10px 15px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.code-tabs { display: flex; gap: 5px; }
.c-tab {
    background: transparent; border: none; color: var(--text-muted);
    padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; font-family: monospace;
}
.c-tab.active { background: #333; color: #fff; }

.copy-btn-text {
    background: transparent; border: none; color: var(--primary);
    cursor: pointer; display: flex; gap: 5px; align-items: center; font-size: 0.9rem;
}
.copy-btn-text:hover { color: #fff; }

.code-body { background: var(--bg-code); padding: 20px; }
.code-body pre {
    color: #4ade80; font-family: 'Courier New', monospace; font-size: 0.85rem;
    white-space: pre-wrap; word-break: break-all;
    direction: ltr; text-align: left;
    line-height: 1.6; margin: 0;
}
.code-body code { color: #ddd; font-family: monospace; direction: ltr; text-align: left; display: block; }

.about-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
}
.about-text h3 { margin-bottom: 15px; color: var(--primary); }
.about-text p { line-height: 1.8; color: #ccc; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 30px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { display: flex; flex-direction: column; gap: 5px; }
.stat-item .lbl { color: var(--text-muted); font-size: 0.8rem; }
.stat-item .val { color: #fff; font-weight: bold; }

.app-footer {
    border-top: 1px solid var(--border); padding: 30px; text-align: center;
    background: var(--bg-card); margin-top: auto;
}
.app-footer p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-links { display: flex; justify-content: center; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: var(--text-main); color: #000; padding: 10px 24px;
    border-radius: 50px; font-weight: bold; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-10px); }

/* --- HELP MODAL --- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%; max-width: 500px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(20px); transition: 0.3s;
}
.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px;
}
.modal-header h3 { margin: 0; font-size: 1.2rem; }
.close-btn {
    background: transparent; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; transition: 0.2s;
}
.close-btn:hover { color: #fff; }

.modal-body ul {
    list-style: none; padding: 0; margin: 0;
}
.modal-body li {
    margin-bottom: 12px; line-height: 1.6; color: #ccc;
    position: relative; padding-right: 20px;
}
.modal-body li::before {
    content: "•"; color: var(--primary); font-size: 1.5rem;
    position: absolute; right: 0; top: -5px;
}
.modal-body strong { color: #fff; }
