:root {
    --tasbih-blue: #2563eb;
    --tasbih-blue-dark: #1e40af;
    --tasbih-blue-light: #60a5fa;
    --tasbih-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --tasbih-bg: #f8fafc;
    --tasbih-card-bg: #ffffff;
    --tasbih-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tasbih-radius: 16px;
}

.tasbih-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--tasbih-card-bg);
    padding: 1.25rem;
    border-radius: var(--tasbih-radius);
    box-shadow: var(--tasbih-shadow);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tasbih-blue);
}

/* Tabs */
.tasbih-tabs {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #ffffff;
    color: var(--tasbih-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Circular Counter UI */
.counter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
}

.tap-circle {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3), inset 0 2px 10px rgba(255,255,255,0.2);
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-tap-highlight-color: transparent;
}

.tap-circle:active {
    transform: scale(0.96);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.tap-inner {
    text-align: center;
    color: white;
}

.tap-label {
    display: block;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 500;
}

.counter-display {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sync-dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    position: absolute;
    top: 45px;
    right: 45px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 10px #22c55e;
}

.control-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.control-btn-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-size: 1.5rem;
}

.control-btn-circle:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.control-btn-circle:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    .tap-circle {
        width: 280px;
        height: 280px;
    }
    .counter-display {
        font-size: 5rem;
    }
}

/* Campaign Grid */
.campaign-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

.campaign-card {
    background: var(--tasbih-card-bg);
    border-radius: var(--tasbih-radius);
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--tasbih-shadow);
    transition: transform 0.2s;
}

.campaign-card:hover {
    transform: translateY(-4px);
}
