/* LEATHER PREMIUM FINAL — тема 2 */

/* ФОН: тёплая светлая кожа */
html:has(body[data-theme="2"]),
body[data-theme="2"] {
  background-color: #EDE5D8 !important;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.65 0.75' numOctaves='4' seed='2' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23F5EDE4' surfaceScale='0.6'><feDistantLight azimuth='45' elevation='78'/></feDiffuseLighting></filter><rect width='300' height='300' filter='url(%23f)'/></svg>") !important;
  background-size: 300px 300px !important;
}
body[data-theme="2"]::before {
  background-color: #EDE5D8 !important;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.65 0.75' numOctaves='4' seed='2' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23F5EDE4' surfaceScale='0.6'><feDistantLight azimuth='45' elevation='78'/></feDiffuseLighting></filter><rect width='300' height='300' filter='url(%23f)'/></svg>") !important;
  background-size: 300px 300px !important;
}
body[data-theme="2"] { --bg-glow:rgba(0,0,0,0)!important; --aura:rgba(0,0,0,0)!important; }

/* ОРАНЖЕВАЯ ШАГРЕНЬ */
body[data-theme="2"] .br.primary,
body[data-theme="2"] .mb.a,
body[data-theme="2"] .rb.a,
body[data-theme="2"] .nb.a b {
  background-color: #C85A1E !important;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.2 1.4' numOctaves='3' seed='5' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23D86828' surfaceScale='1.8'><feDistantLight azimuth='45' elevation='60'/></feDiffuseLighting></filter><rect width='150' height='150' filter='url(%23p)'/></svg>") !important;
  background-size: 150px 150px !important;
  border: none !important;
  border-top: 1px solid rgba(255,200,140,0.40) !important;
  box-shadow:
    0 8px 20px rgba(140,50,10,0.50),
    0 3px 7px rgba(140,50,10,0.32),
    inset 0 2px 3px rgba(255,210,160,0.38),
    inset 0 -3px 6px rgba(100,20,0,0.28) !important;
  color: #FFF !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45) !important;
}
body[data-theme="2"] .br.primary:active { box-shadow: inset 0 5px 12px rgba(100,20,0,0.38) !important; }

/* СЕРЕБРИСТЫЙ МЕТАЛЛ */
body[data-theme="2"] .mb:not(.a),
body[data-theme="2"] .br:not(.primary):not(.danger),
body[data-theme="2"] .mini,
body[data-theme="2"] .nb b {
  background-color: #D8D0C8 !important;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.18) 0px,
      rgba(255,255,255,0.08) 1px,
      rgba(255,255,255,0.02) 2px,
      transparent 3px,
      transparent 7px),
    linear-gradient(180deg,
      rgba(255,255,255,0.48) 0%,
      rgba(255,255,255,0.16) 28%,
      rgba(200,195,188,1.00) 50%,
      rgba(160,155,148,0.40) 72%,
      rgba(255,255,255,0.20) 100%) !important;
  background-size: 7px 100%, 100% 100% !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.80) !important;
  border-bottom: 1px solid rgba(0,0,0,0.18) !important;
  box-shadow:
    0 5px 14px rgba(0,0,0,0.28),
    0 2px 5px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(0,0,0,0.14) !important;
  color: #3E2F1C !important;
}

/* ЯНТАРНЫЕ КАПЛИ */
body[data-theme="2"] .rb:not(.a) {
  background: linear-gradient(160deg,
    rgba(255,248,228,0.92) 0%,
    rgba(238,222,188,0.78) 45%,
    rgba(218,198,158,0.65) 100%) !important;
  border: 1px solid rgba(210,182,135,0.55) !important;
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,0.90),
    inset 0 -1px 3px rgba(150,100,40,0.20),
    3px 3px 8px rgba(0,0,0,0.20),
    -1px -1px 3px rgba(255,255,255,0.80) !important;
  color: #6A5030 !important;
}

/* КАРТОЧКИ sb: карбон */
body[data-theme="2"] .sb {
  background-color: #C8B080 !important;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(0,0,0,0.14) 0px, rgba(0,0,0,0.14) 2px,
      rgba(255,255,255,0.07) 2px, rgba(255,255,255,0.07) 4px,
      transparent 4px, transparent 8px),
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.14) 0px, rgba(0,0,0,0.14) 2px,
      rgba(255,255,255,0.07) 2px, rgba(255,255,255,0.07) 4px,
      transparent 4px, transparent 8px),
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(0,0,0,0.14) 100%) !important;
  background-size: 8px 8px, 8px 8px, 100% 100% !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.30) !important;
  box-shadow:
    0 8px 22px rgba(0,0,0,0.36),
    0 3px 8px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.26) !important;
  border-radius: 18px !important;
}
body[data-theme="2"] .sb small { color:rgba(255,255,255,0.82)!important; font-weight:900!important; }
body[data-theme="2"] .sb b { color:#FFF!important; }

/* КАРТОЧКИ cd: светлая кожа */
body[data-theme="2"] .cd {
  background-color: #EDE5D5 !important;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='0.65 0.75' numOctaves='4' seed='2' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23F2EAE0' surfaceScale='0.5'><feDistantLight azimuth='45' elevation='80'/></feDiffuseLighting></filter><rect width='200' height='200' filter='url(%23c)'/></svg>") !important;
  background-size: 200px 200px !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.80) !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow:
    0 7px 20px rgba(0,0,0,0.24),
    0 3px 8px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.90) !important;
  border-radius: 22px !important;
}

/* ЭЛЕМЕНТЫ ЛЕНТЫ */
body[data-theme="2"] .it {
  background-color: #F0E8DA !important;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='i'><feTurbulence type='fractalNoise' baseFrequency='0.65 0.75' numOctaves='4' seed='2' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23F5EDE4' surfaceScale='0.45'><feDistantLight azimuth='45' elevation='80'/></feDiffuseLighting></filter><rect width='200' height='200' filter='url(%23i)'/></svg>") !important;
  background-size: 200px 200px !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.75) !important;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.18),
    0 2px 5px rgba(0,0,0,0.11),
    inset 0 1px 0 rgba(255,255,255,0.85) !important;
}

/* ИНПУТЫ */
body[data-theme="2"] input,
body[data-theme="2"] select,
body[data-theme="2"] textarea {
  background-color: #D8CCB8 !important;
  background-image: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.48) !important;
  box-shadow:
    inset 0 5px 14px rgba(0,0,0,0.26),
    inset 0 2px 7px rgba(0,0,0,0.18),
    0 1px 0 rgba(255,255,255,0.62) !important;
  color: #3E2F1C !important;
}
body[data-theme="2"] input::placeholder,
body[data-theme="2"] textarea::placeholder { color:rgba(62,47,28,0.44)!important; }
body[data-theme="2"] .search-box {
  background-color: #D8CCB8 !important;
  background-image: none !important;
  border: none !important;
  box-shadow:
    inset 0 5px 14px rgba(0,0,0,0.26),
    inset 0 2px 7px rgba(0,0,0,0.18),
    0 1px 0 rgba(255,255,255,0.62) !important;
}

/* КАТЕГОРИИ */
body[data-theme="2"] .ci,
body[data-theme="2"] #m-add .ci {
  background-color: #E4DAC8 !important;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='0.65 0.75' numOctaves='4' seed='3' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23ECE2D4' surfaceScale='0.7'><feDistantLight azimuth='45' elevation='72'/></feDiffuseLighting></filter><rect width='200' height='200' filter='url(%23k)'/></svg>") !important;
  background-size: 200px 200px !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.70) !important;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.26),
    0 2px 6px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.75) !important;
  border-radius: 20px !important;
}
body[data-theme="2"] .ci span { color:#5A4535!important; font-weight:900!important; }

/* НАВБАР */
body[data-theme="2"] .nv {
  background-color: #D4C8B4 !important;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65 0.75' numOctaves='4' seed='2' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23DDD0BE' surfaceScale='0.5'><feDistantLight azimuth='45' elevation='78'/></feDiffuseLighting></filter><rect width='200' height='200' filter='url(%23n)'/></svg>") !important;
  background-size: 200px 200px !important;
  border-top: 1px solid rgba(255,255,255,0.50) !important;
  box-shadow: 0 -5px 18px rgba(0,0,0,0.22) !important;
}
body[data-theme="2"] .nb.a b {
  background-color: #C85A1E !important;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.2 1.4' numOctaves='3' seed='5' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23D86828' surfaceScale='1.8'><feDistantLight azimuth='45' elevation='60'/></feDiffuseLighting></filter><rect width='150' height='150' filter='url(%23p)'/></svg>") !important;
  background-size: 150px 150px !important;
  border: none !important;
  border-top: 1px solid rgba(255,200,140,0.42) !important;
  box-shadow:
    0 6px 16px rgba(140,50,10,0.50),
    inset 0 2px 3px rgba(255,210,160,0.40),
    inset 0 -3px 6px rgba(100,20,0,0.28) !important;
}
body[data-theme="2"] .nb   { color:#8A7560!important; }
body[data-theme="2"] .nb.a { color:#C85020!important; }

/* МОДАЛКА */
body[data-theme="2"] .mc {
  background-color: #EDE5D8 !important;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.65 0.75' numOctaves='4' seed='2' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23F5EDE4' surfaceScale='0.6'><feDistantLight azimuth='45' elevation='78'/></feDiffuseLighting></filter><rect width='300' height='300' filter='url(%23f)'/></svg>") !important;
  background-size: 300px 300px !important;
  border: none !important;
}
body[data-theme="2"] .md .mc input,
body[data-theme="2"] .md .mc select,
body[data-theme="2"] .md .mc textarea {
  background-color: #D8CCB8 !important;
  background-image: none !important;
  border: none !important;
  box-shadow:
    inset 0 5px 14px rgba(0,0,0,0.26),
    inset 0 2px 7px rgba(0,0,0,0.18),
    0 1px 0 rgba(255,255,255,0.62) !important;
  color: #3E2F1C !important;
}
body[data-theme="2"] .md .mc input::placeholder,
body[data-theme="2"] .md .mc textarea::placeholder { color:rgba(62,47,28,0.44)!important; }

/* GOAL + MINI + II */
body[data-theme="2"] .goal-mini {
  background-color: #E4DAC8 !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(0,0,0,0.06) 100%) !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.70) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.75) !important;
}
body[data-theme="2"] .ii {
  background-color: #EAE2D2 !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.70) !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.75) !important;
}
body[data-theme="2"] { color:#3E2F1C!important; }
