:root {
    --bg-prime: #05070c;
    --bg-surface: rgba(13, 17, 28, 0.7);
    --neon-focus: #ff3b30;
    --neon-break: #34c759;
    --text-white: #ffffff;
    --text-dim: #636e72;
    --border-glow: rgba(255, 255, 255, 0.03);
    --accent: #ffd700;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-prime);
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.focus-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glow);
    border-radius: 32px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.mode-badge {
    background: rgba(255, 59, 48, 0.1);
    color: var(--neon-focus);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.premium-badge-btn {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #05070c;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}
.premium-badge-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.timer-display {
    position: relative; width: 200px; height: 200px;
    margin: 0 auto 35px auto; display: flex; justify-content: center; align-items: center;
}

.glow-ring {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.02); border-top: 4px solid var(--neon-focus);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.15);
}

.time-numbers { font-size: 46px; font-weight: 300; font-variant-numeric: tabular-nums; }

.control-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }

.main-btn {
    background: var(--text-white); color: var(--bg-prime); border: none;
    padding: 16px; border-radius: 16px; font-size: 15px; font-weight: 600; cursor: pointer;
}

.secondary-btn {
    background: transparent; color: var(--text-dim); border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px; border-radius: 16px; font-size: 13px; cursor: pointer;
}

/* مركز التحكم بالخلاط الصوتي */
.sound-control-center {
    background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px; padding: 18px; margin-top: 20px;
}

.sound-header {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-dim); margin-bottom: 12px;
}

.upload-label {
    background: rgba(255, 215, 0, 0.08); color: var(--accent);
    padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; cursor: pointer;
}
.upload-label input { display: none; }

.empty-sound-msg { font-size: 12px; color: var(--text-dim); text-align: center; padding: 10px 0; }
.mixer-tracks { display: flex; flex-direction: column; gap: 12px; }

.track-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.01); padding: 8px 12px; border-radius: 10px;
}

.track-name { font-size: 13px; color: #f1f5f9; flex: 1; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }

.track-row input[type="range"] {
    width: 80px; -webkitappearance: none; background: rgba(255, 255, 255, 0.06); height: 4px; border-radius: 2px; outline: none;
}
.track-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; background: var(--accent); width: 10px; height: 10px; border-radius: 50%; cursor: pointer;
}

.delete-track-btn {
    background: transparent; border: none; color: #ff3b30; font-size: 16px; cursor: pointer; padding: 0 4px;
}

.divider { border: none; border-top: 1px solid rgba(255, 255, 255, 0.04); margin: 20px 0; }

/* إدارة المهام */
.tasks-section h3 { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
.task-input-wrapper {
    display: flex; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 14px; padding: 4px 8px; margin-bottom: 12px;
}
#taskInput { flex: 1; background: none; border: none; outline: none; color: white; padding: 10px; font-size: 14px; }
.add-task-btn { background: transparent; border: none; color: white; font-size: 18px; width: 35px; cursor: pointer; }
.tasks-list { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 140px; overflow-y: auto; }
.task-item { background: rgba(255, 255, 255, 0.01); padding: 12px; border-radius: 12px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.task-item.completed span { text-decoration: line-through; opacity: 0.4; }
.task-checkbox { cursor: pointer; width: 16px; height: 16px; }

/* المودال ونوافذ الشراء والتحقق */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 7, 12, 0.9); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); display: flex; justify-content: center;
    align-items: center; z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: #0d111c; border: 1px solid rgba(255, 215, 0, 0.1);
    width: 90%; max-width: 380px; padding: 30px; border-radius: 24px; position: relative; text-align: center;
}

.close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; }
.modal-content h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: white; }
.modal-subtitle { font-size: 13px; color: var(--text-dim); margin-bottom: 25px; }

.google-login-btn {
    width: 100%; background: white; color: #1e293b; border: none; padding: 14px;
    border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}

.gold-tag { background: rgba(255, 215, 0, 0.08); color: var(--accent); padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-block; margin-bottom: 10px; }
.price-box { margin: 15px 0; }
.price-box .amount { font-size: 32px; font-weight: 700; color: var(--accent); }
.price-box .period { font-size: 13px; color: var(--text-dim); }

.pay-form { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.pay-form input { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 12px; border-radius: 10px; color: white; outline: none; text-align: center; }
.pay-form input:focus { border-color: var(--accent); }
.form-row { display: flex; gap: 10px; }
.form-row input { width: 50%; }
.pay-submit-btn { background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%); color: #05070c; font-weight: 600; border: none; padding: 14px; border-radius: 10px; cursor: pointer; margin-top: 5px; width: 100%; }

.payment-divider { text-align: center; margin: 20px 0 15px 0; position: relative; }
.payment-divider::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: rgba(255, 255, 255, 0.05); z-index: 1; }
.payment-divider span { background: #0d111c; padding: 0 15px; font-size: 11px; color: var(--text-dim); position: relative; z-index: 2; }

#paypal-button-container { margin-top: 15px; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }