/* ========================================
   Impact Page Styles — Desktop + Mobile
   ======================================== */

/* ── Shared Impact ── */
.davenen-wrap .tci-page {
    color: var(--text);
    overflow-x: hidden;
}

/* Hero */
.davenen-wrap .tci-hero {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1e4060 100%);
    color: #fff;
}

.davenen-wrap .tci-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.davenen-wrap .tci-hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.davenen-wrap .tci-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
}

.davenen-wrap .tci-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 40px;
}

.davenen-wrap .tci-hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.davenen-wrap .tci-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 20px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.davenen-wrap .tci-stat-card:hover {
    transform: translateY(-4px);
}

.davenen-wrap .tci-stat-featured {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.davenen-wrap .tci-stat-featured .tci-stat-value,
.davenen-wrap .tci-stat-featured .tci-stat-label {
    color: var(--primary);
}

.davenen-wrap .tci-stat-icon {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}

.davenen-wrap .tci-stat-value {
    display: block;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.davenen-wrap .tci-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Live Banner */
.davenen-wrap .tci-live-banner {
    background: var(--accent);
    border-top: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    color: var(--primary);
}

.davenen-wrap .tci-live-banner strong {
    color: var(--secondary);
}

.davenen-wrap .tci-pulse {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: davenen-pulse 2s infinite;
}

@keyframes davenen-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Grid */
.davenen-wrap .tci-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Cards */
.davenen-wrap .tci-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.davenen-wrap .tci-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.davenen-wrap .tci-card-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.davenen-wrap .tci-live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: davenen-pulse 2s infinite;
}

/* Activity */
.davenen-wrap .tci-activity-list {
    padding: 12px;
}

.davenen-wrap .tci-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    background: #f9fafb;
}

.davenen-wrap .tci-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.davenen-wrap .tci-activity-match .tci-activity-icon {
    background: #e8f4fd;
}

.davenen-wrap .tci-activity-success .tci-activity-icon {
    background: #d4edda;
}

.davenen-wrap .tci-activity-content {
    flex: 1;
}

.davenen-wrap .tci-activity-text {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.davenen-wrap .tci-activity-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Categories */
.davenen-wrap .tci-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.davenen-wrap .tci-cat-item {
    text-align: center;
}

.davenen-wrap .tci-cat-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(var(--color) calc(var(--percent) * 1%), #e5e7eb 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    position: relative;
}

.davenen-wrap .tci-cat-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: #fff;
    border-radius: 50%;
}

.davenen-wrap .tci-cat-ring span {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.davenen-wrap .tci-cat-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.davenen-wrap .tci-cat-hebrew {
    font-size: 11px;
    color: var(--text-muted);
}

/* Calculator */
.davenen-wrap .tci-calculator {
    background: linear-gradient(135deg, var(--accent), #fff8e1);
    padding: 50px 20px;
    text-align: center;
}

.davenen-wrap .tci-calculator h2 {
    font-size: 22px;
    color: var(--primary);
    margin: 0 0 28px;
}

.davenen-wrap .tci-calc-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.davenen-wrap .tci-calc-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    min-width: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.davenen-wrap .tci-calc-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.davenen-wrap .tci-calc-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.davenen-wrap .tci-calc-op {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.davenen-wrap .tci-calc-result {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 3px solid var(--secondary);
}

.davenen-wrap .tci-calc-result .tci-calc-num,
.davenen-wrap .tci-calc-result .tci-calc-label {
    color: #fff;
}

.davenen-wrap .tci-calc-msg {
    margin-top: 28px;
    font-size: 16px;
    font-style: italic;
    color: var(--primary);
}

/* Stories */
.davenen-wrap .tci-stories {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.davenen-wrap .tci-stories h2 {
    font-size: 22px;
    color: var(--primary);
    margin: 0 0 8px;
}

.davenen-wrap .tci-stories-sub {
    color: var(--text-light);
    margin: 0 0 28px;
}

.davenen-wrap .tci-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.davenen-wrap .tci-story-card {
    background: linear-gradient(135deg, var(--accent), #fff8e1);
    border: 2px solid var(--secondary);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.davenen-wrap .tci-story-quote {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    font-style: italic;
    margin: 0 0 16px;
}

.davenen-wrap .tci-story-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Timeline */
.davenen-wrap .tci-timeline-section {
    padding: 50px 20px;
    max-width: 550px;
    margin: 0 auto;
}

.davenen-wrap .tci-timeline-section h2 {
    text-align: center;
    font-size: 22px;
    color: var(--primary);
    margin: 0 0 32px;
}

.davenen-wrap .tci-timeline {
    position: relative;
    padding-left: 36px;
}

.davenen-wrap .tci-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border);
}

.davenen-wrap .tci-timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.davenen-wrap .tci-timeline-dot {
    position: absolute;
    left: -36px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.davenen-wrap .tci-timeline-item.achieved .tci-timeline-dot {
    background: var(--secondary);
    color: var(--primary);
}

.davenen-wrap .tci-timeline-content {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.davenen-wrap .tci-timeline-item.pending .tci-timeline-content {
    opacity: 0.5;
}

.davenen-wrap .tci-timeline-date {
    font-size: 10px;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.davenen-wrap .tci-timeline-content strong {
    display: block;
    font-size: 14px;
    color: var(--primary);
    margin: 4px 0;
}

.davenen-wrap .tci-timeline-content p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* Personal Impact */
.davenen-wrap .tci-personal {
    background: linear-gradient(135deg, var(--primary), #1e4060);
    padding: 50px 20px;
    color: #fff;
    text-align: center;
}

.davenen-wrap .tci-personal h2 {
    font-size: 22px;
    margin: 0 0 28px;
}

.davenen-wrap .tci-personal-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.davenen-wrap .tci-personal-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    min-width: 130px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.davenen-wrap .tci-personal-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

.davenen-wrap .tci-personal-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
}

.davenen-wrap .tci-personal-label {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
}

.davenen-wrap .tci-personal-thanks {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.9;
}

/* CTA */
.davenen-wrap .tci-cta {
    background: var(--accent);
    padding: 60px 20px;
    text-align: center;
    border-top: 3px solid var(--secondary);
}

.davenen-wrap .tci-cta h2 {
    font-size: 26px;
    color: var(--primary);
    margin: 0 0 10px;
}

.davenen-wrap .tci-cta p {
    color: var(--text-light);
    margin: 0 0 24px;
}

.davenen-wrap .tci-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.davenen-wrap .tci-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 61, 107, 0.3);
}

/* ── Desktop Impact section (in master shortcode) ── */
.davenen-wrap .dimpact {
    background: #fff;
}

.davenen-wrap .dimpact h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 32px;
}

.davenen-wrap .impact-stats-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.davenen-wrap .impact-stat {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    text-align: center;
    min-width: 140px;
    transition: transform 0.3s;
}

.davenen-wrap .impact-stat:hover {
    transform: translateY(-4px);
}

.davenen-wrap .impact-stat.gold {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary);
}

.davenen-wrap .impact-stat .is-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.davenen-wrap .impact-stat .is-val {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.davenen-wrap .impact-stat .is-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    opacity: 0.85;
}

.davenen-wrap .impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.davenen-wrap .impact-card {
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
}

.davenen-wrap .impact-card-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.davenen-wrap .impact-card-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.davenen-wrap .live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: davenen-pulse 2s infinite;
}

.davenen-wrap .activity-list {
    padding: 12px;
}

.davenen-wrap .activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 4px;
    background: #fff;
}

.davenen-wrap .activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.davenen-wrap .activity-match .activity-icon {
    background: #e8f4fd;
}

.davenen-wrap .activity-success .activity-icon {
    background: #d4edda;
}

.davenen-wrap .activity-text {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.davenen-wrap .activity-time {
    font-size: 11px;
    color: var(--text-muted);
}

.davenen-wrap .cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.davenen-wrap .cat-item {
    text-align: center;
}

.davenen-wrap .cat-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(var(--c) var(--p), #e5e7eb 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    position: relative;
}

.davenen-wrap .cat-ring::before {
    content: '';
    position: absolute;
    inset: 7px;
    background: #fff;
    border-radius: 50%;
}

.davenen-wrap .cat-ring span {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.davenen-wrap .cat-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.davenen-wrap .cat-hebrew {
    font-size: 11px;
    color: var(--text-muted);
}

/* Stories in desktop master */
.davenen-wrap .stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.davenen-wrap .story-card {
    background: linear-gradient(135deg, var(--accent), #fff8e1);
    border: 2px solid var(--secondary);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.davenen-wrap .story-quote {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    margin-bottom: 14px;
}

.davenen-wrap .story-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Mobile Impact ── */
.davenen-wrap .m-impact-hero {
    background: linear-gradient(135deg, var(--primary), #1e4060);
    color: #fff;
    text-align: center;
    padding: 32px 20px;
}

.davenen-wrap .m-impact-hero h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.davenen-wrap .m-impact-hero p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 24px;
}

.davenen-wrap .m-impact-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.davenen-wrap .m-istat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 14px;
    min-width: 90px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.davenen-wrap .m-istat.gold {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.davenen-wrap .m-istat.gold .mis-val,
.davenen-wrap .m-istat.gold .mis-lab {
    color: var(--primary);
}

.davenen-wrap .mis-icon { font-size: 20px; }
.davenen-wrap .mis-val { font-size: 28px; font-weight: 800; line-height: 1; }
.davenen-wrap .mis-lab { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; opacity: 0.85; }

.davenen-wrap .m-live-bar {
    background: var(--accent);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
}

.davenen-wrap .m-live-bar strong { color: var(--secondary); }
.davenen-wrap .m-pulse { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: davenen-pulse 2s infinite; }

.davenen-wrap .m-impact-section {
    padding: 20px 16px;
}

.davenen-wrap .m-impact-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.davenen-wrap .m-stories {
    padding: 24px 16px;
    background: var(--bg);
}

.davenen-wrap .m-stories h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 16px;
}

.davenen-wrap .m-story-card {
    background: linear-gradient(135deg, var(--accent), #fff8e1);
    border: 2px solid var(--secondary);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 12px;
}

.davenen-wrap .m-story-card .sq { font-size: 13px; line-height: 1.6; font-style: italic; color: var(--text); margin-bottom: 10px; }
.davenen-wrap .m-story-card .sc { display: inline-flex; align-items: center; gap: 4px; background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 16px; font-size: 11px; font-weight: 600; }

.davenen-wrap .m-impact-cta {
    text-align: center;
    padding: 32px 20px;
    background: var(--accent);
    border-top: 2px solid var(--secondary);
}

.davenen-wrap .m-impact-cta h3 { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.davenen-wrap .m-impact-cta p { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }

.davenen-wrap .m-impact-cta .m-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .davenen-wrap .tci-grid { grid-template-columns: 1fr; }
    .davenen-wrap .tci-title { font-size: 26px; }
    .davenen-wrap .tci-stat-card { min-width: 100px; padding: 18px 14px; }
    .davenen-wrap .tci-stat-value { font-size: 32px; }
    .davenen-wrap .impact-grid { grid-template-columns: 1fr; }
    .davenen-wrap .stories-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .davenen-wrap .tci-categories { grid-template-columns: repeat(2, 1fr); }
    .davenen-wrap .tci-calc-item { padding: 12px; min-width: 55px; }
    .davenen-wrap .tci-calc-num { font-size: 22px; }
}
