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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body.public-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

body.admin-page {
    background: #f0f2f5;
}

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

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

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

.prayer-icon {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: inline-block;
    padding: 10px 28px;
    border-radius: 30px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.header h1 {
    font-size: 20px;
    font-weight: 800;
    color: #3d2066;
    letter-spacing: 2px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.verse {
    font-style: italic;
    color: #764ba2;
    font-size: 16px;
    margin-bottom: 4px;
}

.reference {
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
}

.required {
    color: #c0392b;
    font-weight: 700;
}

.required-note {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 14px;
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-msg {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.flash-error {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f0c0c0;
}

.flash-success {
    background: #e8f8e8;
    color: #27ae60;
    border: 1px solid #b8e6b8;
}

.flash-info {
    background: #e8f0fd;
    color: #2471a3;
    border: 1px solid #aecde8;
}

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

.form-group > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e4ddf0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    background: #faf8ff;
    color: #333;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.12);
    background: #fff;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="password"]::placeholder,
.form-group textarea::placeholder {
    color: #b0a8c0;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.checkbox-option {
    flex: 1 1 calc(50% - 10px);
    min-width: 130px;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border: 2px solid #e4ddf0;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    transition: all 0.25s ease;
    background: #faf8ff;
    user-select: none;
    -webkit-user-select: none;
}

.checkbox-label:hover {
    border-color: var(--cat-color, #c4b5de);
    background: #f4efff;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-label {
    border-color: var(--cat-color, #764ba2);
    background: color-mix(in srgb, var(--cat-color, #764ba2) 12%, white);
    color: var(--cat-color, #3d2066);
    font-weight: 700;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--cat-color, #764ba2) 25%, transparent);
}

.checkbox-option.urgent .checkbox-label {
    border-color: #f0c0c0;
    color: #c0392b;
    background: #fff5f5;
}

.checkbox-option.urgent .checkbox-label:hover {
    border-color: #e0a0a0;
    background: #ffeaea;
}

.checkbox-option.urgent input[type="checkbox"]:checked + .checkbox-label {
    border-color: #EF4444;
    background: #fde8e8;
    color: #c0392b;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-top: 12px;
    min-height: 52px;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(118, 75, 162, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
    opacity: 0.9;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #eee;
}

.footer p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

.footer .emergency {
    margin-top: 8px;
    font-weight: 600;
    color: #999;
}

.success-card {
    text-align: center;
    padding: 40px 24px;
}

.success-icon {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    background: #27ae60;
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.success-card h1 {
    font-size: 24px;
    color: #3d2066;
    margin-bottom: 16px;
    font-weight: 800;
}

.thank-you {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}

.success-message {
    font-size: 15px;
    color: #777;
    margin-bottom: 28px;
}

.success-verse {
    background: #f8f4ff;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.success-verse .verse {
    font-size: 15px;
    margin-bottom: 6px;
}

.back-link {
    display: inline-block;
    color: #764ba2;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border: 2px solid #764ba2;
    border-radius: 10px;
    transition: all 0.25s ease;
    min-height: 48px;
    touch-action: manipulation;
}

.back-link:hover {
    background: #764ba2;
    color: #fff;
}

.admin-wrapper {
    max-width: 920px;
    margin: 0 auto;
    padding: 16px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    gap: 12px;
    flex-wrap: wrap;
}

.admin-header h1 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 18px;
    background: #f0f2f5;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    touch-action: manipulation;
}

.nav-link:hover {
    background: #e2e5ea;
    transform: translateY(-1px);
}

.logout-btn {
    padding: 10px 20px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    touch-action: manipulation;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    padding: 20px 16px;
    border-radius: 12px;
    border-left: 4px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card .stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-total { border-left-color: #95a5a6; }
.stat-nuevas { border-left-color: #3498db; }
.stat-orando { border-left-color: #9b59b6; }
.stat-respondidas { border-left-color: #27ae60; }

.prayers-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prayer-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.prayer-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.prayer-urgent {
    border: 2px solid #e74c3c;
    background: #fff8f8;
}

.prayer-urgent:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.12);
}

.prayer-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.prayer-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.prayer-date {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.prayer-meta {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prayer-text {
    font-size: 15px;
    line-height: 1.65;
    color: #444;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.prayer-contact {
    font-size: 14px;
    color: #777;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.prayer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.status-form {
    width: 100%;
}

.status-form select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #444;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    min-height: 48px;
}

.status-form select:focus {
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.delete-btn {
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-height: 48px;
    touch-action: manipulation;
}

.delete-btn:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.empty-state p {
    font-size: 16px;
    color: #999;
}

.login-card {
    text-align: center;
}

.login-card h1 {
    font-size: 22px;
    font-weight: 800;
    color: #3d2066;
    margin-bottom: 8px;
}

.login-card p {
    font-size: 14px;
    color: #888;
    margin-bottom: 28px;
}

.login-card .form-group {
    text-align: left;
}

.login-card .submit-btn {
    margin-top: 8px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.cat-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cat-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cat-input {
    flex: 1;
    min-width: 150px;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    background: #fff;
    color: #333;
}

.cat-input:focus {
    border-color: #764ba2;
}

.cat-input-sm {
    flex: 1;
    min-width: 120px;
}

.cat-color-picker {
    width: 48px;
    height: 48px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
    background: #fff;
    flex-shrink: 0;
}

.cat-add-btn,
.cat-save-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
    font-family: inherit;
    white-space: nowrap;
    touch-action: manipulation;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-add-btn:hover,
.cat-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
}

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
    transition: box-shadow 0.2s ease;
}

.cat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cat-inactive {
    opacity: 0.6;
    background: #fafafa;
}

.cat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.cat-preview {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-status-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
}

.cat-edit-form {
    margin-bottom: 12px;
}

.cat-edit-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cat-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-toggle-btn {
    padding: 10px 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    min-height: 44px;
    touch-action: manipulation;
    transition: all 0.2s ease;
    background: #fff;
}

.cat-toggle-deactivate {
    border-color: #e67e22;
    color: #e67e22;
}

.cat-toggle-deactivate:hover {
    background: #e67e22;
    color: #fff;
}

.cat-toggle-activate {
    border-color: #27ae60;
    color: #27ae60;
}

.cat-toggle-activate:hover {
    background: #27ae60;
    color: #fff;
}

.cat-move-btns {
    display: flex;
    gap: 6px;
}

.cat-move-form {
    display: inline;
}

.cat-move-btn {
    padding: 8px 14px;
    background: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    min-height: 40px;
    touch-action: manipulation;
    transition: background 0.2s ease;
    color: #555;
}

.cat-move-btn:hover {
    background: #e2e5ea;
}

@media (min-width: 768px) {
    body.public-page {
        padding: 20px;
    }

    .card {
        padding: 40px;
    }

    .header h1 {
        font-size: 22px;
    }

    .success-card {
        padding: 50px 40px;
    }

    .success-card h1 {
        font-size: 26px;
    }

    .admin-wrapper {
        padding: 24px;
    }

    .admin-header {
        padding: 22px 28px;
    }

    .admin-header h1 {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-bottom: 28px;
    }

    .stat-card {
        padding: 22px 20px;
    }

    .stat-card .stat-number {
        font-size: 32px;
    }

    .prayer-card {
        padding: 22px 24px;
    }

    .prayer-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .prayer-actions {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .status-form {
        flex: 1;
    }

    .delete-btn {
        width: auto;
        padding: 12px 24px;
    }

    .cat-section {
        padding: 28px;
    }
}

.nav-user-info {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    white-space: nowrap;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    min-height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select:focus {
    border-color: #764ba2;
}

.user-list,
.field-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-card,
.field-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.user-card:hover,
.field-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.user-card-header {
    margin-bottom: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-email {
    font-size: 14px;
    color: #555;
}

.user-date {
    font-size: 12px;
    color: #999;
}

.user-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.user-edit-form {
    margin-bottom: 0;
}

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.role-admin {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f0c0c0;
}

.role-editor {
    background: #e8f0fd;
    color: #2471a3;
    border: 1px solid #aecde8;
}

.role-viewer {
    background: #e8f8e8;
    color: #27ae60;
    border: 1px solid #b8e6b8;
}

.status-inactive {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: #f0f0f0;
    color: #999;
    border: 1px solid #ddd;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.status-nueva {
    background: #e8f0fd;
    color: #2471a3;
}

.status-orando {
    background: #f3e8fd;
    color: #7d3c98;
}

.status-respondida {
    background: #e8f8e8;
    color: #27ae60;
}

.status-seguimiento {
    background: #fef3e2;
    color: #e67e22;
}

.field-card-header {
    margin-bottom: 16px;
}

.field-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.field-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.field-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: #e8f0fd;
    color: #2471a3;
    border: 1px solid #aecde8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-required-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f0c0c0;
}

.field-toggles {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-height: 40px;
}

.toggle-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #764ba2;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.field-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.section-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 374px) {
    body.public-page {
        padding: 10px;
    }

    .card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .header h1 {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .prayer-icon {
        font-size: 11px;
        padding: 8px 20px;
    }

    .checkbox-option {
        flex: 1 1 100%;
    }

    .success-card {
        padding: 30px 16px;
    }

    .success-icon {
        font-size: 12px;
        padding: 10px 22px;
    }

    .success-card h1 {
        font-size: 20px;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-card .stat-number {
        font-size: 24px;
    }

    .cat-edit-row {
        flex-direction: column;
    }

    .cat-input-sm {
        width: 100%;
    }
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: #555;
    min-width: 140px;
    font-size: 14px;
}

.profile-value {
    color: #333;
    font-size: 14px;
}

.section-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.field-help {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

.notif-on {
    color: #28a745;
    font-weight: 600;
}

.notif-off {
    color: #999;
    font-weight: 600;
}

.notif-summary {
    text-align: center;
    padding: 20px;
    margin-bottom: 16px;
}

.notif-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.notif-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
}

.notif-stat-label {
    font-size: 14px;
    color: #666;
}

.notif-bulk-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.notif-user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    gap: 16px;
    flex-wrap: wrap;
}

.notif-user-card.cat-inactive {
    opacity: 0.5;
}

.notif-user-info {
    flex: 1;
    min-width: 200px;
}

.notif-user-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.notif-user-emails {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-user-emails .user-email {
    font-size: 12px;
    color: #777;
}

.notif-user-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-status {
    font-size: 13px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.status-inactive {
    font-size: 12px;
    color: #dc3545;
    font-weight: 600;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.toggle-label {
    font-size: 14px;
    color: #555;
}

.field-toggles {
    padding: 4px 0;
}
