/* =========================
   GLOBAL FOUNDATION
========================= */

*{
  box-sizing:border-box;
}

body{
  font-family:Segoe UI,Arial;

  background:
  radial-gradient(
    circle at top center,
    rgba(173,216,255,0.45) 0%,
    rgba(125,110,255,0.30) 25%,
    rgba(79,70,229,0.22) 45%,
    rgba(30,41,99,0.92) 75%,
    #0f172a 100%
  ),
  linear-gradient(
    180deg,
    #7aa2d6 0%,
    #7b78ff 35%,
    #4f46e5 70%,
    #1e1b4b 100%
  );

  margin:0;
  color:white;

  overflow-x:hidden;
  position:relative;

  isolation:isolate;
}

body::before{
  content:"";

  position:fixed;
  inset:0;

  pointer-events:none;

  z-index:-2;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(58,124,165,0.12),
      transparent
    );
}

body::after{
  content:"";
  position:fixed;
  inset:0;

  z-index: -2;
  pointer-events:none;

  background-image:
    linear-gradient(
      rgba(255,255,255,0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,0.025) 1px,
      transparent 1px
    );

  background-size:40px 40px;

  opacity:0.22;
  z-index:-1;
}
/* =========================
   CONTAINER
========================= */

.container{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:auto;
  padding:24px 20px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* =========================
   HEADER + HERO
========================= */

.header{
  text-align:center;
  margin-bottom:20px;
  padding-bottom:14px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.hero{
  position:relative;
  z-index:5;
  text-align:center;
  margin-top:28px;
  margin-bottom:30px;
}

.hero::before{
  content:"";

  position:absolute;
  inset:-40px;

  background:
    radial-gradient(
      circle at center,
      rgba(80,160,255,0.18),
      transparent 70%
    );

  pointer-events:none;
  z-index:-1;
}

.hero-title{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
}

.hero-icon{
  width:68px;
  height:auto;
}

.hero h1{
  margin:0;
  font-size:46px;
  color:#0f0f11;
  line-height:1.1;
}

.subtitle{
  margin-top:10px;
  font-size:20px;
  font-weight:600;
  color:#e6e6e6;
}

.title-block{
  text-align:center;
  margin-bottom:20px;
}

.title-block .intro{
  max-width:460px;
  margin:10px auto 0;
  text-align:center;
  font-size:14px;
  opacity:0.85;
}

.title-block::after{
  content:"";
  display:block;
  width:80px;
  height:2px;
  margin:12px auto 0;

  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );

  border-radius:2px;
}

/* =========================
   ACCESS CARD
========================= */

.access-wrapper{
  display:flex;
  justify-content:center;
  padding:0 20px 60px;
}

.access-card{
  width:100%;
  max-width:760px;
  background:rgba(8,18,48,0.92);
  border-radius:24px;
  padding:70px 50px;
  text-align:center;

  box-shadow:0 12px 35px rgba(0,0,0,0.35);
}

/* =========================
   PANELS
========================= */

.panel{
  position:relative;

  display:flex;
  flex-direction:column;

  gap:6px;
  padding:16px;

  background:rgba(15,23,42,0.88);

  border-radius:16px;
  border:1px solid rgba(255,255,255,0.04);

  backdrop-filter:blur(6px);

  min-width:0;
  overflow:hidden;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;

  box-shadow:
    0 6px 20px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.panel::before{
  content:"";

  position:absolute;
  top:0;
  left:0;
  right:0;

  height:1px;

  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.12),
    transparent
  );
}

.panel::after{
  content:"";

  position:absolute;
  inset:-30%;

  background:
    radial-gradient(
      circle at top left,
      rgba(80,160,255,0.10),
      transparent 60%
    );

  pointer-events:none;
}

.panel:hover{
  transform:translateY(-2px);

  box-shadow:
    0 10px 28px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.panel h3{
  font-size:14px;
  font-weight:600;
  letter-spacing:0.4px;
  margin-bottom:8px;

  color:rgba(255,255,255,0.92);
}

.panel label{
  margin-top:3px;
  margin-bottom:1px;
  font-size:12px;
  opacity:0.9;
}

.panel.scene-style{
  border:1px solid rgba(120,170,255,0.22);

  box-shadow:
    0 10px 32px rgba(60,120,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* =========================
   FORM ELEMENTS
========================= */

.field-group{
  display:flex;
  flex-direction:column;
}

label{
  font-size:12px;
  display:block;
  margin-top:6px;
}

input,
select,
textarea{
  width:100%;

  border-radius:6px;
  border:none;

  padding:6px;
  font-size:13px;
}

input,
select{
  height:34px;
  margin-bottom:8px;
}

select{
  width:100%;
}

/* =========================
   BUTTON SYSTEM
========================= */

.button{
  position:relative;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:10px 18px;

  border:none;
  border-radius:8px;

  cursor:pointer;

  font-weight:600;
  font-size:13px;

  transition:all 0.15s ease;

  box-shadow:0 4px 12px rgba(0,0,0,0.35);
}

.button::before{
  content:"";

  position:absolute;
  top:0;
  left:0;

  width:100%;
  height:50%;

  background:linear-gradient(
    to bottom,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.05)
  );

  border-radius:8px 8px 0 0;

  pointer-events:none;
  opacity:0.6;
}

.button:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,0.45);
}

.button:active{
  transform:translateY(1px);

  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.4),
    0 2px 6px rgba(0,0,0,0.25);
}

.top-buttons,
.bottom-buttons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;

  margin-top:8px;
  flex-wrap:wrap;
}

/* =========================
   BUTTON VARIANTS
========================= */

.btn-generate{
  background:linear-gradient(90deg,#4facfe,#00f2fe);
  color:#002b36;
}

.btn-generate:hover{
  box-shadow:0 0 12px rgba(0,242,254,0.6);
}

.btn-reset{
  background:linear-gradient(90deg,#64748b,#475569);
  color:#ffffff;
}

.btn-reset:hover{
  box-shadow:0 0 12px rgba(148,163,184,0.35);
}

.btn-regenerate{
  background:linear-gradient(90deg,#38bdf8,#0ea5e9);
  color:#022c22;
}

.btn-regenerate:hover{
  box-shadow:0 0 12px rgba(14,165,233,0.5);
}

.btn-variation{
  background:linear-gradient(90deg,#a855f7,#ec4899);
  color:#ffffff;
}

.btn-variation:hover{
  box-shadow:0 0 12px rgba(236,72,153,0.5);
}

.btn-enhance{
  background:linear-gradient(90deg,#fde047,#facc15);
  color:#3b2f00;
}

.btn-enhance:hover{
  box-shadow:0 0 12px rgba(250,204,21,0.5);
}

.btn-lock{
  background:linear-gradient(90deg,#e5e7eb,#ffffff);
  color:#111827;
}

.btn-unlock{
  background:linear-gradient(90deg,#fb923c,#f97316);
  color:#ffffff;
}

.btn-unlock:hover{
  box-shadow:0 0 12px rgba(249,115,22,0.5);
}

.btn-save{
  background:linear-gradient(90deg,#34d399,#10b981);
  color:#022c22;
}

.btn-copy{
  background:linear-gradient(90deg,#ff0f7b,#ec4899);
  color:#ffffff;
}

.btn-delete{
  background:linear-gradient(90deg,#ef4444,#dc2626);
  color:#ffffff;
}

.btn-copy,
.btn-delete{
  opacity:0.85;
}

/* =========================
   UTILITIES
========================= */

.dimmed{
  opacity:0.38;
  filter:grayscale(0.2);
  pointer-events:none;
  transition:0.25s ease;
}

.dimmed select,
.dimmed input{
  cursor:not-allowed;
}

.helper-text{
  font-size:12px;
  opacity:0.7;
  margin:4px 0 8px;
}

textarea::placeholder{
  color:#6b7280;
  font-size:12px;
}

.section-divider{
  width:80%;
  height:1px;
  margin:24px auto 20px;
  background:rgba(255,255,255,0.12);
}

.app-footer{
  text-align:center;
  font-size:11px;
  opacity:0.6;
  margin:20px 0 10px;
}

.app-footer::before{
  content:"";
  display:block;
  width:90%;
  height:1px;
  margin:0 auto 16px;

  background:rgba(255,255,255,0.1);
}