﻿:root {
    --primary: #00A884;
    --primary-dark: #019373;
    --bg: #F2F4F5;
    --card: #fff;
    --border: #E7EBEE;
    --muted: #6B7280;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: #222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
}

/* هدرها کمی ضخیم‌تر */
h1, h2, h3 {
    font-weight: 700;
}

/* متن عمومی */
.card, .pill, .row, button, input, select {
    font-weight: 400;
}

    /* اعداد ستونی هم‌عرض */
    .row div:last-child, .num {
        font-variant-numeric: tabular-nums;
    }

.bold {
    font-weight: 600;
}

/* ==== سایر استایل‌هایی که خودت داشتی ==== */
.app-header {
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .app-header h1 {
        flex: 1;
        text-align: center;
        font-size: 16px;
    }

    .app-header .back {
        background: none;
        border: 0;
        color: #fff;
        font-size: 20px;
        visibility: hidden;
    }

        .app-header .back.show {
            visibility: visible;
        }

.main {
    padding: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 12px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    font-family: 'Vazirmatn';
}

    .pill input, .pill select {
        border: none;
        outline: none;
        background: transparent;
        font: inherit;
        width: 120px;
        text-align: center;
    }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    padding: 12px 14px;
    margin-bottom: 12px;
}

    .card h2 {
        margin: 0 0 6px 0;
        font-size: 15px;
    }

.row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

    .row:last-child {
        border-bottom: none;
    }

    .row .k {
        color: var(--muted);
        font-size: 13px;
    }

.link {
    color: #007bff;
    text-decoration: none;
}

    .link:active {
        opacity: .75;
    }
