/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Force all SVGs to have max size */
svg {
    max-width: 24px;
    max-height: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

.light-theme {
    --bg: #f8fafc;
    --card: #ffffff;
    --card-hover: #f1f5f9;
    --input: #f1f5f9;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
}

.dark-theme {
    --bg: #1e1e2e;
    --card: #2a2a3e;
    --card-hover: #363650;
    --input: #363650;
    --text: #f1f5f9;
    --text-secondary: #a1a1c7;
    --text-muted: #6b6b8d;
    --border: #3d3d5c;
}

html {
    font-size: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    background: var(--input);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
}

.btn-secondary {
    background: var(--input);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.alert-error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

/* Auth Page */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo svg {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    color: white;
    stroke: white;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--input);
    padding: 4px;
    border-radius: 8px;
}

.auth-tab {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-tab.active {
    background: var(--card);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.875rem;
}

.about-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: var(--input);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 500;
}

.about-link svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

/* App Layout */
.app-container {
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.header-right h1 {
    font-size: 1.1rem;
    font-weight: 600;
}

.header-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--input);
    color: var(--text);
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.back-btn svg {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
}

/* Main */
.app-main {
    padding: 16px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
    border-right: 4px solid var(--primary);
}

.stat-card.success {
    border-right-color: var(--success);
}

.stat-card.warning {
    border-right-color: var(--warning);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-progress {
    height: 4px;
    background: var(--input);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    border-radius: 2px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--card);
    border-radius: 12px;
    text-align: center;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-icon svg {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    color: white;
    stroke: white;
}

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

.quick-action-icon.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.quick-action-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

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

.quick-action span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Card */
.section-card {
    background: var(--card);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.see-all {
    font-size: 0.8rem;
    color: var(--primary);
}

/* Reminders Preview */
.reminders-preview {
    padding: 8px 0;
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.reminder-item:last-child {
    border-bottom: none;
}

.reminder-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 60px;
}

.reminder-title {
    flex: 1;
    font-size: 0.9rem;
}

.reminder-amount {
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 500;
}

/* Groups Preview */
.groups-preview {
    padding: 8px 0;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.group-item:last-child {
    border-bottom: none;
}

.group-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.group-info {
    flex: 1;
}

.group-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.group-members {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: var(--card);
    border-top: 1px solid var(--border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
}

.nav-item.active {
    color: var(--primary);
}

/* Tabs */
.tabs-container {
    padding: 12px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--input);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
}

.tab-badge {
    background: var(--card);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.tab.active .tab-badge {
    background: rgba(255,255,255,0.2);
}

.tab-content {
    display: none;
    padding: 16px;
}

.tab-content.active {
    display: block;
}

/* Tasks */
.tasks-list {
    padding: 8px 0;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.task-item:last-child {
    border-bottom: none;
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-title {
    text-decoration: line-through;
}

.task-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 2px;
}

.task-item.completed .task-check {
    background: var(--success);
    border-color: var(--success);
}

.task-check svg {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
    color: white;
    stroke: white;
}

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

.task-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.task-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.task-priority {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.task-priority.high {
    background: #fef2f2;
    color: var(--danger);
}

.task-priority.medium {
    background: #fffbeb;
    color: var(--warning);
}

.task-priority.low {
    background: #f0fdf4;
    color: var(--success);
}

.dark-theme .task-priority.high {
    background: rgba(239, 68, 68, 0.15);
}

.dark-theme .task-priority.medium {
    background: rgba(245, 158, 11, 0.15);
}

.dark-theme .task-priority.low {
    background: rgba(34, 197, 94, 0.15);
}

.task-actions {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-muted);
}

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

/* Groups */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.action-buttons .btn {
    flex: 1;
}

.groups-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--card);
    border-radius: 12px;
}

.group-details {
    flex: 1;
    min-width: 0;
}

.group-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.group-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.member-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.member-count svg {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
}

.group-role-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.group-role-badge.admin {
    background: #f0fdf4;
    color: var(--success);
}

.group-role-badge.member {
    background: var(--input);
    color: var(--text-muted);
}

.invite-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--card);
    border-radius: 12px;
    margin-bottom: 16px;
}

.invite-code-box code {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
}

.copy-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input);
    border-radius: 8px;
}

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

/* Members */
.members-list {
    padding: 8px 0;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.member-item:last-child {
    border-bottom: none;
}

.member-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--input);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
}

.member-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.member-role {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.member-role.admin {
    background: #f0fdf4;
    color: var(--success);
}

.member-role.member {
    background: var(--input);
    color: var(--text-muted);
}

/* Reminders */
.reminder-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
}

.stat-mini {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-txt {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.stat-mini.warning .stat-num {
    color: var(--warning);
}

.stat-mini.success .stat-num {
    color: var(--success);
}

.filter-chips {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    overflow-x: auto;
}

.chip {
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: var(--text-secondary);
}

.chip.active {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-color: transparent;
    color: white;
}

.reminder-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin: 8px 16px;
    background: var(--card);
    border-radius: 12px;
    border-right: 4px solid var(--info);
}

.reminder-card.check {
    border-right-color: var(--success);
}

.reminder-card.appointment {
    border-right-color: var(--warning);
}

.reminder-card.done {
    opacity: 0.6;
}

.reminder-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.reminder-card.done .reminder-check {
    background: var(--success);
    border-color: var(--success);
}

.reminder-check svg {
    width: 12px;
    height: 12px;
    max-width: 12px;
    max-height: 12px;
    color: white;
    stroke: white;
}

.reminder-body {
    flex: 1;
}

.reminder-body h4 {
    font-size: 0.95rem;
    font-weight: 500;
}

.reminder-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Profile */
.profile-header {
    text-align: center;
    padding: 24px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-username {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.settings-section {
    background: var(--card);
    border-radius: 12px;
    margin: 16px;
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-icon svg {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    color: white;
    stroke: white;
}

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

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

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

.settings-text {
    flex: 1;
}

.settings-text h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.settings-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Theme Switch */
.theme-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--input);
    border-radius: 28px;
    transition: 0.3s;
}

.theme-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    right: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.theme-switch input:checked + .theme-slider {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
}

.theme-switch input:checked + .theme-slider::before {
    transform: translateX(-24px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background: var(--card);
    border-radius: 24px 24px 0 0;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.close-modal {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input);
    border-radius: 50%;
}

.close-modal svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

.priority-selector {
    display: flex;
    gap: 8px;
}

.priority-option {
    flex: 1;
}

.priority-option input {
    display: none;
}

.priority-badge {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
}

.priority-badge.low {
    background: #f0fdf4;
    color: var(--success);
}

.priority-badge.medium {
    background: #fffbeb;
    color: var(--warning);
}

.priority-badge.high {
    background: #fef2f2;
    color: var(--danger);
}

.priority-option input:checked + .priority-badge {
    border-color: currentColor;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text);
    color: var(--bg);
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 16px;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* About Page */
.about-page {
    min-height: 100vh;
    padding: 16px;
}

.about-container {
    max-width: 600px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.back-link svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

.about-hero {
    text-align: center;
    margin-bottom: 24px;
}

.about-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo svg {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    color: white;
    stroke: white;
}

.about-hero h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.tagline {
    color: var(--text-secondary);
}

.about-section {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.about-section h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.feature-card {
    text-align: center;
    padding: 12px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.feature-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tutorial-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.tutorial-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.about-footer {
    text-align: center;
    margin-top: 24px;
}

.version {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 380px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* PWA Install */
.pwa-install {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    background: var(--card);
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

.pwa-install p {
    flex: 1;
    color: var(--text-secondary);
}

.btn-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Day Selector */
.day-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.day-option {
    flex: 1;
    min-width: calc(33% - 8px);
}

.day-option input {
    display: none;
}

.day-badge {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    background: var(--input);
    cursor: pointer;
}

.day-option input:checked + .day-badge {
    background: var(--primary);
    color: white;
}

/* Today Info */
.today-info {
    padding: 12px;
    margin-bottom: 12px;
    background: var(--card);
    border-radius: 8px;
    text-align: center;
}

.today-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Arrow Icon */
.arrow-icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    color: var(--text-muted);
}

/* Leave Group */
.leave-group {
    margin-top: 16px;
}

/* Completed Info */
.completed-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--success);
    margin-top: 4px;
}

.completed-info svg {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
}

/* Date Header */
.date-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.today-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #dbeafe;
    color: var(--info);
}

.overdue-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #fef2f2;
    color: var(--danger);
}
