*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg-primary:#0e1621;
  --bg-secondary:#17212b;
  --bg-tertiary:#1e2c3a;
  --bg-hover:#1e2c3a;
  --bg-active:#2b5278;
  --text-primary:#f5f5f5;
  --text-secondary:#8b9bab;
  --text-muted:#6c7883;
  --accent:#8774e1;
  --accent-hover:#9d8ce8;
  --green:#4fae4e;
  --red:#e53935;
  --blue:#4082bc;
  --msg-out:#2b5278;
  --msg-in:#182533;
  --border:#1e2c3a;
  --shadow:0 2px 8px rgba(0,0,0,.3);
  --radius:12px;
  --radius-sm:8px;
  --sidebar-w:260px;
  --dialog-w:380px;
}
html,body{height:100%;overflow:hidden}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:var(--bg-primary);color:var(--text-primary);font-size:14px;-webkit-font-smoothing:antialiased}
input,button,textarea{font-family:inherit;font-size:inherit;color:inherit;border:none;outline:none;background:none}
button{cursor:pointer}
a{color:var(--accent);text-decoration:none}
::-webkit-scrollbar{width:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.25)}

#app{height:100%;width:100%}
.screen{display:none;height:100%;width:100%}
.screen.active{display:flex}

/* ===== Deep Eye Login ===== */
#screen-login,#screen-register{
  background:#030810;
  background-image:
    radial-gradient(ellipse 400px 300px at 20% 50%, rgba(0,80,220,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 80% 50%, rgba(0,80,220,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 200px 200px at 50% 50%, rgba(0,60,180,0.06) 0%, transparent 70%);
  align-items:center;justify-content:center;
  position:relative;overflow:hidden;
}
#screen-login::before,#screen-register::before{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(0,140,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(0,140,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 30%, rgba(0,140,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(0,140,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(0,140,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 90%, rgba(0,140,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(0,140,255,0.3) 0%, transparent 100%);
  animation:particleFloat 20s linear infinite;pointer-events:none;
}
@keyframes particleFloat{0%{transform:translateY(0)}50%{transform:translateY(-10px)}100%{transform:translateY(0)}}

.login-card{
  width:100%;max-width:400px;padding:40px 36px 32px;text-align:center;
  background:rgba(8,16,32,0.65);
  backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  border:1px solid rgba(0,100,255,0.12);
  border-radius:20px;
  box-shadow:0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
  position:relative;z-index:1;
}

/* Eye logo */
.eye-logo{margin-bottom:16px;display:flex;justify-content:center}
.eye-logo svg{filter:drop-shadow(0 0 12px rgba(0,120,255,0.4))}
.eyelid-upper,.eyelid-lower{transform:translateY(0)}

/* Title */
.login-title{font-size:32px;font-weight:300;margin-bottom:6px;color:#c0d0e0;letter-spacing:1px}
.login-title span{font-weight:700;color:#fff;font-style:italic}
.login-subtitle{color:#5a7090;font-size:14px;margin-bottom:28px;letter-spacing:0.5px}

/* Inputs */
#screen-login form,
#screen-register form,
#screen-restricted form,
#screen-tg-auth form{display:flex;flex-direction:column;gap:14px}

.de-input-group{
  display:flex;align-items:center;gap:12px;
  background:rgba(12,22,40,0.7);
  border:1px solid rgba(40,60,90,0.5);
  border-radius:12px;padding:0 16px;
  transition:border-color .25s, box-shadow .25s;
}
.de-input-group:focus-within{
  border-color:rgba(0,120,255,0.5);
  box-shadow:0 0 0 3px rgba(0,100,255,0.08);
}
.de-input-icon{flex-shrink:0;opacity:0.5}
.de-input-group:focus-within .de-input-icon path{fill:#3388dd}
.de-input-group input{
  flex:1;background:none;border:none;padding:15px 0;font-size:15px;
  color:#c8d8e8;outline:none;
}
.de-input-group input::placeholder{color:#3a5070}

.password-toggle{
  display:flex;align-items:center;justify-content:center;
  padding:4px;border-radius:6px;transition:opacity .15s;opacity:0.5;
  background:none;border:none;cursor:pointer;
}
.password-toggle:hover{opacity:0.8}

/* Login button */
.de-login-btn{
  margin-top:6px;padding:15px;
  background:linear-gradient(135deg, #1a6dd4 0%, #2a8aef 50%, #1a6dd4 100%);
  background-size:200% 200%;
  color:#fff;font-size:16px;font-weight:600;
  border:none;border-radius:12px;cursor:pointer;
  transition:box-shadow .3s, transform .15s;
  letter-spacing:0.5px;
}
.de-login-btn:hover{
  box-shadow:0 4px 20px rgba(30,110,220,0.4);
  background-position:100% 0;
}
.de-login-btn:active{transform:scale(0.98)}

/* Divider */
.de-divider{
  display:flex;align-items:center;gap:16px;
  margin:20px 0 16px;color:#2a4060;font-size:13px;
}
.de-divider::before,.de-divider::after{
  content:'';flex:1;height:1px;background:rgba(40,60,90,0.4);
}

/* Forgot link */
.de-forgot-link{
  color:#3388cc;font-size:14px;font-style:italic;
  text-decoration:none;
  border-bottom:1px dashed rgba(50,130,200,0.4);
  padding-bottom:2px;transition:color .2s;
}
.de-forgot-link:hover{color:#55aaee}

/* Legacy containers for restricted/tg-auth screens */
.login-container{margin:auto;width:100%;max-width:360px;padding:24px;text-align:center}
.login-icon{margin-bottom:20px}
.login-container h1{font-size:28px;font-weight:600;margin-bottom:8px}
.login-sub{color:var(--text-secondary);margin-bottom:24px;font-size:15px}
.login-container form{display:flex;flex-direction:column;gap:12px}
.login-container input{background:var(--bg-tertiary);border:2px solid transparent;border-radius:var(--radius);padding:14px 16px;font-size:16px;transition:border-color .2s}
.login-container input:focus{border-color:var(--accent)}
.login-container button[type="submit"]{background:var(--accent);color:#fff;border-radius:var(--radius);padding:14px;font-size:16px;font-weight:600;transition:background .2s}
.login-container button[type="submit"]:hover{background:var(--accent-hover)}
.error-msg{color:var(--red);margin-top:12px;font-size:13px;min-height:20px}
.tg-step{display:none}.tg-step.active{display:block}

.loading-spinner{display:flex;justify-content:center;padding:20px}
.spinner{width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Main Layout */
#screen-main{display:none;flex-direction:row;height:100%;overflow:hidden;background:#030810;background-image:radial-gradient(ellipse 600px 400px at 50% 100%,rgba(0,60,200,0.08) 0%,transparent 70%),radial-gradient(ellipse 400px 300px at 20% 80%,rgba(0,80,220,0.06) 0%,transparent 70%),radial-gradient(ellipse 400px 300px at 80% 80%,rgba(0,80,220,0.06) 0%,transparent 70%)}
#screen-main.active{display:flex}

/* Sidebar */
#sidebar{width:var(--sidebar-w);min-width:var(--sidebar-w);background:rgba(4,10,25,0.85);backdrop-filter:blur(20px);display:flex;flex-direction:column;border-right:1px solid rgba(0,100,255,0.15);z-index:10;box-shadow:2px 0 20px rgba(0,60,200,0.08)}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:16px 16px 12px;border-bottom:1px solid rgba(0,100,255,0.08)}
.sidebar-brand-eye{flex-shrink:0}
.sidebar-brand-text{display:flex;flex-direction:column}
.sidebar-brand-name{font-size:18px;font-weight:700;color:#c0d8f8;letter-spacing:0.5px}
.sidebar-brand-name em{font-style:normal;color:#4d9fff}
.sidebar-brand-sub{font-size:10px;color:rgba(100,140,200,0.5);letter-spacing:0.3px;margin-top:1px}
.sidebar-header{padding:14px 16px;border-bottom:1px solid rgba(0,100,255,0.12)}
.sidebar-profile{display:flex;align-items:center;gap:12px;cursor:pointer;padding:4px;border-radius:var(--radius-sm);transition:background .15s}
.sidebar-profile:hover{background:rgba(0,80,220,0.08)}
.sidebar-avatar{width:42px;height:42px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:600;color:#fff;position:relative;overflow:hidden}
.sidebar-avatar img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;z-index:1}
.sidebar-profile-info{flex:1;min-width:0}
.sidebar-profile-name{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-profile-username{font-size:12px;color:#4d9fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-profile-arrow{flex-shrink:0;color:var(--text-muted);transition:transform .2s}
.sidebar-profile.open .sidebar-profile-arrow{transform:rotate(180deg)}
.accounts-dropdown{display:none;flex-direction:column;gap:2px;padding:0 8px 8px}
.accounts-dropdown.open{display:flex}
.account-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:var(--radius-sm);cursor:pointer;transition:background .15s;font-size:13px}
.account-item:hover{background:rgba(0,80,220,0.08)}
.account-item.active{background:rgba(0,80,220,0.15)}
.account-item-avatar{width:32px;height:32px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:#fff;position:relative;overflow:hidden}
.account-item-avatar img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.account-item-info{flex:1;min-width:0}
.account-item-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-item-detail{font-size:11px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-item .account-check{margin-left:auto;color:var(--green);flex-shrink:0}
.sidebar-menu{display:flex;flex-direction:column;padding:8px;gap:2px;flex:1;overflow-y:auto}
.sidebar-footer{padding:8px;border-top:1px solid rgba(0,100,255,0.12);display:flex;flex-direction:column;gap:2px}
.sidebar-action-btn{display:flex;align-items:center;gap:12px;padding:10px 16px;border-radius:var(--radius-sm);color:rgba(140,170,220,0.6);transition:all .15s;width:100%;text-align:left;font-size:13px}
.sidebar-action-btn:hover{background:rgba(0,80,220,0.08);color:#c0d8f8}
.sidebar-action-btn.logout:hover{color:#cc4444}
.sidebar-action-btn svg{flex-shrink:0}
.menu-btn{display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:var(--radius-sm);color:rgba(140,170,220,0.7);transition:all .2s;width:100%;text-align:left;font-size:14px}
.menu-btn:hover{background:rgba(0,80,220,0.08);color:#c0d8f8}
.menu-btn.active{background:linear-gradient(90deg,rgba(0,80,220,0.18),rgba(0,60,180,0.06));color:#fff;border-left:3px solid #0066ff;box-shadow:0 0 12px rgba(0,80,220,0.12)}
.menu-btn svg{flex-shrink:0}

/* Content */
#content{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;background:transparent}
.page{display:none;flex-direction:column;height:100%;overflow:hidden}
.page.active{display:flex}
.page-header{padding:16px 24px;border-bottom:1px solid rgba(0,100,255,0.1);background:rgba(4,10,25,0.6);backdrop-filter:blur(12px)}
.page-header h2{font-size:20px;font-weight:600;color:#e0eaff}

/* Dashboard */
.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:24px}
.stat-card{background:rgba(4,12,30,0.7);border-radius:var(--radius);padding:24px;text-align:center;border:1px solid rgba(0,100,255,0.15);box-shadow:0 0 15px rgba(0,60,200,0.06),inset 0 1px 0 rgba(0,100,255,0.08);backdrop-filter:blur(8px);position:relative;overflow:hidden}
.stat-card::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(0,120,255,0.3),transparent)}
.stat-card-row{display:flex;align-items:center;gap:20px;text-align:left}
.stat-icon{width:56px;height:56px;border-radius:50%;background:rgba(0,60,180,0.12);border:1px solid rgba(0,100,255,0.2);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#4d9fff;box-shadow:0 0 16px rgba(0,80,220,0.12)}
.stat-value{font-size:42px;font-weight:700;color:#4d9fff;margin-bottom:4px;text-shadow:0 0 20px rgba(0,120,255,0.3)}
.stat-label{color:rgba(140,170,220,0.6);font-size:14px}
.top-users-section{margin:0 24px 24px;padding:20px;background:rgba(4,12,30,0.7);border:1px solid rgba(0,100,255,0.15);border-radius:var(--radius);box-shadow:0 0 15px rgba(0,60,200,0.06);backdrop-filter:blur(8px);position:relative;overflow:hidden}
.top-users-section::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(0,120,255,0.3),transparent)}
.top-users-section h3{margin-bottom:16px;font-size:16px;color:#c0d8f8;font-weight:600}
.top-users-list{display:flex;flex-direction:column;gap:8px}
.top-user-item{display:flex;align-items:center;gap:12px;padding:12px 16px;background:rgba(4,12,30,0.5);border-radius:var(--radius-sm);border:1px solid rgba(0,100,255,0.1)}
.top-user-rank{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#0055cc,#0088ff);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0;box-shadow:0 0 10px rgba(0,100,255,0.25)}
.top-user-name{flex:1;font-weight:500;color:#c0d8f8}
.top-user-count{color:#4d9fff;font-weight:600}

/* Messenger */
.messenger-layout{display:flex;height:100%;overflow:hidden}
.dialog-panel{width:var(--dialog-w);min-width:var(--dialog-w);border-right:1px solid rgba(0,100,255,0.1);display:flex;flex-direction:column;background:rgba(4,10,25,0.7);backdrop-filter:blur(12px);overflow:hidden}
.dialog-header{padding:12px 16px;border-bottom:1px solid rgba(0,100,255,0.1)}
.dialog-header h2{font-size:18px;margin-bottom:10px}
.dialog-search{width:100%;padding:8px 12px;background:rgba(0,20,50,0.5);border:1px solid rgba(0,100,255,0.12);border-radius:8px;color:var(--text-primary);font-size:13px;margin-bottom:8px;transition:border-color .2s}
.dialog-search:focus{border-color:rgba(0,120,255,0.4)}
.dialog-search::placeholder{color:var(--text-muted)}
.dialog-filters{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
.filter-btn{padding:6px 14px;border-radius:20px;font-size:13px;color:rgba(140,170,220,0.6);background:rgba(0,20,50,0.4);border:1px solid rgba(0,100,255,0.08);transition:all .15s;white-space:nowrap;flex-shrink:0}
.filter-btn:hover{background:rgba(0,80,220,0.12);color:#c0d8f8}
.filter-btn.active{background:linear-gradient(135deg,#0055cc,#0077ff);color:#fff;border-color:transparent;box-shadow:0 0 10px rgba(0,100,255,0.2)}
.dialog-list{flex:1;overflow-y:auto;overflow-x:hidden}

.dialog-item{display:flex;align-items:center;gap:12px;padding:10px 16px;cursor:pointer;transition:all .15s;position:relative}
.dialog-item:hover{background:rgba(0,80,220,0.08)}
.dialog-item.active{background:rgba(0,80,220,0.15);box-shadow:inset 3px 0 0 #0066ff}
.dialog-avatar{width:48px;height:48px;border-radius:50%;flex-shrink:0;background:var(--bg-tertiary);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600;color:#fff;position:relative}
.dialog-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;position:absolute;inset:0;z-index:1}
.dialog-avatar .online-dot{position:absolute;bottom:1px;right:1px;width:12px;height:12px;background:var(--green);border:2px solid var(--bg-secondary);border-radius:50%;z-index:3}
.dialog-info{flex:1;min-width:0}
.dialog-name{display:flex;align-items:center;gap:6px;margin-bottom:3px}
.dialog-name-text{font-weight:500;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dialog-time{font-size:12px;color:var(--text-muted);margin-left:auto;flex-shrink:0}
.dialog-bottom{display:flex;align-items:center;gap:6px}
.dialog-last-msg{font-size:13px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.dialog-badges{display:flex;align-items:center;gap:4px;flex-shrink:0}
.dialog-badge{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:linear-gradient(135deg,#0055cc,#0077ff);color:#fff;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center}
.dialog-panel-unread{padding:1px 6px;border-radius:10px;background:var(--green);color:#fff;font-size:11px;font-weight:600;white-space:nowrap}
.dialog-deleted-dot{color:var(--red);font-size:14px;font-weight:700}
.dialog-type-icon{font-size:11px;flex-shrink:0}

/* Chat */
.chat-panel{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;background:rgba(2,6,16,0.6)}
.chat-header{display:none;align-items:center;gap:12px;padding:10px 16px;background:rgba(4,10,25,0.7);backdrop-filter:blur(12px);border-bottom:1px solid rgba(0,100,255,0.1);z-index:5}
.chat-header.visible{display:flex}
.chat-back-btn{display:none;background:none;border:none;color:var(--text-secondary);padding:4px}
.chat-header-avatar{width:40px;height:40px;border-radius:50%;background:var(--bg-tertiary);overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;flex-shrink:0;cursor:pointer;position:relative}
.chat-header-avatar img{width:100%;height:100%;object-fit:cover}
.chat-header-info{flex:1;min-width:0;cursor:pointer}
.chat-header-name{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-header-status{font-size:12px;color:var(--text-secondary)}
.chat-header-status.online{color:var(--green)}
.chat-header-actions{display:flex;gap:4px}
.icon-btn{padding:8px;border-radius:50%;color:var(--text-secondary);transition:all .15s}
.icon-btn:hover{background:var(--bg-hover);color:var(--text-primary)}

.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:4px;background:transparent}
.chat-placeholder{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--text-muted);font-size:16px}

.message{max-width:70%;padding:8px 12px;border-radius:var(--radius);position:relative;word-wrap:break-word;line-height:1.4;animation:msgIn .2s ease}
@keyframes msgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.message.incoming{background:rgba(4,15,35,0.8);border:1px solid rgba(0,100,255,0.08);align-self:flex-start;border-bottom-left-radius:4px}
.message.outgoing{background:rgba(0,50,130,0.25);border:1px solid rgba(0,100,255,0.12);align-self:flex-end;border-bottom-right-radius:4px}
.message.deleted{border:1px dashed rgba(229,57,53,.4)}
.msg-sender{font-size:13px;font-weight:600;color:var(--accent);margin-bottom:2px}
.msg-text{font-size:14px;white-space:pre-wrap}
.msg-media{margin:4px 0;max-width:320px;border-radius:var(--radius-sm);overflow:hidden;cursor:pointer}
.msg-media img,.msg-media video{max-width:100%;border-radius:var(--radius-sm);display:block}
.msg-media-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.msg-media.round-video{width:200px;height:200px;border-radius:50%;transition:all .3s ease;position:relative;margin-top:4px}
.msg-media.round-video video{width:100%;height:100%;object-fit:cover;border-radius:50%}
.msg-media.round-video.playing{width:240px;height:240px;box-shadow:0 0 20px rgba(135,116,225,.4)}
.msg-media.round-video .msg-media-play svg{width:40px;height:40px}
.msg-voice{display:flex;align-items:center;gap:8px;padding:6px 0}
.msg-voice audio{max-width:240px;height:32px}
.msg-footer{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:2px}
.msg-time{font-size:11px;color:var(--text-muted)}
.msg-deleted-icon{color:var(--red);font-size:12px;display:flex;align-items:center;gap:2px}
.msg-deleted-icon svg{width:14px;height:14px}
.msg-fire-icon{font-size:12px;display:flex;align-items:center}
.msg-read-icon{display:flex;align-items:center;color:var(--text-muted)}
.msg-read-icon.read{color:#4fae4e}
.msg-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.msg-reaction{background:rgba(135,116,225,.15);border:1px solid rgba(135,116,225,.3);border-radius:12px;padding:2px 8px;font-size:13px;line-height:1.4;cursor:default}
.msg-fwd{font-size:12px;color:var(--blue);margin-bottom:4px;font-style:italic}
.msg-reply{font-size:12px;color:var(--accent);background:rgba(135,116,225,.1);padding:4px 8px;border-radius:6px;border-left:2px solid var(--accent);margin-bottom:4px}

.date-separator{text-align:center;padding:8px 0;position:relative}
.date-separator span{background:rgba(4,15,35,0.8);border:1px solid rgba(0,100,255,0.1);color:var(--text-muted);font-size:13px;padding:4px 12px;border-radius:12px}

/* User List (Contacts, Blocked) */
.user-list{padding:16px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;flex:1}
.user-item{display:flex;align-items:center;gap:14px;padding:12px 16px;background:rgba(4,12,30,0.5);border-radius:var(--radius-sm);border:1px solid rgba(0,100,255,0.1);cursor:pointer;transition:all .15s}
.user-item:hover{background:rgba(0,80,220,0.08);border-color:rgba(0,100,255,0.2)}
.user-avatar{width:44px;height:44px;border-radius:50%;background:var(--bg-tertiary);display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;overflow:hidden;flex-shrink:0}
.user-avatar img{width:100%;height:100%;object-fit:cover}
.user-info{flex:1;min-width:0}
.user-name{font-weight:500;font-size:15px;margin-bottom:2px}
.user-detail{font-size:13px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Logs */
.logs-list{padding:16px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;flex:1}
.log-item{padding:14px 16px;background:rgba(4,12,30,0.5);border-radius:var(--radius-sm);border:1px solid rgba(0,100,255,0.1);border-left:3px solid #cc3333}
.log-parties{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.log-party{display:flex;align-items:center;gap:10px;min-width:0}
.log-avatar{width:40px;height:40px;border-radius:50%;background:var(--bg-tertiary);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;overflow:hidden;flex-shrink:0;position:relative;color:#fff}
.log-avatar img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;z-index:1}
.log-party-info{min-width:0;flex:1}
.log-name{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.log-username{font-size:12px;color:var(--accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.log-arrow{flex-shrink:0;color:var(--text-muted);display:flex;align-items:center;padding:0 2px}
.log-info{min-width:0}
.log-text{font-size:14px;color:var(--text-primary);background:rgba(229,57,53,.08);padding:8px 10px;border-radius:6px;margin-bottom:6px;word-wrap:break-word}
.log-time{font-size:11px;color:var(--text-muted)}
.log-media-block{margin-bottom:6px;display:flex;align-items:center;gap:10px}
.log-media-label{font-size:14px;color:var(--text-secondary)}
.log-media-btn{padding:6px 16px;border-radius:8px;background:var(--accent);color:#fff;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s}
.log-media-btn:hover{background:var(--accent-hover)}
.log-party-clickable{cursor:pointer;border-radius:8px;padding:4px;margin:-4px;transition:background .15s}
.log-party-clickable:hover{background:rgba(0,100,255,0.1)}
.log-goto-btn{margin-top:10px;width:100%;padding:8px 0;border-radius:8px;background:rgba(0,100,255,0.12);color:var(--accent);font-size:13px;font-weight:600;cursor:pointer;transition:background .15s}
.log-goto-btn:hover{background:rgba(0,100,255,0.2)}
.msg-fire-icon{font-size:12px;margin-right:2px}
.msg-media-missing{font-size:13px;color:var(--text-secondary);padding:8px 10px;background:rgba(255,255,255,0.04);border-radius:8px;display:inline-block}

/* Profile Panel */
.profile-panel,.attachments-panel{position:fixed;top:0;width:380px;max-width:100vw;height:100%;background:rgba(4,10,25,0.92);backdrop-filter:blur(20px);z-index:100;box-shadow:-4px 0 30px rgba(0,0,0,.5);border-left:1px solid rgba(0,100,255,0.12);display:flex;flex-direction:column;overflow:hidden;transform:translateX(100%);right:0;transition:transform .3s ease;visibility:hidden}
.profile-panel.open,.attachments-panel.open{transform:translateX(0);visibility:visible}
.profile-header,.attachments-header{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid rgba(0,100,255,0.1)}
.profile-header .chat-back-btn,.attachments-header .chat-back-btn{display:flex;color:var(--text-secondary);cursor:pointer}
.profile-header h3,.attachments-header h3{font-size:17px}
.profile-content{flex:1;overflow-y:auto;padding:20px}
.profile-avatar-big{width:100px;height:100px;border-radius:50%;background:var(--bg-tertiary);margin:0 auto 16px;display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:600;overflow:hidden;position:relative}
.profile-avatar-big img{width:100%;height:100%;object-fit:cover}
.profile-name{text-align:center;font-size:20px;font-weight:600;margin-bottom:4px}
.profile-username{text-align:center;color:var(--accent);font-size:14px;margin-bottom:4px}
.profile-status{text-align:center;color:var(--text-secondary);font-size:13px;margin-bottom:16px}
.profile-field{padding:12px 0;border-bottom:1px solid rgba(0,100,255,0.08)}
.profile-field-label{font-size:12px;color:var(--text-muted);margin-bottom:2px}
.profile-field-value{font-size:15px}

.attachments-tabs{display:flex;border-bottom:1px solid rgba(0,100,255,0.1)}
.att-tab{flex:1;padding:10px;text-align:center;font-size:13px;color:var(--text-secondary);transition:all .15s;border-bottom:2px solid transparent}
.att-tab:hover{color:var(--text-primary)}
.att-tab.active{color:var(--accent);border-bottom-color:var(--accent)}
.attachments-content{flex:1;overflow-y:auto;padding:12px}
.att-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.att-grid-item{aspect-ratio:1;background:var(--bg-tertiary);border-radius:4px;overflow:hidden;cursor:pointer}
.att-grid-item img,.att-grid-item video{width:100%;height:100%;object-fit:cover}
.att-list-item{display:flex;align-items:center;gap:12px;padding:10px;border-radius:var(--radius-sm);cursor:pointer;transition:background .15s}
.att-list-item:hover{background:var(--bg-hover)}
.att-list-item audio{flex:1;height:32px}

/* Media Viewer */
.media-viewer{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:200;display:none;align-items:center;justify-content:center}
.media-viewer.open{display:flex}
.media-close-btn{position:absolute;top:16px;right:16px;background:rgba(255,255,255,.1);border-radius:50%;padding:8px;z-index:201}
.media-content{max-width:90vw;max-height:90vh}
.media-content img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:4px}
.media-content video{max-width:90vw;max-height:90vh;border-radius:4px}

/* Empty States */
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px;color:rgba(100,140,200,0.5);text-align:center;flex:1}
.empty-state svg{margin-bottom:12px;opacity:.4}
.empty-icon-circle{width:100px;height:100px;border-radius:50%;background:rgba(0,60,180,0.08);border:1px solid rgba(0,100,255,0.15);display:flex;align-items:center;justify-content:center;margin-bottom:16px;color:rgba(80,140,255,0.4);box-shadow:0 0 30px rgba(0,60,200,0.08)}

/* Avatar Colors */
.avatar-color-0{background:#e17076}.avatar-color-1{background:#7bc862}.avatar-color-2{background:#e5ca77}
.avatar-color-3{background:#65aadd}.avatar-color-4{background:#a695e7}.avatar-color-5{background:#ee7aae}
.avatar-color-6{background:#6ec9cb}.avatar-color-7{background:#faa774}

/* Mobile Top Bar */
.mobile-topbar{display:none;align-items:center;gap:12px;padding:10px 16px;background:rgba(4,10,25,0.7);backdrop-filter:blur(12px);border-bottom:1px solid rgba(0,100,255,0.1);flex-shrink:0;min-height:48px}
.mobile-topbar-title{font-size:17px;font-weight:600;flex:1}
.mobile-burger{background:none;border:none;color:var(--text-primary);padding:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* Mobile */
@media(max-width:900px){
  /* Kill heavy GPU effects on mobile */
  #screen-login::before,#screen-register::before{display:none!important;animation:none!important}
  #screen-login,#screen-register{background:#030810!important;background-image:none!important}
  #screen-main{background:#030810!important;background-image:none!important}
  .stat-card,.top-users-section{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .stat-card::before,.top-users-section::before{display:none!important}
  *{animation-duration:0.01ms!important;animation-delay:0.01ms!important}
  .spinner{animation-duration:0.8s!important}
  @keyframes spin{to{transform:rotate(360deg)}}

  /* Login responsive */
  .login-card{max-width:92vw;padding:32px 24px 28px;margin:16px;border-radius:16px;background:rgba(8,16,32,0.95);border-color:rgba(0,100,255,0.2)}
  .login-title{font-size:26px}
  .login-subtitle{font-size:13px;margin-bottom:22px}
  .eye-logo svg{width:80px;height:54px}
  .de-input-group{padding:0 14px}
  .de-input-group input{padding:13px 0;font-size:14px}
  .de-login-btn{padding:14px;font-size:15px}

  .mobile-topbar{display:flex;background:rgba(4,10,25,0.9);border-bottom:1px solid rgba(0,100,255,0.1)}
  #screen-main{overflow:hidden;max-width:100vw}
  #sidebar{position:fixed;left:-100%;width:280px;height:100%;z-index:50;transition:left .3s ease;background:rgba(4,10,25,0.95);backdrop-filter:blur(24px)}
  #sidebar.open{left:0}
  .sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:49}
  .sidebar-overlay.open{display:block}
  #content{overflow-x:hidden;width:100%;max-width:100vw;background:#030810}
  .page{overflow-x:hidden;overflow-y:auto}
  .profile-panel,.attachments-panel{width:100%}
  .page-header{display:none}
  .messenger-layout{flex-direction:column;position:relative;flex:1;min-height:0}
  .dialog-panel{width:100%;min-width:0;max-height:100%;border-right:none}
  .dialog-header{padding:8px 16px}
  .dialog-header h2{display:none}
  .chat-panel{position:fixed;top:0;left:0;right:0;bottom:0;z-index:30;display:none;background:rgba(2,6,16,0.95)}
  .chat-panel.open{display:flex}
  #screen-main.chat-open .mobile-topbar{display:none}
  .chat-back-btn{display:flex!important}
  .chat-header-avatar{width:36px;height:36px}
  .message{max-width:85%}
  .profile-panel,.attachments-panel{width:100%;max-width:100%}
  .log-parties{gap:6px}
  .log-party{min-width:0}
  .log-arrow svg{width:16px;height:16px}
  .dashboard-grid{grid-template-columns:1fr;padding:16px;gap:12px;max-width:100%}
  .stat-value{font-size:32px}
  .stat-card{padding:16px}
  .top-users-section{margin:0 12px 16px;padding:16px}
  .user-list{padding:12px}
  .logs-list{padding:12px}
  .msg-media{max-width:240px}
  .att-grid{grid-template-columns:repeat(2,1fr)}
  /* Disable heavy blur on mobile for performance */
  #sidebar,
  .page-header,
  .chat-header,
  .dialog-panel,
  .mobile-topbar,
  .qr-modal-content,
  .profile-panel,
  .attachments-panel,
  #no-sub-overlay,
  .login-card{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}

@media(max-width:380px){
  .login-card{padding:28px 18px 24px}
  .login-title{font-size:22px}
  .eye-logo svg{width:70px;height:47px}
  .de-input-group input{font-size:13px}
}

/* No separate mobile-menu-btn needed anymore */
.mobile-menu-btn{display:none!important}

/* QR Modal */
.qr-modal{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:300;display:none;align-items:center;justify-content:center}
.qr-modal.open{display:flex}
.qr-modal-content{background:rgba(8,15,30,0.92);backdrop-filter:blur(24px);border:1px solid rgba(0,100,255,0.12);border-radius:16px;padding:32px 28px;max-width:400px;width:90%;text-align:center;position:relative;box-shadow:0 8px 40px rgba(0,0,0,0.5),0 0 60px rgba(0,80,220,0.08)}
.qr-modal-close{position:absolute;top:12px;right:12px;color:var(--text-secondary);padding:4px;border-radius:50%;transition:all .15s}
.qr-modal-close:hover{background:var(--bg-hover);color:var(--text-primary)}
.qr-modal-icon{margin-bottom:12px}
.qr-modal-content h2{font-size:20px;margin-bottom:8px}
.qr-instruction{color:var(--text-secondary);font-size:13px;margin-bottom:20px;line-height:1.5}
.qr-code-container{display:flex;align-items:center;justify-content:center;min-height:200px;margin-bottom:16px}
.qr-code-container canvas,.qr-code-container img{border-radius:12px;background:#fff;padding:12px}
.qr-status{font-size:13px;color:var(--text-secondary);min-height:20px}
.qr-status.error{color:var(--red)}
.qr-status.success{color:var(--green)}
.qr-2fa-section{margin-top:16px}
.qr-2fa-section p{color:var(--text-secondary);margin-bottom:10px;font-size:14px}
.qr-2fa-section form{display:flex;flex-direction:column;gap:10px}
.qr-2fa-section input{background:var(--bg-tertiary);border:2px solid transparent;border-radius:var(--radius);padding:12px 14px;font-size:15px;transition:border-color .2s}
.qr-2fa-section input:focus{border-color:var(--accent)}
.qr-2fa-section button{background:var(--accent);color:#fff;border-radius:var(--radius);padding:12px;font-size:15px;font-weight:600;transition:background .2s}
.qr-2fa-section button:hover{background:var(--accent-hover)}
.qr-cancel-btn{margin-top:16px;padding:10px 24px;border-radius:var(--radius);background:var(--bg-tertiary);color:var(--text-secondary);font-size:14px;transition:all .15s}
.qr-cancel-btn:hover{background:var(--bg-hover);color:var(--text-primary)}
.add-step{display:none}.add-step.active{display:block}
.add-methods{display:flex;gap:12px;margin-top:20px;justify-content:center}
.add-method-btn{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 28px;background:var(--bg-tertiary);border-radius:var(--radius);color:var(--text-primary);transition:all .15s;flex:1;max-width:160px}
.add-method-btn:hover{background:var(--bg-active);transform:translateY(-2px)}
.add-method-btn svg{color:var(--accent)}
.add-method-btn span{font-size:14px;font-weight:500}
.add-form{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.add-form input{background:var(--bg-tertiary);border:2px solid transparent;border-radius:var(--radius);padding:14px 16px;font-size:16px;transition:border-color .2s;text-align:center}
.add-form input:focus{border-color:var(--accent)}
.add-form button{background:var(--accent);color:#fff;border-radius:var(--radius);padding:14px;font-size:16px;font-weight:600;transition:background .2s}

/* ===== Deep Eye Modal Elements ===== */
.tg-icon-wrap{width:64px;height:64px;margin:0 auto 16px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(135,116,225,0.1);border:2px solid rgba(135,116,225,0.25);box-shadow:0 0 20px rgba(135,116,225,0.15)}
.tg-modal-title{font-size:24px;font-weight:700;color:#f5f5f5;margin-bottom:6px}
.tg-modal-title span{color:#8774e1}
.tg-modal-sub{color:#6c8099;font-size:14px;margin-bottom:20px}
.de-modal-form{display:flex;flex-direction:column;gap:12px}
.de-modal-form .de-input-group{display:flex;align-items:center;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:0 14px;height:48px;transition:border-color .2s}
.de-modal-form .de-input-group:focus-within{border-color:rgba(135,116,225,0.5)}
.de-phone-prefix{color:#8774e1;font-size:16px;font-weight:600;white-space:nowrap}
.de-phone-sep{width:1px;height:24px;background:rgba(255,255,255,0.1);margin:0 12px}
.de-modal-form input{flex:1;background:none;border:none;outline:none;color:#f5f5f5;font-size:15px;padding:0;height:100%}
.de-modal-form input::placeholder{color:#3a5070}
.de-modal-form .de-login-btn{background:linear-gradient(135deg,#0066ff,#0044cc);color:#fff;border:none;border-radius:12px;padding:14px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s}
.de-modal-form .de-login-btn:hover{background:linear-gradient(135deg,#0077ff,#0055dd);box-shadow:0 4px 16px rgba(0,80,220,0.3)}
.de-alt-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:8px;padding:12px;border-radius:12px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);color:#6c8099;font-size:14px;cursor:pointer;transition:all .2s}
.de-alt-btn:hover{background:rgba(255,255,255,0.08);color:#f5f5f5;border-color:rgba(255,255,255,0.12)}
.de-alt-btn svg{opacity:0.7}
.de-alt-btn:hover svg{opacity:1}
.add-form button:hover{background:var(--accent-hover)}

/* --- No Subscription Overlay --- */
#no-sub-overlay{display:flex;position:absolute;inset:0;z-index:100;background:rgba(3,8,16,0.95);align-items:center;justify-content:center;backdrop-filter:blur(10px)}
.no-sub-card{text-align:center;max-width:400px;padding:48px 32px;background:rgba(10,20,40,0.8);border:1px solid rgba(0,100,255,0.15);border-radius:20px;box-shadow:0 8px 40px rgba(0,50,150,0.2)}
.no-sub-icon{margin-bottom:24px}
.no-sub-card h2{font-size:22px;font-weight:600;margin-bottom:12px;color:#f5f5f5}
.no-sub-card p{font-size:14px;color:#6c8099;line-height:1.6;margin-bottom:28px}
.no-sub-promo{padding:12px 18px;margin-bottom:20px;border-radius:12px;font-size:14px;font-weight:500;color:#ffb74d;background:rgba(255,160,0,0.08);border:1px solid rgba(255,160,0,0.18);line-height:1.5}
.no-sub-btn{display:inline-flex;align-items:center;gap:10px;padding:14px 28px;background:linear-gradient(135deg,#0066ff,#0044cc);color:#fff;border-radius:14px;font-size:15px;font-weight:600;text-decoration:none;transition:all .2s;box-shadow:0 4px 16px rgba(0,80,220,0.3)}
.no-sub-btn:hover{background:linear-gradient(135deg,#0077ff,#0055dd);box-shadow:0 6px 24px rgba(0,80,220,0.4);transform:translateY(-1px)}

/* Subscription badge in sidebar */
.sub-badge{padding:6px 12px;margin:0 12px 8px;border-radius:8px;font-size:12px;text-align:center;color:#6c8099;background:rgba(0,100,255,0.06);border:1px solid rgba(0,100,255,0.1)}
.sub-badge.expiring{color:#e53935;background:rgba(229,57,53,0.08);border-color:rgba(229,57,53,0.15)}

/* Cloudflare Turnstile */
.cf-turnstile-wrap{display:flex;justify-content:center;margin:8px 0 4px}

/* Toast notification */
#de-toast{
  position:fixed;top:24px;left:50%;transform:translateX(-50%) translateY(-120px);
  display:flex;align-items:center;gap:14px;
  padding:16px 24px;
  background:rgba(10,20,40,0.92);backdrop-filter:blur(16px);
  border:1px solid rgba(34,204,102,0.25);border-radius:14px;
  box-shadow:0 8px 32px rgba(0,0,0,0.5),0 0 20px rgba(34,204,102,0.08);
  z-index:9999;transition:transform .4s cubic-bezier(.22,1,.36,1),opacity .4s;opacity:0;
  pointer-events:none;
}
#de-toast.show{transform:translateX(-50%) translateY(0);opacity:1;pointer-events:auto}
.de-toast-icon{flex-shrink:0}
.de-toast-title{font-size:15px;font-weight:600;color:#f5f5f5;margin-bottom:2px}
.de-toast-sub{font-size:13px;color:#6c8099}

/* Accounts page */
.accounts-list{padding:20px;overflow-y:auto;flex:1}
.accounts-header-info{font-size:14px;color:var(--text-muted);margin-bottom:16px;padding:10px 16px;background:rgba(0,100,255,0.05);border:1px solid rgba(0,100,255,0.1);border-radius:10px}
.accounts-header-info strong{color:var(--text-primary)}
.accounts-empty{text-align:center;padding:40px 20px;color:var(--text-secondary)}
.accounts-cards{display:flex;flex-direction:column;gap:12px}
.account-card{display:flex;align-items:center;gap:14px;padding:16px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:14px;transition:border-color .2s}
.account-card.active{border-color:rgba(0,100,255,0.3);background:rgba(0,100,255,0.04)}
.account-card-avatar{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600;color:#fff;position:relative;flex-shrink:0}
.account-card-info{flex:1;min-width:0}
.account-card-name{font-size:15px;font-weight:500;margin-bottom:2px}
.account-active-badge{font-size:11px;font-weight:500;color:#22cc66;background:rgba(34,204,102,0.12);padding:2px 8px;border-radius:8px;margin-left:6px}
.account-card-detail{font-size:13px;color:var(--text-secondary)}
.account-card-id{font-size:11px;color:var(--text-muted);margin-top:2px}
.account-card-actions{display:flex;gap:8px;flex-shrink:0}
.account-switch-btn{padding:8px 14px;font-size:12px;font-weight:500;border-radius:8px;background:rgba(0,100,255,0.12);color:#4a9eff;border:none;cursor:pointer;transition:background .15s}
.account-switch-btn:hover{background:rgba(0,100,255,0.25)}
.account-remove-btn{padding:8px 14px;font-size:12px;font-weight:500;border-radius:8px;background:rgba(229,57,53,0.1);color:#e53935;border:none;cursor:pointer;transition:background .15s}
.account-remove-btn:hover{background:rgba(229,57,53,0.2)}
.account-add-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:16px;padding:14px;border-radius:12px;background:linear-gradient(135deg,rgba(0,100,255,0.12),rgba(0,100,255,0.06));border:1px dashed rgba(0,100,255,0.25);color:#4a9eff;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}
.account-add-btn:hover{background:rgba(0,100,255,0.15);border-color:rgba(0,100,255,0.4)}

.grecaptcha-badge { visibility: hidden !important; }

/* ================================================================
   LANDING PAGE — premium edition
================================================================ */
#screen-landing {
  background: #050816;
  min-height: 100vh;
  overflow-y: auto;
  position: relative;
  isolation: isolate;
}

/* Layered radial bg */
.land-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(26,110,248,0.25), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(120,40,200,0.12), transparent 70%),
    radial-gradient(circle at 20% 30%, rgba(0,191,255,0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245,158,11,0.06), transparent 50%);
}

/* Animated orbs */
.land-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 14s ease-in-out infinite;
}
.land-orb-a {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #1a6ef8, transparent 70%);
  top: -80px; left: -100px;
}
.land-orb-b {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
  bottom: -60px; right: -80px;
  animation-delay: -7s;
  opacity: 0.32;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

/* Particles */
#land-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.land-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 0 4px rgba(255,255,255,0.4);
  animation: particleFloat 18s linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-150vh) scale(0.6); opacity: 0; }
}

.land-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 22px 36px;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Logo block */
.land-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.land-eye-svg {
  position: relative;
  margin-bottom: 16px;
  animation: eyePulse 4s ease-in-out infinite;
}
.land-eye-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(26,110,248,0.45), transparent 60%);
  filter: blur(20px);
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes eyePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.18); }
}

.land-brand {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 0 30px rgba(26,110,248,0.5);
}
.land-brand span {
  background: linear-gradient(135deg, #62d2ff 0%, #1a6ef8 60%, #6c4dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.land-tagline {
  color: #8fa3c0;
  font-size: 13.5px;
  margin: 10px 0 0;
  text-align: center;
  letter-spacing: 0.3px;
}

/* CTA buttons */
.land-cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 34px 0 26px;
}
.land-btn-login {
  background: linear-gradient(135deg, #1a6ef8 0%, #4f8dfb 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .15s, box-shadow .25s;
  font-family: inherit;
  box-shadow:
    0 8px 24px -6px rgba(26,110,248,0.55),
    0 2px 8px -2px rgba(26,110,248,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.land-btn-login::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left .6s;
}
.land-btn-login:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -6px rgba(26,110,248,0.7), 0 2px 8px -2px rgba(26,110,248,0.5), inset 0 1px 0 rgba(255,255,255,0.25); }
.land-btn-login:hover::before { left: 100%; }
.land-btn-login:active { transform: scale(.98); }

.land-btn-reg {
  background: rgba(255,255,255,0.03);
  color: #c8d4ec;
  border: 1.5px solid rgba(120,140,180,0.25);
  border-radius: 14px;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .2s;
  font-family: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.land-btn-reg:hover {
  background: rgba(26,110,248,0.08);
  border-color: rgba(26,110,248,0.6);
  color: #fff;
  transform: translateY(-1px);
}
.land-btn-reg:active { transform: scale(.98); }

/* "УЗНАТЬ БОЛЬШЕ" */
.land-more-label {
  color: #2e3f5e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 6px 0 16px;
  text-align: center;
  position: relative;
  padding: 0 50px;
}
.land-more-label::before,
.land-more-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,140,180,0.3));
}
.land-more-label::before { left: 0; }
.land-more-label::after { right: 0; transform: scaleX(-1); }

/* Feature cards */
.land-features {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 26px;
}
.land-feat-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(120,140,180,0.12);
  border-radius: 16px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.land-feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,110,248,0.08), transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}
.land-feat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26,110,248,0.4);
  box-shadow: 0 10px 30px -10px rgba(26,110,248,0.4);
}
.land-feat-card:hover::before { opacity: 1; }
.land-feat-icon {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(26,110,248,0.7);
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(26,110,248,0.06);
  position: relative;
  z-index: 1;
}
.land-feat-card p {
  color: #9aafcc;
  font-size: 11.5px;
  line-height: 1.45;
  margin: 0;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* "Как это работает?" orange button */
.land-how-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  transition: transform .15s, box-shadow .25s;
  font-family: inherit;
  box-shadow:
    0 8px 24px -6px rgba(245,158,11,0.5),
    0 2px 8px -2px rgba(245,158,11,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.land-how-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px -6px rgba(245,158,11,0.65),
    0 2px 8px -2px rgba(245,158,11,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.land-how-btn:active { transform: scale(.97); }

/* Footer */
.land-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(120,140,180,0.08);
  margin-top: auto;
}
.land-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.land-foot-link {
  background: none;
  border: none;
  color: #4a5f80;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 2px;
  transition: color .2s;
  font-family: inherit;
}
.land-foot-link:hover { color: #9aafcc; }
.land-copy {
  color: #2c3a55;
  font-size: 10.5px;
  margin: 0;
}
.land-domain-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(120,140,180,0.1);
  border-radius: 20px;
  padding: 6px 16px;
  color: #4a5f80;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

/* ================================================================
   ToS MODAL
================================================================ */
.tos-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2,5,15,0.82);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: tosFadeIn .25s;
}
.tos-overlay.open { display: flex; }
@keyframes tosFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.tos-box {
  background: linear-gradient(180deg, #0f172a 0%, #0a0f1f 100%);
  border-top: 1px solid rgba(120,140,180,0.15);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  width: 100%;
  max-width: 500px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  box-sizing: border-box;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.6);
  animation: tosSlideUp .35s cubic-bezier(.2,.9,.3,1);
}
@keyframes tosSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.tos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(120,140,180,0.1);
  flex-shrink: 0;
}
.tos-header h2 {
  color: #e0eaff;
  font-size: 16px;
  margin: 0;
  font-weight: 700;
}
.tos-close-x {
  background: rgba(255,255,255,0.07);
  border: none;
  color: #aab5cc;
  border-radius: 50%;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.tos-close-x:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.tos-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 6px;
  margin-bottom: 16px;
}
.tos-body::-webkit-scrollbar { width: 5px; }
.tos-body::-webkit-scrollbar-track { background: transparent; }
.tos-body::-webkit-scrollbar-thumb { background: rgba(120,140,180,0.3); border-radius: 4px; }
.tos-body p {
  color: #8a9dba;
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0 0 8px;
}
.tos-body h3 {
  color: #c8d4ec;
  font-size: 13px;
  font-weight: 700;
  margin: 18px 0 6px;
}
.tos-body strong { color: #ff7a7a; }
.tos-accept-btn {
  background: linear-gradient(135deg, #1a6ef8 0%, #4f8dfb 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  flex-shrink: 0;
  transition: transform .15s, box-shadow .25s;
  font-family: inherit;
  box-shadow: 0 6px 20px -4px rgba(26,110,248,0.5);
}
.tos-accept-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -6px rgba(26,110,248,0.7);
}

/* Register: ToS note */
.de-tos-note {
  font-size: 11.5px;
  color: #5a6e8e;
  text-align: center;
  margin: 8px 0 4px;
  line-height: 1.5;
}
.de-tos-btn-link {
  background: none;
  border: none;
  color: #1a6ef8;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.de-tos-btn-link:hover { color: #62d2ff; }

/* ================================================================
   LANDING — interactive animations
================================================================ */

/* @property for animated conic gradient angle */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Reveal stagger on load */
.land-logo-block,
.land-cta,
.land-more-label,
.land-features,
.land-footer {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp .85s cubic-bezier(.22,.9,.28,1) forwards;
}
.land-logo-block { animation-delay: .15s; }
.land-cta        { animation-delay: .55s; }
.land-more-label { animation-delay: .9s; }
.land-features   { animation-delay: 1.05s; }
.land-how-btn    { animation-delay: 1.35s; }
.land-footer     { animation-delay: 1.55s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Brand running shimmer */
.land-brand {
  background: linear-gradient(110deg, #ffffff 0%, #ffffff 35%, #c4dfff 50%, #ffffff 65%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: brandShimmer 5.5s linear infinite, revealUp .85s cubic-bezier(.22,.9,.28,1) backwards;
  filter: drop-shadow(0 0 20px rgba(26,110,248,0.4));
}
.land-brand span {
  background: linear-gradient(110deg, #62d2ff 0%, #1a6ef8 30%, #9ee0ff 50%, #1a6ef8 70%, #6c4dff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShimmer 4s linear infinite;
}
@keyframes brandShimmer {
  0%   { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

/* Tagline word fade */
.land-tagline-word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  animation: wordFade .7s cubic-bezier(.22,.9,.28,1) forwards;
}
@keyframes wordFade {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* CTA buttons: animated conic border on hover */
.land-btn-login,
.land-btn-reg {
  position: relative;
  isolation: isolate;
}
.land-btn-login::after,
.land-btn-reg::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), #62d2ff, #1a6ef8, #6c4dff, #62d2ff);
  z-index: -1;
  opacity: 0;
  transition: opacity .35s;
  animation: rotateAngle 3s linear infinite;
}
.land-btn-login:hover::after,
.land-btn-reg:hover::after { opacity: 1; }
@keyframes rotateAngle { to { --angle: 360deg; } }

/* "Как это работает?" — pulsing aura */
.land-how-btn {
  position: relative;
  opacity: 1 !important;
  transform: none !important;
  animation: howPulse 2.6s ease-in-out infinite;
}
@keyframes howPulse {
  0%, 100% {
    box-shadow:
      0 8px 24px -6px rgba(245,158,11,0.5),
      0 2px 8px -2px rgba(245,158,11,0.35),
      0 0 0 0 rgba(245,158,11,0.45),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
  50% {
    box-shadow:
      0 8px 24px -6px rgba(245,158,11,0.5),
      0 2px 8px -2px rgba(245,158,11,0.35),
      0 0 0 14px rgba(245,158,11,0),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
}

/* Feature cards: 3D tilt prep */
.land-feat-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.land-feat-card .land-feat-icon,
.land-feat-card p {
  transition: transform .25s;
}
.land-feat-card:hover .land-feat-icon { transform: translateZ(20px); }
.land-feat-card:hover p              { transform: translateZ(10px); }

/* Feature icon: glowing ring */
.land-feat-icon {
  position: relative;
}
.land-feat-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid rgba(26,110,248,0.0);
  transition: border-color .3s, box-shadow .3s;
}
.land-feat-card:hover .land-feat-icon::after {
  border-color: rgba(26,110,248,0.6);
  box-shadow: 0 0 22px rgba(26,110,248,0.5);
}

/* Footer links underline */
.land-foot-link {
  position: relative;
}
.land-foot-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #62d2ff, transparent);
  transition: width .35s, left .35s;
}
.land-foot-link:hover::after { width: 100%; left: 0; }

/* Eye pupil cursor tracking — smooth */
.land-eye-svg svg circle.eye-pupil,
.land-eye-svg svg circle.eye-hl1,
.land-eye-svg svg circle.eye-hl2,
.land-eye-svg svg circle.eye-pupil-glow {
  transition: cx .15s ease-out, cy .15s ease-out;
}

/* Domain pill subtle pulse */
.land-domain-pill {
  position: relative;
  overflow: hidden;
}
.land-domain-pill::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(98,210,255,0.12), transparent);
  animation: pillSweep 4.5s linear infinite;
}
@keyframes pillSweep {
  0%, 100% { left: -100%; }
  50%      { left: 100%; }
}

/* "УЗНАТЬ БОЛЬШЕ" lines glow */
.land-more-label::before,
.land-more-label::after {
  background: linear-gradient(90deg, transparent, rgba(26,110,248,0.4));
  animation: lineGlow 3s ease-in-out infinite alternate;
}
@keyframes lineGlow {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}

/* Feature cards reveal stagger inside container */
.land-features .land-feat-card {
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  animation: cardReveal .6s cubic-bezier(.22,.9,.28,1) forwards;
}
.land-features .land-feat-card:nth-child(1) { animation-delay: 1.15s; }
.land-features .land-feat-card:nth-child(2) { animation-delay: 1.25s; }
.land-features .land-feat-card:nth-child(3) { animation-delay: 1.35s; }
.land-features .land-feat-card:nth-child(4) { animation-delay: 1.45s; }
@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Eye logo: slow rotation of outer ring + breathing */
.land-eye-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

/* Subtle grid lines in background */
.land-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120,140,180,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,140,180,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Reduce motion fallback */
@media (prefers-reduced-motion: reduce) {
  .land-logo-block, .land-cta, .land-more-label,
  .land-features, .land-how-btn, .land-footer,
  .land-features .land-feat-card,
  .land-tagline-word, .land-brand, .land-brand span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
.land-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  pointer-events: none;
  transform: scale(0);
  animation: rippleAnim .6s ease-out forwards;
  z-index: 1;
}
@keyframes rippleAnim {
  to { transform: scale(1); opacity: 0; }
}
.land-btn-login, .land-btn-reg, .land-how-btn { overflow: hidden; }

/* ================================================================
   TARIFFS SCREEN
================================================================ */
#screen-tariffs {
  background: #050816;
  min-height: 100vh;
  overflow-y: auto;
  position: relative;
  isolation: isolate;
}
#screen-tariffs .land-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(26,110,248,0.22), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(120,40,200,0.1), transparent 70%);
}
.tar-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 14s ease-in-out infinite;
}
.tar-orb-a {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #1a6ef8, transparent 70%);
  opacity: 0.4;
  top: -60px; left: -80px;
}
.tar-orb-b {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #6c4dff, transparent 70%);
  opacity: 0.3;
  bottom: 20%; right: -100px;
  animation-delay: -7s;
}

.tar-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 18px 32px;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Back button */
.tar-back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(120,140,180,0.15);
  border-radius: 12px;
  padding: 8px 14px 8px 12px;
  color: #c8d4ec;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s;
  margin-bottom: 22px;
}
.tar-back-btn:hover {
  background: rgba(26,110,248,0.1);
  border-color: rgba(26,110,248,0.45);
  color: #fff;
}

/* Header */
.tar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 28px;
}
.tar-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 14px rgba(26,110,248,0.4));
}
.tar-brand {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.tar-brand i {
  font-style: normal;
  background: linear-gradient(135deg, #62d2ff, #1a6ef8 60%, #6c4dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tar-title {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}
.tar-title span {
  background: linear-gradient(135deg, #62d2ff 0%, #1a6ef8 60%, #6c4dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tar-subtitle {
  color: #8fa3c0;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-width: 360px;
}

/* Cards container */
.tar-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

/* Card base */
.tar-card {
  position: relative;
  background: linear-gradient(155deg, rgba(20,30,55,0.85), rgba(15,22,42,0.85));
  border: 1.5px solid rgba(60,90,150,0.4);
  border-radius: 18px;
  padding: 18px 18px 16px;
  overflow: visible;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px -10px rgba(0,0,0,0.6);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26,110,248,0.6);
  box-shadow:
    0 14px 40px -12px rgba(26,110,248,0.4),
    0 8px 28px -10px rgba(0,0,0,0.6);
}

.tar-card-pro {
  border-color: rgba(26,110,248,0.65);
  background: linear-gradient(155deg, rgba(26,68,168,0.32), rgba(15,22,42,0.85));
  box-shadow:
    0 16px 50px -12px rgba(26,110,248,0.45),
    0 8px 28px -10px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(98,210,255,0.1);
}

/* Popular badge */
.tar-popular {
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(135deg, #1a6ef8, #4f8dfb);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 30px;
  box-shadow:
    0 6px 20px -4px rgba(26,110,248,0.7),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

/* Card head */
.tar-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tar-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tar-card-name {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
}
.tar-card-period {
  color: #8fa3c0;
  font-size: 12.5px;
  margin: 0;
  font-weight: 500;
}
.tar-card-icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(26,110,248,0.6);
  border-radius: 10px;
  background: rgba(26,110,248,0.08);
  flex-shrink: 0;
}

/* Prices */
.tar-card-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.tar-price-old {
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.85;
}
.tar-price-new {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 0 18px rgba(26,110,248,0.35);
}

.tar-card-feature {
  color: #8fa3c0;
  font-size: 12.5px;
  margin: 0 0 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Buttons */
.tar-card-btn {
  width: 100%;
  border-radius: 12px;
  padding: 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .25s, background .2s, border-color .2s;
  text-transform: uppercase;
}
.tar-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(26,110,248,0.7);
  color: #62d2ff;
}
.tar-btn-outline:hover {
  background: rgba(26,110,248,0.12);
  border-color: #1a6ef8;
  color: #fff;
  transform: translateY(-1px);
}
.tar-btn-solid {
  background: linear-gradient(135deg, #1a6ef8 0%, #4f8dfb 100%);
  border: none;
  color: #fff;
  box-shadow:
    0 8px 24px -6px rgba(26,110,248,0.55),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.tar-btn-solid:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px -6px rgba(26,110,248,0.75),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.tar-card-btn:active { transform: scale(.97); }

/* Domain pill */
.tar-domain-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(120,140,180,0.12);
  border-radius: 20px;
  padding: 7px 18px;
  color: #4a5f80;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.tar-domain-pill::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(98,210,255,0.15), transparent);
  animation: pillSweep 4.5s linear infinite;
}

/* Reveal stagger for cards */
.tar-back-btn,
.tar-header,
.tar-cards .tar-card,
.tar-domain-pill {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp .75s cubic-bezier(.22,.9,.28,1) forwards;
}
.tar-back-btn  { animation-delay: .1s; }
.tar-header    { animation-delay: .2s; }
.tar-cards .tar-card:nth-child(1) { animation-delay: .35s; }
.tar-cards .tar-card:nth-child(2) { animation-delay: .5s; }
.tar-cards .tar-card:nth-child(3) { animation-delay: .65s; }
.tar-domain-pill { animation-delay: .8s; }

@media (prefers-reduced-motion: reduce) {
  .tar-back-btn, .tar-header, .tar-cards .tar-card, .tar-domain-pill {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ================================================================
   SITE-WIDE POLISH — premium edition v2
================================================================ */

/* === Smooth scrollbar everywhere === */
* { scrollbar-width: thin; scrollbar-color: rgba(26,110,248,0.35) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(26,110,248,0.4), rgba(98,210,255,0.25));
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(98,210,255,0.5); }

/* === Auth screens shared background (login/register/restricted/tg-auth) === */
#screen-login, #screen-register, #screen-restricted, #screen-tg-auth {
  background: #050816;
  min-height: 100vh;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  isolation: isolate;
}
#screen-login::before, #screen-register::before,
#screen-restricted::before, #screen-tg-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(26,110,248,0.22), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(120,40,200,0.1), transparent 70%);
}
#screen-login::after, #screen-register::after,
#screen-restricted::after, #screen-tg-auth::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,110,248,0.5), transparent 70%);
  filter: blur(90px);
  opacity: 0.45;
  top: -80px; left: -100px;
  z-index: 0;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite;
}

/* === Login card — premium glassmorphism === */
.login-card, .login-container {
  position: relative;
  z-index: 2;
  background: linear-gradient(155deg, rgba(20,30,55,0.78), rgba(12,20,38,0.78));
  border: 1px solid rgba(120,140,180,0.18);
  border-radius: 22px;
  padding: 32px 26px 28px;
  max-width: 400px;
  width: calc(100% - 36px);
  margin: 40px auto;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 20px 60px -20px rgba(0,0,0,0.7),
    0 8px 24px -8px rgba(26,110,248,0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
  animation: cardIn .7s cubic-bezier(.22,.9,.28,1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animated border gradient on login card */
.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(26,110,248,0.5), transparent 40%, transparent 60%, rgba(98,210,255,0.35));
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Eye logo inside cards */
.eye-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px rgba(26,110,248,0.6));
  animation: eyePulse 4s ease-in-out infinite;
}
@keyframes eyePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* Login title shimmer */
.login-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
  background: linear-gradient(110deg, #fff 0%, #fff 35%, #c4dfff 50%, #fff 65%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(26,110,248,0.35));
  animation: brandShimmer 5.5s linear infinite;
}
.login-title span {
  background: linear-gradient(110deg, #62d2ff 0%, #1a6ef8 30%, #9ee0ff 50%, #1a6ef8 70%, #6c4dff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShimmer 4s linear infinite;
}
.login-subtitle, .login-sub {
  color: #8fa3c0;
  font-size: 13.5px;
  text-align: center;
  margin: 0 0 22px;
  letter-spacing: 0.2px;
}

/* === Inputs (de-input-group) === */
.de-input-group {
  position: relative;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(120,140,180,0.18);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color .2s, background .2s, box-shadow .25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.de-input-group:focus-within {
  border-color: rgba(26,110,248,0.7);
  background: rgba(26,110,248,0.06);
  box-shadow: 0 0 0 4px rgba(26,110,248,0.12), 0 6px 18px -10px rgba(26,110,248,0.5);
}
.de-input-group .de-input-icon { opacity: 0.7; transition: opacity .2s; }
.de-input-group:focus-within .de-input-icon { opacity: 1; }
.de-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e6edff;
  font-size: 14.5px;
  padding: 14px 12px;
  outline: none;
  font-family: inherit;
}
.de-input-group input::placeholder { color: #5a6e8e; }
.de-input-group .password-toggle {
  background: none; border: none; cursor: pointer; padding: 4px;
  display: flex; align-items: center; opacity: 0.6;
  transition: opacity .2s;
}
.de-input-group .password-toggle:hover { opacity: 1; }

/* Generic input fallback */
.tg-step input[type="tel"],
.tg-step input[type="text"],
.tg-step input[type="password"],
.qr-2fa-section input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(120,140,180,0.18);
  border-radius: 12px;
  padding: 14px 16px;
  color: #e6edff;
  font-size: 14.5px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .25s;
  font-family: inherit;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}
.tg-step input:focus,
.qr-2fa-section input:focus {
  border-color: rgba(26,110,248,0.7);
  background: rgba(26,110,248,0.06);
  box-shadow: 0 0 0 4px rgba(26,110,248,0.12);
}

/* === Buttons === */
.de-login-btn {
  width: 100%;
  background: linear-gradient(135deg, #1a6ef8 0%, #4f8dfb 100%);
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform .15s, box-shadow .25s;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  margin-top: 6px;
  box-shadow:
    0 8px 22px -6px rgba(26,110,248,0.55),
    0 2px 8px -2px rgba(26,110,248,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.de-login-btn::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left .6s;
}
.de-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(26,110,248,0.7);
}
.de-login-btn:hover::before { left: 100%; }
.de-login-btn:active { transform: scale(.98); }

.de-alt-btn {
  width: 100%;
  background: rgba(255,255,255,0.03);
  color: #c8d4ec;
  border: 1.5px solid rgba(120,140,180,0.22);
  border-radius: 13px;
  padding: 13px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: all .2s;
  font-family: inherit;
  backdrop-filter: blur(8px);
}
.de-alt-btn:hover {
  background: rgba(26,110,248,0.08);
  border-color: rgba(26,110,248,0.55);
  color: #fff;
  transform: translateY(-1px);
}

/* TG auth step buttons */
.tg-step button[type="submit"],
.tg-step #btn-switch-to-qr,
.tg-step #btn-switch-to-phone,
.qr-2fa-section button {
  width: 100%;
  background: linear-gradient(135deg, #1a6ef8 0%, #4f8dfb 100%);
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: transform .15s, box-shadow .25s;
  font-family: inherit;
  box-shadow:
    0 8px 22px -6px rgba(26,110,248,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.tg-step #btn-switch-to-qr,
.tg-step #btn-switch-to-phone {
  background: rgba(255,255,255,0.03) !important;
  color: #c8d4ec !important;
  border: 1.5px solid rgba(120,140,180,0.22) !important;
  box-shadow: none !important;
}
.tg-step #btn-switch-to-qr:hover,
.tg-step #btn-switch-to-phone:hover {
  background: rgba(26,110,248,0.08) !important;
  border-color: rgba(26,110,248,0.5) !important;
  color: #fff !important;
}
.tg-step button:hover { transform: translateY(-1px); }
.tg-step button:active { transform: scale(.98); }

/* Divider "или" */
.de-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #4a5f80;
  font-size: 11.5px;
  letter-spacing: 0.8px;
}
.de-divider::before, .de-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,140,180,0.18), transparent);
}
.de-divider span { padding: 0 8px; }

/* "Я забыл пароль" link */
.de-forgot-link {
  display: block;
  text-align: center;
  color: #62d2ff;
  font-size: 12.5px;
  text-decoration: none;
  padding: 6px;
  transition: color .2s;
}
.de-forgot-link:hover { color: #fff; text-decoration: underline; }

/* Error message */
.error-msg {
  color: #ff7a7a;
  font-size: 12.5px;
  text-align: center;
  margin-top: 12px;
  min-height: 16px;
  font-weight: 500;
}

/* Password toggle */
.password-toggle { padding: 4px 8px !important; }

/* === Restricted screen === */
#screen-restricted .login-container { text-align: center; }
#screen-restricted .login-icon {
  margin-bottom: 16px;
  filter: drop-shadow(0 0 18px rgba(229,57,53,0.5));
  animation: eyePulse 3.5s ease-in-out infinite;
}
#screen-restricted h1 {
  background: linear-gradient(135deg, #ff7a7a, #e53935);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}

/* === TG Auth screen === */
#screen-tg-auth h1 {
  text-align: center;
  margin: 0 0 6px;
  background: linear-gradient(135deg, #62d2ff, #1a6ef8, #6c4dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  font-weight: 800;
}
#screen-tg-auth .login-icon {
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(135,116,225,0.5));
  animation: eyePulse 4s ease-in-out infinite;
}

/* QR section */
#tg-qr-container {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(120,140,180,0.15);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  position: relative;
}
#tg-qr-container canvas, #tg-qr-container img {
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.qr-status {
  margin: 8px 0 0 !important;
  font-size: 12.5px;
  color: #8fa3c0 !important;
  text-align: center;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(120,140,180,0.15);
  border-top-color: #1a6ef8;
  border-radius: 50%;
  width: 36px; height: 36px;
  animation: spin .9s linear infinite;
  box-shadow: 0 0 18px rgba(26,110,248,0.25);
}
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Toast === */
.toast, .de-toast {
  background: linear-gradient(155deg, rgba(20,30,55,0.95), rgba(12,20,38,0.95));
  border: 1px solid rgba(98,210,255,0.3);
  border-radius: 14px;
  padding: 14px 18px;
  color: #e6edff;
  box-shadow: 0 12px 38px -10px rgba(26,110,248,0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* === Sidebar polish === */
.sidebar, #sidebar, .app-sidebar {
  background: linear-gradient(180deg, rgba(15,22,42,0.85), rgba(10,15,32,0.85));
  border-right: 1px solid rgba(120,140,180,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.sidebar-profile, .sidebar-brand,
.sidebar-section, .sidebar-action-btn,
.menu-btn {
  transition: background .2s, transform .15s, border-color .2s;
}
.sidebar-action-btn, .menu-btn {
  border-radius: 10px;
}
.sidebar-action-btn:hover, .menu-btn:hover {
  background: rgba(26,110,248,0.1) !important;
  transform: translateX(2px);
}
.sidebar-action-btn.active, .menu-btn.active {
  background: linear-gradient(90deg, rgba(26,110,248,0.18), rgba(26,110,248,0.06)) !important;
  border-left: 2px solid #1a6ef8 !important;
}
.sidebar-brand-name {
  background: linear-gradient(110deg, #fff 0%, #c4dfff 50%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShimmer 6s linear infinite;
}
.sidebar-avatar {
  position: relative;
  box-shadow: 0 0 0 2px rgba(26,110,248,0.25), 0 6px 16px -4px rgba(26,110,248,0.4);
}

/* === Stat cards on dashboard === */
.stat-card, .dash-card {
  background: linear-gradient(155deg, rgba(20,30,55,0.7), rgba(12,20,38,0.7)) !important;
  border: 1px solid rgba(120,140,180,0.15) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px -12px rgba(0,0,0,0.5);
  transition: transform .25s, border-color .25s, box-shadow .3s;
}
.stat-card:hover, .dash-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26,110,248,0.4) !important;
  box-shadow: 0 18px 50px -16px rgba(26,110,248,0.3), 0 10px 32px -12px rgba(0,0,0,0.5);
}

/* === Page header === */
.page-header h1, .page-header h2 {
  background: linear-gradient(110deg, #fff 0%, #c4dfff 50%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShimmer 7s linear infinite;
}

/* === Filter buttons === */
.filter-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(120,140,180,0.15);
  color: #8fa3c0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.filter-btn:hover {
  background: rgba(26,110,248,0.08);
  border-color: rgba(26,110,248,0.4);
  color: #fff;
}
.filter-btn.active {
  background: linear-gradient(135deg, #1a6ef8, #4f8dfb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(26,110,248,0.45);
}

/* === Modal forms (de-modal-form) === */
.de-modal-form {
  background: linear-gradient(155deg, rgba(20,30,55,0.95), rgba(12,20,38,0.95)) !important;
  border: 1px solid rgba(120,140,180,0.18) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.7);
}
.de-modal-form input, .de-modal-form textarea, .de-modal-form select {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(120,140,180,0.18) !important;
  border-radius: 11px !important;
  color: #e6edff !important;
  transition: border-color .2s, background .2s;
}
.de-modal-form input:focus, .de-modal-form textarea:focus {
  border-color: rgba(26,110,248,0.7) !important;
  background: rgba(26,110,248,0.06) !important;
}

/* === No-subscription card === */
.no-sub-card {
  background: linear-gradient(155deg, rgba(245,158,11,0.08), rgba(20,30,55,0.85)) !important;
  border: 1.5px solid rgba(245,158,11,0.35) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px -16px rgba(245,158,11,0.25);
}

/* === Add account method buttons === */
.add-method-btn {
  background: rgba(255,255,255,0.03) !important;
  border: 1.5px solid rgba(120,140,180,0.22) !important;
  border-radius: 16px !important;
  transition: all .25s !important;
  backdrop-filter: blur(10px);
}
.add-method-btn:hover {
  background: rgba(26,110,248,0.08) !important;
  border-color: rgba(26,110,248,0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(26,110,248,0.35);
}

/* === Top users section === */
.top-users-section {
  background: linear-gradient(155deg, rgba(20,30,55,0.6), rgba(12,20,38,0.6)) !important;
  border: 1px solid rgba(120,140,180,0.12) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(12px);
}

/* ================================================================
   ADMIN PANEL POLISH
================================================================ */
body { background: #050816; color: #e6edff; }

.admin-layout {
  position: relative;
}
.admin-sidebar {
  background: linear-gradient(180deg, rgba(15,22,42,0.92), rgba(10,15,32,0.92)) !important;
  border-right: 1px solid rgba(120,140,180,0.08) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.admin-sidebar-header {
  border-bottom: 1px solid rgba(120,140,180,0.08) !important;
}
.admin-nav-btn {
  border-radius: 10px !important;
  margin-bottom: 4px;
  transition: all .2s !important;
}
.admin-nav-btn:hover {
  background: rgba(26,110,248,0.1) !important;
  transform: translateX(2px);
}
.admin-nav-btn.active {
  background: linear-gradient(90deg, rgba(26,110,248,0.22), rgba(26,110,248,0.05)) !important;
  border-left: 2px solid #62d2ff !important;
  color: #fff !important;
}
.admin-content { background: transparent !important; }
.admin-toolbar {
  background: linear-gradient(180deg, rgba(20,30,55,0.5), transparent) !important;
  border-bottom: 1px solid rgba(120,140,180,0.08) !important;
  backdrop-filter: blur(12px);
}
.dash-cards .stat-card, .dash-cards > * {
  background: linear-gradient(155deg, rgba(20,30,55,0.7), rgba(12,20,38,0.7)) !important;
  border: 1px solid rgba(120,140,180,0.15) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s, box-shadow .3s;
}
.dash-cards .stat-card:hover, .dash-cards > *:hover {
  transform: translateY(-3px);
  border-color: rgba(26,110,248,0.4) !important;
  box-shadow: 0 16px 40px -16px rgba(26,110,248,0.3);
}
.btn-create, .btn-save {
  background: linear-gradient(135deg, #1a6ef8, #4f8dfb) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 11px !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  cursor: pointer;
  box-shadow: 0 6px 18px -4px rgba(26,110,248,0.45);
  transition: transform .15s, box-shadow .25s;
}
.btn-create:hover, .btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -4px rgba(26,110,248,0.6);
}
.btn-cancel {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(120,140,180,0.2) !important;
  color: #c8d4ec !important;
  border-radius: 11px !important;
  cursor: pointer;
  transition: all .2s;
}
.btn-cancel:hover {
  background: rgba(255,255,255,0.08) !important;
}
.logout-btn {
  border-radius: 10px !important;
  transition: all .2s !important;
}
.logout-btn:hover {
  background: rgba(255,80,80,0.12) !important;
  color: #ff7a7a !important;
}

/* Admin tables — premium look */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
table th {
  background: rgba(255,255,255,0.03);
  color: #8fa3c0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(120,140,180,0.12);
  text-align: left;
}
table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(120,140,180,0.06);
  color: #e6edff;
  font-size: 13.5px;
}
table tr { transition: background .15s; }
table tbody tr:hover { background: rgba(26,110,248,0.06); }

/* === Smooth screen transitions === */
.screen {
  transition: opacity .3s ease;
}

/* === Selection color === */
::selection {
  background: rgba(26,110,248,0.4);
  color: #fff;
}

/* ================================================================
   END SITE POLISH
================================================================ */

/* ================================================================
   MOBILE PERFORMANCE FIX + GLITCH EFFECT
================================================================ */

/* Reliable particle animation (vh-based) */
@keyframes pRise {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate3d(0, -130vh, 0) scale(0.55); opacity: 0; }
}
.land-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0 4px rgba(255,255,255,0.45);
  pointer-events: none;
  will-change: transform, opacity;
  animation: pRise 22s linear infinite;
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 768px) {
  /* Reduce expensive blurs */
  .land-orb { filter: blur(50px) !important; opacity: 0.35 !important; }
  .land-orb-a { width: 220px !important; height: 220px !important; }
  .land-orb-b { width: 200px !important; height: 200px !important; }

  /* Slow down/disable shimmer to save battery */
  .land-brand,
  .land-brand span {
    animation-duration: 8s !important;
  }

  /* Disable card 3D tilt on mobile */
  .land-feat-card {
    transform: none !important;
  }
  .land-feat-card:hover { transform: translateY(-2px) !important; }
  .land-feat-card:hover .land-feat-icon,
  .land-feat-card:hover p { transform: none !important; }

  /* Disable backdrop-filter — very expensive on mobile */
  .land-btn-reg,
  .land-feat-card,
  .land-domain-pill,
  .login-card,
  .login-container,
  .de-input-group,
  .stat-card, .dash-card,
  .de-modal-form,
  .tar-card,
  .tar-back-btn,
  .tar-domain-pill,
  .add-method-btn,
  .dialog-search,
  .sidebar, #sidebar, .app-sidebar,
  .admin-sidebar,
  .admin-toolbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Stronger card backgrounds since blur is off */
  .login-card, .login-container {
    background: linear-gradient(155deg, rgba(20,30,55,0.95), rgba(12,20,38,0.95)) !important;
  }
  .land-feat-card {
    background: linear-gradient(145deg, rgba(20,30,55,0.65), rgba(12,20,38,0.65)) !important;
  }

  /* Hide grid lines on mobile (extra paint cost) */
  .land-bg::before,
  #screen-tariffs .land-bg::before {
    display: none !important;
  }

  /* Reduce particle count visually — keep only ~half via nth-child */
  .land-particle:nth-child(2n) { display: none; }

  /* Slow down orb float */
  @keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(20px,-15px) scale(1.05); }
  }
}

/* === GLITCH EFFECT on "DeepEye" === */
.land-brand {
  position: relative;
  display: inline-block;
}
.land-brand::before,
.land-brand::after {
  content: "DeepEye";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  pointer-events: none;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: center;
  mix-blend-mode: screen;
}
.land-brand::before {
  color: #ff2da8;
  text-shadow: 0 0 8px rgba(255,45,168,0.7);
  clip-path: inset(100% 0 0 0);
  animation: brandGlitchA 7s infinite linear;
}
.land-brand::after {
  color: #00e8ff;
  text-shadow: 0 0 8px rgba(0,232,255,0.7);
  clip-path: inset(100% 0 0 0);
  animation: brandGlitchB 7s infinite linear;
}
@keyframes brandGlitchA {
  0%, 92%   { clip-path: inset(100% 0 0 0); transform: translate(0,0); opacity: 0; }
  92.5%     { clip-path: inset(0 0 65% 0); transform: translate(-3px, -1px); opacity: 0.85; }
  93%       { clip-path: inset(60% 0 15% 0); transform: translate(3px, 1px); opacity: 0.7; }
  93.5%     { clip-path: inset(20% 0 55% 0); transform: translate(-2px, 0); opacity: 0.85; }
  94%       { clip-path: inset(100% 0 0 0); transform: translate(0,0); opacity: 0; }
  /* second burst */
  98%       { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 1px); opacity: 0.75; }
  98.5%     { clip-path: inset(10% 0 70% 0); transform: translate(2px, -1px); opacity: 0.7; }
  99%       { clip-path: inset(100% 0 0 0); transform: translate(0,0); opacity: 0; }
}
@keyframes brandGlitchB {
  0%, 92.2% { clip-path: inset(100% 0 0 0); transform: translate(0,0); opacity: 0; }
  92.7%     { clip-path: inset(30% 0 45% 0); transform: translate(3px, 1px); opacity: 0.7; }
  93.2%     { clip-path: inset(15% 0 65% 0); transform: translate(-3px, -1px); opacity: 0.7; }
  93.8%     { clip-path: inset(70% 0 10% 0); transform: translate(2px, 0); opacity: 0.8; }
  94%       { clip-path: inset(100% 0 0 0); transform: translate(0,0); opacity: 0; }
  98.2%     { clip-path: inset(20% 0 55% 0); transform: translate(2px, -1px); opacity: 0.7; }
  98.7%     { clip-path: inset(55% 0 20% 0); transform: translate(-2px, 1px); opacity: 0.7; }
  99%       { clip-path: inset(100% 0 0 0); transform: translate(0,0); opacity: 0; }
}

/* During glitch — subtle shake of main element */
.land-brand {
  animation: brandJitter 7s infinite linear;
}
@keyframes brandJitter {
  0%, 92%, 94%, 98%, 99%, 100% { transform: translate(0,0); filter: none; }
  92.5%   { transform: translate(2px, 0); filter: hue-rotate(15deg); }
  93%     { transform: translate(-1px, 1px); }
  93.5%   { transform: translate(1px, -1px); filter: hue-rotate(-10deg); }
  98.2%   { transform: translate(-1px, 0); filter: hue-rotate(20deg); }
  98.7%   { transform: translate(2px, 1px); }
}

/* Disable glitch on reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .land-brand,
  .land-brand::before,
  .land-brand::after {
    animation: none !important;
  }
  .land-brand::before,
  .land-brand::after { display: none; }
}

/* ================================================================
   BUGFIX v2: orange "Как работает?" in register + burger fix
================================================================ */
.de-how-btn {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 13px 14px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s, box-shadow .25s;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 22px -6px rgba(245,158,11,0.55),
    0 2px 8px -2px rgba(245,158,11,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
  animation: howPulseBtn 2.6s ease-in-out infinite;
}
.de-how-btn::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left .6s;
}
.de-how-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px -6px rgba(245,158,11,0.75),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.de-how-btn:hover::before { left: 100%; }
.de-how-btn:active { transform: scale(.98); }
@keyframes howPulseBtn {
  0%, 100% { box-shadow: 0 8px 22px -6px rgba(245,158,11,0.55), 0 0 0 0 rgba(245,158,11,0.4), inset 0 1px 0 rgba(255,255,255,0.25); }
  50%      { box-shadow: 0 8px 22px -6px rgba(245,158,11,0.55), 0 0 0 12px rgba(245,158,11,0), inset 0 1px 0 rgba(255,255,255,0.25); }
}

/* Burger fix: keep mobile topbar above no-sub overlay */
.mobile-topbar { position: relative !important; z-index: 200 !important; }
@media (max-width: 900px) {
  #no-sub-overlay { z-index: 90 !important; }
  .mobile-topbar { z-index: 250 !important; }
}

/* ================================================================
   ORANGE SIDEBAR ITEMS + PROMO
================================================================ */
.sidebar-sep {
  height: 1px;
  margin: 14px 16px 10px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.35), transparent);
}

.menu-btn-orange {
  color: #fbbf24 !important;
  position: relative;
}
.menu-btn-orange svg {
  color: #fbbf24;
  stroke: currentColor;
}
.menu-btn-orange svg path[fill="currentColor"] { fill: #fbbf24; }
.menu-btn-orange:hover {
  background: linear-gradient(90deg, rgba(245,158,11,0.18), rgba(245,158,11,0.04)) !important;
  color: #fff !important;
  transform: translateX(2px) !important;
}
.menu-btn-orange:hover svg { color: #fff; }
.menu-btn-orange:hover svg path[fill="currentColor"] { fill: #fff; }
.menu-btn-orange::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.12), transparent);
  animation: orangeSweep 5s linear infinite;
  pointer-events: none;
}
@keyframes orangeSweep {
  0%, 100% { left: -100%; }
  50%      { left: 100%; }
}

/* Promo plate */
.sidebar-promo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  margin: 6px 12px;
  background: linear-gradient(135deg, rgba(245,158,11,0.16), rgba(245,158,11,0.04));
  border: 1px solid rgba(245,158,11,0.38);
  border-radius: 12px;
  color: #ffe2a0;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.35;
  position: relative;
  overflow: hidden;
  transition: background .25s, border-color .25s, transform .15s;
  box-shadow: 0 6px 18px -8px rgba(245,158,11,0.45);
}
.sidebar-promo::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,200,120,0.22), transparent);
  animation: promoSweep 4s linear infinite;
  pointer-events: none;
}
@keyframes promoSweep {
  0%   { left: -100%; }
  100% { left: 200%; }
}
.sidebar-promo:hover {
  background: linear-gradient(135deg, rgba(245,158,11,0.28), rgba(245,158,11,0.1));
  border-color: rgba(245,158,11,0.6);
  transform: translateX(2px);
}
.sidebar-promo-fire {
  font-size: 18px;
  display: inline-block;
  flex-shrink: 0;
  animation: fireFlicker 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(245,158,11,0.9)) drop-shadow(0 0 12px rgba(255,80,0,0.4));
  transform-origin: center bottom;
}
@keyframes fireFlicker {
  0%, 100% { transform: scale(1) rotate(-2deg); opacity: 0.95; }
  25%      { transform: scale(1.12) rotate(3deg); opacity: 1; }
  40%      { transform: scale(0.95) rotate(-3deg); opacity: 0.85; }
  60%      { transform: scale(1.08) rotate(2deg); opacity: 1; }
  80%      { transform: scale(1.02) rotate(-1deg); opacity: 0.9; }
}
.sidebar-promo-text {
  flex: 1;
}

/* Hide logout — users must contact admin */
#btn-logout { display: none !important; }
