*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
.icon i, .ci-icon i, .nav-icon i, .stat-icon i { color: var(--gold); width: 24px; height: 24px; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; }





:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #222222;
  --gold: #c9a84c;
  --gold-light: #e2c97e;
  --gold-dark: #a88a30;
  --white: #f5f5f5;
  --gray: #888888;
  --gray-light: #cccccc;
  --danger: #e74c3c;
  --success: #2ecc71;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,.45);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}











html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select {
  font-family: inherit; font-size: inherit; outline: none; border: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,.15);
  padding: 0 24px;
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(10,10,10,.98); box-shadow: 0 4px 24px rgba(0,0,0,.5); }

.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 1px;
}
.nav-logo .logo-img {
  width: 42px; height: 42px;
  border-radius: 10px; object-fit: cover;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: .9rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .5px; color: var(--gray-light);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-auth { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 8px;
  font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: var(--transition);
  text-transform: uppercase; letter-spacing: .5px;
}
.btn-outline {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black); border: none;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.3);
}

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .85; }

.btn-sm { padding: 6px 16px; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }

.nav-tg {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold) !important; font-weight: 600;
}
.nav-tg i { width: 16px; height: 16px; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.burger span { width: 24px; height: 2px; background: var(--gold); transition: var(--transition); border-radius: 2px; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,.08) 0%, transparent 60%),
              var(--black);
  padding: 100px 24px 60px;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r=".5" fill="rgba(201,168,76,.07)"/></pattern></defs><rect width="100" height="100" fill="url(%23g)"/></svg>');
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 50px;
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.3);
  color: var(--gold); font-size: .85rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px;
}
.hero h1 .gold { color: var(--gold); }
.hero p {
  font-size: 1.15rem; color: var(--gray); max-width: 600px;
  margin: 0 auto 36px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-shape {
  position: absolute; border-radius: 50%; opacity: .06;
  background: var(--gold); filter: blur(60px);
}
.hero-shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.hero-shape-2 { width: 300px; height: 300px; bottom: -50px; left: -80px; }

section { padding: 100px 0; }

.section-header {
  text-align: center; margin-bottom: 64px;
}
.section-header .tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.2);
  color: var(--gold); font-size: .8rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; margin-bottom: 16px;
}
.section-header p { color: var(--gray); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

#about { background: var(--black); }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.about-card {
  background: var(--dark-2); border: 1px solid rgba(201,168,76,.1);
  border-radius: var(--radius); padding: 36px 28px;
  transition: var(--transition); text-align: center;
}
.about-card:hover {
  transform: translateY(-6px); border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(201,168,76,.1);
}
.about-card .icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,168,76,.15), rgba(201,168,76,.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 20px;
}
.about-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.about-card p { color: var(--gray); font-size: .95rem; }

#how-we-work { background: var(--black); }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; counter-reset: step;
}
.step {
  position: relative; padding: 36px 28px; text-align: center;
  background: var(--dark-2); border: 1px solid rgba(201,168,76,.08);
  border-radius: var(--radius); counter-increment: step;
  transition: var(--transition);
}
.step:hover { border-color: var(--gold); transform: translateY(-4px); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: 2.5rem; font-weight: 800;
  color: var(--gold); opacity: .3; margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--gray); font-size: .9rem; }

@media (min-width: 992px) {
  .steps .step.step-04 { grid-column: 2; }
}

@media (min-width: 992px) {
  .calc-grid { grid-template-columns: repeat(3, 320px); justify-content: center; }
  .calc-card.rig-card { grid-column: 1; grid-row: 1; justify-self: center; }
  .calc-card.mark-card { grid-column: 2; grid-row: 1; justify-self: center; }
  .calc-card.lbz-card { grid-column: 3; grid-row: 1; justify-self: center; }
  .calc-card.wn8-card { grid-column: 2; grid-row: 2; justify-self: center; }
  .calc-card { min-height: 560px; }

  .calc-card.lbz-card { min-width: 320px; max-width: 420px; }
}

#calculator { background: var(--black); }
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 24px;
  justify-content: center;
}
.calc-card {
  background: var(--dark-2); border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--radius); padding: 32px 24px;
  display: flex; flex-direction: column;
}
.calc-card h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--white);
}
.calc-card .calc-result { margin-top: auto; }
.calc-card .mt-16 { margin-top: 16px; }
.calc-wrapper {
  max-width: 680px; margin: 0 auto;
  background: var(--dark-2); border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--radius); padding: 48px 40px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; margin-bottom: 8px; font-weight: 600; font-size: .9rem;
  color: var(--gray-light);
}
.form-control {
  width: 100%; padding: 14px 18px; border-radius: 8px;
  background: var(--dark-3); border: 1px solid rgba(201,168,76,.15);
  color: var(--white); font-size: .95rem; transition: var(--transition);
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
.form-control::placeholder { color: var(--gray); }
input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"].form-control { appearance: textfield; -moz-appearance: textfield; }

select.form-control { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
option { background: var(--dark-2); }

.calc-result {
  text-align: center; padding: 24px; margin-top: 8px;
  background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius);
}
.calc-result .price {
  font-size: 2.2rem; font-weight: 800; color: var(--gold);
}
.calc-result .price-label { font-size: .85rem; color: var(--gray); margin-bottom: 4px; }

.footer {
  background: var(--dark); border-top: 1px solid rgba(201,168,76,.1);
  padding: 40px 0; text-align: center;
}
.footer p { color: var(--gray); font-size: .85rem; }
.footer .gold { color: var(--gold); font-weight: 600; }

.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 40px;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,.06) 0%, transparent 60%), var(--black);
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--dark-2); border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--radius); padding: 48px 40px;
}
.auth-card h2 { text-align: center; font-size: 1.8rem; margin-bottom: 8px; }
.auth-card .subtitle {
  text-align: center; color: var(--gray); margin-bottom: 32px; font-size: .95rem;
}
.auth-card .form-group { margin-bottom: 20px; }
.auth-card .auth-footer {
  text-align: center; margin-top: 24px; font-size: .9rem; color: var(--gray);
}
.auth-card .auth-footer a { color: var(--gold); font-weight: 600; }
.auth-card .auth-footer a:hover { text-decoration: underline; }

.alert {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 20px;
  font-size: .9rem; display: none;
}
.alert-error { background: rgba(231,76,60,.15); border: 1px solid rgba(231,76,60,.3); color: #e74c3c; }
.alert-success { background: rgba(46,204,113,.15); border: 1px solid rgba(46,204,113,.3); color: #2ecc71; }

.dashboard {
  min-height: 100vh; padding-top: 72px;
  background: var(--black);
}
.dash-container { display: flex; min-height: calc(100vh - 72px); }

.dash-sidebar {
  width: 260px; background: var(--dark);
  border-right: 1px solid rgba(201,168,76,.1);
  padding: 32px 0; flex-shrink: 0;
}
.dash-sidebar .user-info {
  text-align: center; padding: 0 20px 24px;
  border-bottom: 1px solid rgba(201,168,76,.08);
  margin-bottom: 16px;
}
.dash-sidebar .user-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: var(--black);
  margin: 0 auto 12px;
}
.dash-sidebar .user-info h4 { font-size: 1rem; margin-bottom: 4px; }
.dash-sidebar .user-info p { color: var(--gray); font-size: .8rem; }

.dash-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; font-size: .9rem; font-weight: 500;
  color: var(--gray-light); transition: var(--transition);
}
.dash-nav a:hover, .dash-nav a.active {
  background: rgba(201,168,76,.08); color: var(--gold);
  border-right: 3px solid var(--gold);
}
.dash-nav a .nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }

.dash-main { flex: 1; padding: 32px; overflow-y: auto; }
.mobile-sidebar-toggle { display: none; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
}
.sidebar-overlay:not(.hidden) { display: block; }
.dash-main h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.dash-main .subtitle { color: var(--gray); margin-bottom: 32px; }

.dash-section { display: none; }
.dash-section.active { display: block; }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-bottom: 32px;
}
.stat-card {
  background: var(--dark-2); border: 1px solid rgba(201,168,76,.1);
  border-radius: var(--radius); padding: 24px;
}
.stat-card .stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(201,168,76,.1); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 16px;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.stat-card .stat-label { font-size: .8rem; color: var(--gray); margin-top: 4px; }

.table-wrapper {
  overflow-x: auto; background: var(--dark-2);
  border: 1px solid rgba(201,168,76,.1);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 18px; text-align: left; font-size: .9rem; }
th {
  background: rgba(201,168,76,.06); color: var(--gold);
  font-weight: 600; text-transform: uppercase; font-size: .8rem;
  letter-spacing: .5px;
}
tr { border-bottom: 1px solid rgba(255,255,255,.04); }
tr:hover { background: rgba(201,168,76,.03); }
td { color: var(--gray-light); }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
}
.badge-new { background: rgba(52,152,219,.2); color: #3498db; }
.badge-progress { background: rgba(241,196,15,.2); color: #f1c40f; }
.badge-done { background: rgba(46,204,113,.2); color: #2ecc71; }
.badge-unpaid { background: rgba(231,76,60,.18); color: #ff6b5e; }
.badge-cancelled { background: rgba(231,76,60,.18); color: #ff6b5e; }
.badge-admin { background: rgba(201,168,76,.2); color: var(--gold); }
.badge-user { background: rgba(136,136,136,.2); color: var(--gray); }

@media (max-width: 992px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; width: 100%;
    background: rgba(10,10,10,.97); padding: 24px; gap: 20px;
    border-bottom: 1px solid rgba(201,168,76,.15);
  }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .dash-container { flex-direction: column; }
  .dash-sidebar {
    width: 100%; position: fixed; top: 72px; left: 0; z-index: 999;
    height: calc(100vh - 72px); transform: translateX(-100%);
    transition: transform .3s ease; overflow-y: auto;
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { padding: 24px 16px; min-height: calc(100vh - 72px); }
  .mobile-sidebar-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; background: var(--dark-2);
    border-bottom: 1px solid rgba(201,168,76,.1);
    color: var(--gold); font-weight: 600; font-size: .9rem;
    cursor: pointer;
  }
  .mobile-sidebar-toggle i { width: 20px; height: 20px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .hero { padding: 90px 20px 50px; min-height: auto; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; margin-bottom: 28px; }
  .hero-badge { font-size: .75rem; padding: 6px 16px; }
  .calc-grid { grid-template-columns: 1fr; gap: 16px; }
  .calc-card { padding: 24px 20px; }
  .calc-card h3 { font-size: 1rem; margin-bottom: 16px; }
  .calc-result .price { font-size: 1.6rem; }
  .calc-result { padding: 16px; }
  .calc-wrapper { padding: 28px 20px; }
  .auth-page { padding: 90px 16px 32px; }
  .auth-card { padding: 32px 20px; }
  .auth-card h2 { font-size: 1.5rem; }
  .dash-main { padding: 20px 14px; }
  .dash-main h1 { font-size: 1.4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 18px 14px; }
  .stat-card .stat-value { font-size: 1.4rem; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-card { padding: 28px 20px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 28px 20px; }
  .step::before { font-size: 2rem; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: .9rem; }
  th, td { padding: 10px 12px; font-size: .8rem; }
  .table-wrapper { border-radius: 8px; }
  .footer { padding: 28px 0; }
  .nav-logo span { display: none; }
  .chat-window { width: calc(100vw - 32px); right: 0; height: auto; max-height: calc(100vh - 160px); border-radius: 12px; }
  .admin-chat-container { flex-direction: column; height: auto; }
  .admin-chat-list { width: 100%; max-height: 200px; border-right: none; border-bottom: 1px solid rgba(201,168,76,.1); }
  .form-group { margin-bottom: 18px; }
  .form-control { padding: 12px 14px; font-size: .9rem; }
  .btn { padding: 10px 20px; font-size: .85rem; }
  .btn-sm { padding: 6px 14px; font-size: .78rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: .9rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .nav-auth { gap: 8px; }
  .nav-auth .btn { padding: 6px 12px; font-size: .75rem; }
  .nav-auth .btn span { display: none; }
  .nav-logo span { font-size: 1.2rem; }
  .nav-logo .logo-img { width: 36px; height: 36px; }
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  .section-header h2 { font-size: 1.3rem; }
  .calc-card { padding: 20px 16px; }
  .calc-result .price { font-size: 1.3rem; }
  .auth-card { padding: 28px 16px; max-width: 100%; }
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-toggle { width: 48px; height: 48px; }
  .chat-toggle i { width: 22px; height: 22px; }
  .chat-window { bottom: 64px; right: 0; width: calc(100vw - 32px); height: auto; max-height: calc(100vh - 150px); border-radius: 12px; }
  .admin-chat-container { height: auto; }
  .dash-main h1 { font-size: 1.2rem; }
  .stat-card .stat-value { font-size: 1.2rem; }
  .about-card { padding: 24px 16px; }
  .about-card h3 { font-size: 1.05rem; }
  .about-card p { font-size: .88rem; }
  .step { padding: 24px 16px; }
  .step::before { font-size: 1.6rem; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: .85rem; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeInUp .6s ease forwards; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
.animate-delay-4 { animation-delay: .4s; }

[data-animate] { opacity: 0; transform: translateY(30px); transition: all .6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }
 */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.modal {
  width: min(640px, 100%);
  background: var(--dark);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 16px;
  box-shadow: 0 18px 70px rgba(0,0,0,.75);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--dark-2);
  border-bottom: 1px solid rgba(201,168,76,.12);
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  color: var(--gray);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
}
.modal-close:hover { color: var(--white); }

.modal-body { padding: 18px 20px 8px; }

.modal-hint {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.18);
  color: var(--gray-light);
  line-height: 1.6;
}
.modal-hint strong { color: var(--gold); }

.modal-summary {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.modal-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.modal-summary-label { color: var(--gray); font-size: .85rem; }
.modal-summary-value { color: var(--white); font-weight: 600; }

.modal-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(231,76,60,.12);
  border: 1px solid rgba(231,76,60,.35);
  color: #ffb3ab;
  font-size: .9rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 14px 20px 18px;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
}

@media (max-width: 520px) {
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; justify-content: center; }
}

.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }

.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(201,168,76,.4);
  transition: var(--transition); position: relative;
}
.chat-toggle:hover { transform: scale(1.1); }
.chat-toggle i { color: var(--black); width: 26px; height: 26px; }

.chat-badge {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff;
  font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.chat-window {
  position: absolute; bottom: 72px; right: 0;
  width: 370px; height: 500px;
  background: var(--dark); border: 1px solid rgba(201,168,76,.15);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
}

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: var(--dark-2); border-bottom: 1px solid rgba(201,168,76,.1);
}
.chat-header-info { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; }
.chat-header-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.chat-close {
  background: none; color: var(--gray); font-size: 1.4rem;
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.chat-close:hover { color: var(--white); }

.chat-email-form {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center;
}
.chat-email-icon { margin-bottom: 16px; }
.chat-email-icon i { color: var(--gold); width: 48px; height: 48px; }
.chat-email-form h3 { font-size: 1.2rem; margin-bottom: 8px; }
.chat-email-form p { color: var(--gray); font-size: .85rem; margin-bottom: 20px; }
.chat-email-form .form-control { text-align: center; }

.chat-body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0;
}

.chat-msg {
  max-width: 80%; padding: 10px 14px;
  border-radius: 12px; font-size: .88rem; line-height: 1.5;
  animation: fadeInUp .3s ease;
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black); border-bottom-right-radius: 4px;
}
.chat-msg.admin {
  align-self: flex-start;
  background: var(--dark-3); color: var(--white);
  border-bottom-left-radius: 4px;
}
.chat-msg .chat-time {
  font-size: .7rem; opacity: .6; margin-top: 4px;
  display: block;
}

.chat-input {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid rgba(201,168,76,.1);
  background: var(--dark-2);
}
.chat-input .form-control {
  flex: 1; padding: 10px 14px; font-size: .88rem;
}
.chat-send-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.chat-send-btn i { color: var(--black); width: 18px; height: 18px; }
.chat-send-btn:hover { transform: scale(1.05); }

.admin-chat-container {
  display: flex; height: 500px;
  border: 1px solid rgba(201,168,76,.1);
  border-radius: var(--radius); overflow: hidden;
}
.admin-chat-list {
  width: 280px; background: var(--dark-2);
  border-right: 1px solid rgba(201,168,76,.1);
  display: flex; flex-direction: column; flex-shrink: 0;
}
.admin-chat-list-header {
  padding: 16px; font-weight: 700; font-size: .9rem;
  border-bottom: 1px solid rgba(201,168,76,.1);
  color: var(--gold);
}
.admin-chat-items { flex: 1; overflow-y: auto; }

.admin-chat-item {
  padding: 14px 16px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: var(--transition);
}
.admin-chat-item:hover { background: rgba(201,168,76,.05); }
.admin-chat-item.active { background: rgba(201,168,76,.1); border-left: 3px solid var(--gold); }
.admin-chat-item .aci-email { font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.admin-chat-item .aci-last { color: var(--gray); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-chat-window {
  flex: 1; display: flex; flex-direction: column; background: var(--dark-3);
}
.admin-chat-header {
  padding: 16px 20px; font-weight: 600; font-size: .9rem;
  border-bottom: 1px solid rgba(201,168,76,.1);
  background: var(--dark-2);
}
.admin-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.admin-chat-input {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid rgba(201,168,76,.1);
  background: var(--dark-2);
}
.admin-chat-input .form-control { flex: 1; }
