/* NivaMC — sayfa bileşenleri (phoenix.css üzerine) */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
img { display: block; }
button { font: inherit; }
.nv-muted { color: var(--nv-muted); }

/* İç sayfa başlığı */
.nv-page-title { margin: 22px auto 0; text-align: center; }
.nv-page-title h1 { font-family: var(--nv-display); font-size: clamp(32px, 5vw, 58px); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.nv-page-title p { margin-top: 12px; color: var(--nv-text-2); }
.nv-crumbs { display: inline-flex; gap: 8px; margin-top: 14px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--nv-muted); background: rgba(255,255,255,.04); border: 1px solid var(--nv-line); }
.nv-crumbs a:hover { color: #ffb26e; }
.nv-page-inner .nv-main > section:first-of-type { margin-top: -50px; z-index: 5; }

/* Mobil menü ve profil çekmecesi */
.nv-drawer-wrap { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: flex-end; visibility: hidden; }
.nv-drawer-wrap.is-open { visibility: visible; }
.nv-drawer-wrap .nv-backdrop { opacity: 0; transition: opacity .3s; }
.nv-drawer-wrap.is-open .nv-backdrop { opacity: 1; }
.nv-drawer-wrap .nv-drawer { transform: translateX(100%); transition: transform .4s var(--nv-ease); }
.nv-drawer-wrap.is-open .nv-drawer { transform: none; }
.nv-user-chip { font-family: var(--nv-font); }

/* Slider (owl yerine) */
.nv-slider { height: 400px; background: var(--nv-card-solid); }
.nv-slider .nv-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.nv-slider .nv-slide.is-on { opacity: 1; z-index: 1; }
.nv-slider .nv-slide.is-on .nv-slide-img { transform: scale(1.01); }
.nv-slider .nv-slide.is-on .nv-slide-content > * { animation: nv-slide-in .9s var(--nv-ease) both; }
.nv-slider .nv-slide.is-on .nv-slide-content > *:nth-child(2) { animation-delay: .12s; }
.nv-slider .nv-slide.is-on .nv-slide-content > *:nth-child(3) { animation-delay: .24s; }
.nv-slider-dots { position: absolute; right: 30px; bottom: 26px; z-index: 3; display: flex; gap: 6px; }
.nv-slider-dots button { width: 22px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,.25); cursor: pointer; transition: all .4s ease; }
.nv-slider-dots button.is-on { width: 42px; background: linear-gradient(90deg, #ffd23f, #ff7a18); box-shadow: 0 0 12px rgba(255,122,24,.8); }
.nv-home-main > .nv-slider { margin-bottom: 40px; }

/* Bildirim (sayfa içi) */
.nv-alert { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 18px; border-radius: 16px; font-weight: 700; font-size: 14px; border: 1px solid; }
.nv-alert--success { background: rgba(61,220,132,.08); border-color: rgba(61,220,132,.35); color: #86efac; }
.nv-alert--error { background: rgba(229,38,46,.1); border-color: rgba(229,38,46,.4); color: #fca5a5; }
.nv-alert--info { background: rgba(255,210,63,.08); border-color: rgba(255,210,63,.35); color: #ffd36b; }

/* Formlar */
.nv-form { display: flex; flex-direction: column; gap: 16px; }
.nv-field { display: flex; flex-direction: column; gap: 7px; }
.nv-field > span, .nv-form label > span:first-child { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--nv-muted); }
.nv-input { position: relative; display: flex; align-items: center; }
.nv-input > i { position: absolute; left: 17px; color: var(--nv-muted); pointer-events: none; transition: color .25s; }
.nv-input:focus-within > i { color: #ff9b4a; }
.nv-input input { padding-left: 46px; }
input, textarea, select { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; outline: none; background: rgba(255,255,255,.04); border: 1px solid var(--nv-line-2); color: var(--nv-text); font: 600 14.5px var(--nv-font); transition: border-color .25s, box-shadow .25s, background .25s; }
textarea { padding: 14px 16px; line-height: 1.6; resize: vertical; }
input[type="file"] { padding: 12px 16px; }
input:focus, textarea:focus, select:focus { border-color: #ff7a18; background: rgba(255,122,24,.05); box-shadow: 0 0 0 4px rgba(255,122,24,.16); }
input::placeholder, textarea::placeholder { color: var(--nv-muted); }
select option { background: #1a120d; }
.nv-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 14px; color: var(--nv-text-2); cursor: pointer; }
.nv-check input { width: 20px; min-height: 0; height: 20px; padding: 0; accent-color: #ff7a18; flex: none; }
.nv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nv-row--between { justify-content: space-between; }
.nv-btn-sm { padding: .6rem .95rem; font-size: .82rem; border-radius: 11px; }
.nv-btn-danger { color: #ffb4b4; background: rgba(229,38,46,.14); border-color: rgba(229,38,46,.4); }
.nv-btn-danger:hover { background: #e5262e; color: #fff; }
.nv-btn-discord { color: #fff; background: linear-gradient(135deg, #7984ff, #5865f2); box-shadow: 0 12px 28px -12px rgba(88,101,242,.9); }

/* Giriş/kayıt paneli (nv-auth üzerinde) */
.nv-auth-form { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.nv-auth-form h1 { font-family: var(--nv-display); font-size: 34px; font-weight: 700; color: #fff; }
.nv-auth-form h1::after { content: ""; display: block; width: 52px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--nv-grad-fire); box-shadow: 0 0 16px rgba(255,106,19,.8); }
.nv-auth-form > p { margin: 14px 0 26px; color: var(--nv-muted); font-size: 14.5px; }
.nv-auth-form .nv-btn { height: 54px; font-size: 15px; }
.nv-auth-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--nv-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--nv-muted); }
.nv-auth-foot a { font-weight: 800; color: #ffb26e; }
.nv-auth-foot a:hover { color: #fff; }
@media (max-width: 900px) { .nv-auth-form { padding: 30px 22px; } }

/* Paneller */
.nv-panel + .nv-panel { margin-top: 22px; }
.nv-panel-head .nv-panel-title + * { margin-left: auto; }

/* Tablolar */
.nv-table-wrap { overflow-x: auto; margin: 0 -6px; }
.nv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nv-table th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffb26e; border-bottom: 1px solid var(--nv-line-2); white-space: nowrap; }
.nv-table td { padding: 12px; color: var(--nv-text-2); border-bottom: 1px solid var(--nv-line); }
.nv-table tr:last-child td { border-bottom: 0; }
.nv-table tbody tr:hover td { background: rgba(255,122,24,.05); }
.nv-table img { width: 28px; height: 28px; border-radius: 8px; image-rendering: pixelated; display: inline-block; vertical-align: middle; margin-right: 8px; }
.nv-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.nv-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nv-status--delivered { background: rgba(61,220,132,.12); color: #6ee7a8; }
.nv-status--pending { background: rgba(255,210,63,.12); color: #ffd36b; }
.nv-pos { color: #6ee7a8 !important; font-weight: 700; }
.nv-neg { color: #fca5a5 !important; font-weight: 700; }
.nv-actions { display: flex; gap: 6px; justify-content: flex-end; }
.nv-actions form { margin: 0; }

/* Haber detay */
.nv-article { max-width: 920px; margin: 0 auto; overflow: hidden; border-radius: 28px; background: var(--nv-card); border: 1px solid var(--nv-line); box-shadow: var(--nv-shadow); }
.nv-article-media { position: relative; height: 380px; background: center/cover var(--nv-card-solid); }
.nv-article-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(25,17,13,1)); }
.nv-article-body { position: relative; padding: 0 44px 44px; margin-top: -60px; }
.nv-article-body h1 { font-family: var(--nv-display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; color: #fff; margin: 12px 0 22px; }
.nv-prose { color: var(--nv-text-2); line-height: 1.85; font-size: 15.5px; }
.nv-prose p { margin: 0 0 1em; }
.nv-prose a { color: #ffb26e; text-decoration: underline; }
.nv-prose img { max-width: 100%; border-radius: 16px; margin: 1em 0; }
.nv-prose h2, .nv-prose h3 { font-family: var(--nv-display); color: #fff; margin: 1.4em 0 .5em; }
.nv-pager { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.nv-pager a { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 13px; font-weight: 800; background: rgba(255,255,255,.05); border: 1px solid var(--nv-line-2); color: var(--nv-text-2); transition: all .25s; }
.nv-pager a:hover { color: #fff; border-color: rgba(255,122,24,.5); }
.nv-pager a.is-active { color: var(--nv-on-fire); background: var(--nv-grad-fire); border-color: transparent; box-shadow: 0 8px 22px -8px rgba(255,106,19,.9); }

/* Mağaza */
.nv-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 34px; }
.nv-cat { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 14px 16px; border-radius: 22px; text-align: center; background: var(--nv-card); border: 1px solid var(--nv-line); box-shadow: var(--nv-shadow); transition: border-color .35s, box-shadow .35s, transform .25s; }
.nv-cat img { width: 100%; max-width: 150px; aspect-ratio: 480/544; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)); transition: transform .5s var(--nv-ease), filter .5s; }
.nv-cat:hover img { transform: translateY(-6px) scale(1.04); filter: drop-shadow(0 14px 30px rgba(255,106,19,.5)); }
.nv-cat-icon { width: 100%; max-width: 150px; aspect-ratio: 480/544; display: grid; place-items: center; font-size: 54px; color: #ff9b4a; border-radius: 18px; background: rgba(255,122,24,.08); }
.nv-cat b { font-family: var(--nv-display); font-size: 18px; color: #fff; }
.nv-cat.is-active { border-color: rgba(255,140,60,.6); box-shadow: 0 30px 60px -30px rgba(255,106,19,.6), inset 0 0 0 1px rgba(255,140,60,.35); background: linear-gradient(180deg, rgba(255,122,24,.14), var(--nv-card)); }
.nv-cat.is-active b { color: #ffc27a; }
.nv-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.nv-prod { position: relative; isolation: isolate; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--nv-card); border: 1px solid var(--nv-line); box-shadow: var(--nv-shadow); transition: border-color .35s, box-shadow .35s, transform .25s; }
.nv-prod:hover { border-color: rgba(255,140,60,.4); box-shadow: 0 34px 70px -34px rgba(0,0,0,1), 0 0 50px -20px rgba(255,106,19,.5); }
.nv-prod-media { position: relative; display: grid; place-items: center; height: 230px; padding: 20px; background: radial-gradient(circle at 50% 60%, rgba(255,106,19,.22), transparent 65%); }
.nv-prod-media img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.65)); transition: transform .5s var(--nv-ease); }
.nv-prod:hover .nv-prod-media img { transform: translateY(-8px) scale(1.05) rotate(-2deg); }
.nv-prod-sale { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 11px; border-radius: 10px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff4d4d, #e5262e); box-shadow: 0 8px 20px -6px rgba(229,38,46,.8); }
.nv-prod-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 4px 22px 22px; }
.nv-prod-name { font-family: var(--nv-display); font-size: 22px; font-weight: 700; color: #fff; text-align: center; }
.nv-prod-desc { flex: 1; font-size: 13.5px; color: var(--nv-muted); text-align: center; }
.nv-prod-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 10px 0 4px; border-top: 1px solid var(--nv-line); }
.nv-prod-price b { font-family: var(--nv-display); font-size: 28px; background: linear-gradient(180deg, #fff3c9, #ffc24a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nv-prod-price s { color: var(--nv-muted); font-size: 14px; }
.nv-prod form { margin: 0; }

/* Profil */
.nv-profile-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; }
.nv-profile-card { position: relative; overflow: hidden; text-align: center; padding: 28px 24px; border-radius: 26px; background: radial-gradient(120% 70% at 50% 0%, rgba(255,106,19,.22), transparent 60%), var(--nv-card); border: 1px solid var(--nv-line-2); box-shadow: var(--nv-shadow); }
.nv-profile-skin { height: 240px; margin: 0 auto 10px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.7)) drop-shadow(0 0 24px rgba(255,140,40,.3)); animation: nv-float 5s ease-in-out infinite; }
.nv-profile-name { font-family: var(--nv-display); font-size: 28px; font-weight: 700; color: #fff; }
.nv-profile-role { display: inline-block; margin: 8px 0 18px; }
.nv-balance { display: flex; flex-direction: column; gap: 2px; padding: 16px; margin-bottom: 14px; border-radius: 18px; background: rgba(255,196,74,.08); box-shadow: inset 0 0 0 1px rgba(255,196,74,.25); }
.nv-balance small { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--nv-muted); }
.nv-balance b { font-family: var(--nv-display); font-size: 34px; line-height: 1.1; background: linear-gradient(180deg, #fff3c9, #ffc24a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nv-profile-meta { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--nv-line); font-size: 13px; color: var(--nv-muted); }
.nv-profile-meta b { color: var(--nv-text); }

/* Boş durum */
.nv-empty { padding: 60px 20px; text-align: center; border-radius: 26px; background: var(--nv-card); border: 1px dashed var(--nv-line-2); }
.nv-empty > i { font-size: 44px; color: #ff9b4a; margin-bottom: 14px; display: block; }
.nv-empty b { display: block; font-family: var(--nv-display); font-size: 22px; color: #fff; margin-bottom: 6px; }
.nv-empty p { color: var(--nv-muted); margin-bottom: 18px; }
.nv-404 { font-family: var(--nv-display); font-size: clamp(90px, 16vw, 180px); line-height: 1; font-weight: 700; }

/* Kredi */
.nv-credit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }

/* Admin */
.nv-admin { display: flex; min-height: 100vh; }
.nv-side { width: 260px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: linear-gradient(180deg, #160e0a, #0b0705); border-right: 1px solid var(--nv-line-2); z-index: 60; }
.nv-side .nv-nav-brand { margin: 0 8px 22px; }
.nv-side > a:not(.nv-nav-brand) { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; font-weight: 700; color: var(--nv-text-2); transition: all .25s; }
.nv-side > a:not(.nv-nav-brand) i { width: 18px; text-align: center; color: #ff9b4a; }
.nv-side > a:not(.nv-nav-brand):hover { color: #fff; background: rgba(255,122,24,.1); }
.nv-side > a.is-active { color: #fff; background: linear-gradient(90deg, rgba(255,122,24,.2), rgba(255,122,24,.04)); box-shadow: inset 3px 0 0 #ff7a18; }
.nv-side > a:last-child { margin-top: auto; }
.nv-admin-main { flex: 1; min-width: 0; padding: 30px; }
.nv-admin-title { font-family: var(--nv-display); font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 22px; }
.nv-admin .nv-stats { margin-bottom: 24px; }
.nv-admin .nv-burger { margin-bottom: 16px; }
.nv-thumb { max-height: 100px; border-radius: 12px; align-self: flex-start; }
.nv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; max-height: 220px; overflow-y: auto; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--nv-line); }
.nv-gallery button { aspect-ratio: 1; padding: 4px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,.04); cursor: pointer; transition: all .2s; }
.nv-gallery button:hover, .nv-gallery button.is-on { border-color: #ff7a18; background: rgba(255,122,24,.14); }
.nv-gallery img { width: 100%; height: 100%; object-fit: contain; }
.nv-gallery-toggle { align-self: flex-start; }

@media (max-width: 1199px) {
  .nv-profile-grid, .nv-credit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nv-side { position: fixed; left: 0; transform: translateX(-100%); transition: transform .3s var(--nv-ease); }
  .nv-side.is-open { transform: none; box-shadow: 40px 0 90px -30px #000; }
  .nv-admin-main { padding: 16px; }
  .nv-admin .nv-burger { display: flex; }
}
@media (min-width: 961px) { .nv-admin .nv-burger { display: none; } }
@media (max-width: 860px) {
  .nv-slider { height: 330px; }
  .nv-slider-dots { right: auto; left: 26px; bottom: 22px; }
  .nv-article-body { padding: 0 22px 28px; }
  .nv-article-media { height: 240px; }
  .nv-form-row { grid-template-columns: 1fr; }
}
