*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange: #FF6B00;
    --orange-hover: #E86000;
    --orange-bg: #FFF4EC;
    --orange-mid: #FFD0A0;
    --bg: #F9F8F6;
    --surface: #FFFFFF;
    --surface-2: #F4F2EE;
    --border: #E6E0D7;
    --border-strong: #C9C2B5;
    --text: #1C1917;
    --text-2: #44403C;
    --text-3: #79736B;
    --text-4: #ACA69D;
    --success: #16A34A;
    --success-bg: #DCFCE7;
    --success-text: #15803D;
    --danger: #DC2626;
    --danger-bg: #FEE2E2;
    --danger-text: #B91C1C;
    --info: #2563EB;
    --info-bg: #DBEAFE;
    --info-text: #1D4ED8;
    --warn: #D97706;
    --warn-bg: #FEF3C7;
    --warn-text: #92400E;
    --sidebar-w: 240px;
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(28,25,23,.06), 0 1px 2px rgba(28,25,23,.04);
    --shadow-md: 0 4px 16px rgba(28,25,23,.08), 0 1px 4px rgba(28,25,23,.04);
    --shadow-lg: 0 10px 32px rgba(28,25,23,.1), 0 2px 8px rgba(28,25,23,.05);
    --gray: #79736B;
    --gray-light: #F4F2EE;
    --white: #FFFFFF;
    --orange-light: #FF8C33;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

input, textarea, select, button { font-family: inherit; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

.logo-bloggers { color: var(--text); }
.logo-ads { color: var(--orange); }
.logo {
    font-family: 'Onest', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    line-height: 1;
    text-decoration: none;
    display: inline-block;
}
.logo:hover { text-decoration: none; }
.logo.logo-white .logo-bloggers { color: rgba(255,255,255,.85); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all .15s;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); box-shadow: 0 4px 14px rgba(255,107,0,.38); }
.btn-outline { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); }
.btn-outline:hover { background: var(--orange-bg); }
.btn-ghost { background: transparent; color: var(--text-3); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #C41C1C; }
.btn-secondary { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.btn-secondary:hover { background: #EDEAE5; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-2);
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
    appearance: none;
}
.form-control:focus { border-color: var(--orange); }
.form-control:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }
.form-hint { font-size: 12px; color: var(--text-4); margin-top: 4px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, border-color .2s;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
}
.badge-gray    { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }
.badge-orange  { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-mid); }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-danger  { background: var(--danger-bg); color: var(--danger-text); }
.badge-info    { background: var(--info-bg); color: var(--info-text); }
.badge-warn    { background: var(--warn-bg); color: var(--warn-text); }

.status-tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-sent      { background: var(--info-bg);    color: var(--info-text); }
.status-accepted  { background: var(--success-bg); color: var(--success-text); }
.status-rejected  { background: var(--danger-bg);  color: var(--danger-text); }
.status-completed { background: var(--surface-2);  color: var(--text-3); border: 1px solid var(--border); }
.status-active    { background: var(--success-bg); color: var(--success-text); }
.status-pending   { background: var(--warn-bg);    color: var(--warn-text); }
.status-paused    { background: var(--surface-2);  color: var(--text-3); border: 1px solid var(--border); }
.status-closed    { background: var(--surface-2);  color: var(--text-4); border: 1px solid var(--border); }
.status-draft     { background: var(--surface-2);  color: var(--text-3); border: 1px solid var(--border); }
.status-verified  { background: var(--success-bg); color: var(--success-text); }
.status-changed   { background: var(--warn-bg);    color: var(--warn-text); }

.pagination { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:32px; flex-wrap:wrap; }
.pagination a, .pagination span {
    display:flex; align-items:center; justify-content:center;
    min-width:36px; height:36px; padding:0 10px;
    border-radius:10px; font-size:14px; font-weight:600;
    border: 1px solid var(--border);
    text-decoration:none; color:var(--text-2);
    transition: all .12s;
}
.pagination a:hover { background:var(--surface-2); color:var(--text); }
.pagination .current { background:var(--orange); color:#fff; border-color:var(--orange); }
.pagination .disabled { color:var(--text-4); cursor:default; }

.messages { padding: 0 0 12px; }
.message { padding: 10px 16px; border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.message.error   { background: var(--danger-bg); color: var(--danger-text); }
.message.success { background: var(--success-bg); color: var(--success-text); }

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

.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.modal h2 { margin-bottom: 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.modal-sub { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.modal-close { float: right; cursor: pointer; color: var(--text-4); font-size: 22px; line-height: 1; }
.modal-choices { display: flex; gap: 14px; }
.modal-choices a {
    flex: 1;
    text-align: center;
    padding: 24px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    transition: border-color .15s, background .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.modal-choices a:hover {
    border-color: var(--orange);
    background: var(--orange-bg);
    text-decoration: none;
    color: var(--orange);
}
.modal-choices a:hover .modal-icon { background: var(--orange); }
.modal-choices a:hover .modal-icon svg { stroke: #fff; }
.modal-icon {
    width: 56px; height: 56px;
    background: var(--surface-2);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.modal-role-name { font-size: 15px; font-weight: 700; }
.modal-role-desc { font-size: 12px; color: var(--text-3); font-weight: 400; margin-top: -4px; }

.lang-switch { display:flex; gap:2px; align-items:center; }
.lang-btn { background:none; border:1px solid var(--border); border-radius:6px; padding:4px 9px; font-size:12px; font-weight:700; cursor:pointer; color:var(--text-3); transition:all .12s; font-family:inherit; }
.lang-btn:hover { border-color:var(--orange); color:var(--orange); }
.lang-active { background:var(--orange); color:#fff !important; border-color:var(--orange) !important; }

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
