/* ================================================================
   OPISOMAT — Apple-style Dark Glassmorphism
   ================================================================ */

:root{
  --bg:#0a0a0f;
  --glass-bg:rgba(255,255,255,0.05);
  --glass-bg-hover:rgba(255,255,255,0.08);
  --glass-border:rgba(255,255,255,0.10);
  --glass-border-hover:rgba(255,255,255,0.18);
  --glass-radius:16px;
  --glass-radius-sm:12px;
  --blur:blur(20px);
  --accent:#6366f1;
  --accent-end:#8b5cf6;
  --accent-glow:rgba(99,102,241,0.35);
  --text:#e0e0e0;
  --text-dim:#777;
  --text-muted:#555;
  --green:#66bb6a;
  --red:#ef5350;
  --orange:#ffa726;
  --blue:#90caf9;
}

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

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  line-height:1.6;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Background mesh */
body::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(ellipse 600px 400px at 20% 20%, rgba(99,102,241,0.08), transparent),
    radial-gradient(ellipse 500px 500px at 80% 60%, rgba(139,92,246,0.06), transparent),
    radial-gradient(ellipse 400px 300px at 50% 90%, rgba(99,102,241,0.04), transparent);
}

.container{
  width:100%;
  max-width:860px;
  margin:0 auto;
  padding:2rem 1rem;
}

h1{font-size:1.8rem;color:#fff;margin-bottom:.2rem;font-weight:700}
h2{font-size:1.3rem;margin-top:2rem;margin-bottom:.8rem;color:#fff;font-weight:600}

.subtitle{color:var(--text-muted);margin-bottom:1.5rem;font-size:.85rem}

/* ================================================================
   NAVBAR
   ================================================================ */

.navbar{
  background:rgba(10,10,15,0.7);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border-bottom:1px solid var(--glass-border);
  padding:.6rem 1rem;
  position:sticky;
  top:0;
  z-index:100;
}

.nav-inner{
  max-width:860px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.nav-brand{
  background:linear-gradient(135deg,var(--accent),var(--accent-end));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  text-decoration:none;
  font-weight:700;
  font-size:1.1rem;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:1.2rem;
}

.nav-links a{
  color:var(--text-dim);
  text-decoration:none;
  font-size:.85rem;
  transition:color .2s;
}
.nav-links a:hover{color:#fff}

.nav-tokens{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  color:var(--orange);
  padding:.2rem .6rem;
  border-radius:20px;
  font-size:.8rem;
  font-weight:600;
}

.nav-logout{color:var(--red) !important}
.nav-logout:hover{color:#ff6b6b !important}

/* ================================================================
   FLASH MESSAGES
   ================================================================ */

.flash{
  padding:.6rem 1rem;
  border-radius:var(--glass-radius-sm);
  margin-bottom:1rem;
  font-size:.85rem;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.flash-success{background:rgba(102,187,106,0.1);border:1px solid rgba(102,187,106,0.25);color:var(--green)}
.flash-danger{background:rgba(239,83,80,0.1);border:1px solid rgba(239,83,80,0.25);color:#ef9a9a}
.flash-warning{background:rgba(255,167,38,0.1);border:1px solid rgba(255,167,38,0.25);color:#ffb74d}

/* ================================================================
   LANDING PAGE
   ================================================================ */

.landing-body{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

.landing-nav{
  background:rgba(10,10,15,0.7);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border-bottom:1px solid var(--glass-border);
  padding:.8rem 1.5rem;
}

.landing-nav .nav-inner{
  max-width:960px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.btn-nav{
  color:var(--text-dim);
  text-decoration:none;
  font-size:.85rem;
  padding:.35rem .8rem;
  border-radius:8px;
  transition:all .2s;
}
.btn-nav:hover{color:#fff}
.btn-nav-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent-end));
  color:#fff !important;
}
.btn-nav-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 15px var(--accent-glow);
}

.hero{
  text-align:center;
  padding:5rem 1.5rem 4rem;
  position:relative;
}
.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:url('/static/hero-bg.png') center/cover no-repeat;
  opacity:0.15;
  z-index:-1;
}
.hero h1{
  font-size:2.4rem;
  color:#fff;
  margin-bottom:.8rem;
  line-height:1.2;
}
.hero-sub{
  color:var(--text-dim);
  font-size:1rem;
  max-width:520px;
  margin:0 auto 2rem;
  line-height:1.6;
}
.btn-hero{
  display:inline-block;
  background:linear-gradient(135deg,var(--accent),var(--accent-end));
  color:#fff;
  text-decoration:none;
  padding:.8rem 2rem;
  border-radius:var(--glass-radius-sm);
  font-size:1rem;
  font-weight:600;
  transition:all .2s;
}
.btn-hero:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 20px var(--accent-glow);
}
.hero-note{
  color:var(--text-muted);
  font-size:.8rem;
  margin-top:.8rem;
}

/* Features section */
.features{
  max-width:900px;
  margin:0 auto;
  padding:3rem 1.5rem;
}
.feature-row{
  display:flex;
  align-items:center;
  gap:3rem;
  margin-bottom:3rem;
}
.feature-row-reverse{
  flex-direction:row-reverse;
}
.feature-text{
  flex:1;
}
.feature-text h2{
  margin-top:0;
  margin-bottom:.6rem;
  font-size:1.4rem;
  background:linear-gradient(135deg,#fff,#ccc);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.feature-text p{
  color:var(--text-dim);
  font-size:.92rem;
  line-height:1.7;
}
.feature-img{
  flex:1;
}
.feature-img img{
  width:100%;
  border-radius:var(--glass-radius);
  border:1px solid var(--glass-border);
  box-shadow:0 8px 32px rgba(0,0,0,0.3);
}

.how-it-works{
  max-width:800px;
  margin:0 auto;
  padding:3rem 1.5rem;
}
.how-it-works h2{
  text-align:center;
  margin-bottom:2rem;
}

.steps-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.5rem;
}

.step-item{
  background:var(--glass-bg);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius);
  padding:1.5rem;
  text-align:center;
  transition:all .3s;
}
.step-item:hover{
  border-color:var(--glass-border-hover);
  box-shadow:0 4px 20px rgba(99,102,241,0.1);
}
.step-num{
  width:40px;height:40px;
  background:linear-gradient(135deg,var(--accent),var(--accent-end));
  color:#fff;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:1.1rem;
  margin-bottom:.8rem;
}
.step-item h3{
  color:#ddd;
  font-size:1rem;
  margin-bottom:.5rem;
}
.step-item p{
  color:var(--text-dim);
  font-size:.82rem;
  line-height:1.5;
}

.cta-section{
  text-align:center;
  padding:3rem 1.5rem;
  border-top:1px solid var(--glass-border);
}
.cta-section h2{margin-bottom:.5rem}
.cta-section p{color:var(--text-dim);margin-bottom:1.5rem}

.landing-footer{
  text-align:center;
  padding:2rem;
  color:var(--text-muted);
  font-size:.78rem;
  border-top:1px solid var(--glass-border);
  margin-top:auto;
}

/* ================================================================
   AUTH FORMS
   ================================================================ */

.auth-wrap{
  max-width:400px;
  margin:3rem auto 0;
}
.auth-wrap h1{
  text-align:center;
  margin-bottom:1.5rem;
}

.auth-form label{
  display:block;
  margin-top:1rem;
  margin-bottom:.3rem;
  font-size:.82rem;
  color:var(--text-dim);
}

.auth-form input{
  width:100%;
  padding:.55rem .7rem;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius-sm);
  color:var(--text);
  font-size:.92rem;
  font-family:inherit;
  outline:none;
  transition:all .2s;
}
.auth-form input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-glow);
}

.auth-form button{
  display:block;
  width:100%;
  margin-top:1.5rem;
  padding:.7rem;
  background:linear-gradient(135deg,var(--accent),var(--accent-end));
  color:#fff;
  border:none;
  border-radius:var(--glass-radius-sm);
  font-size:.95rem;
  font-family:inherit;
  cursor:pointer;
  transition:all .2s;
}
.auth-form button:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 15px var(--accent-glow);
}

.auth-alt{
  text-align:center;
  margin-top:1rem;
  font-size:.82rem;
  color:var(--text-muted);
}
.auth-alt a{color:var(--accent);text-decoration:none}
.auth-alt a:hover{text-decoration:underline}

/* ================================================================
   DASHBOARD
   ================================================================ */

.stats-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1rem;
  margin-top:1.5rem;
}

.stat-card{
  background:var(--glass-bg);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius);
  padding:1.2rem;
  text-align:center;
  transition:all .3s;
}
.stat-card:hover{
  border-color:var(--glass-border-hover);
  box-shadow:0 4px 20px rgba(99,102,241,0.08);
}
.stat-value{
  font-size:2rem;
  font-weight:700;
  color:#fff;
}
.stat-label{
  font-size:.78rem;
  color:#666;
  margin-top:.2rem;
  text-transform:uppercase;
  letter-spacing:.5px;
}

/* ================================================================
   BATCH LIST
   ================================================================ */

.batch-list{
  margin-top:1rem;
}

.batch-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.7rem .8rem;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius-sm);
  margin-bottom:.5rem;
  text-decoration:none;
  color:var(--text);
  transition:all .2s;
}
.batch-row:hover{
  border-color:var(--glass-border-hover);
  background:var(--glass-bg-hover);
}

.batch-row-left{
  display:flex;
  align-items:center;
  gap:.6rem;
}
.batch-row-right{
  display:flex;
  align-items:center;
  gap:1rem;
  font-size:.82rem;
}

.batch-id{
  color:#fff;
  font-weight:600;
  font-size:.9rem;
}
.batch-meta{
  color:#666;
  font-size:.78rem;
}
.batch-progress{
  color:#aaa;
  font-weight:500;
}
.batch-date{
  color:var(--text-muted);
  font-size:.75rem;
}

/* ================================================================
   STATUS BADGES
   ================================================================ */

.badge{
  display:inline-block;
  padding:2px 10px;
  border-radius:20px;
  font-size:.72rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.3px;
  border:1px solid transparent;
}
.badge-pending{background:rgba(136,136,136,0.1);border-color:rgba(136,136,136,0.25);color:#888}
.badge-claimed{background:rgba(176,190,197,0.1);border-color:rgba(176,190,197,0.25);color:#b0bec5}
.badge-running{background:rgba(99,102,241,0.1);border-color:rgba(99,102,241,0.25);color:var(--blue)}
.badge-done{background:rgba(102,187,106,0.1);border-color:rgba(102,187,106,0.25);color:var(--green)}
.badge-error{background:rgba(239,83,80,0.1);border-color:rgba(239,83,80,0.25);color:var(--red)}

/* ================================================================
   BATCH DETAIL — ITEMS
   ================================================================ */

.batch-items{
  margin-top:1.5rem;
}

.batch-item{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius-sm);
  margin-bottom:.5rem;
  overflow:hidden;
  transition:border-color .2s;
}
.batch-item:hover{
  border-color:var(--glass-border-hover);
}

.item-header{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.6rem .8rem;
  cursor:pointer;
  transition:background .2s;
}
.item-header:hover{background:var(--glass-bg-hover)}

.item-pos{
  color:var(--text-muted);
  font-size:.82rem;
  min-width:2rem;
}
.item-ean{
  color:#ddd;
  font-size:.85rem;
}
.item-expand{
  margin-left:auto;
  color:#444;
  font-size:.7rem;
  transition:transform .2s;
}

.item-detail{
  padding:0 .8rem .8rem;
  border-top:1px solid var(--glass-border);
}

/* ================================================================
   EAN COUNTER (new batch form)
   ================================================================ */

.ean-counter{
  margin-top:1rem;
  padding:.5rem .8rem;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius-sm);
  font-size:.82rem;
  color:#aaa;
}
.ean-counter.over-budget{
  border-color:rgba(239,83,80,0.4);
  color:#ef9a9a;
}

/* ================================================================
   ORIGINAL FORM STYLES (kept for compatibility)
   ================================================================ */

label{display:block;margin-top:1rem;margin-bottom:.3rem;font-size:.82rem;color:var(--text-dim)}
.req{color:#e57373}

input[type="text"],textarea,select{
  width:100%;
  padding:.55rem .7rem;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius-sm);
  color:var(--text);
  font-size:.92rem;
  font-family:inherit;
  outline:none;
  transition:all .2s;
}
input:focus,textarea:focus,select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-glow);
}
textarea{resize:vertical}

.row{display:flex;gap:1rem;margin-top:.5rem}
.row .field{flex:1}

button[type="submit"],.btn-new{
  display:block;width:100%;margin-top:1.5rem;padding:.7rem;
  background:linear-gradient(135deg,var(--accent),var(--accent-end));
  color:#fff;border:none;border-radius:var(--glass-radius-sm);
  font-size:.95rem;font-family:inherit;cursor:pointer;
  text-align:center;text-decoration:none;
  transition:all .2s;
}
button[type="submit"]:hover,.btn-new:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 15px var(--accent-glow);
}

/* ---- Progress ---- */

.progress-bar-wrap{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:10px;
  overflow:hidden;
  height:20px;
  margin-top:1rem;
}
.progress-bar{
  height:100%;width:0;
  background:linear-gradient(135deg,var(--accent),var(--accent-end));
  transition:width .4s ease;
  border-radius:10px;
}
#progress-text{margin-top:.4rem;font-size:.85rem;color:#666}

/* ---- Error ---- */

#error-box{
  margin-top:1.5rem;padding:.8rem 1rem;
  background:rgba(239,83,80,0.1);border:1px solid rgba(239,83,80,0.25);border-radius:var(--glass-radius-sm);color:#ef9a9a;
}

/* ---- Step cards (pipeline view) ---- */

.step-card{
  margin-top:.8rem;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius-sm);
  overflow:hidden;
  transition:border-color .2s;
}
.step-card:hover{
  border-color:var(--glass-border-hover);
}

.step-header{
  background:rgba(255,255,255,0.03);
  padding:.5rem .8rem;
  font-size:.82rem;
  font-weight:600;
  color:var(--blue);
  border-bottom:1px solid var(--glass-border);
}
.step-skipped{
  color:#666;
  font-style:italic;
  border-bottom:none;
}
.step-warn{color:#ffb74d}

.step-body{
  padding:.6rem .8rem;
  font-size:.8rem;
  max-height:400px;
  overflow-y:auto;
}

/* Mini table */

.mini-table{
  width:100%;border-collapse:collapse;font-size:.78rem;
}
.mini-table th{
  text-align:left;padding:.3rem .4rem;color:var(--text-muted);font-weight:500;
  border-bottom:1px solid var(--glass-border);font-size:.72rem;text-transform:uppercase;
  letter-spacing:.5px;
}
.mini-table td{
  padding:.3rem .4rem;border-bottom:1px solid rgba(255,255,255,0.05);color:#bbb;
  max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

.mono{font-family:'Courier New',monospace;font-size:.75rem;color:#888}
.dim{color:#666}
.small{font-size:.75rem}

.tag-ok{color:var(--green);font-size:.72rem}
.tag-err{color:var(--red);font-size:.72rem}
.tag-action{
  background:rgba(255,167,38,0.1);
  border:1px solid rgba(255,167,38,0.25);
  padding:1px 6px;border-radius:20px;
  color:var(--orange);font-size:.78rem;
}
.tag-style{
  background:rgba(99,102,241,0.1);
  border:1px solid rgba(99,102,241,0.25);
  padding:1px 6px;border-radius:20px;
  color:var(--blue);font-size:.78rem;
}

/* Aggregation sources */

.agg-source{
  padding:.4rem 0;border-bottom:1px solid rgba(255,255,255,0.05);
}
.agg-source:last-child{border-bottom:none}
.agg-title{color:#ccc;margin-top:.15rem;font-weight:500}
.agg-desc{color:#888;font-size:.75rem;margin-top:.1rem;line-height:1.4}

/* Translation pairs */

.trans-pair{
  display:flex;gap:.5rem;align-items:flex-start;
  padding:.4rem 0;border-bottom:1px solid rgba(255,255,255,0.05);
}
.trans-pair:last-child{border-bottom:none}
.trans-orig,.trans-result{flex:1;font-size:.78rem;color:#bbb}
.trans-arrow{color:#444;padding-top:.2rem;font-size:1rem}

/* Reconstruction block */

.recon-block{margin:.4rem 0}
.recon-block label{margin:0;color:#666;font-size:.72rem;text-transform:uppercase;letter-spacing:.5px}
.recon-value{color:#ddd;margin-top:.15rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}

.warn{
  background:rgba(255,167,38,0.1);border:1px solid rgba(255,167,38,0.25);border-radius:8px;
  padding:.3rem .6rem;margin-bottom:.4rem;color:#ffb74d;font-size:.78rem;
}

/* Compare grid (styled step) */

.compare-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:.6rem;
}
.compare-col{
  background:rgba(255,255,255,0.03);border:1px solid var(--glass-border);border-radius:var(--glass-radius-sm);padding:.6rem;
}
.compare-col h4{font-size:.75rem;color:#666;margin-bottom:.4rem;text-transform:uppercase;letter-spacing:.5px}
.compare-col.highlight{border-color:rgba(102,187,106,0.3);background:rgba(102,187,106,0.05)}
.compare-title{color:#ddd;font-weight:500;margin-bottom:.3rem;font-size:.85rem}
.compare-desc{color:#999;font-size:.78rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}

/* ---- Final result ---- */

.result-card{
  background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:var(--glass-radius);
  padding:1rem;margin-top:.8rem;
}
.result-card label{margin-top:0;font-weight:600;color:var(--accent)}
.result-field{
  margin-top:.4rem;white-space:pre-wrap;word-break:break-word;
  font-size:.92rem;line-height:1.7;
}

.btn-copy{
  margin-top:.5rem;padding:.3rem .7rem;
  background:var(--glass-bg);color:#aaa;border:1px solid var(--glass-border);border-radius:8px;
  font-size:.78rem;font-family:inherit;cursor:pointer;transition:all .2s;
}
.btn-copy:hover{background:var(--glass-bg-hover);border-color:var(--glass-border-hover)}

/* ================================================================
   PRODUCT ROWS (new batch form)
   ================================================================ */

.product-row{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius-sm);
  padding:.8rem;
  margin-top:.8rem;
  transition:border-color .2s;
}
.product-row:hover{
  border-color:var(--glass-border-hover);
}

.product-row-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:.4rem;
}

.product-num{
  color:var(--accent);
  font-size:.82rem;
  font-weight:600;
}

.btn-remove-row{
  background:none;
  border:none;
  color:#666;
  font-size:1.2rem;
  cursor:pointer;
  padding:0 .3rem;
  line-height:1;
  transition:color .2s;
}
.btn-remove-row:hover{color:var(--red)}

.product-fields{
  display:flex;
  gap:.8rem;
}
.field-ean{flex:0 0 40%}
.field-title{flex:1}

.product-row label{
  margin-top:.4rem;
}
.product-row textarea{
  margin-top:0;
}

.btn-add-row{
  display:block;
  width:100%;
  margin-top:.6rem;
  padding:.5rem;
  background:var(--glass-bg);
  color:var(--accent);
  border:1px dashed rgba(99,102,241,0.3);
  border-radius:var(--glass-radius-sm);
  font-size:.85rem;
  font-family:inherit;
  cursor:pointer;
  transition:all .2s;
}
.btn-add-row:hover{
  background:var(--glass-bg-hover);
  border-color:rgba(99,102,241,0.5);
}

/* ================================================================
   CHECKBOX ROW (new batch form)
   ================================================================ */

.checkbox-row{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-top:1rem;
  padding:.5rem .6rem;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius-sm);
}

.checkbox-row input[type="checkbox"]{
  width:auto;
  accent-color:var(--accent);
  cursor:pointer;
}

.checkbox-label{
  display:inline !important;
  margin:0 !important;
  color:#bbb;
  font-size:.85rem;
  cursor:pointer;
}

.field-required{
  border-color:var(--orange) !important;
}

.field-error{
  border-color:var(--red) !important;
  box-shadow:0 0 0 2px rgba(239,83,80,0.3);
}

/* ================================================================
   STYLES PAGE
   ================================================================ */

.styles-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1rem;
  margin-top:.8rem;
}

.style-card{
  background:var(--glass-bg);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius);
  padding:1rem;
  transition:all .3s;
}
.style-card:hover{
  border-color:var(--glass-border-hover);
  box-shadow:0 4px 20px rgba(99,102,241,0.08);
}

.style-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:.5rem;
}

.style-card-name{
  color:#fff;
  font-weight:600;
  font-size:.9rem;
}

.style-card-rules{
  color:#888;
  font-size:.78rem;
  line-height:1.5;
  white-space:pre-wrap;
  word-break:break-word;
}

.style-card-date{
  margin-top:.4rem;
  font-size:.72rem;
}

.inline-form{
  display:inline;
}

.btn-delete{
  background:rgba(239,83,80,0.1);
  color:var(--red);
  border:1px solid rgba(239,83,80,0.25);
  border-radius:8px;
  padding:.15rem .5rem;
  font-size:.72rem;
  font-family:inherit;
  cursor:pointer;
  transition:all .2s;
}
.btn-delete:hover{
  background:rgba(239,83,80,0.2);
}

/* ================================================================
   HERO — ENHANCED
   ================================================================ */

.hero-badge{
  display:inline-block;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:20px;
  padding:.25rem .8rem;
  font-size:.72rem;
  color:var(--text-dim);
  margin-bottom:1.2rem;
  letter-spacing:.3px;
}

.hero-actions{
  display:flex;
  gap:.8rem;
  justify-content:center;
  flex-wrap:wrap;
}

.btn-hero-ghost{
  background:transparent;
  border:1px solid var(--glass-border);
  color:var(--text);
}
.btn-hero-ghost:hover{
  border-color:var(--glass-border-hover);
  background:var(--glass-bg);
  transform:translateY(-1px);
  box-shadow:none;
}

/* ================================================================
   PERSONAS SECTION (landing — target audience)
   ================================================================ */

.personas-section{
  max-width:960px;
  margin:0 auto;
  padding:3rem 1.5rem;
}
.personas-section h2{
  text-align:center;
  margin-bottom:2rem;
}

.personas-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.2rem;
}

.persona-card{
  background:var(--glass-bg);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius);
  padding:1.5rem;
  transition:all .3s;
}
.persona-card:hover{
  border-color:var(--glass-border-hover);
  box-shadow:0 4px 20px rgba(99,102,241,0.1);
}

.persona-icon{
  font-size:2rem;
  margin-bottom:.6rem;
}

.persona-card h3{
  color:#fff;
  font-size:1rem;
  margin-bottom:.5rem;
}

.persona-problem{
  color:var(--red);
  font-size:.82rem;
  line-height:1.5;
  margin-bottom:.5rem;
  opacity:.85;
}

.persona-solution{
  color:var(--green);
  font-size:.82rem;
  line-height:1.5;
  opacity:.85;
}

/* ================================================================
   MODES SECTION (landing — three operating modes)
   ================================================================ */

.modes-section{
  max-width:960px;
  margin:0 auto;
  padding:3rem 1.5rem;
  border-top:1px solid var(--glass-border);
}
.modes-section h2{
  text-align:center;
  margin-bottom:.3rem;
}

.section-sub{
  text-align:center;
  color:var(--text-dim);
  font-size:.88rem;
  margin-bottom:2rem;
}

.modes-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.2rem;
}

.mode-card{
  background:var(--glass-bg);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius);
  padding:1.2rem;
  transition:all .3s;
}
.mode-card:hover{
  border-color:var(--glass-border-hover);
  box-shadow:0 4px 20px rgba(99,102,241,0.1);
}

.mode-img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:var(--glass-radius-sm);
  margin-bottom:.8rem;
  border:1px solid var(--glass-border);
}

.mode-card h3{
  color:#fff;
  font-size:1rem;
  margin-bottom:.4rem;
}

.mode-input,.mode-output{
  font-size:.78rem;
  color:var(--text-dim);
  margin-bottom:.15rem;
}
.mode-input strong,.mode-output strong{
  color:var(--text);
}

.mode-desc{
  font-size:.82rem;
  color:#999;
  line-height:1.5;
  margin-top:.5rem;
}

/* ================================================================
   STYLES SHOWCASE (landing — personas)
   ================================================================ */

.styles-section{
  max-width:960px;
  margin:0 auto;
  padding:3rem 1.5rem;
  border-top:1px solid var(--glass-border);
}
.styles-section h2{
  text-align:center;
  margin-bottom:.3rem;
}

.style-showcase{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  justify-content:center;
  margin-top:1.5rem;
}

.style-pill{
  display:flex;
  align-items:center;
  gap:.4rem;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:20px;
  padding:.5rem 1rem;
  font-size:.85rem;
  color:var(--text);
  transition:all .2s;
}
.style-pill:hover{
  border-color:var(--glass-border-hover);
  background:var(--glass-bg-hover);
}

.style-pill-icon{
  font-size:1.1rem;
}

.style-pill-cat{
  color:var(--text-muted);
  font-size:.72rem;
  margin-left:.3rem;
}

.style-pill-custom{
  border-color:rgba(99,102,241,0.3);
  background:rgba(99,102,241,0.05);
}
.style-pill-custom:hover{
  border-color:var(--accent);
}

/* ================================================================
   ADVANTAGES SECTION (landing)
   ================================================================ */

.advantages-section{
  max-width:960px;
  margin:0 auto;
  padding:3rem 1.5rem;
  border-top:1px solid var(--glass-border);
}
.advantages-section h2{
  text-align:center;
  margin-bottom:1.5rem;
}

.advantages-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.8rem;
}

.advantage-card{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius-sm);
  padding:1rem;
  transition:border-color .2s;
}
.advantage-card:hover{
  border-color:var(--glass-border-hover);
}

.advantage-vs{
  display:flex;
  flex-direction:column;
  gap:.4rem;
}

.advantage-them{
  color:var(--text-muted);
  font-size:.78rem;
  text-decoration:line-through;
  opacity:.7;
}

.advantage-us{
  color:var(--green);
  font-size:.85rem;
  font-weight:500;
}

/* ================================================================
   ARTICLES SECTION (landing)
   ================================================================ */

.articles-section{
  max-width:960px;
  margin:0 auto;
  padding:3rem 1.5rem;
  border-top:1px solid var(--glass-border);
}
.articles-section h2{
  text-align:center;
  margin-bottom:.3rem;
}

.articles-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.2rem;
  margin-top:1.5rem;
}

.article-card{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius);
  overflow:hidden;
  text-decoration:none;
  color:var(--text);
  transition:all .3s;
}
.article-card:hover{
  border-color:var(--glass-border-hover);
  box-shadow:0 4px 20px rgba(99,102,241,0.1);
  transform:translateY(-2px);
}

.article-img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}

.article-body{
  padding:.8rem 1rem;
}
.article-body h3{
  color:#fff;
  font-size:.88rem;
  margin-bottom:.3rem;
  line-height:1.3;
}
.article-body p{
  color:var(--text-dim);
  font-size:.78rem;
  line-height:1.4;
}

/* ================================================================
   DASHBOARD — TIPS & ACTIONS
   ================================================================ */

.dash-actions{
  margin-top:1.5rem;
}

.dash-tips{
  display:flex;
  flex-direction:column;
  gap:.5rem;
  margin-top:1.5rem;
}

.dash-tip{
  display:flex;
  align-items:flex-start;
  gap:.6rem;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius-sm);
  padding:.6rem .8rem;
  font-size:.82rem;
  color:var(--text-dim);
  line-height:1.5;
}
.dash-tip strong{
  color:var(--text);
}

.dash-tip-icon{
  font-size:1.2rem;
  flex-shrink:0;
  margin-top:.1rem;
}

/* ================================================================
   PRICING CARDS
   ================================================================ */

.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.2rem;
  max-width:960px;
  margin:0 auto;
}

.pricing-card{
  background:var(--glass-bg);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius);
  padding:1.5rem;
  text-align:center;
  transition:all .3s;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.pricing-card:hover{
  border-color:var(--glass-border-hover);
  box-shadow:0 8px 32px rgba(99,102,241,0.12);
  transform:translateY(-3px);
}

.pricing-card-popular{
  border-color:rgba(99,102,241,0.4);
  box-shadow:0 4px 24px rgba(99,102,241,0.15);
}

.pricing-popular-badge{
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  background:linear-gradient(135deg,var(--accent),var(--accent-end));
  color:#fff;
  padding:.2rem .8rem;
  border-radius:20px;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.3px;
  white-space:nowrap;
}

.pricing-img{
  width:100%;
  max-width:200px;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:var(--glass-radius-sm);
  border:1px solid var(--glass-border);
  margin-bottom:1rem;
}

.pricing-name{
  color:#fff;
  font-size:1.2rem;
  margin-bottom:.4rem;
}

.pricing-price{
  font-size:2rem;
  font-weight:700;
  background:linear-gradient(135deg,var(--accent),var(--accent-end));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  margin-bottom:.2rem;
}

.pricing-currency{
  font-size:.9rem;
  font-weight:400;
}

.pricing-tokens{
  color:#fff;
  font-size:1rem;
  font-weight:600;
  margin-bottom:.2rem;
}

.pricing-per-token{
  color:var(--text-muted);
  font-size:.78rem;
  margin-bottom:1rem;
}

.pricing-features{
  list-style:none;
  padding:0;
  margin:0 0 1.2rem;
  width:100%;
}

.pricing-features li{
  padding:.3rem 0;
  font-size:.82rem;
  color:var(--text-dim);
  border-bottom:1px solid rgba(255,255,255,0.04);
}
.pricing-features li:last-child{border-bottom:none}
.pricing-features li::before{
  content:'✓ ';
  color:var(--green);
  font-weight:600;
}

.btn-pricing{
  display:block;
  width:100%;
  padding:.6rem;
  background:linear-gradient(135deg,var(--accent),var(--accent-end));
  color:#fff;
  text-decoration:none;
  border-radius:var(--glass-radius-sm);
  font-size:.9rem;
  font-weight:600;
  transition:all .2s;
  margin-top:auto;
}
.btn-pricing:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 15px var(--accent-glow);
}

/* Pricing section (landing page compact) */
.pricing-section{
  max-width:960px;
  margin:0 auto;
  padding:3rem 1.5rem;
  border-top:1px solid var(--glass-border);
}
.pricing-section h2{
  text-align:center;
  margin-bottom:.3rem;
}

/* Dashboard pricing banner */
.dash-pricing{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--glass-radius);
  padding:1rem 1.2rem;
  margin-top:1.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.dash-pricing-text{
  color:var(--text-dim);
  font-size:.85rem;
}
.dash-pricing-text strong{color:#fff}

/* ---- Utility ---- */

.hidden{display:none!important}

/* ---- Responsive ---- */

@media(max-width:600px){
  .pricing-grid{grid-template-columns:1fr}
  .row{flex-direction:column;gap:0}
  .compare-grid{grid-template-columns:1fr}
  .trans-pair{flex-direction:column}
  .trans-arrow{display:none}
  h1{font-size:1.4rem}
  .container{max-width:100%}
  .steps-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr}
  .styles-grid{grid-template-columns:1fr}
  .product-fields{flex-direction:column;gap:0}
  .field-ean{flex:1}
  .hero h1{font-size:1.6rem}
  .nav-links{gap:.6rem}
  .batch-row{flex-direction:column;align-items:flex-start;gap:.4rem}
  .feature-row,.feature-row-reverse{flex-direction:column;gap:1.5rem}
  .personas-grid{grid-template-columns:1fr}
  .modes-grid{grid-template-columns:1fr}
  .advantages-grid{grid-template-columns:1fr}
  .articles-grid{grid-template-columns:1fr}
  .hero-actions{flex-direction:column;align-items:center}
}
