:root {
    --ios-bg: #000000;
    --ios-card: rgba(28, 28, 30, 0.75);
    --ios-card-border: rgba(255, 255, 255, 0.08);
    --ios-separator: rgba(84, 84, 88, 0.35);
    --ios-label: #ffffff;
    --ios-secondary-label: #8e8e93;
    --ios-tertiary-label: #636366;
    --ios-blue: #0a84ff;
    --ios-green: #30d158;
}

@media (prefers-color-scheme: light) {
    :root {
        --ios-bg: #f2f2f7;
        --ios-card: rgba(255, 255, 255, 0.8);
        --ios-card-border: rgba(0, 0, 0, 0.04);
        --ios-separator: rgba(60, 60, 67, 0.18);
        --ios-label: #000000;
        --ios-secondary-label: #8e8e93;
        --ios-tertiary-label: #c7c7cc;
        --ios-blue: #007aff;
        --ios-green: #34c759;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--ios-bg);
    min-height: 100vh;
    padding: 24px 16px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    direction: rtl;
}

.ios-container {
    width: 100%;
    max-width: 440px;
}

/* iOS Large Title Navigation */
.ios-nav-header {
    margin: 20px 8px 18px;
}

.ios-nav-header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: var(--ios-label);
}

/* Inset Grouped Section */
.ios-section-title {
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--ios-secondary-label);
    margin: 0 16px 8px;
    letter-spacing: -0.1px;
}

.ios-group {
    background: var(--ios-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--ios-card-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Cupertino Cells */
.ios-cell {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    min-height: 48px;
    border-bottom: 0.5px solid var(--ios-separator);
}

.ios-cell:last-child {
    border-bottom: none;
}

.ios-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    font-size: 15px;
    color: white;
}

.icon-blue { background: var(--ios-blue); }
.icon-green { background: var(--ios-green); }
.icon-gray { background: #5856d6; }

.ios-cell-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ios-cell-label {
    font-size: 16px;
    color: var(--ios-label);
    letter-spacing: -0.3px;
}

.ios-cell-value {
    font-size: 15px;
    color: var(--ios-secondary-label);
    font-family: "SF Mono", Menlo, monospace;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Section Footer Text */
.ios-section-footer {
    font-size: 13px;
    color: var(--ios-secondary-label);
    margin: 6px 16px 24px;
    line-height: 1.4;
}

/* iOS Primary Buttons */
.ios-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px;
    background: var(--ios-blue);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.ios-btn:active {
    opacity: 0.75;
}

.ios-btn-group {
    margin-top: 16px;
}
