:root {
  --black: #050505;
  --coal: #101113;
  --graphite: #1b1d20;
  --gold: #fdbb2d;
  --gold-soft: #ffd46f;
  --paper: #f5f5f2;
  --white: #ffffff;
  --muted: #676a70;
  --line: #d9d9d4;
  --shell: min(1180px, calc(100% - 40px));
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--black);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header, .sub-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(5, 5, 5, .9);
  border-top: 4px solid var(--gold);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px);
}
.nav-wrap { height: 90px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; color: var(--white); }
.brand-logo { display: block; width: auto; height: 58px; background: var(--white); border-radius: 1px; }
.nav-wrap nav { display: flex; align-items: center; gap: 8px; color: #e5e5e2; font-size: 14px; font-weight: 700; }
.nav-wrap nav a { position: relative; padding: 12px 16px; }
.nav-wrap nav a::after { content: ""; position: absolute; left: 16px; right: 100%; bottom: 5px; height: 2px; background: var(--gold); transition: right .22s ease; }
.nav-wrap nav a:hover::after { right: 16px; }

.hero {
  position: relative;
  min-height: 850px;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero > img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero > img { filter: grayscale(.42) contrast(1.1) brightness(.8); transform: scale(1.015); }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(0,0,0,.98) 0%, rgba(0,0,0,.88) 42%, rgba(0,0,0,.18) 78%),
    linear-gradient(0deg, rgba(0,0,0,.88) 0%, transparent 48%),
    linear-gradient(135deg, rgba(253,187,45,.12), transparent 38%);
}
.hero::after { content: ""; position: absolute; z-index: 1; right: clamp(24px, 7vw, 110px); top: 150px; width: 155px; height: 155px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); opacity: .7; }
.hero-content { position: relative; z-index: 2; padding-top: 28px; }
.hero-content::before { content: ""; position: absolute; left: -28px; top: 24px; bottom: 24px; width: 4px; background: var(--gold); }
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 900; letter-spacing: .2em; }
.eyebrow span { width: 34px; height: 3px; background: var(--gold); }
.eyebrow.dark { color: #4b4e53; }
.hero h1, .section h2, .listing-hero h1 { margin: 0; font-weight: 800; line-height: .99; letter-spacing: -.055em; }
.hero h1 { max-width: 900px; font-size: clamp(3.25rem, 6vw, 6.35rem); }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-lead { max-width: 650px; margin: 30px 0 36px; color: #d4d4d0; font-size: clamp(1.05rem, 1.55vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 54px; padding: 14px 23px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 0; border-radius: 0; font: 800 14px inherit; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: var(--black); }
.button.primary:hover { background: var(--gold-soft); }
.button.ghost { border: 1px solid rgba(255,255,255,.52); color: var(--white); }
.button.ghost:hover { background: var(--white); color: var(--black); }
.hero-meta { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(5,5,5,.74); border-top: 1px solid rgba(255,255,255,.18); }
.hero-meta div { min-height: 98px; padding: 22px 28px; display: flex; align-items: center; gap: 14px; border-right: 1px solid rgba(255,255,255,.15); }
.hero-meta div:last-child { border-right: 0; }
.hero-meta strong { color: var(--gold); font-size: 29px; line-height: 1; }
.hero-meta span { color: #c7c7c3; font-size: 13px; line-height: 1.4; }

.section { padding: 112px 0; }
.section-head { display: grid; grid-template-columns: 1.2fr .7fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.section-head > div { padding-left: 24px; border-left: 4px solid var(--gold); }
.section-head .eyebrow { margin-bottom: 17px; }
.section-head .eyebrow span { display: none; }
.section h2, .listing-hero h1 { font-size: clamp(2.4rem, 4.4vw, 4.25rem); }
.section-head > p { margin: 0; color: var(--muted); font-size: 17px; }

.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 1px; background: #cfcfca; }
.service-card { position: relative; min-height: 345px; padding: 28px; display: flex; flex-direction: column; overflow: hidden; background: var(--white); }
.service-card::after { content: ""; position: absolute; right: -35px; top: -35px; width: 86px; height: 86px; border: 14px solid rgba(253,187,45,.15); transform: rotate(45deg); }
.service-card.featured { background: var(--black); color: var(--white); }
.service-card.featured::after { border-color: rgba(253,187,45,.42); }
.service-card > span { color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.service-card b { margin: auto 0 20px; font-size: 24px; line-height: 1.18; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }
.service-card.featured p { color: #b8b8b3; }

.used-machines { background: var(--black); color: var(--white); }
.used-machines .section-head > p, .used-machines .eyebrow.dark { color: #aaa9a2; }
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.machine-card { overflow: hidden; background: var(--white); border: 1px solid #d2d2cd; color: var(--black); transition: transform .22s, box-shadow .22s; }
.machine-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0,0,0,.22); }
.machine-card.is-sold { opacity: .76; }
.machine-photo { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--graphite); }
.machine-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--gold); }
.machine-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.machine-card:hover .machine-photo img { transform: scale(1.025); }
.machine-placeholder { height: 100%; display: grid; place-items: center; color: #4e5054; font-size: 33px; font-weight: 900; letter-spacing: .14em; }
.status-badge { position: absolute; z-index: 2; left: 16px; top: 16px; padding: 8px 12px; color: var(--black); background: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.status-badge.sold { color: var(--white); background: var(--black); border: 1px solid var(--gold); }
.machine-body { padding: 24px; }
.machine-kicker { margin: 0 0 8px; color: #987019; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.machine-body h3 { margin: 0 0 18px; font-size: 22px; line-height: 1.25; }
.machine-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.machine-meta strong { color: #9a6e0b; }
.machine-description { margin: 15px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty-machines { padding: 60px; border: 1px solid #48494c; background: #151618; text-align: center; }
.empty-machines strong { color: var(--white); font-size: 21px; }
.empty-machines p { margin: 6px 0 0; color: #a9a9a4; }
.center-action { margin-top: 36px; text-align: center; }
.dark-button { background: var(--gold); color: var(--black); }

.about { position: relative; overflow: hidden; background: var(--white); }
.about::after { content: "VOLTEK"; position: absolute; right: -30px; bottom: -70px; color: #f1f1ed; font-size: clamp(100px, 16vw, 240px); font-weight: 900; letter-spacing: -.08em; pointer-events: none; }
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1fr; gap: 90px; align-items: center; }
.tech-panel { min-height: 465px; padding: 42px; display: flex; flex-direction: column; justify-content: center; background: var(--black); color: var(--white); border-top: 8px solid var(--gold); box-shadow: 20px 20px 0 var(--gold); }
.tech-panel > span { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .22em; }
.tech-panel strong { margin: 50px 0 20px; color: var(--gold); font-size: 78px; line-height: 1; }
.tech-panel strong small { color: var(--white); font-size: 24px; }
.tech-panel p { color: #b9b9b4; }
.about-lead { color: #4e5156; font-size: 19px; }
.timeline { margin-top: 35px; border-top: 1px solid var(--line); }
.timeline div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.timeline strong { color: #956c12; }
.timeline span { color: #5c5f64; }

footer { padding: 68px 0 25px; background: var(--black); color: var(--white); border-top: 5px solid var(--gold); }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 45px; }
.footer-logo { height: 70px; }
.footer-top p { max-width: 400px; color: #a7a7a1; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.14); color: #7f817f; font-size: 13px; }
.footer-bottom a { color: var(--gold); }

.sub-header { position: relative; }
.back-link { color: var(--gold); font-size: 14px; font-weight: 800; }
.listing-page { min-height: 100vh; background: var(--paper); }
.listing-hero { padding: 92px 0; background: var(--black); color: var(--white); border-bottom: 6px solid var(--gold); }
.listing-hero h1 { color: var(--white); }
.listing-hero p:last-child { color: #aaa9a3; }
.listing-content { padding: 72px 0 112px; }
.listing-page .empty-machines { background: var(--white); border-color: var(--line); }
.listing-page .empty-machines strong { color: var(--black); }

.admin-page { min-height: 100vh; background: #ecece8; }
.admin-header { background: var(--black); color: var(--white); border-top: 4px solid var(--gold); }
.admin-shell { width: min(1220px, calc(100% - 40px)); margin: auto; }
.admin-header .admin-shell { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.admin-header .admin-shell > div { display: flex; align-items: center; gap: 14px; }
.admin-logo-image { display: block; width: auto; height: 50px; background: var(--white); }
.admin-header .admin-shell > div:first-child strong { color: var(--gold); font-size: 15px; letter-spacing: .04em; }
.admin-header .admin-shell > div:last-child { color: #a9aaa6; font-size: 14px; }
.admin-header a { padding: 8px 13px; border: 1px solid #505155; color: var(--white); }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .8fr); gap: 24px; padding: 36px 0 72px; }
.admin-card { padding: 30px; background: var(--white); border: 1px solid #d1d1cc; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.admin-card-title { padding-left: 16px; border-left: 4px solid var(--gold); }
.admin-card-title > span { color: #8d6510; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.admin-card-title h1, .admin-card-title h2 { margin: 7px 0; font-size: 28px; line-height: 1.2; }
.admin-card-title p { margin: 0 0 25px; color: #686b70; }
.machine-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.machine-form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 800; }
.machine-form .full { grid-column: 1 / -1; }
.machine-form input, .machine-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #c8c9c5; background: #fafaf8; font: inherit; outline: none; }
.machine-form input:focus, .machine-form textarea:focus { border-color: #9e7417; box-shadow: 0 0 0 3px rgba(253,187,45,.22); }
.upload-label { padding: 17px; border: 1px dashed #9d9e9b; background: #f5f5f1; }
.upload-label input { padding: 5px 0; border: 0; background: transparent; }
.upload-label small { color: #74777b; font-weight: 400; }
.machine-form button { grid-column: 1 / -1; padding: 15px; border: 0; background: var(--gold); color: var(--black); font-size: 15px; font-weight: 900; cursor: pointer; }
.machine-form button:disabled, .admin-machine-row button:disabled { opacity: .55; }
.form-message { padding: 12px 14px; background: #fff4d7; color: #614706; font-weight: 800; }
.admin-machine-list { display: flex; flex-direction: column; gap: 12px; }
.admin-machine-row { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 13px; padding: 10px; border: 1px solid #deded9; }
.admin-machine-row img, .mini-placeholder { width: 72px; height: 60px; object-fit: cover; background: var(--graphite); color: var(--gold); display: grid; place-items: center; font-weight: 900; }
.admin-machine-row > div:nth-child(2) { min-width: 0; }
.admin-machine-row strong, .admin-machine-row span { display: block; }
.admin-machine-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-machine-row span { color: #76797e; font-size: 13px; }
.admin-machine-row button { padding: 10px 12px; border: 0; font-weight: 900; cursor: pointer; }
.mark-sold { background: var(--black); color: var(--gold); }
.reopen { background: var(--gold); color: var(--black); }
.admin-empty { padding: 30px; border: 1px dashed #c2c3bf; color: #74777b; text-align: center; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 28px, 720px); }
  .nav-wrap { height: 78px; }
  .brand-logo { height: 49px; }
  .nav-wrap nav { gap: 0; font-size: 12px; }
  .nav-wrap nav a { padding-inline: 10px; }
  .hero { min-height: 770px; }
  .hero-content::before { left: -14px; }
  .hero-meta div { padding: 18px 14px; display: block; }
  .hero-meta span { display: block; }
  .section { padding: 82px 0; }
  .section-head, .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .machine-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .footer-top { gap: 30px; }
}

@media (max-width: 600px) {
  .site-header, .sub-header { border-top-width: 3px; }
  .brand-logo { height: 43px; }
  .nav-wrap nav a:not(:nth-child(2)) { display: none; }
  .hero { min-height: 810px; }
  .hero::after { display: none; }
  .hero-content::before { left: -8px; }
  .hero h1 { font-size: 3rem; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta div:last-child { display: none; }
  .hero-meta strong { font-size: 21px; }
  .hero-meta span { font-size: 11px; }
  .section { padding: 72px 0; }
  .section-head > div { padding-left: 16px; }
  .service-grid, .machine-grid { grid-template-columns: 1fr; }
  .tech-panel { min-height: 355px; padding: 30px; box-shadow: 10px 10px 0 var(--gold); }
  .tech-panel strong { font-size: 60px; }
  .footer-top, .footer-bottom { display: block; }
  .footer-logo { height: 58px; }
  .footer-top p { margin-top: 25px; text-align: left; }
  .footer-bottom a { display: block; margin-top: 8px; }
  .machine-form { grid-template-columns: 1fr; }
  .machine-form label { grid-column: 1 / -1; }
  .admin-logo-image { height: 42px; }
  .admin-header .admin-shell > div:last-child > span { display: none; }
  .admin-machine-row { grid-template-columns: 58px 1fr; }
  .admin-machine-row img, .mini-placeholder { width: 58px; height: 52px; }
  .admin-machine-row button { grid-column: 1 / -1; }
  .admin-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* cPanel/PHP sürümü ek stilleri */
.machine-card-link { display: block; height: 100%; }
.image-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; color: #fff; background: rgba(0,0,0,.75); font-size: 11px; font-weight: 800; }
.notice { margin: 18px 0; padding: 13px 15px; border-left: 4px solid var(--gold); background: #fff4d7; color: #5f470d; }
.notice.success { border-color: #2d8a4b; background: #eaf8ef; color: #18572e; }
.notice.error { border-color: #c63d32; background: #fff0ef; color: #7b201a; }

.machine-detail { min-height: calc(100vh - 94px); padding: 70px 0 100px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 55px; }
.machine-gallery { min-width: 0; }
.gallery-main { aspect-ratio: 16/10; overflow: hidden; display: grid; place-items: center; background: #151618; border-bottom: 5px solid var(--gold); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.gallery-thumb { padding: 0; aspect-ratio: 1; overflow: hidden; border: 2px solid transparent; background: #111; cursor: pointer; }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.machine-detail-info { padding-top: 18px; }
.machine-detail-info h1 { margin: 12px 0 28px; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.detail-status { display: inline-block; padding: 8px 12px; background: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.detail-status.sold { color: #fff; background: var(--black); border: 1px solid var(--gold); }
.machine-detail-info .machine-kicker { margin-top: 24px; }
.machine-detail-info dl { border-top: 1px solid var(--line); }
.machine-detail-info dl div { display: grid; grid-template-columns: 130px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.machine-detail-info dt { color: var(--muted); }
.machine-detail-info dd { margin: 0; font-weight: 800; }
.detail-description { margin-top: 28px; }
.detail-description h2 { font-size: 20px; }
.detail-description p { color: #50535a; }
.not-found { min-height: 100vh; display: grid; place-content: center; gap: 20px; text-align: center; }

.login-page { min-height: 100vh; background: #0b0c0e; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card { width: min(470px, 100%); padding: 38px; background: #fff; border-top: 6px solid var(--gold); box-shadow: 0 25px 80px rgba(0,0,0,.45); }
.login-card > img { width: auto; height: 66px; margin-bottom: 28px; background: #fff; }
.login-card h1 { margin: 0; font-size: 38px; line-height: 1.05; }
.login-card > p:not(.eyebrow) { color: var(--muted); }
.login-form, .install-form { display: grid; gap: 16px; margin-top: 24px; }
.login-form label, .install-form label { display: grid; gap: 7px; font-weight: 800; }
.login-form input, .install-form input { width: 100%; padding: 13px 14px; border: 1px solid #c8c9c5; background: #fafaf8; font: inherit; }
.login-form .button, .install-form .button { width: 100%; }
.login-back { display: inline-block; margin-top: 23px; color: #78570f; font-weight: 800; }

.install-page { min-height: 100vh; background: #0b0c0e; }
.install-shell { width: min(760px, calc(100% - 28px)); margin: auto; padding: 46px 0 70px; }
.install-shell > img { display: block; height: 75px; width: auto; margin: 0 auto 25px; background: #fff; }
.install-card { padding: 38px; background: #fff; border-top: 6px solid var(--gold); }
.install-card h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.install-card > p { color: var(--muted); }
.install-form { grid-template-columns: 1fr 1fr; }
.install-form label:nth-of-type(1), .install-form hr, .install-form .button { grid-column: 1 / -1; }
.install-form hr { width: 100%; border: 0; border-top: 1px solid var(--line); }
.install-form small { color: var(--muted); font-weight: 400; }

.admin-machine-row > form { margin: 0; }
.admin-header .admin-shell > div:last-child { gap: 8px; }

@media (max-width: 900px) {
  .machine-detail { grid-template-columns: 1fr; gap: 24px; }
  .machine-detail-info { padding-top: 0; }
}

@media (max-width: 600px) {
  .machine-detail { padding-top: 35px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .login-card, .install-card { padding: 25px; }
  .install-form { grid-template-columns: 1fr; }
  .install-form > * { grid-column: 1 / -1; }
  .admin-header .admin-shell > div:last-child a:first-of-type { display: none; }
}
