:root {
    --bg-color: #F8F9FB; --card-bg: #ffffff; --primary: #40E0D0;
    --primary-dark: #32b8aa; --text-dark: #1F2937; --text-gray: #6B7280;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); --radius: 20px;
}
body { background-color: var(--bg-color); font-family: 'Manrope', sans-serif; margin: 0; padding: 0; color: var(--text-dark); -webkit-tap-highlight-color: transparent; min-height: 100vh; }

.page { display: none; padding: 24px; animation: fadeIn 0.3s ease-out; min-height: 100vh; box-sizing: border-box; position: relative; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.home-header { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: flex-start; }
.welcome-text span { font-size: 14px; color: var(--text-gray); font-weight: 600; }
.welcome-text h1 { font-size: 24px; font-weight: 800; margin: 4px 0 0 0; line-height: 1.2; }
.avatar { width: 48px; height: 48px; background: #E0F7F7; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.menu-card { background: var(--card-bg); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; cursor: pointer; transition: transform 0.1s; height: 140px; }
.menu-card:active { transform: scale(0.96); }
.menu-card.primary { background: linear-gradient(135deg, #40E0D0 0%, #20B2AA 100%); color: white; }
.menu-card.purple { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); color: white; }
.menu-card.white { background: #fff; }
.menu-card .card-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.2); color: white; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; }
.menu-card.white .card-icon { background: #F3F4F6; color: var(--primary-dark); }
.card-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.card-desc { font-size: 12px; opacity: 0.9; font-weight: 500; }
.menu-card.white .card-desc { color: var(--text-gray); }

.back-btn { position: absolute; top: 20px; left: 20px; width: 40px; height: 40px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); cursor: pointer; color: var(--text-dark); font-size: 20px; z-index: 10; }
.password-container { height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.pass-label { text-transform: uppercase; letter-spacing: 2px; color: var(--text-gray); font-size: 12px; margin-bottom: 20px; font-weight: 700; }
.pass-value { font-size: 42px; font-weight: 800; color: var(--text-dark); background: #fff; padding: 30px 50px; border-radius: 24px; box-shadow: var(--shadow); border: 2px solid #E0F7F7; user-select: text; }
.pass-sub { margin-top: 20px; color: var(--text-gray); font-size: 13px; }

.search-input-wrap { position: relative; margin-top: 60px; }
input { width: 100%; padding: 16px 20px 16px 48px; font-size: 16px; border: none; border-radius: 18px; background: #ffffff; box-shadow: var(--shadow); outline: none; box-sizing: border-box; font-family: 'Manrope', sans-serif; }
.search-icon-input { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 20px; }
.client-card { padding: 16px; margin-bottom: 12px; border-radius: 16px; background: #fff; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.c-name { font-weight: 700; font-size: 16px; }
.c-email { font-size: 13px; color: var(--text-gray); }

.loader-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(255,255,255,0.8); display: none; justify-content: center; align-items: center; z-index: 999; }
.spinner { width: 40px; height: 40px; border: 4px solid #eee; border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s infinite linear; }
@keyframes spin { to {transform: rotate(360deg);} }
