/* ============================================================
   RESET & VARIABLES
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
    --accent: #ec4899;
    --accent-hover: #f472b6;
    --accent-2: #a855f7;
    --accent-3: #22d3ee;
    --accent-light: #f9a8d4;
    --bg: #0d0810;
    --bg-card: #1a1019;
    --bg-2: #140c18;
    --bg-3: #201426;
    --border: #2d1d35;
    --border-2: #3a2544;
    --text: #fdf2f8;
    --text-mute: #b8a5c0;
    --text-soft: #c9b5d1;
    --pad: clamp(16px, 4vw, 32px);
    --gap: clamp(14px, 2vw, 22px);
    --section-y: clamp(48px, 8vw, 80px);
    --radius: 22px;
}

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; min-height: 100vh; }
img, svg, video { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: var(--section-y) 0; border-top: 1px solid #1f1224; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 5.5vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.8rem); margin-bottom: clamp(12px, 2vw, 24px); text-align: center; }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); }
h4 { font-size: 0.95rem; margin-bottom: 12px; color: var(--text); }

.gradient-text { background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-subtitle { text-align: center; color: var(--text-mute); margin-top: -8px; margin-bottom: clamp(24px, 4vw, 40px); font-size: clamp(0.95rem, 1.5vw, 1.05rem); padding: 0 8px; }
a { color: var(--accent-light); text-decoration: none; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; font-weight: 700; padding: 14px 32px; border-radius: 60px; border: none; font-size: clamp(0.9rem, 1.5vw, 1rem); cursor: pointer; transition: transform 0.15s, box-shadow 0.25s, filter 0.25s; box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4); text-align: center; font-family: inherit; white-space: nowrap; -webkit-tap-highlight-color: transparent; min-height: 48px; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 30px rgba(236, 72, 153, 0.5); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }
.btn-outline { background: transparent; box-shadow: none; border: 2px solid var(--accent); color: var(--text); }
.btn-outline:hover { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--text-soft); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: #fff; transform: translateX(4px); background: transparent; box-shadow: none; }
.center-btn { text-align: center; margin-top: 24px; }

header { padding: 14px 0; border-bottom: 1px solid transparent; position: sticky; top: 0; background: rgba(13, 8, 16, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 100; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; }
header.scrolled { border-bottom-color: #1f1224; background: rgba(13, 8, 16, 0.95); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: relative; }

.logo { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; cursor: pointer; user-select: none; line-height: 1; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.logo span { color: var(--accent); }
.logo-paw { font-size: 1.2em; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 24px); font-weight: 600; }
.nav-links a { color: var(--text-soft); transition: color 0.2s; font-size: 0.93rem; white-space: nowrap; }
.nav-links a:hover { color: var(--accent-light); }

.nav-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-login { display: inline-flex; align-items: center; gap: 8px; background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.45); color: var(--accent-light); padding: 9px 18px; border-radius: 40px; font-weight: 600; font-size: 0.9rem; cursor: pointer; font-family: inherit; transition: all 0.25s; -webkit-tap-highlight-color: transparent; }
.btn-login:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-1px); }
.user-box { display: flex; align-items: center; gap: 8px; position: relative; }

.balance-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.35); color: var(--accent-3); padding: 8px 14px; border-radius: 40px; font-weight: 700; font-size: 0.88rem; cursor: pointer; font-family: inherit; transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
.balance-chip:hover { background: rgba(34, 211, 238, 0.2); transform: translateY(-1px); }
.chat-chip { position: relative; width: 38px; height: 38px; border-radius: 50%; background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.35); color: var(--accent-3); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
.chat-chip:hover { background: var(--accent-3); color: #0d0810; }
.chat-chip-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--bg); }

.admin-btn { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); color: #fff; border: none; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; -webkit-tap-highlight-color: transparent; box-shadow: 0 6px 18px rgba(168, 85, 247, 0.45); }
.admin-btn:hover { transform: scale(1.08); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; font-size: 1rem; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; transition: transform 0.2s; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.avatar:hover { transform: scale(1.06); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.user-menu { position: absolute; top: calc(100% + 12px); right: 0; min-width: 260px; background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 18px; padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7); z-index: 110; }
.user-menu-head { padding: 12px 14px 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu-name { font-weight: 700; color: var(--text); font-size: 0.98rem; }
.user-menu-role { color: var(--text-mute); font-size: 0.82rem; }
.user-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--text-soft); font-size: 0.92rem; font-weight: 500; transition: background 0.2s, color 0.2s; }
.user-menu a:hover { background: rgba(236, 72, 153, 0.1); color: var(--accent-light); }
.user-menu a i { width: 18px; color: var(--accent); }

.burger { display: none; background: transparent; border: none; cursor: pointer; width: 44px; height: 44px; padding: 10px; -webkit-tap-highlight-color: transparent; }
.burger span { display: block; width: 100%; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hidden { display: none !important; }

.hero { position: relative; padding: clamp(40px, 6vw, 70px) 0 clamp(50px, 8vw, 90px); isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4; }
.orb-1 { width: min(420px, 60vw); height: min(420px, 60vw); background: var(--accent); top: -80px; right: -60px; animation: float 12s ease-in-out infinite; }
.orb-2 { width: min(340px, 50vw); height: min(340px, 50vw); background: var(--accent-2); bottom: -120px; left: -80px; animation: float 16s ease-in-out infinite reverse; }
.orb-3 { width: min(280px, 40vw); height: min(280px, 40vw); background: var(--accent-3); top: 40%; left: 40%; opacity: 0.2; animation: float 20s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -30px); } }

.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.hero-eyebrow { display: inline-block; font-size: clamp(0.75rem, 1.4vw, 0.85rem); color: var(--accent-light); background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.35); padding: 6px 16px; border-radius: 40px; margin-bottom: 20px; font-weight: 600; }
.hero-content h1 { margin-bottom: 1.1rem; }
.hero-content p { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-soft); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges span { font-size: clamp(0.72rem, 1.2vw, 0.82rem); color: var(--text-soft); background: var(--bg-card); border: 1px solid var(--border); padding: 7px 14px; border-radius: 30px; font-weight: 600; white-space: nowrap; }

.hero-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.5vw, 16px); aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin-left: auto; }
.placeholder { background: linear-gradient(160deg, #241425 0%, #1a1019 100%); border-radius: clamp(16px, 2vw, 22px); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8a748c; font-size: clamp(0.72rem, 1.2vw, 0.85rem); border: 1px solid var(--border-2); transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; font-weight: 600; cursor: pointer; position: relative; overflow: hidden; aspect-ratio: 1 / 1; -webkit-tap-highlight-color: transparent; }
.placeholder:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(236, 72, 153, 0.3); }
.placeholder i { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; color: var(--accent); transition: transform 0.3s; }
.placeholder:hover i { transform: scale(1.15) rotate(-4deg); }

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.service-card { position: relative; background: var(--bg-card); padding: clamp(20px, 2.5vw, 26px) clamp(16px, 2vw, 22px) clamp(18px, 2vw, 22px); border-radius: var(--radius); border: 1px solid var(--border); transition: transform 0.35s, border-color 0.35s, opacity 0.5s, box-shadow 0.35s; opacity: 0; transform: translateY(30px); cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(236, 72, 153, 0.22); }
.service-icon { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.15)); border: 1px solid rgba(236, 72, 153, 0.35); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-icon i { font-size: 1.5rem; color: var(--accent); }
.service-card h3 { margin-bottom: 4px; }
.service-card p { color: var(--text-mute); font-size: 0.9rem; margin: 6px 0 14px; }
.service-card .price { font-weight: 700; color: var(--accent-light); font-size: 1rem; }
.badge { position: absolute; top: 14px; right: 14px; font-size: 0.68rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.06em; z-index: 2; }
.badge-hot { background: linear-gradient(135deg, #ff5c8a, var(--accent)); color: #fff; }
.badge-new { background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); color: #fff; }

.projects-section { position: relative; }
.projects-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.projects-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.projects-list { display: flex; flex-direction: column; gap: 14px; }
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.project-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(236, 72, 153, 0.18); }
.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.project-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.project-client { font-size: 0.85rem; color: var(--text-mute); display: flex; align-items: center; gap: 8px; }
.project-client-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; overflow: hidden; }
.project-client-avatar img { width: 100%; height: 100%; object-fit: cover; }
.project-status { font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.status-open { background: rgba(34, 211, 238, 0.18); color: var(--accent-3); }
.status-in_progress { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
.status-review { background: rgba(250, 204, 21, 0.18); color: #fde047; }
.status-completed { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.status-cancelled { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.project-desc { color: var(--text-soft); font-size: 0.92rem; line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.project-category { font-size: 0.8rem; color: var(--accent-light); background: rgba(236, 72, 153, 0.12); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.project-budget { font-weight: 800; color: var(--accent-light); font-size: 0.95rem; }
.project-executor { font-size: 0.8rem; color: var(--text-mute); }
.project-executor b { color: var(--accent-3); }
.project-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.project-act-btn { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text-soft); font-family: inherit; font-weight: 600; font-size: 0.82rem; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
.project-act-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.project-act-btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-mute); }
.empty-state i { font-size: 3rem; color: var(--accent); opacity: 0.5; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 0.95rem; }
.empty-state.small { padding: 30px 20px; }
.empty-state.small i { font-size: 2rem; margin-bottom: 8px; }

.project-detail-box { max-width: 560px; }
.pd-title { font-size: 1.4rem; margin-bottom: 8px; padding-right: 30px; }
.pd-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.pd-row:last-of-type { border-bottom: none; }
.pd-label { color: var(--text-mute); }
.pd-value { color: var(--text); font-weight: 600; text-align: right; }
.pd-desc { margin: 16px 0; color: var(--text-soft); line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.pd-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 140px; }

.portfolio-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.portfolio-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-card); border: 1px solid var(--border-2); cursor: pointer; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.portfolio-item:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(236, 72, 153, 0.25); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13, 8, 16, 0.92) 100%); pointer-events: none; }
.portfolio-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px; z-index: 2; }
.portfolio-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.portfolio-author { font-size: 0.78rem; color: var(--text-soft); display: flex; align-items: center; gap: 6px; }
.portfolio-tag { position: absolute; top: 12px; left: 12px; font-size: 0.7rem; font-weight: 700; background: rgba(236, 72, 153, 0.85); color: #fff; padding: 3px 10px; border-radius: 20px; z-index: 2; }

.lightbox { position: fixed; inset: 0; background: rgba(5, 4, 6, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 40px 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-content { max-width: 90vw; max-height: 90vh; text-align: center; }
.lb-content img { max-width: 100%; max-height: 75vh; border-radius: 16px; box-shadow: 0 30px 80px rgba(236, 72, 153, 0.35); object-fit: contain; }
.lb-meta { margin-top: 20px; color: var(--text-soft); }
.lb-meta h3 { color: #fff; margin-bottom: 6px; font-size: 1.2rem; }
.lb-meta p { font-size: 0.9rem; }
.lb-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; z-index: 2; }

.portfolio-box { max-width: 620px; }
.upload-form { margin-bottom: 20px; }
.upload-zone { border: 2px dashed var(--border-2); border-radius: 18px; padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color 0.3s, background 0.3s; margin-bottom: 16px; -webkit-tap-highlight-color: transparent; }
.upload-zone:hover { border-color: var(--accent); background: rgba(236, 72, 153, 0.05); }
.upload-zone i { font-size: 2rem; color: var(--accent); margin-bottom: 8px; display: block; }
.upload-zone p { color: var(--text-mute); font-size: 0.88rem; word-break: break-word; }
.my-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.my-portfolio-item { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); }
.my-portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.my-portfolio-delete { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(236, 72, 153, 0.9); color: #fff; border: none; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }

.avatar-editor { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.avatar-preview { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2rem; flex-shrink: 0; overflow: hidden; box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload { flex: 1; min-width: 0; }
.avatar-upload .btn { width: 100%; }
.avatar-hint { font-size: 0.75rem; color: var(--text-mute); margin-top: 8px; text-align: center; }

.section-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; color: var(--text-mute); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.section-divider::before, .section-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.dash-edit-btn { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.35); color: var(--accent-light); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
.dash-edit-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.msgr-fab { position: fixed; bottom: 30px; right: 30px; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; font-size: 1.35rem; cursor: pointer; box-shadow: 0 12px 30px rgba(236, 72, 153, 0.55); z-index: 95; display: flex; align-items: center; justify-content: center; transition: transform 0.25s; -webkit-tap-highlight-color: transparent; }
.msgr-fab:hover { transform: translateY(-4px) scale(1.05); }
.msgr-badge { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; border-radius: 12px; background: var(--accent-3); color: #0d0810; font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 6px; border: 2px solid var(--bg); }

.messenger { position: fixed; top: 0; right: 0; width: min(420px, 100vw); height: 100vh; background: var(--bg-card); border-left: 1px solid var(--border-2); z-index: 200; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6); }
.messenger.open { transform: translateX(0); }
.msgr-header { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.msgr-header h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.msgr-header h3 i { color: var(--accent); }
.msgr-back, .msgr-close { background: transparent; border: none; color: var(--text-soft); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 6px 8px; border-radius: 8px; transition: background 0.2s, color 0.2s; -webkit-tap-highlight-color: transparent; flex-shrink: 0; }
.msgr-back { font-size: 1rem; }
.msgr-back:hover, .msgr-close:hover { background: rgba(236, 72, 153, 0.15); color: var(--accent); }
.msgr-body { flex: 1; overflow: hidden; position: relative; }
.chat-list { height: 100%; overflow-y: auto; padding: 8px 0; }

.chat-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; cursor: pointer; transition: background 0.2s; -webkit-tap-highlight-color: transparent; }
.chat-row:hover { background: rgba(236, 72, 153, 0.08); }
.chat-row.active { background: rgba(236, 72, 153, 0.12); }
.chat-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 1.05rem; overflow: hidden; position: relative; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-online { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--bg-card); }
.chat-info { flex: 1; min-width: 0; }
.chat-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.chat-preview { color: var(--text-mute); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta { text-align: right; flex-shrink: 0; }
.chat-time { font-size: 0.72rem; color: var(--text-mute); margin-bottom: 4px; }
.chat-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 800; border-radius: 10px; }

.chat-window { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg-card); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.chat-back { background: transparent; border: none; color: var(--text-soft); font-size: 1rem; cursor: pointer; padding: 8px; border-radius: 8px; transition: background 0.2s, color 0.2s; -webkit-tap-highlight-color: transparent; }
.chat-back:hover { background: rgba(236, 72, 153, 0.15); color: var(--accent); }
.chat-head-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; overflow: hidden; }
.chat-head-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-head-info { flex: 1; min-width: 0; }
.chat-head-name { font-weight: 700; font-size: 0.95rem; }
.chat-head-role { font-size: 0.78rem; color: var(--text-mute); }

.chat-messages { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 0.92rem; line-height: 1.45; word-wrap: break-word; animation: msgIn 0.25s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.msg-in { align-self: flex-start; background: var(--bg-3); color: var(--text); border-bottom-left-radius: 6px; }
.msg-out { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-bottom-right-radius: 6px; }
.msg-time { display: block; font-size: 0.7rem; opacity: 0.7; margin-top: 4px; }

.chat-input { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--bg-2); }
.chat-input input { flex: 1; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 40px; color: var(--text); font-family: inherit; font-size: 0.92rem; transition: border-color 0.2s; min-width: 0; }
.chat-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15); }
.chat-input button { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; color: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }

.modal { position: fixed; inset: 0; background: rgba(8, 4, 10, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 26px; padding: 30px clamp(20px, 3vw, 34px); width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(236, 72, 153, 0.15); transform: translateY(20px); transition: transform 0.3s; }
.modal.open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: transparent; border: none; color: var(--text-soft); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s; -webkit-tap-highlight-color: transparent; }
.modal-close:hover { background: rgba(236, 72, 153, 0.15); color: var(--accent); }

.auth-head { text-align: center; margin-bottom: 22px; }
.auth-logo { font-size: 2.4rem; margin-bottom: 8px; filter: drop-shadow(0 6px 16px rgba(236, 72, 153, 0.4)); }
.auth-head h3 { font-size: 1.4rem; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 4px; }
.auth-head p { color: var(--text-mute); font-size: 0.88rem; }

.auth-tabs { display: flex; gap: 6px; background: var(--bg-2); padding: 5px; border-radius: 40px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 10px 16px; background: transparent; border: none; border-radius: 40px; font-family: inherit; font-weight: 600; font-size: 0.92rem; color: var(--text-mute); cursor: pointer; transition: all 0.25s; -webkit-tap-highlight-color: transparent; }
.auth-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4); }

.auth-form { display: flex; flex-direction: column; gap: 4px; }
.auth-form label { font-weight: 600; font-size: 0.88rem; margin-top: 12px; color: var(--text-soft); }
.auth-form input, .auth-form select, .auth-form textarea { width: 100%; padding: 13px 16px; margin-top: 6px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 14px; color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s; -webkit-appearance: none; appearance: none; }
.auth-form textarea { resize: vertical; }
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12); }
.auth-form .btn { margin-top: 22px; width: 100%; }
.auth-hint { text-align: center; color: var(--text-mute); font-size: 0.78rem; margin-top: 14px; line-height: 1.5; }
.auth-hint strong { color: var(--accent-light); }

.role-info-box { margin-top: 16px; padding: 12px 14px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25); border-radius: 14px; font-size: 0.82rem; color: var(--accent-3); display: flex; gap: 10px; line-height: 1.5; }
.role-info-box i { flex-shrink: 0; margin-top: 3px; }
.role-info-box strong { color: #fff; }

.dashboard-box { max-width: 540px; padding-top: 24px; }
.dash-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.dash-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; flex-shrink: 0; overflow: hidden; box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5); }
.dash-head h3 { font-size: 1.2rem; margin-bottom: 2px; }
.dash-role { color: var(--text-mute); font-size: 0.85rem; }
.dash-tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 5px; border-radius: 40px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-tab { flex: 1; min-width: 80px; padding: 10px 8px; background: transparent; border: none; border-radius: 40px; font-family: inherit; font-weight: 600; font-size: 0.78rem; color: var(--text-mute); cursor: pointer; transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
.dash-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4); }
.dash-panel { min-height: 200px; }

.balance-card { background: linear-gradient(135deg, #2a1430 0%, #1a1019 100%); border: 1px solid var(--border-2); border-radius: 20px; padding: 24px 22px; position: relative; overflow: hidden; }
.balance-card::before { content: ""; position: absolute; top: -40%; right: -20%; width: 60%; height: 120%; background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%); pointer-events: none; }
.balance-label { font-size: 0.82rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 6px; }
.balance-value { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 20px; background: linear-gradient(120deg, #fff, var(--accent-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.balance-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.balance-actions .btn { flex: 1; min-width: 120px; padding: 12px 18px; font-size: 0.9rem; }
.commission-note { margin-top: 16px; padding: 10px 12px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 12px; font-size: 0.8rem; color: var(--accent-3); display: flex; align-items: center; gap: 8px; line-height: 1.4; position: relative; z-index: 1; }
.commission-note i { flex-shrink: 0; }
.commission-note strong { color: #fff; }

.wallet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.wallet-stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 12px; text-align: center; }
.ws-num { font-size: 1.1rem; font-weight: 800; color: var(--accent-light); margin-bottom: 2px; }
.ws-desc { font-size: 0.75rem; color: var(--text-mute); }

.tx-list { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; }
.tx-empty { text-align: center; color: var(--text-mute); padding: 40px 20px; font-size: 0.92rem; }
.tx-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; }
.tx-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.tx-icon.in { background: rgba(34, 211, 238, 0.15); color: var(--accent-3); }
.tx-icon.out { background: rgba(236, 72, 153, 0.15); color: var(--accent); }
.tx-info { flex: 1; min-width: 0; }
.tx-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.tx-date { font-size: 0.75rem; color: var(--text-mute); }
.tx-amount { font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.tx-amount.in { color: var(--accent-3); }
.tx-amount.out { color: var(--accent); }

.role-current { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.role-current-label { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 4px; }
.role-current-value { font-size: 1.1rem; font-weight: 700; color: var(--accent-light); }
.role-desc { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 14px; line-height: 1.5; }
.role-request-actions { display: flex; flex-direction: column; gap: 10px; }
.role-request-actions .btn { width: 100%; }
.role-pending { margin-top: 14px; padding: 14px 16px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.35); border-radius: 14px; color: var(--accent-3); font-weight: 600; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.role-pending i { flex-shrink: 0; }

.money-box { max-width: 400px; }
.money-box h3 { font-size: 1.25rem; margin-bottom: 6px; }
.money-sub { color: var(--text-mute); font-size: 0.88rem; margin-bottom: 18px; }
.money-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.money-presets button { padding: 12px 8px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 12px; color: var(--text-soft); font-family: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
.money-presets button:hover { border-color: var(--accent); color: var(--accent-light); background: #241425; }
.money-box label { display: block; font-weight: 600; font-size: 0.88rem; margin-top: 8px; color: var(--text-soft); }
.money-box input { width: 100%; padding: 14px 16px; margin-top: 6px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 14px; color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 700; transition: border-color 0.2s; }
.money-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12); }
.money-note { margin-top: 14px; padding: 10px 14px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25); border-radius: 12px; font-size: 0.82rem; color: var(--accent-3); line-height: 1.4; }
.money-note strong { color: #fff; }
.money-box .btn { margin-top: 18px; width: 100%; }

.admin-box { max-width: 640px; }
.admin-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.admin-head-icon { font-size: 2rem; }
.admin-head h3 { font-size: 1.25rem; margin-bottom: 2px; }
.admin-head p { color: var(--text-mute); font-size: 0.85rem; }
.admin-tabs { display: flex; gap: 6px; background: var(--bg-2); padding: 5px; border-radius: 40px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab { flex: 1; min-width: 90px; padding: 10px 10px; background: transparent; border: none; border-radius: 40px; font-family: inherit; font-weight: 600; font-size: 0.82rem; color: var(--text-mute); cursor: pointer; transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
.admin-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4); }
.admin-badge { background: rgba(255, 255, 255, 0.25); padding: 1px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 800; min-width: 20px; display: inline-flex; align-items: center; justify-content: center; }
.admin-tab:not(.active) .admin-badge { background: var(--accent); color: #fff; }
.admin-panel { min-height: 200px; }
.admin-search { position: relative; margin-bottom: 14px; }
.admin-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-mute); font-size: 0.9rem; }
.admin-search input { width: 100%; padding: 12px 16px 12px 42px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 40px; color: var(--text); font-family: inherit; font-size: 0.92rem; transition: border-color 0.2s; }
.admin-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12); }

.admin-user-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-user-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; overflow: hidden; }
.admin-user-info { flex: 1; min-width: 140px; }
.admin-user-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.admin-user-email { font-size: 0.78rem; color: var(--text-mute); word-break: break-all; }
.admin-user-role { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.role-badge-client { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.role-badge-executor { background: rgba(34, 211, 238, 0.2); color: var(--accent-3); }
.role-badge-manager { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
.role-badge-admin { background: rgba(236, 72, 153, 0.25); color: var(--accent-light); }
.admin-user-balance { font-weight: 700; color: var(--accent-light); font-size: 0.88rem; flex-shrink: 0; }
.admin-user-actions { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; margin-top: 4px; }
.admin-act-btn { padding: 6px 12px; background: var(--bg-card); border: 1px solid var(--border-2); color: var(--text-soft); border-radius: 20px; font-family: inherit; font-weight: 600; font-size: 0.75rem; cursor: pointer; transition: all 0.2s; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.admin-act-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.admin-act-btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.admin-act-btn.danger { color: #fda4af; border-color: rgba(244, 63, 94, 0.4); }
.admin-empty { text-align: center; padding: 40px 20px; color: var(--text-mute); font-size: 0.92rem; }

.request-card { background: linear-gradient(135deg, #2a1430 0%, var(--bg-2) 100%); border: 1px solid rgba(236, 72, 153, 0.35); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.request-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.request-info { flex: 1; min-width: 0; }
.request-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.request-role { font-size: 0.8rem; color: var(--accent-light); font-weight: 600; }
.request-date { font-size: 0.75rem; color: var(--text-mute); }
.request-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 16px; text-align: center; transition: border-color 0.3s, transform 0.3s; }
.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.stat-card-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; display: block; }
.stat-card-value { font-size: 1.6rem; font-weight: 800; color: var(--accent-light); line-height: 1; margin-bottom: 4px; }
.stat-card-label { font-size: 0.75rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.04em; }
.stats-wide { grid-column: 1 / -1; }
.stat-money { background: linear-gradient(135deg, #2a1430 0%, #1a1019 100%); border-color: rgba(236, 72, 153, 0.35); }
.stat-money .stat-card-value { background: linear-gradient(120deg, #fff, var(--accent-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 2rem; }

.withdrawals-list { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.withdrawal-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; transition: border-color 0.3s; }
.withdrawal-card.pending { border-color: rgba(250, 204, 21, 0.45); background: linear-gradient(135deg, rgba(250, 204, 21, 0.06) 0%, var(--bg-2) 100%); }
.withdrawal-card:hover { border-color: var(--accent); }
.wd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.wd-user { font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.wd-email { font-size: 0.76rem; color: var(--text-mute); word-break: break-all; }
.wd-amount { font-weight: 800; font-size: 1.1rem; color: var(--accent-light); margin-left: auto; white-space: nowrap; }
.wd-date { font-size: 0.76rem; color: var(--text-mute); line-height: 1.5; }
.wd-comment { margin-top: 8px; padding: 8px 12px; background: rgba(236, 72, 153, 0.08); border-left: 3px solid var(--accent); border-radius: 8px; font-size: 0.84rem; color: var(--text-soft); }

.user-modal-box { max-width: 700px; }
.user-modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.user-modal-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.6rem; flex-shrink: 0; overflow: hidden; box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5); }
.user-modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-modal-head h3 { font-size: 1.2rem; margin-bottom: 4px; }
.user-modal-email { color: var(--text-mute); font-size: 0.85rem; word-break: break-all; }
.user-modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.user-modal-stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 10px; text-align: center; }
.user-modal-stat-value { font-size: 1.1rem; font-weight: 800; color: var(--accent-light); margin-bottom: 2px; }
.user-modal-stat-label { font-size: 0.72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.04em; }
.user-modal-tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 5px; border-radius: 40px; margin-bottom: 16px; }
.user-modal-tab { flex: 1; padding: 9px 8px; background: transparent; border: none; border-radius: 40px; font-family: inherit; font-weight: 600; font-size: 0.82rem; color: var(--text-mute); cursor: pointer; transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
.user-modal-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4); }
.user-modal-panel { max-height: 400px; overflow-y: auto; }

.pricing-card { background: var(--bg-card); border-radius: var(--radius); padding: clamp(22px, 2.8vw, 28px) clamp(16px, 2vw, 22px); border: 1px solid var(--border-2); transition: border-color 0.3s, transform 0.3s, opacity 0.5s, box-shadow 0.3s; opacity: 0; transform: translateY(30px); display: flex; flex-direction: column; position: relative; }
.pricing-card.visible { opacity: 1; transform: translateY(0); }
.pricing-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2); }
.pricing-card.popular { border-color: var(--accent); background: linear-gradient(180deg, #261427 0%, var(--bg-card) 100%); box-shadow: 0 20px 40px rgba(236, 72, 153, 0.22); }
.pricing-card.popular::after { content: "🔥 Популярный"; position: absolute; top: -12px; right: 20px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; padding: 4px 14px; border-radius: 30px; font-size: 0.7rem; font-weight: 700; box-shadow: 0 8px 20px rgba(236, 72, 153, 0.5); white-space: nowrap; }
.pricing-card .name { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; }
.pricing-card .price-tag { font-size: clamp(1.4rem, 2.5vw, 1.7rem); font-weight: 800; color: var(--accent-light); margin: 12px 0 10px; letter-spacing: -0.02em; }
.pricing-card ul { list-style: none; margin: 16px 0 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pricing-card ul li { font-size: 0.9rem; color: var(--text-soft); display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.pricing-card ul li i { color: var(--accent); margin-top: 5px; font-size: 0.75rem; flex-shrink: 0; }
.pricing-card .btn { width: 100%; padding: 13px 20px; }

.about-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 50px); align-items: center; }
.about-text p { color: var(--text-soft); font-size: clamp(0.98rem, 1.5vw, 1.05rem); margin-bottom: 20px; }
.about-text strong { color: var(--text); }
.about-text blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; color: var(--accent-light); font-style: italic; font-size: clamp(0.98rem, 1.5vw, 1.05rem); line-height: 1.55; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.about-stat { background: var(--bg-card); border-radius: 20px; padding: 20px 22px; border: 1px solid var(--border); transition: border-color 0.3s, transform 0.3s; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.about-stat:hover { border-color: var(--accent); transform: translateX(4px); }
.about-stat .num { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; color: var(--accent-light); line-height: 1; }
.about-stat .desc { color: var(--text-mute); font-size: 0.92rem; text-align: right; }

.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 4px 20px; transition: border-color 0.3s, background 0.3s; }
.faq-item[open] { border-color: var(--accent); background: #241425; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; font-size: clamp(0.95rem, 1.5vw, 1.02rem); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text); -webkit-tap-highlight-color: transparent; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform 0.3s; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-soft); font-size: 0.92rem; padding: 0 0 18px; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 50px); }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-links a { display: flex; align-items: center; gap: 16px; background: var(--bg-card); padding: 16px 22px; border-radius: 40px; border: 1px solid var(--border); font-weight: 600; transition: border-color 0.2s, background 0.2s, transform 0.2s; color: var(--text); word-break: break-word; font-size: clamp(0.88rem, 1.4vw, 1rem); }
.contact-links a:hover { border-color: var(--accent); background: #241425; transform: translateX(4px); }
.contact-links a i { font-size: 1.5rem; width: 32px; color: var(--accent); flex-shrink: 0; }
.contact-form { background: var(--bg-card); padding: clamp(22px, 3vw, 30px) clamp(18px, 2.5vw, 28px); border-radius: 28px; border: 1px solid var(--border); }
.contact-form label { display: block; font-weight: 600; margin-top: 16px; font-size: 0.9rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 14px 16px; margin-top: 6px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 14px; color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s; -webkit-appearance: none; appearance: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { margin-top: 24px; width: 100%; }
#selectedPlan { margin-top: 12px; padding: 12px 16px; background: #241425; border-radius: 16px; border: 1px solid var(--accent); color: var(--accent-light); font-weight: 600; display: none; text-align: center; font-size: 0.9rem; }

.contact-email-link { position: relative; display: flex; align-items: center; gap: 12px; }
.contact-email-link .copy-btn { margin-left: auto; background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.35); color: var(--accent-3); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.contact-email-link .copy-btn:hover { background: var(--accent-3); color: #0d0810; }

.port-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filter { background: var(--bg-card); border: 1px solid var(--border-2); color: var(--text-soft); padding: 8px 18px; border-radius: 40px; font-family: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
.filter:hover { border-color: var(--accent); color: var(--accent-light); }
.filter.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4); }

.toast { position: fixed; bottom: 30px; right: 30px; background: var(--bg-card); color: var(--text); padding: 14px 26px; border-radius: 60px; font-weight: 600; border: 1px solid var(--accent); box-shadow: 0 12px 40px rgba(236, 72, 153, 0.35); transform: translateY(100px); opacity: 0; transition: all 0.4s ease; z-index: 3000; max-width: min(400px, calc(100vw - 40px)); pointer-events: none; font-size: 0.92rem; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: #f43f5e; box-shadow: 0 12px 40px rgba(244, 63, 94, 0.35); }

.scroll-top { position: fixed; bottom: 30px; left: 30px; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-card); color: var(--accent); border: 1px solid var(--border-2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.3s; opacity: 0; transform: translateY(20px); pointer-events: none; z-index: 99; -webkit-tap-highlight-color: transparent; }
.scroll-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }

footer { border-top: 1px solid #1f1224; padding-top: clamp(36px, 5vw, 50px); background: #08040a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(24px, 4vw, 40px); padding-bottom: clamp(30px, 4vw, 40px); }
.footer-col p { color: #8a748c; font-size: 0.92rem; margin-top: 12px; max-width: 320px; }
.footer-col a { display: block; color: var(--text-soft); margin-bottom: 10px; font-size: 0.93rem; transition: color 0.2s, transform 0.2s; font-weight: 500; }
.footer-col a:hover { color: var(--accent-light); transform: translateX(3px); }
.footer-col a i { width: 20px; color: var(--accent); margin-right: 6px; }
.footer-bottom { border-top: 1px solid #1f1224; padding: 22px 0; text-align: center; color: #6b556f; font-size: 0.88rem; }

@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-gallery { max-width: 100%; }
    .about-layout { grid-template-columns: 1fr; gap: 30px; }
    .about-grid { grid-template-columns: repeat(3, 1fr); }
    .about-stat { flex-direction: column; text-align: center; gap: 6px; }
    .about-stat .desc { text-align: center; }
}
@media (max-width: 900px) {
    .nav-links { display: none; }
    .burger { display: block; }
    .nav-links { position: absolute; top: calc(100% + 8px); left: calc(var(--pad) * -1); right: calc(var(--pad) * -1); display: flex; flex-direction: column; align-items: stretch; gap: 0; background: rgba(13, 8, 16, 0.98); backdrop-filter: blur(14px); border-top: 1px solid #1f1224; border-bottom: 1px solid #1f1224; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0; }
    .nav-links.open { max-height: 600px; padding: 8px 0 16px; }
    .nav-links a { padding: 14px var(--pad); font-size: 1rem; border-bottom: 1px solid #1f1224; }
    .nav-links a:last-of-type { border-bottom: none; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-badges { justify-content: center; }
    .hero-gallery { max-width: 440px; margin: 0 auto; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-stat { flex-direction: row; text-align: left; }
    .about-stat .desc { text-align: right; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .pricing-card.popular { margin-top: 14px; }
    .toast { bottom: 16px; right: 16px; left: 16px; max-width: none; text-align: center; border-radius: 20px; padding: 14px 20px; }
    .scroll-top { bottom: 84px; left: 16px; width: 44px; height: 44px; }
    .msgr-fab { bottom: 84px; right: 16px; width: 52px; height: 52px; font-size: 1.2rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .btn-ghost { justify-content: center; }
    .port-filters { gap: 6px; }
    .filter { padding: 7px 14px; font-size: 0.82rem; }
    .wallet-stats { grid-template-columns: 1fr; }
    .money-presets { grid-template-columns: repeat(2, 1fr); }
    .dash-tabs { flex-wrap: wrap; }
    .dash-tab { min-width: 0; font-size: 0.72rem; padding: 8px 6px; flex-direction: column; gap: 2px; }
    .dash-tab i { font-size: 0.9rem; }
    .admin-user-actions { justify-content: center; }
    .projects-toolbar { flex-direction: column; align-items: stretch; }
    .projects-toolbar .btn { width: 100%; }
    .projects-filters { justify-content: center; }
    .portfolio-gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .avatar-editor { flex-direction: column; text-align: center; }
    .avatar-upload { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .project-actions { flex-direction: column; }
    .project-act-btn { width: 100%; justify-content: center; }
    .pd-actions { flex-direction: column; }
    .pd-actions .btn { width: 100%; }
    .user-modal-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    :root { --pad: 16px; --gap: 12px; --section-y: 48px; --radius: 18px; }
    .hero-gallery { gap: 10px; max-width: 100%; }
    .placeholder i { font-size: 1.4rem; margin-bottom: 4px; }
    .placeholder span { font-size: 0.7rem; }
    .grid-5 { grid-template-columns: 1fr; }
    .hero-badges span { font-size: 0.72rem; padding: 6px 12px; }
    .btn { padding: 12px 24px; font-size: 0.92rem; min-height: 46px; }
    .contact-links a { padding: 14px 18px; gap: 12px; font-size: 0.85rem; border-radius: 30px; }
    .contact-links a i { font-size: 1.3rem; width: 26px; }
    .contact-form { border-radius: 22px; }
    .service-card, .pricing-card, .portfolio-item, .project-card { border-radius: 18px; }
    .faq-item { padding: 2px 16px; border-radius: 14px; }
    .faq-item summary { padding: 14px 0; font-size: 0.94rem; }
    .footer-col p { font-size: 0.88rem; }
    .footer-bottom { font-size: 0.82rem; }
    .modal-box { padding: 24px 18px; border-radius: 22px; }
    .balance-value { font-size: 1.8rem; }
    .balance-actions { flex-direction: column; }
    .balance-actions .btn { width: 100%; }
    .user-menu { min-width: 220px; right: -8px; }
    .admin-head-icon { font-size: 1.6rem; }
    .admin-head h3 { font-size: 1.1rem; }
}
@media (max-width: 360px) {
    :root { --pad: 14px; }
    .logo { font-size: 1.15rem; }
    .hero-eyebrow { font-size: 0.7rem; padding: 5px 12px; }
    .hero-badges span { font-size: 0.68rem; padding: 5px 10px; }
    .pricing-card .price-tag { font-size: 1.3rem; }
}
@media (hover: none) {
    .service-card:hover, .pricing-card:hover, .portfolio-item:hover,
    .placeholder:hover, .project-card:hover, .about-stat:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .orb { animation: none; }
}

/* ============================================================
   v3.6 — РЕДАКТОР КОНТЕНТА
============================================================ */
.content-modal-box { max-width: 800px; max-height: 90vh; display: flex; flex-direction: column; }
.content-editor-wrap { flex: 1; overflow-y: auto; padding-right: 8px; margin-bottom: 16px; }
.content-group { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.content-group:last-child { border-bottom: none; }
.content-group-title { font-size: 1.1rem; font-weight: 700; color: var(--accent-light); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-2); }
.content-label { display: block; font-size: 0.85rem; color: var(--text-soft); margin-bottom: 12px; font-weight: 500; }
.content-input { width: 100%; margin-top: 6px; padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 12px; color: var(--text); font-family: inherit; font-size: 0.92rem; transition: border-color 0.2s; }
.content-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12); }
textarea.content-input { min-height: 70px; resize: vertical; }
.content-image-row { display: flex; gap: 8px; align-items: center; }
.content-image-row .content-input { flex: 1; margin-top: 6px; }
.content-image-row .btn { padding: 10px 16px; min-height: auto; margin-top: 6px; flex-shrink: 0; }
.content-editor-actions { position: sticky; bottom: 0; background: var(--bg-card); padding-top: 16px; border-top: 1px solid var(--border); }
.content-editor-actions .btn { width: 100%; }
