:root{
  --bg:#f6f8fc;--surface:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;
  --blue:#156cf7;--blue2:#32b5ff;--dark:#07111f;--green:#19b875;--gold:#f4b321;
  --shadow:0 14px 40px rgba(17,24,39,.08);--radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.topbar{height:72px;display:flex;align-items:center;gap:28px;padding:0 4vw;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
.brand{display:flex;align-items:center;gap:10px;min-width:max-content}
.brand-mark{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#0f62fe,#59c2ff);color:white;font-weight:900;font-size:23px}
.brand b{display:block;font-size:17px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#58708e}
.main-nav{display:flex;gap:24px;margin:auto}.main-nav a{font-size:14px;color:#334155}.main-nav a:hover{color:var(--blue)}
.nav-actions{display:flex;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:11px 18px;font-weight:700;border:1px solid transparent;font-size:14px;cursor:pointer}
.btn.primary{background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;box-shadow:0 8px 22px rgba(21,108,247,.25)}
.btn.ghost{background:#fff;border-color:#cbd5e1;color:#1e293b}.btn.wide{width:100%}
.hero{margin:24px auto 0;max-width:1440px;min-height:420px;border-radius:24px;overflow:hidden;padding:54px;display:grid;grid-template-columns:1.05fr .95fr;gap:30px;align-items:center;color:#fff;background:
radial-gradient(circle at 80% 20%,rgba(40,142,255,.22),transparent 25%),
linear-gradient(120deg,#06101d,#0a1f39 70%,#0a2848)}
.hero-content h1{font-size:58px;line-height:1.02;margin:12px 0 18px}.hero-content h1 span{color:#34b6ff}
.hero-content p{font-size:18px;color:#d3def0;max-width:650px;line-height:1.6}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:2px;color:#2497ff}
.hero-search{display:flex;gap:8px;background:#fff;border-radius:13px;padding:7px;max-width:650px;margin:26px 0 14px}
.hero-search input{border:0;outline:0;padding:12px 14px;flex:1;font-size:15px}.hero-search button{border:0;border-radius:9px;background:var(--blue);color:white;padding:0 22px;font-weight:700}
.hero-actions{display:flex;gap:12px;margin-top:12px}.hero .btn.ghost{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.25);color:#fff}
.hero-card{height:310px;position:relative;display:grid;place-items:end center;padding-bottom:24px}
.mock-card{position:absolute;width:210px;height:275px;border-radius:18px;border:1px solid rgba(255,255,255,.25);box-shadow:0 24px 60px rgba(0,0,0,.35)}
.card-a{background:linear-gradient(160deg,#fff,#d8e6f7);transform:translateX(-120px) rotate(-7deg)}
.card-b{background:linear-gradient(160deg,#07111f,#143d70);transform:translateX(20px) translateY(-12px)}
.card-c{background:linear-gradient(160deg,#5b44ff,#1a65ff);transform:translateX(135px) rotate(7deg)}
.hero-card strong{z-index:2;background:rgba(3,12,25,.75);backdrop-filter:blur(8px);padding:10px 16px;border-radius:999px}
.section,.page{max-width:1440px;margin:0 auto;padding:52px 28px}
.section.soft{background:#fff;border-radius:24px;margin-top:15px;margin-bottom:15px}
.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}.section-head h2,.page-head h1{margin:7px 0 0;font-size:32px}
.section-head>a{color:var(--blue);font-weight:700}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.category-grid.large{grid-template-columns:repeat(5,1fr)}
.category-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;min-height:125px;box-shadow:0 5px 18px rgba(15,23,42,.04);transition:.2s}
.category-card:hover{transform:translateY(-3px);border-color:#8fc5ff;box-shadow:var(--shadow)}
.category-card b,.category-card small{display:block}.category-card small{color:var(--muted);margin-top:8px}.category-icon{width:36px;height:36px;border-radius:10px;background:#eaf3ff;color:var(--blue);display:grid;place-items:center;margin-bottom:16px}
.template-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.template-card{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.template-cover{height:230px;position:relative;background:#eaf0f7;display:block}.template-cover img{width:100%;height:100%;object-fit:cover}.cover-placeholder{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#06111f,#16497e);color:#fff;font-weight:800;letter-spacing:2px}
.badge{position:absolute;left:12px;top:12px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.badge.free{background:#d8f8e9;color:#087c50}.badge.premium{background:#fff2c2;color:#8a5c00}
.template-body{padding:17px}.template-body small{color:var(--blue);font-weight:700}.template-body h3{margin:8px 0;font-size:18px}.template-body p{color:var(--muted);font-size:14px;line-height:1.5;min-height:42px}
.template-meta{display:flex;justify-content:space-between;align-items:center;margin-top:15px;font-size:13px}.template-meta span{color:var(--muted)}
.empty-state{background:#fff;border:1px dashed #cbd5e1;border-radius:16px;text-align:center;padding:48px 20px;color:#475569}
.cta{max-width:1440px;margin:15px auto 40px;padding:34px 38px;border-radius:22px;background:linear-gradient(120deg,#07111f,#0d3158);color:#fff;display:flex;justify-content:space-between;align-items:center}.cta h2{margin:8px 0}.cta p{color:#c7d3e3}
.footer{background:#06101c;color:#cbd5e1;padding:36px 4vw;display:grid;grid-template-columns:1fr 1fr auto;gap:30px}.footer p{color:#7f91aa}.footer-links{display:flex;gap:20px;flex-wrap:wrap}
.page-head{margin-bottom:24px}.page-head p{color:var(--muted)}
.filter-bar{display:flex;gap:10px;margin-bottom:25px}.filter-bar input{flex:1;padding:14px;border:1px solid #cbd5e1;border-radius:10px;background:white}
.auth-page{min-height:70vh;display:grid;place-items:center;padding:50px 20px}.auth-card,.form-card{width:min(100%,520px);background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:var(--shadow)}
.auth-card h1{margin:8px 0 24px}.auth-card label,.form-card label{display:block;font-size:13px;font-weight:700;margin-bottom:16px}
input,select,textarea{width:100%;margin-top:7px;border:1px solid #cbd5e1;border-radius:10px;padding:12px;font:inherit;background:#fff;outline:none}
input:focus,select:focus,textarea:focus{border-color:#58a9ff;box-shadow:0 0 0 3px rgba(21,108,247,.1)}
.alert{padding:12px 14px;border-radius:10px;margin-bottom:14px}.alert.error{background:#fee2e2;color:#991b1b}.alert.success{background:#dcfce7;color:#166534}
.account-head{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px}.account-head h1{margin:6px 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.stat-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.stat-card strong,.stat-card span{display:block}.stat-card strong{font-size:27px;color:var(--blue)}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.dash-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px}.dash-card b,.dash-card span{display:block}.dash-card span{color:var(--muted);margin-top:7px;font-size:13px}
.form-card{width:min(100%,850px)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.list-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.list-row{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.list-row small{display:block;color:var(--muted);margin-top:5px}
.status{border-radius:999px;padding:6px 10px;background:#eef2f7;font-size:12px}.status.published{background:#dcfce7;color:#166534}.status.pending{background:#fff3cd;color:#805b00}
.creator-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.creator-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;text-align:center}.creator-card .avatar{width:60px;height:60px;border-radius:50%;background:#eaf3ff;color:var(--blue);display:grid;place-items:center;margin:0 auto 12px;font-weight:900;font-size:22px}.creator-card b,.creator-card span{display:block}.creator-card span{color:var(--muted);font-size:13px;margin-top:6px}
.detail-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:34px;align-items:start}.detail-gallery,.detail-info{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px}.detail-main-image{width:100%;max-height:650px;object-fit:contain;border-radius:14px}.detail-placeholder{min-height:420px;display:grid;place-items:center;background:linear-gradient(135deg,#07111f,#16497e);color:white;border-radius:14px;font-weight:900}.detail-info h1{font-size:38px;margin:9px 0 14px}.detail-info p{color:var(--muted);line-height:1.6}.price-line strong{font-size:28px}.format-list{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.format-list span{background:#eef5ff;border:1px solid #cfe3ff;padding:7px 10px;border-radius:999px;font-size:12px}.rich-text{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;line-height:1.8;color:#334155}
@media(max-width:1050px){.main-nav{display:none}.category-grid,.category-grid.large{grid-template-columns:repeat(3,1fr)}.template-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr}.hero-card{display:none}.creator-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.topbar{padding:0 16px}.brand small{display:none}.nav-actions .ghost{display:none}.hero{margin:10px;border-radius:16px;padding:32px 22px;min-height:0}.hero-content h1{font-size:40px}.hero-search{flex-direction:column}.category-grid,.category-grid.large,.template-grid,.stats-grid,.dashboard-grid,.creator-grid,.form-row,.detail-grid{grid-template-columns:1fr}.section,.page{padding:34px 16px}.footer{grid-template-columns:1fr}.cta{margin:10px 10px 30px;align-items:flex-start;gap:20px;flex-direction:column}.template-cover{height:210px}.section-head{align-items:flex-start;gap:10px}.section-head h2{font-size:26px}.account-head{align-items:flex-start;gap:20px;flex-direction:column}}


/* ===== Template Market V1.1 ===== */
.market-home{background:#f7f8fb;min-height:100vh}
.market-topbar{height:68px;box-shadow:0 1px 0 rgba(15,23,42,.06)}
.top-search-mini{width:240px}
.top-search-mini input{margin:0;background:#f8fafc}
.market-search-section{background:#fff;padding:30px 28px 18px;border-bottom:1px solid #e8edf4}
.market-search-wrap{max-width:980px;margin:0 auto;text-align:center}
.market-search-wrap h1{font-size:34px;margin:0 0 8px}
.market-search-wrap p{color:#64748b;margin:0 0 18px}
.market-search{display:flex;gap:8px;max-width:760px;margin:0 auto}
.market-search input{margin:0;padding:15px 18px;border:1px solid #cbd5e1;border-radius:12px;background:white}
.market-search button{border:0;border-radius:12px;background:#136cf5;color:white;font-weight:800;padding:0 24px}
.quick-categories{background:white;border-bottom:1px solid #e8edf4;padding:12px 22px}
.quick-scroll{display:flex;gap:10px;overflow:auto;max-width:1500px;margin:0 auto;scrollbar-width:none}
.quick-scroll::-webkit-scrollbar{display:none}
.quick-chip{white-space:nowrap;display:flex;align-items:center;gap:8px;border:1px solid #dbe3ee;border-radius:999px;background:#fff;padding:9px 13px;font-size:13px}
.quick-chip span{width:26px;height:26px;border-radius:8px;background:#eef5ff;color:#156cf7;display:grid;place-items:center;font-weight:900}
.market-layout{max-width:1540px;margin:0 auto;display:grid;grid-template-columns:225px 1fr;gap:22px;padding:22px}
.market-sidebar{position:sticky;top:90px;align-self:start;background:#fff;border:1px solid #e5eaf1;border-radius:16px;padding:16px}
.side-title{font-size:12px;font-weight:900;letter-spacing:1.4px;color:#94a3b8;text-transform:uppercase;margin:5px 9px 9px}
.side-link{display:block;padding:10px 11px;border-radius:9px;font-size:14px;color:#334155}
.side-link:hover,.side-link.active{background:#eef5ff;color:#156cf7;font-weight:700}
.side-link.small{font-size:13px}
.side-sep{height:1px;background:#edf1f5;margin:12px 0}
.side-upload-box{margin-top:18px;padding:14px;border-radius:13px;background:linear-gradient(135deg,#f0f6ff,#eef2ff)}
.side-upload-box p{font-size:12px;color:#64748b;line-height:1.5}
.market-content{min-width:0}
.market-tabs{display:flex;gap:10px;overflow:auto;padding-bottom:6px}
.tab{background:white;border:1px solid #dfe6ef;border-radius:999px;padding:9px 14px;font-size:13px;white-space:nowrap}
.tab.active{background:#136cf5;color:white;border-color:#136cf5}
.market-head{margin:24px 0 14px;align-items:center}
.market-head h2{font-size:25px;margin:0 0 4px}
.market-head p{margin:0;color:#64748b;font-size:14px}
.market-head.second{margin-top:36px}
.masonry-grid{columns:5 220px;column-gap:16px}
.market-template-card{break-inside:avoid;margin-bottom:16px;background:#fff;border:1px solid #e5eaf1;border-radius:15px;overflow:hidden;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.market-cover{display:block;position:relative;background:#edf2f7}
.market-cover img{width:100%;display:block;object-fit:cover}
.size-1 .market-cover,.size-4 .market-cover{min-height:340px}
.size-2 .market-cover,.size-5 .market-cover{min-height:260px}
.size-3 .market-cover{min-height:300px}
.modern-placeholder{min-height:inherit;height:100%;padding:26px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;background:linear-gradient(145deg,#07111f,#173a66 55%,#426cff);color:white}
.modern-placeholder span{font-size:12px;opacity:.8;text-transform:uppercase;letter-spacing:1px}
.modern-placeholder strong{font-size:24px;line-height:1.05}
.market-cover .badge{z-index:2}
.heart{position:absolute;top:11px;right:11px;width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.92);display:grid;place-items:center;font-size:20px;color:#334155}
.market-card-body{padding:13px}
.market-card-body h3{font-size:15px;margin:0 0 10px;line-height:1.35}
.market-card-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#64748b}
.market-card-meta strong{color:#111827}
.template-empty{padding:24px}
.sample-masonry{columns:5 160px;column-gap:12px;text-align:left;margin-bottom:20px}
.sample-tile{break-inside:avoid;background:linear-gradient(135deg,#e9eef5,#c9d4e3);height:150px;border-radius:12px;margin-bottom:12px;padding:16px;font-weight:800;color:#334155}
.sample-tile.tall{height:260px;background:linear-gradient(135deg,#111827,#334155);color:white}
.sample-tile.wide{height:190px;background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1e3a8a}
.sample-tile.alt{background:linear-gradient(135deg,#7c2d12,#f97316)}
.visual-category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.visual-category{min-height:155px;border-radius:16px;padding:18px;color:white;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.visual-category span{font-size:20px;font-weight:800}.visual-category small{opacity:.9;margin-top:5px}
.vc-1{background:linear-gradient(145deg,#0f172a,#2563eb)}
.vc-2{background:linear-gradient(145deg,#064e3b,#14b8a6)}
.vc-3{background:linear-gradient(145deg,#581c87,#a855f7)}
.vc-4{background:linear-gradient(145deg,#7c2d12,#f59e0b)}
@media(max-width:1180px){.market-layout{grid-template-columns:190px 1fr}.masonry-grid{columns:4 200px}.top-search-mini{display:none}}
@media(max-width:850px){.market-layout{grid-template-columns:1fr;padding:14px}.market-sidebar{display:none}.masonry-grid{columns:2 170px}.visual-category-grid{grid-template-columns:repeat(2,1fr)}.market-search-wrap h1{font-size:28px}}
@media(max-width:560px){.masonry-grid{columns:1}.visual-category-grid{grid-template-columns:1fr}.market-search{flex-direction:column}.market-search button{padding:13px}.market-search-section{padding:24px 16px 16px}}

/* ===== V1.2 Real Upload + Admin ===== */
.upload-card{max-width:900px}
.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}
.upload-drop{border:2px dashed #bfd3eb!important;border-radius:16px;padding:24px!important;text-align:center;background:#f8fbff;cursor:pointer}
.upload-drop:hover{border-color:#2f8cff!important;background:#f2f8ff}
.upload-drop .upload-icon{font-size:32px;display:block;margin-bottom:8px}
.upload-drop b,.upload-drop small{display:block}
.upload-drop small{font-weight:400;color:#64748b;margin:6px 0 10px}
.upload-drop input{background:#fff}
.admin-page{max-width:1350px}
.admin-dash{border-color:#8bbcff!important;background:#eef6ff!important}
.admin-template-list{margin-top:20px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden}
.admin-template-row{display:grid;grid-template-columns:90px 1fr auto;gap:16px;align-items:center;padding:14px 16px;border-bottom:1px solid #edf0f4}
.admin-template-row:last-child{border-bottom:0}
.admin-thumb{width:80px;height:80px;border-radius:12px;background:#eef2f7;overflow:hidden}
.admin-thumb img{width:100%;height:100%;object-fit:cover}
.admin-info b,.admin-info small{display:block}
.admin-info small{color:#64748b;margin-top:6px}
.admin-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.template-empty .btn{margin-top:10px}
@media(max-width:700px){
  .upload-grid{grid-template-columns:1fr}
  .admin-template-row{grid-template-columns:70px 1fr}
  .admin-actions{grid-column:1/-1;justify-content:flex-start}
}

/* ===== V1.3 Admin Center ===== */
.admin-body{background:#f3f6fa}
.admin-shell{min-height:100vh;display:grid;grid-template-columns:245px 1fr}
.admin-sidebar{background:#07111f;color:#d7e2f0;padding:20px 15px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}
.admin-brand{display:flex;align-items:center;gap:10px;padding:4px 8px 22px;color:#fff}
.admin-brand b,.admin-brand small{display:block}.admin-brand small{font-size:9px;letter-spacing:1.8px;color:#8095b0}
.admin-nav{display:flex;flex-direction:column;gap:5px}.admin-nav a{padding:11px 12px;border-radius:10px;color:#cbd7e7;font-size:14px}.admin-nav a:hover{background:#10233a;color:#fff}
.admin-sidebar-bottom{margin-top:auto;border-top:1px solid #172a42;padding:16px 9px 0;display:flex;flex-direction:column;gap:8px}.admin-sidebar-bottom small{color:#8295ad}.admin-sidebar-bottom a{color:#56adff}
.admin-main{min-width:0;padding:28px}
.admin-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.admin-top h1{margin:5px 0 0;font-size:30px}
.admin-stats-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:20px}.admin-stat{background:#fff;border:1px solid #e3e8ef;border-radius:15px;padding:18px}.admin-stat strong,.admin-stat span{display:block}.admin-stat strong{font-size:27px;color:#156cf7}.admin-stat span{margin-top:5px;font-size:13px;color:#64748b}
.admin-panel-card{background:#fff;border:1px solid #e3e8ef;border-radius:18px;padding:20px}
.admin-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.admin-card-head h2{margin:0}.admin-card-head p{margin:4px 0 0;color:#64748b}
.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;min-width:760px}.admin-table th,.admin-table td{text-align:left;padding:12px;border-bottom:1px solid #edf0f4;font-size:13px;vertical-align:middle}.admin-table th{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#8491a3}.admin-table tr:last-child td{border-bottom:0}.table-sub{display:block;color:#7a8798;margin-top:4px}
.admin-filter{display:grid;grid-template-columns:1fr 220px auto;gap:10px;margin-bottom:18px}.admin-filter input,.admin-filter select{margin:0}
.admin-template-list{background:#fff;border:1px solid #e3e8ef;border-radius:18px;overflow:hidden}.admin-template-row{display:grid;grid-template-columns:84px 1fr auto;gap:15px;align-items:center;padding:14px 16px;border-bottom:1px solid #edf0f4}.admin-template-row:last-child{border-bottom:0}.admin-thumb{width:74px;height:74px;border-radius:11px;background:#eef2f7;overflow:hidden}.admin-thumb img{width:100%;height:100%;object-fit:cover}.admin-info b,.admin-info small{display:block}.admin-info small{color:#718096;margin-top:5px}.admin-actions{display:flex;gap:8px;align-items:center}.admin-actions form{display:flex;gap:7px}
.admin-edit-grid{display:grid;grid-template-columns:380px 1fr;gap:18px}.admin-edit-cover{width:100%;border-radius:14px;max-height:600px;object-fit:contain;background:#f8fafc}.check-row{display:flex;gap:18px;margin:15px 0}.check-row label{display:flex;gap:8px;align-items:center}.check-row input{width:auto;margin:0}
.admin-split{display:grid;grid-template-columns:320px 1fr;gap:18px}.inline-actions{display:flex;gap:6px;align-items:center}.inline-actions select{margin:0;padding:8px}.btn.mini{padding:8px 10px;font-size:12px}.settings-form{max-width:850px}
@media(max-width:1100px){.admin-stats-grid{grid-template-columns:repeat(3,1fr)}.admin-edit-grid,.admin-split{grid-template-columns:1fr}}
@media(max-width:800px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:relative;height:auto}.admin-nav{display:grid;grid-template-columns:repeat(2,1fr)}.admin-sidebar-bottom{margin-top:15px}.admin-main{padding:18px}.admin-stats-grid{grid-template-columns:repeat(2,1fr)}.admin-template-row{grid-template-columns:70px 1fr}.admin-actions{grid-column:1/-1}.admin-filter{grid-template-columns:1fr}.admin-top{align-items:flex-start}}

/* ===== V1.4 Content Manager ===== */
.inline-check,.tiny-check,.format-check{display:flex!important;align-items:center;gap:7px}
.inline-check input,.tiny-check input,.format-check input{width:auto;margin:0}
.category-manager{grid-template-columns:330px 1fr}
.category-admin-list{display:flex;flex-direction:column;gap:8px}
.category-admin-row{display:grid;grid-template-columns:minmax(220px,1.4fr) 75px minmax(150px,1fr) 95px auto auto auto;gap:8px;align-items:center;border:1px solid #e7ecf2;border-radius:12px;padding:10px;background:#fff}
.category-admin-row.child-row{margin-left:28px;background:#fafcff}
.category-admin-main{display:flex;align-items:center;gap:10px}.category-admin-icon{width:34px;height:34px;border-radius:9px;background:#edf5ff;color:#1670ef;display:grid;place-items:center}.category-admin-main small{display:block;color:#7b8797;margin-top:3px}
.inline-title-input,.small-input,.cover-input,.icon-input{margin:0!important;padding:8px!important}
.inline-title-input{font-weight:700}
.mini-info{font-size:11px;color:#758195;white-space:nowrap}
.btn.danger{color:#b42318;border-color:#f2b8b5}
.content-form{max-width:none}
.admin-form-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:24px}
.format-selector{border:1px solid #e2e8f0;border-radius:12px;padding:13px;margin:14px 0;display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.format-selector>b{grid-column:1/-1;margin-bottom:4px}
.gallery-admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.gallery-admin-item{border:1px solid #e6ebf1;border-radius:12px;overflow:hidden;background:#f8fafc}.gallery-admin-item img{width:100%;height:180px;object-fit:cover}.gallery-admin-item small{display:block;padding:7px 9px}
@media(max-width:1250px){.category-admin-row{grid-template-columns:1fr 70px 1fr 85px;}.category-admin-row .tiny-check,.category-admin-row .mini-info,.category-admin-row .inline-actions{grid-column:auto}.category-manager{grid-template-columns:1fr}.admin-form-grid{grid-template-columns:1fr}}
@media(max-width:850px){.category-admin-row{grid-template-columns:1fr}.category-admin-row.child-row{margin-left:12px}.format-selector{grid-template-columns:1fr}.gallery-admin-grid{grid-template-columns:1fr}}

/* ===== V1.5.2 Category Accordion + Horizontal Overflow Fix ===== */
html,body{max-width:100%;overflow-x:hidden}
.admin-shell,.admin-main,.admin-panel-card,.category-manager,.category-tree-card{min-width:0}
.admin-main{overflow-x:hidden}
.category-manager{grid-template-columns:minmax(280px,340px) minmax(0,1fr);align-items:start}
.category-create-card{position:sticky;top:20px}
.category-tree-card{overflow:hidden}
.tree-note{font-size:11px;color:#64748b;background:#f1f5f9;border-radius:999px;padding:6px 9px;white-space:nowrap}
.category-accordion{display:flex;flex-direction:column;gap:10px;min-width:0}
.category-group{border:1px solid #e5eaf1;border-radius:14px;background:#fff;overflow:hidden;min-width:0}
.category-group-toggle{width:100%;display:grid;grid-template-columns:28px 38px minmax(0,1fr) auto;align-items:center;gap:10px;border:0;background:#fff;padding:13px 14px;cursor:pointer;text-align:left}
.category-group-toggle:hover{background:#f8fbff}
.category-toggle-icon{font-size:26px;line-height:1;color:#1680ff;transition:transform .18s}
.category-group.open .category-toggle-icon{transform:rotate(90deg)}
.category-group-icon{width:36px;height:36px;border-radius:10px;background:#eef6ff;display:grid;place-items:center}
.category-group-title{min-width:0}
.category-group-title b,.category-group-title small{display:block}
.category-group-title b{font-size:15px}
.category-group-title small{color:#738197;margin-top:3px;white-space:normal}
.category-group-state{font-size:11px;color:#0f766e;background:#ecfdf5;border-radius:999px;padding:5px 8px}
.category-group-panel{display:none;border-top:1px solid #edf1f5;padding:14px;background:#fbfdff}
.category-group.open .category-group-panel{display:block}
.category-edit-card,.subcategory-item{border:1px solid #e7ecf2;border-radius:12px;background:#fff;padding:12px;min-width:0}
.category-root-edit{margin-bottom:12px}
.category-fields-grid{display:grid;grid-template-columns:minmax(0,1.4fr) 90px 120px minmax(150px,1fr);gap:9px}
.category-fields-grid label{min-width:0}
.category-fields-grid input{width:100%;min-width:0;margin-top:5px}
.category-edit-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;flex-wrap:wrap}
.subcategory-list{display:flex;flex-direction:column;gap:9px}
.subcategory-item{background:#fff}
.subcategory-head{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;margin-bottom:9px}
.subcategory-icon{width:32px;height:32px;border-radius:9px;background:#f1f5f9;display:grid;place-items:center}
.subcategory-head b,.subcategory-head small{display:block}
.subcategory-head small{color:#7a8798;margin-top:2px}
.subcategory-fields{display:grid;grid-template-columns:minmax(180px,1.2fr) 80px 110px minmax(150px,1fr);gap:8px;min-width:0}
.subcategory-fields input{width:100%;min-width:0;margin:0}
.empty-subcategory{padding:14px;color:#64748b;background:#f8fafc;border-radius:10px}
.inline-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.admin-sidebar{overflow:hidden}
@media(max-width:1200px){
  .category-manager{grid-template-columns:1fr}
  .category-create-card{position:static}
  .category-fields-grid,.subcategory-fields{grid-template-columns:1fr 90px 120px}
  .category-fields-grid label:last-child,.subcategory-fields input:last-child{grid-column:1/-1}
}
@media(max-width:850px){
  .category-group-toggle{grid-template-columns:24px 34px minmax(0,1fr)}
  .category-group-state{grid-column:3}
  .category-fields-grid,.subcategory-fields{grid-template-columns:1fr}
  .category-fields-grid label:last-child,.subcategory-fields input:last-child{grid-column:auto}
  .category-edit-footer{align-items:flex-start;flex-direction:column}
  .tree-note{display:none}
}

/* ===== V1.6 Public UX/UI - Homepage ===== */
body{background:#f7f9fc;color:#0f172a}
.ks-site-header{background:#fff;border-bottom:1px solid #e7ecf3;position:sticky;top:0;z-index:60}
.ks-header-inner{max-width:1460px;margin:0 auto;height:72px;padding:0 24px;display:flex;align-items:center;gap:28px}
.ks-logo{display:flex;align-items:center;gap:9px;min-width:max-content}
.ks-logo-mark{width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,#0d66f3,#42c4ff);color:#fff;display:grid;place-items:center;font-size:23px;font-weight:900}
.ks-logo-copy b,.ks-logo-copy small{display:block}.ks-logo-copy b{font-size:18px;line-height:1}.ks-logo-copy small{font-size:8px;letter-spacing:1.8px;color:#1670ef;margin-top:4px}
.ks-main-nav{display:flex;gap:22px;margin:auto}.ks-main-nav a{font-size:14px;color:#475569}.ks-main-nav a.active,.ks-main-nav a:hover{color:#136cf5}
.ks-header-actions{display:flex;gap:9px;align-items:center}.ks-icon-btn{width:38px;height:38px;border:1px solid #dbe3ed;border-radius:10px;display:grid;place-items:center;background:#fff;font-size:20px}
.ks-home{background:#f7f9fc}
.ks-hero{background:linear-gradient(120deg,#06101d,#0a1d36 58%,#0e2c50);color:#fff;overflow:hidden}
.ks-hero-inner{max-width:1460px;margin:0 auto;min-height:470px;padding:58px 28px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:40px}
.ks-kicker{font-size:11px;letter-spacing:2px;font-weight:800;color:#49aaff}
.ks-hero-copy h1{font-size:56px;line-height:1.02;margin:12px 0 18px}.ks-hero-copy h1 span{color:#3ab6ff}
.ks-hero-copy p{max-width:630px;color:#d5dfec;font-size:18px;line-height:1.6}
.ks-hero-actions{display:flex;gap:12px;margin-top:24px}.hero-ghost{border:1px solid rgba(255,255,255,.35);color:#fff;background:transparent}
.ks-hero-search{margin-top:24px;background:#fff;padding:7px;border-radius:13px;display:grid;grid-template-columns:1fr 190px 54px;max-width:760px}
.ks-hero-search input,.ks-hero-search select{border:0;margin:0;background:#fff;box-shadow:none}.ks-hero-search select{border-left:1px solid #e5e7eb}.ks-hero-search button{border:0;border-radius:9px;background:#136cf5;color:#fff;font-weight:800}
.ks-hero-visual{height:350px;position:relative}
.ks-visual-card{position:absolute;border-radius:20px;box-shadow:0 28px 70px rgba(0,0,0,.35)}
.ks-visual-card.back{width:260px;height:310px;background:linear-gradient(160deg,#1d4ed8,#0f172a);right:30px;top:15px;transform:rotate(8deg)}
.ks-visual-card.middle{width:260px;height:310px;background:#fff;right:145px;top:35px;transform:rotate(-5deg)}
.ks-visual-card.front{width:270px;height:320px;background:linear-gradient(160deg,#eef4fb,#fff);right:90px;top:5px;color:#0f172a;padding:32px;display:flex;flex-direction:column}
.doc-label{font-size:17px;font-weight:700}.ks-visual-card.front strong{font-size:32px;margin-top:6px}.doc-bars{height:90px;margin-top:40px;background:repeating-linear-gradient(to bottom,#dce6f2 0 6px,transparent 6px 18px)}.doc-chart{height:80px;margin-top:auto;border-radius:12px;background:linear-gradient(135deg,#dbeafe,#93c5fd)}
.ks-stats{max-width:1460px;margin:0 auto;background:#fff;border:1px solid #e5eaf1;border-top:0;display:grid;grid-template-columns:repeat(4,1fr)}
.ks-stats div{text-align:center;padding:20px;border-right:1px solid #eef1f5}.ks-stats div:last-child{border-right:0}.ks-stats strong,.ks-stats span{display:block}.ks-stats strong{font-size:22px}.ks-stats span{font-size:12px;color:#64748b;margin-top:3px}
.ks-category-strip{max-width:1460px;margin:20px auto 0;padding:0 18px;display:grid;grid-template-columns:repeat(10,1fr);gap:10px}
.ks-category-item{background:#fff;border:1px solid #e6ebf2;border-radius:14px;padding:14px 10px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:#334155}.ks-category-item:hover{border-color:#96c6ff;box-shadow:0 8px 22px rgba(21,108,247,.08)}
.ks-category-icon{width:38px;height:38px;border-radius:10px;background:#eef5ff;color:#136cf5;display:grid;place-items:center;font-size:18px}
.ks-category-item.more .ks-category-icon{background:#f1f5f9;color:#475569}
.ks-section{max-width:1460px;margin:0 auto;padding:50px 28px}.ks-section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px}.ks-section-head h2{font-size:30px;margin:7px 0 4px}.ks-section-head p{margin:0;color:#64748b}.ks-section-head>a{color:#136cf5;font-weight:700}
.ks-featured-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.ks-template-card{background:#fff;border:1px solid #e5eaf1;border-radius:16px;overflow:hidden;box-shadow:0 6px 20px rgba(15,23,42,.04)}
.ks-template-cover{display:block;position:relative;height:255px;background:#edf2f7}.ks-template-cover img{width:100%;height:100%;object-fit:cover}
.ks-template-placeholder{height:100%;padding:24px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(150deg,#0f172a,#315d9b);color:#fff}.ks-template-placeholder span{font-size:12px;opacity:.8}.ks-template-placeholder strong{font-size:24px}
.ks-heart{position:absolute;right:10px;top:10px;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.94);font-size:20px}
.ks-template-body{padding:14px}.ks-template-body small{color:#136cf5;font-weight:700}.ks-template-body h3{font-size:15px;margin:7px 0 10px}.ks-template-meta{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#64748b}.ks-template-meta strong{color:#0f172a}
.ks-empty-showcase{background:#fff;border:1px dashed #c8d3df;border-radius:18px;padding:56px;text-align:center}.ks-empty-showcase h3{font-size:24px;margin:0 0 8px}.ks-empty-showcase p{color:#64748b}
.ks-how{max-width:1460px;margin:0 auto 50px;padding:0 28px}.ks-how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.ks-how-grid>div{background:#fff;border:1px solid #e5eaf1;border-radius:16px;padding:24px}.ks-how-grid span{width:34px;height:34px;border-radius:50%;background:#e9f3ff;color:#136cf5;display:grid;place-items:center;font-weight:800}.ks-how-grid h3{margin:14px 0 7px}.ks-how-grid p{color:#64748b;line-height:1.6;margin:0}
.ks-footer{background:#07111f;color:#c9d5e5}.ks-footer-main{max-width:1460px;margin:0 auto;padding:40px 28px;display:grid;grid-template-columns:1.7fr repeat(3,1fr);gap:40px}.footer-logo .ks-logo-copy b{color:#fff}.ks-footer-brand p{max-width:380px;color:#8fa1b8;line-height:1.6}.ks-footer-col h4{color:#fff;margin:0 0 12px}.ks-footer-col a{display:block;color:#9eb0c4;margin:8px 0;font-size:13px}.ks-footer-bottom{border-top:1px solid #18283b;max-width:1460px;margin:0 auto;padding:16px 28px;display:flex;justify-content:space-between;color:#7890aa;font-size:12px}
@media(max-width:1180px){.ks-main-nav{display:none}.ks-category-strip{grid-template-columns:repeat(5,1fr)}.ks-featured-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.ks-hero-inner{grid-template-columns:1fr}.ks-hero-visual{display:none}.ks-hero-copy h1{font-size:44px}.ks-hero-search{grid-template-columns:1fr}.ks-hero-search select{border-left:0;border-top:1px solid #e5e7eb}.ks-hero-search button{padding:13px}.ks-stats{grid-template-columns:repeat(2,1fr)}.ks-category-strip{grid-template-columns:repeat(3,1fr)}.ks-featured-grid{grid-template-columns:repeat(2,1fr)}.ks-footer-main{grid-template-columns:1fr 1fr}.ks-how-grid{grid-template-columns:1fr}.ks-header-inner{padding:0 16px}.ks-header-actions .ghost{display:none}}
@media(max-width:560px){.ks-hero-inner{padding:42px 18px}.ks-hero-copy h1{font-size:36px}.ks-section,.ks-how{padding-left:16px;padding-right:16px}.ks-category-strip{grid-template-columns:repeat(2,1fr);padding:0 12px}.ks-featured-grid{grid-template-columns:1fr}.ks-footer-main{grid-template-columns:1fr}.ks-footer-bottom{flex-direction:column;gap:8px}.ks-section-head{align-items:flex-start;gap:10px;flex-direction:column}}

/* ===== V1.7 MARKET WORKSPACE UI ===== */
.market-workspace-body{background:#f4f6f9;overflow-x:hidden}
.workspace-topbar{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #e6ebf1}
.workspace-topbar-inner{height:68px;max-width:1920px;margin:0 auto;padding:0 18px;display:flex;align-items:center;gap:16px}
.workspace-brand{display:flex;align-items:center;gap:9px;min-width:max-content}
.workspace-brand-mark{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#0e64ef,#3ec7ff);color:#fff;display:grid;place-items:center;font-weight:900;font-size:22px}
.workspace-brand-copy b,.workspace-brand-copy small{display:block}.workspace-brand-copy b{font-size:17px}.workspace-brand-copy small{font-size:8px;letter-spacing:1.5px;color:#1670ef;margin-top:2px}
.workspace-search{display:grid;grid-template-columns:36px minmax(220px,1fr) auto;align-items:center;flex:1;max-width:760px;margin:0 auto;background:#f8fafc;border:1px solid #dbe3ed;border-radius:12px;padding:4px 5px}
.workspace-search .search-icon{display:grid;place-items:center;color:#64748b;font-size:18px}.workspace-search input{border:0!important;box-shadow:none!important;background:transparent!important;margin:0!important;padding:10px 4px!important}.workspace-search button{border:0;border-radius:9px;background:#136cf5;color:#fff;padding:10px 16px;font-weight:800}
.workspace-actions{display:flex;align-items:center;gap:9px}.workspace-link{font-size:13px;color:#475569}.workspace-link:hover{color:#136cf5}
.workspace-user{display:flex;align-items:center;gap:8px;padding:6px 9px;border-radius:10px}.workspace-user:hover{background:#f5f8fc}.workspace-user-avatar{width:32px;height:32px;border-radius:50%;background:#e8f2ff;color:#136cf5;display:grid;place-items:center;font-weight:900}.workspace-user-copy b,.workspace-user-copy small{display:block}.workspace-user-copy b{font-size:12px}.workspace-user-copy small{font-size:10px;color:#64748b}
.mobile-menu-btn{display:none;border:0;background:#fff;font-size:22px}
.workspace-layout{max-width:1920px;margin:0 auto;display:grid;grid-template-columns:230px minmax(0,1fr) 285px;gap:18px;padding:18px}
.workspace-sidebar{position:sticky;top:86px;align-self:start;background:#fff;border:1px solid #e6ebf1;border-radius:16px;padding:13px;max-height:calc(100vh - 105px);overflow-y:auto}
.sidebar-home,.sidebar-nav a{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:10px;font-size:13px;color:#334155}.sidebar-home.active,.sidebar-home:hover,.sidebar-nav a:hover{background:#edf5ff;color:#136cf5;font-weight:700}
.sidebar-title{font-size:10px;letter-spacing:1.4px;color:#94a3b8;font-weight:900;padding:12px 10px 6px}.sidebar-nav{display:flex;flex-direction:column;gap:3px}.sidebar-icon{width:26px;text-align:center}
.sidebar-separator{height:1px;background:#edf1f5;margin:12px 5px}.sidebar-promo{margin-top:14px;border-radius:14px;padding:14px;background:linear-gradient(145deg,#eef6ff,#f7f4ff);border:1px solid #dce8f8}.sidebar-promo>span{font-size:10px;letter-spacing:1px;color:#136cf5;font-weight:900}.sidebar-promo b{display:block;margin:6px 0}.sidebar-promo p{font-size:12px;color:#64748b;line-height:1.5}
.workspace-main{min-width:0}.market-welcome{background:#fff;border:1px solid #e6ebf1;border-radius:16px;padding:20px 22px}.workspace-kicker{font-size:10px;letter-spacing:1.8px;color:#136cf5;font-weight:900}.market-welcome h1{font-size:30px;margin:7px 0 4px}.market-welcome p{margin:0;color:#64748b}
.workspace-filter-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.workspace-filter-pills a{padding:8px 12px;border-radius:999px;background:#f7f9fc;border:1px solid #dfe6ef;font-size:12px}.workspace-filter-pills a.active,.workspace-filter-pills a:hover{background:#136cf5;color:#fff;border-color:#136cf5}
.workspace-quick-categories{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:9px;margin-top:14px}.workspace-quick-categories a{background:#fff;border:1px solid #e6ebf1;border-radius:13px;padding:13px 8px;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}.workspace-quick-categories a:hover{border-color:#9dc8ff;box-shadow:0 8px 20px rgba(21,108,247,.06)}.workspace-quick-categories span{font-size:20px}.workspace-quick-categories b{font-size:11px;font-weight:700}.workspace-quick-categories .all-cats{background:#f8fafc}
.workspace-content-section{margin-top:20px}.workspace-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.workspace-section-head h2{margin:0;font-size:22px}.workspace-section-head p{margin:4px 0 0;color:#64748b;font-size:13px}.workspace-section-head>a{font-size:12px;color:#136cf5;font-weight:700}
.workspace-template-grid{columns:5 190px;column-gap:14px}.workspace-template-card{break-inside:avoid;margin-bottom:14px;background:#fff;border:1px solid #e5eaf1;border-radius:14px;overflow:hidden;box-shadow:0 4px 14px rgba(15,23,42,.04)}
.workspace-template-cover{display:block;position:relative;background:#edf2f7;overflow:hidden}.workspace-template-cover.ratio-1{min-height:270px}.workspace-template-cover.ratio-2{min-height:220px}.workspace-template-cover.ratio-3{min-height:320px}.workspace-template-cover.ratio-4{min-height:245px}
.workspace-template-cover img{width:100%;height:100%;object-fit:cover;display:block}.workspace-template-placeholder{min-height:inherit;height:100%;background:linear-gradient(150deg,#0d1728,#215491);color:#fff;padding:18px;display:flex;flex-direction:column;justify-content:space-between}.workspace-template-placeholder span{font-size:10px;opacity:.78;text-transform:uppercase}.workspace-template-placeholder strong{font-size:21px;line-height:1.1}
.template-price-badge{position:absolute;left:9px;top:9px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900;z-index:3}.template-price-badge.free{background:#dcfce7;color:#166534}.template-price-badge.paid{background:#fff3c7;color:#8a5a00}
.template-fav-btn{position:absolute;right:9px;top:9px;width:32px;height:32px;border:0;border-radius:9px;background:rgba(255,255,255,.94);font-size:19px;z-index:3}.template-hover-actions{position:absolute;inset:auto 10px 10px 10px;background:rgba(7,17,31,.82);backdrop-filter:blur(7px);color:#fff;border-radius:9px;padding:9px;text-align:center;font-size:11px;opacity:0;transform:translateY(8px);transition:.18s}.workspace-template-cover:hover .template-hover-actions{opacity:1;transform:translateY(0)}
.workspace-template-info{padding:12px}.workspace-template-info small{color:#136cf5;font-weight:700;font-size:10px}.workspace-template-info h3{font-size:14px;line-height:1.35;margin:6px 0 9px}.workspace-template-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#64748b}.workspace-template-meta strong{color:#0f172a}
.workspace-empty{background:#fff;border:1px dashed #c9d5e2;border-radius:16px;padding:40px;text-align:center}.workspace-empty h3{margin:18px 0 7px}.workspace-empty p{color:#64748b}.workspace-empty-visual{height:145px;position:relative;max-width:360px;margin:0 auto}.empty-card{position:absolute;width:105px;height:135px;border-radius:11px;box-shadow:0 14px 30px rgba(15,23,42,.12)}.empty-card.c1{left:40px;background:linear-gradient(145deg,#0f172a,#2563eb);transform:rotate(-6deg)}.empty-card.c2{left:130px;background:linear-gradient(145deg,#fff,#cbd5e1);z-index:2}.empty-card.c3{left:220px;background:linear-gradient(145deg,#7c3aed,#3b82f6);transform:rotate(6deg)}
.workspace-rightbar{position:sticky;top:86px;align-self:start;display:flex;flex-direction:column;gap:14px}.rightbar-card{background:#fff;border:1px solid #e6ebf1;border-radius:16px;padding:15px}.rightbar-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.rightbar-card-head h3{font-size:14px;margin:0}.rightbar-card-head a{font-size:11px;color:#136cf5}.tag-cloud{display:flex;flex-wrap:wrap;gap:7px}.tag-cloud a{font-size:11px;padding:6px 8px;border-radius:999px;background:#f3f6fa;color:#475569}.tag-cloud a:hover{background:#e8f2ff;color:#136cf5}
.creator-mini-list{display:flex;flex-direction:column;gap:8px}.creator-mini{display:flex;align-items:center;gap:9px;padding:7px;border-radius:10px}.creator-mini:hover{background:#f7f9fc}.creator-mini-avatar{width:34px;height:34px;border-radius:50%;background:#e8f2ff;color:#136cf5;display:grid;place-items:center;font-weight:900}.creator-mini-copy b,.creator-mini-copy small{display:block}.creator-mini-copy b{font-size:12px}.creator-mini-copy small{font-size:10px;color:#64748b}.rightbar-empty{font-size:12px;color:#64748b;line-height:1.5}.rightbar-help{background:linear-gradient(145deg,#0d1728,#173a64);color:#fff}.rightbar-help>span{font-size:9px;letter-spacing:1.4px;color:#62b7ff;font-weight:900}.rightbar-help h3{margin:6px 0}.rightbar-help p{font-size:12px;color:#c5d3e3}.rightbar-help a{font-size:12px;color:#62b7ff;font-weight:700}
.workspace-footer{background:#fff;border-top:1px solid #e6ebf1;margin-top:20px}.workspace-footer-inner{max-width:1920px;margin:0 auto;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.workspace-footer-inner>div:first-child b,.workspace-footer-inner>div:first-child span{display:block}.workspace-footer-inner>div:first-child span{font-size:11px;color:#64748b;margin-top:2px}.workspace-footer-links{display:flex;gap:18px}.workspace-footer-links a{font-size:12px;color:#475569}.workspace-footer small{color:#94a3b8}
@media(max-width:1500px){.workspace-layout{grid-template-columns:220px minmax(0,1fr)}.workspace-rightbar{display:none}.workspace-template-grid{columns:4 190px}}
@media(max-width:1100px){.workspace-template-grid{columns:3 190px}.workspace-quick-categories{grid-template-columns:repeat(5,1fr)}.workspace-link{display:none}}
@media(max-width:820px){.workspace-layout{grid-template-columns:1fr;padding:12px}.workspace-sidebar{position:fixed;left:12px;top:80px;bottom:12px;width:240px;max-height:none;z-index:120;transform:translateX(-280px);transition:.2s;box-shadow:0 20px 60px rgba(15,23,42,.2)}.workspace-sidebar.mobile-open{transform:translateX(0)}.mobile-menu-btn{display:block}.workspace-search{order:3;flex-basis:100%;max-width:none}.workspace-topbar-inner{height:auto;min-height:68px;flex-wrap:wrap;padding:10px 12px}.workspace-actions{margin-left:auto}.workspace-user-copy,.workspace-upload-btn{display:none}.workspace-template-grid{columns:2 160px}.workspace-quick-categories{grid-template-columns:repeat(4,1fr)}}
@media(max-width:560px){.workspace-template-grid{columns:1}.workspace-quick-categories{grid-template-columns:repeat(3,1fr)}.market-welcome h1{font-size:24px}.workspace-footer-inner{flex-direction:column;align-items:flex-start}.workspace-footer-links{flex-wrap:wrap}.workspace-actions .btn.ghost{display:none}}

/* ===== V1.7.1 SIDEBAR NO-INTERNAL-SCROLL FIX ===== */
/* Sol kategori menüsü kendi içinde scroll yapmaz; sayfa ile birlikte akar. */
.workspace-sidebar{
    position:sticky;
    top:86px;
    max-height:none !important;
    height:auto !important;
    overflow:visible !important;
    overflow-y:visible !important;
}

/* Sidebar içindeki içerik daralmadan doğal yüksekliğinde kalsın. */
.sidebar-nav,
.sidebar-section,
.sidebar-promo{
    overflow:visible !important;
}

/* Ana sayfanın kendi dikey scroll'u yeterli; yatay taşma olmasın. */
.workspace-layout,
.workspace-main,
.market-workspace-body{
    min-width:0;
}

@media(max-width:820px){
    /* Mobil drawer'da ekran dışına taşmaması için kontrollü scroll gerekli. */
    .workspace-sidebar{
        position:fixed;
        top:80px;
        bottom:12px;
        max-height:calc(100vh - 92px) !important;
        overflow-y:auto !important;
    }
}

/* ===== V1.7.2 FILTER SYSTEM ===== */
.sidebar-filter{display:flex;flex-direction:column;gap:10px;padding:4px 8px 2px}
.sidebar-filter label{font-size:11px;color:#64748b;font-weight:700}
.sidebar-filter select,.sidebar-filter input{margin-top:5px;padding:9px 10px;border-radius:9px;font-size:12px;background:#fff}
.price-range{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.filter-reset{display:block;text-align:center;font-size:11px;color:#64748b;padding:4px}
.filter-reset:hover{color:#136cf5}
.sidebar-nav a.active{background:#edf5ff;color:#136cf5;font-weight:800}
.templates-workspace{grid-template-columns:230px minmax(0,1fr);max-width:1920px}
.category-page-head{background:#fff;border:1px solid #e6ebf1;border-radius:16px;padding:20px 22px;display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:12px}
.category-page-head h1{font-size:30px;margin:6px 0 4px}.category-page-head p{margin:0;color:#64748b}
.category-search{display:flex;gap:8px;min-width:360px}.category-search input{margin:0}
.subcategory-pills{display:flex;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #e6ebf1;border-radius:14px;padding:12px;margin-bottom:12px}
.subcategory-pills a{padding:7px 10px;border-radius:999px;background:#f4f7fb;border:1px solid #e1e7ef;font-size:11px}
.subcategory-pills a:hover{background:#eaf3ff;color:#136cf5;border-color:#b8d7ff}
.active-filter-bar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:10px 0 16px;font-size:11px;color:#64748b}
.active-filter-bar>b{background:#fff;border:1px solid #dfe6ee;border-radius:999px;padding:6px 9px;color:#334155}
.active-filter-bar em{font-style:normal;color:#94a3b8}
.workspace-empty.compact{padding:30px}
@media(max-width:820px){
  .templates-workspace{grid-template-columns:1fr}
  .category-page-head{align-items:flex-start;flex-direction:column}
  .category-search{min-width:0;width:100%}
}

/* ===== V1.7.6 Search Typewriter + Live Results ===== */
.workspace-search-wrap{
    position:relative;
    flex:1;
    max-width:760px;
    margin:0 auto;
    min-width:0;
}
.workspace-search-wrap .workspace-search{
    max-width:none;
    width:100%;
    margin:0;
}
.live-search-panel{
    position:absolute;
    z-index:250;
    left:0;
    right:0;
    top:calc(100% + 8px);
    background:#fff;
    border:1px solid #dfe6ee;
    border-radius:14px;
    box-shadow:0 18px 48px rgba(15,23,42,.16);
    overflow:hidden;
    max-height:520px;
}
.live-search-panel[hidden]{display:none!important}
.live-search-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 13px;
    border-bottom:1px solid #edf1f5;
    font-size:11px;
    font-weight:800;
    letter-spacing:.6px;
    color:#475569;
    background:#fbfcfe;
}
.live-search-title small{
    font-weight:600;
    letter-spacing:0;
    color:#94a3b8;
}
.live-search-results{
    max-height:390px;
    overflow-y:auto;
}
.live-search-item,
.live-search-empty{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-bottom:1px solid #f0f3f7;
    background:#fff;
}
.live-search-item:hover,
.live-search-item.active{
    background:#f2f7ff;
}
.live-search-media{
    width:42px;
    height:42px;
    border-radius:10px;
    overflow:hidden;
    flex:0 0 42px;
    background:#eef5ff;
    display:grid;
    place-items:center;
}
.live-search-media img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.live-search-icon{
    color:#136cf5;
    font-weight:900;
    font-size:18px;
}
.live-search-copy{
    min-width:0;
    flex:1;
}
.live-search-copy b,
.live-search-copy small{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.live-search-copy b{
    font-size:13px;
    color:#0f172a;
}
.live-search-copy small{
    font-size:10px;
    color:#64748b;
    margin-top:3px;
}
.live-search-badge{
    font-size:10px;
    color:#334155;
    background:#f1f5f9;
    border-radius:999px;
    padding:5px 7px;
}
.live-search-all{
    display:block;
    padding:11px 13px;
    color:#136cf5;
    font-size:11px;
    font-weight:800;
    background:#fbfcfe;
}
.live-search-empty{
    border-bottom:0;
}
.live-search-empty-icon{
    width:42px;
    height:42px;
    border-radius:10px;
    background:#f1f5f9;
    display:grid;
    place-items:center;
    color:#64748b;
    font-size:20px;
}
.live-search-empty b,
.live-search-empty small{
    display:block;
}
.live-search-empty b{font-size:12px}
.live-search-empty small{font-size:10px;color:#136cf5;margin-top:3px}
@media(max-width:820px){
    .workspace-search-wrap{
        order:3;
        flex-basis:100%;
        max-width:none;
    }
    .live-search-panel{
        position:fixed;
        left:12px;
        right:12px;
        top:138px;
        max-height:calc(100vh - 160px);
    }
}

/* ===== V1.8 REAL TEMPLATE FLOW UX/UI ===== */
.template-live-preview{border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;background:#fff;margin-bottom:18px}
.template-live-preview-cover{height:260px;background:linear-gradient(145deg,#eef2f7,#d9e4f2);display:grid;place-items:center;color:#64748b;font-weight:700;overflow:hidden}
.template-live-preview-cover img{width:100%;height:100%;object-fit:cover}
.template-live-preview-meta{padding:13px}.template-live-preview-meta small,.template-live-preview-meta b,.template-live-preview-meta strong{display:block}.template-live-preview-meta small{color:#136cf5;font-size:11px}.template-live-preview-meta b{font-size:16px;margin:5px 0}.template-live-preview-meta strong{font-size:15px}
.template-detail-workspace{grid-template-columns:220px minmax(0,1fr)}
.template-detail-shell{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px;align-items:start}
.template-detail-gallery,.template-detail-info,.template-description-card{background:#fff;border:1px solid #e5eaf1;border-radius:18px}
.template-detail-gallery{padding:16px}.template-detail-main-image{width:100%;max-height:720px;object-fit:contain;border-radius:12px;background:#f8fafc}.detail-no-image{min-height:520px;border-radius:12px;background:linear-gradient(145deg,#0f172a,#2563eb);display:grid;place-items:center;color:#fff;font-weight:900}
.template-thumbs{display:flex;gap:8px;margin-top:10px;overflow:auto}.template-thumbs button{width:72px;height:72px;border:2px solid transparent;border-radius:9px;padding:0;background:#fff;overflow:hidden;flex:0 0 72px}.template-thumbs button.active{border-color:#136cf5}.template-thumbs img{width:100%;height:100%;object-fit:cover}
.template-detail-info{padding:22px;position:sticky;top:86px}.template-detail-info h1{font-size:32px;line-height:1.12;margin:8px 0 12px}.template-detail-info>p{color:#64748b;line-height:1.6}.detail-price-row{display:flex;justify-content:space-between;align-items:center;margin:20px 0 8px}.detail-price-row strong{font-size:27px}.detail-price-row span{font-size:12px;color:#f59e0b}.detail-stats{display:flex;gap:12px;font-size:11px;color:#64748b;margin-bottom:18px}
.detail-format-list{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.detail-format-list span,.detail-tags span{background:#f3f6fa;border:1px solid #e1e7ef;border-radius:999px;padding:6px 8px;font-size:10px}
.detail-actions{display:flex;flex-direction:column;gap:8px}.detail-author-card{display:flex;align-items:center;gap:10px;border-top:1px solid #edf1f5;margin-top:18px;padding-top:15px}.detail-author-card b,.detail-author-card small{display:block}.detail-author-card small{font-size:10px;color:#64748b}
.template-description-card{margin-top:18px;padding:22px}.template-description-card h2{margin-top:0}.detail-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:18px}
@media(max-width:1000px){.template-detail-workspace{grid-template-columns:1fr}.template-detail-workspace>.workspace-sidebar{display:none}.template-detail-shell{grid-template-columns:1fr}.template-detail-info{position:static}}

/* ===== V1.8.1 TEMPLATE GRID + DETAIL UX ===== */

/* Natural masonry: görselin kendi oranını koru */
.workspace-template-grid{
    columns:5 210px;
    column-gap:14px;
}
.workspace-template-card{
    break-inside:avoid;
    display:inline-block;
    width:100%;
    margin:0 0 14px;
    vertical-align:top;
}
.workspace-template-cover,
.workspace-template-cover.ratio-1,
.workspace-template-cover.ratio-2,
.workspace-template-cover.ratio-3,
.workspace-template-cover.ratio-4{
    min-height:0 !important;
    height:auto !important;
}
.workspace-template-cover img{
    width:100%;
    height:auto !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    object-fit:contain;
    display:block;
    background:#f8fafc;
}
.workspace-template-placeholder{
    min-height:250px;
}
.creator-with-badge{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
    min-width:0;
}
.official-mini-badge{
    font-style:normal;
    font-size:8px;
    line-height:1;
    padding:4px 6px;
    border-radius:999px;
    background:#e8f2ff;
    color:#136cf5;
    font-weight:800;
    white-space:nowrap;
}

/* Detail */
.template-breadcrumb{
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
    font-size:11px;
    color:#718096;
    margin-bottom:14px;
}
.template-breadcrumb a{color:#64748b}
.template-breadcrumb a:hover{color:#136cf5}
.template-title-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}
.template-title-row>div{min-width:0}
.official-badge{
    flex:0 0 auto;
    background:#e8f2ff;
    color:#136cf5;
    border:1px solid #cce2ff;
    border-radius:999px;
    padding:7px 10px;
    font-size:10px;
    font-weight:900;
}
.btn.preview{
    background:#0f2747;
    color:#fff;
    border:1px solid #0f2747;
}
.btn.preview:hover{
    background:#173b68;
}
.template-detail-info{
    box-shadow:0 8px 30px rgba(15,23,42,.06);
}
.template-detail-main-image{
    box-shadow:0 4px 16px rgba(15,23,42,.08);
}

/* Fullscreen preview */
.preview-open{overflow:hidden}
.template-preview-modal{
    position:fixed;
    inset:0;
    z-index:1000;
    background:rgba(4,10,20,.92);
    display:grid;
    place-items:center;
    padding:40px 80px;
}
.template-preview-modal[hidden]{display:none!important}
.template-preview-modal img{
    max-width:min(1200px,92vw);
    max-height:88vh;
    object-fit:contain;
    border-radius:12px;
    box-shadow:0 30px 90px rgba(0,0,0,.45);
}
.preview-close{
    position:absolute;
    right:24px;
    top:18px;
    width:46px;
    height:46px;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:30px;
    cursor:pointer;
}
.preview-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:52px;
    height:68px;
    border:0;
    border-radius:14px;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:42px;
    cursor:pointer;
}
.preview-nav.prev{left:18px}
.preview-nav.next{right:18px}
.preview-counter{
    position:absolute;
    bottom:18px;
    left:50%;
    transform:translateX(-50%);
    background:rgba(0,0,0,.45);
    color:#fff;
    border-radius:999px;
    padding:7px 11px;
    font-size:11px;
}
@media(max-width:1400px){.workspace-template-grid{columns:4 210px}}
@media(max-width:1050px){.workspace-template-grid{columns:3 200px}}
@media(max-width:760px){
    .workspace-template-grid{columns:2 160px}
    .template-title-row{flex-direction:column}
    .template-preview-modal{padding:60px 15px}
    .preview-nav{width:40px;height:56px;font-size:30px}
}
@media(max-width:520px){.workspace-template-grid{columns:1}}

/* ===== V1.8.2 DETAIL IMAGE SLIDER ===== */
.template-detail-gallery{overflow:hidden}
.detail-slider{width:100%;min-width:0}
.detail-slider-stage{
    position:relative;
    width:100%;
    min-height:520px;
    background:#f3f6fa;
    border-radius:14px;
    overflow:hidden;
    display:flex;
    align-items:center;
}
.detail-slider-track{width:100%}
.detail-slide{
    display:none;
    margin:0;
    width:100%;
    min-height:520px;
    align-items:center;
    justify-content:center;
    background:#f3f6fa;
}
.detail-slide.active{display:flex}
.detail-slide img{
    display:block;
    width:100%;
    height:auto;
    max-height:720px;
    object-fit:contain;
    object-position:center;
    background:#f3f6fa;
}
.detail-slider-arrow{
    position:absolute;
    z-index:8;
    top:50%;
    transform:translateY(-50%);
    width:46px;
    height:60px;
    border:0;
    border-radius:12px;
    background:rgba(7,17,31,.72);
    color:#fff;
    font-size:38px;
    line-height:1;
    cursor:pointer;
}
.detail-slider-arrow.prev{left:14px}
.detail-slider-arrow.next{right:14px}
.detail-slider-count{
    position:absolute;
    z-index:8;
    right:14px;
    bottom:14px;
    background:rgba(7,17,31,.72);
    color:#fff;
    border-radius:999px;
    padding:6px 10px;
    font-size:11px;
    font-weight:700;
}
.detail-slider-thumbs{
    display:flex;
    gap:8px;
    padding:12px 2px 2px;
    overflow-x:auto;
    scrollbar-width:thin;
}
.detail-slider-thumbs button{
    flex:0 0 96px;
    width:96px;
    height:76px;
    padding:0;
    border:2px solid transparent;
    border-radius:9px;
    overflow:hidden;
    background:#fff;
    cursor:pointer;
    opacity:.72;
}
.detail-slider-thumbs button.active{border-color:#136cf5;opacity:1}
.detail-slider-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.detail-slider-dots{display:flex;justify-content:center;gap:6px;margin-top:10px}
.detail-slider-dots button{
    width:7px;height:7px;padding:0;border:0;border-radius:50%;
    background:#cbd5e1;cursor:pointer
}
.detail-slider-dots button.active{width:20px;border-radius:999px;background:#136cf5}
@media(max-width:900px){
    .detail-slider-stage,.detail-slide{min-height:360px}
    .detail-slide img{max-height:560px}
}
@media(max-width:560px){
    .detail-slider-stage,.detail-slide{min-height:260px}
    .detail-slider-arrow{width:36px;height:48px;font-size:30px}
    .detail-slider-arrow.prev{left:8px}
    .detail-slider-arrow.next{right:8px}
    .detail-slider-thumbs button{flex-basis:72px;width:72px;height:58px}
}

/* ===== V1.8.3 MULTI CATEGORY + RICH HTML EDITOR ===== */
.field-label{font-weight:700;font-size:13px;margin-bottom:7px}
.field-label small{font-weight:500;color:#64748b;margin-left:5px}
.multi-category-picker{margin:14px 0}
.multi-category-groups{
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:10px;
    max-height:440px;
    overflow-y:auto;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    background:#f8fafc;
}
.multi-category-group{
    border:1px solid #e6ebf1;
    border-radius:11px;
    background:#fff;
    padding:9px;
}
.multi-category-root label,
.multi-category-children label{
    display:flex;
    align-items:center;
    gap:7px;
    margin:0;
    cursor:pointer;
}
.multi-category-root{
    font-weight:800;
    border-bottom:1px solid #eef2f6;
    padding-bottom:7px;
    margin-bottom:6px;
}
.multi-category-root input,
.multi-category-children input{width:auto;margin:0}
.multi-category-children{
    display:flex;
    flex-direction:column;
    gap:5px;
}
.multi-category-children label{
    font-size:12px;
    color:#475569;
    padding:4px 2px;
}
.rich-editor-field{margin:14px 0}
.rich-editor-toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    padding:7px;
    background:#f3f6fa;
    border:1px solid #dfe6ee;
    border-bottom:0;
    border-radius:12px 12px 0 0;
}
.rich-editor-toolbar button{
    border:1px solid #dbe3ec;
    background:#fff;
    border-radius:7px;
    min-width:34px;
    height:32px;
    padding:0 9px;
    cursor:pointer;
    font-size:12px;
}
.rich-editor-toolbar button:hover{border-color:#9cc7ff;color:#136cf5}
.rich-editor{
    min-height:260px;
    border:1px solid #dfe6ee;
    border-radius:0 0 12px 12px;
    background:#fff;
    padding:15px;
    outline:none;
    line-height:1.65;
}
.rich-editor:empty:before{
    content:attr(data-placeholder);
    color:#94a3b8;
}
.rich-editor h2,.rich-text h2{font-size:24px;margin:20px 0 8px}
.rich-editor h3,.rich-text h3{font-size:19px;margin:18px 0 7px}
.rich-editor p,.rich-text p{margin:0 0 12px}
.rich-editor ul,.rich-editor ol,.rich-text ul,.rich-text ol{padding-left:22px;margin:10px 0 14px}
.rich-editor blockquote,.rich-text blockquote{
    border-left:4px solid #136cf5;
    padding:10px 14px;
    margin:14px 0;
    background:#f4f8ff;
    color:#475569;
}
.rich-editor a,.rich-text a{color:#136cf5;text-decoration:underline}
.detail-category-chips{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:0 0 13px;
}
.detail-category-chips a{
    background:#f3f7fc;
    border:1px solid #dfe7f0;
    border-radius:999px;
    padding:6px 9px;
    color:#475569;
    font-size:10px;
}
.detail-category-chips a:hover{background:#eaf3ff;color:#136cf5}
@media(max-width:900px){
    .multi-category-groups{grid-template-columns:1fr}
}


/* ===== V1.8.4 SMART CATEGORY RELATIONS ===== */
.primary-category-select{display:block;margin:8px 0 10px;font-size:12px;font-weight:800;color:#334155}
.primary-category-select select{margin-top:6px;width:100%;background:#fff}
.category-relation-help{padding:9px 11px;margin-bottom:9px;border-radius:10px;background:#eef6ff;color:#33506f;font-size:11px;line-height:1.5}
.smart-filter-title{font-size:10px;font-weight:900;letter-spacing:.12em;color:#1473e6;text-transform:uppercase;margin:3px 0 0}
.active-filter-bar b{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#eaf3ff;color:#1267d6;font-size:10px}
/* V1.9 Template Commerce Core */
.commerce-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.commerce-meta-grid>div{border:1px solid #e4eaf2;border-radius:12px;padding:10px 12px;background:#f8fafc}.commerce-meta-grid small{display:block;color:#718096;font-size:11px;margin-bottom:3px}.commerce-meta-grid b{font-size:13px}.library-page{max-width:1280px}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px}.library-card{background:#fff;border:1px solid #e1e8f0;border-radius:18px;overflow:hidden}.library-cover{display:block;aspect-ratio:16/10;background:#eef3f8}.library-cover img{width:100%;height:100%;object-fit:cover}.library-cover span{height:100%;display:grid;place-items:center;font-weight:800}.library-body{padding:15px}.library-body h3{margin:7px 0}.library-license{font-size:10px;font-weight:800;color:#0878ff}.library-actions{display:flex;gap:8px;margin-top:14px}.library-actions .btn{flex:1;text-align:center}.checkout-shell{max-width:720px;margin:50px auto;background:#fff;border:1px solid #e1e8f0;border-radius:22px;padding:30px}.checkout-price{font-size:34px;font-weight:900;margin:20px 0}

/* ===== V1.9.1 CART + CHECKOUT UX ===== */
.workspace-cart-link{display:flex;align-items:center;gap:6px;font-size:12px;color:#334155;padding:7px 9px;border-radius:9px;background:#f7f9fc}
.workspace-cart-link span{min-width:18px;height:18px;border-radius:999px;background:#136cf5;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:800}
.commerce-page{max-width:1400px;margin:0 auto;padding:34px 24px 60px}
.commerce-page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}
.commerce-page-head h1{font-size:34px;margin:6px 0 4px}.commerce-page-head p{margin:0;color:#64748b}
.commerce-empty{background:#fff;border:1px solid #e4eaf1;border-radius:18px;padding:60px 30px;text-align:center}.commerce-empty-icon{font-size:46px}.commerce-empty h2{margin:14px 0 6px}.commerce-empty p{color:#64748b;margin-bottom:18px}
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.cart-items-card,.cart-summary,.checkout-form-card,.checkout-order-card{background:#fff;border:1px solid #e4eaf1;border-radius:18px}
.cart-items-card{padding:4px 18px}.cart-item{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:18px;padding:18px 0;border-bottom:1px solid #edf1f5}.cart-item:last-child{border-bottom:0}
.cart-item-cover{height:110px;border-radius:12px;overflow:hidden;background:#eef3f8;display:grid;place-items:center}.cart-item-cover img{width:100%;height:100%;object-fit:cover}.cart-item-main small{color:#136cf5;font-weight:700}.cart-item-main h3{margin:5px 0 12px;font-size:17px}
.cart-license-line label{font-size:11px;color:#64748b}.cart-license-line select{margin-top:5px;padding:8px 10px;border-radius:9px}
.cart-item-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.cart-item-side strong{font-size:18px}.cart-remove{border:0;background:none;color:#ef4444;font-size:11px;cursor:pointer}
.cart-summary{padding:20px;position:sticky;top:86px}.summary-row,.summary-total{display:flex;justify-content:space-between;gap:12px;padding:12px 0}.summary-row{border-bottom:1px solid #edf1f5}.summary-row.muted{color:#64748b}.summary-total{align-items:center}.summary-total strong{font-size:25px}.cart-trust{border-top:1px solid #edf1f5;margin-top:14px;padding-top:14px;display:flex;flex-direction:column;gap:8px;font-size:10px;color:#64748b}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:20px;align-items:start}.checkout-form-card{padding:24px}.checkout-order-card{padding:20px;position:sticky;top:86px}
.checkout-step-head{display:flex;gap:12px;align-items:center;margin:6px 0 16px}.checkout-step-head>span{width:34px;height:34px;border-radius:50%;background:#e8f2ff;color:#136cf5;display:grid;place-items:center;font-weight:900}.checkout-step-head h2{font-size:17px;margin:0}.checkout-step-head p{font-size:11px;color:#64748b;margin:2px 0 0}
.billing-type-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:26px}.billing-type-switch input{display:none}.billing-type-switch span{display:block;padding:14px;border:1px solid #dfe6ee;border-radius:12px;text-align:center;cursor:pointer;font-weight:700}.billing-type-switch input:checked+span{border-color:#136cf5;background:#edf5ff;color:#136cf5}
.checkout-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;margin-bottom:28px}.checkout-fields label{font-size:12px;font-weight:700}.checkout-fields input,.checkout-fields textarea{width:100%;margin-top:6px}.checkout-fields .full{grid-column:1/-1}.corporate-fields{grid-column:1/-1;display:none;grid-template-columns:1fr 1fr;gap:14px}.corporate-fields.show{display:grid}
.payment-placeholder{border:1px dashed #b9c9da;border-radius:14px;padding:18px;display:flex;gap:14px;align-items:center;background:#f8fafc}.payment-placeholder>div:first-child{font-size:30px}.payment-placeholder b,.payment-placeholder small{display:block}.payment-placeholder small{color:#64748b;margin-top:3px}
.checkout-products{display:flex;flex-direction:column;gap:10px;margin:14px 0}.checkout-product{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:10px;align-items:center;padding-bottom:10px;border-bottom:1px solid #edf1f5}.checkout-product-image{width:54px;height:54px;border-radius:9px;overflow:hidden;background:#eef3f8;display:grid;place-items:center}.checkout-product-image img{width:100%;height:100%;object-fit:cover}.checkout-product-copy b,.checkout-product-copy small{display:block}.checkout-product-copy b{font-size:12px}.checkout-product-copy small{font-size:9px;color:#64748b;margin-top:2px}.checkout-product>strong{font-size:12px}.checkout-submit{margin-top:8px}.checkout-legal{font-size:9px;color:#64748b;text-align:center;line-height:1.5}
.commerce-alert{border-radius:12px;padding:12px 14px;margin-bottom:14px}.commerce-alert.error{background:#fee2e2;color:#991b1b}.commerce-alert.success{background:#dcfce7;color:#166534}
.payment-wait-card{max-width:720px;margin:70px auto;background:#fff;border:1px solid #e4eaf1;border-radius:20px;padding:36px;text-align:center}.payment-wait-icon{width:62px;height:62px;margin:0 auto 16px;border-radius:50%;background:#dcfce7;color:#166534;display:grid;place-items:center;font-size:30px;font-weight:900}.payment-wait-card h1{font-size:32px;margin:6px 0}.payment-wait-card>p{color:#64748b}.payment-status-pill{display:inline-block;margin:10px 0 18px;padding:7px 11px;border-radius:999px;background:#fff3cd;color:#8a5a00;font-size:11px;font-weight:800}.payment-order-lines{border:1px solid #edf1f5;border-radius:14px;padding:8px 14px;margin:16px 0;text-align:left}.payment-order-lines>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf1f5;font-size:12px}.payment-order-lines>div:last-child{border-bottom:0}.payment-order-lines .grand strong{font-size:18px}.payment-wait-actions{display:flex;justify-content:center;gap:9px;margin-top:16px}
@media(max-width:900px){.cart-layout,.checkout-layout{grid-template-columns:1fr}.cart-summary,.checkout-order-card{position:static}.cart-item{grid-template-columns:110px minmax(0,1fr)}.cart-item-side{grid-column:2;flex-direction:row;align-items:center}.checkout-fields{grid-template-columns:1fr}.checkout-fields .full,.corporate-fields{grid-column:auto}.corporate-fields.show{grid-template-columns:1fr}.commerce-page-head{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.commerce-page{padding:20px 12px 45px}.cart-item{grid-template-columns:82px minmax(0,1fr);gap:12px}.cart-item-cover{height:78px}.billing-type-switch{grid-template-columns:1fr}.workspace-cart-link{font-size:0}.workspace-cart-link span{font-size:9px}}

/* ===== V1.9.2 BILLING + PAYMENT STATE ===== */
.individual-fields,.corporate-fields{
    grid-column:1/-1;
    display:none;
    grid-template-columns:1fr 1fr;
    gap:14px;
}
.individual-fields.show,.corporate-fields.show{display:grid}
.checkout-fields label small{font-weight:500;color:#94a3b8}
.commerce-alert.warning{background:#fff3cd;color:#7a5200;border:1px solid #ffe08a}
.payment-config-list{
    border:1px solid #e5eaf1;
    border-radius:14px;
    padding:8px 14px;
    margin:16px 0;
    background:#fff;
}
.payment-config-list>div{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid #edf1f5;
    font-size:12px;
}
.payment-config-list>div:last-child{border-bottom:0}
.payment-config-list b{color:#ef4444}
@media(max-width:700px){
    .individual-fields.show,.corporate-fields.show{grid-template-columns:1fr}
}

/* ===== V1.9.3 IYZICO CHECKOUT FORM ===== */
.iyzico-hosted-card{
    max-width:920px;
    margin:0 auto;
    background:#fff;
    border:1px solid #e4eaf1;
    border-radius:18px;
    overflow:hidden;
}
.iyzico-secure-head{
    display:flex;
    gap:12px;
    align-items:center;
    padding:18px 20px;
    border-bottom:1px solid #edf1f5;
    background:#f8fafc;
}
.iyzico-secure-head>div:first-child{font-size:28px}
.iyzico-secure-head b,.iyzico-secure-head small{display:block}
.iyzico-secure-head small{color:#64748b;margin-top:3px}
.iyzico-form-shell{padding:20px;min-height:420px}

/* ===== V1.9.5.5 FINAL DEMO SITE + ADMIN DEMO ===== */
.admin-demo-link-fields{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.detail-demo-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:8px;
}
.btn.demo-site{
    background:#0f766e;
    color:#fff;
    border:1px solid #0f766e;
}
.btn.demo-admin{
    background:#334155;
    color:#fff;
    border:1px solid #334155;
}
.btn.demo-site:hover{background:#115e59}
.btn.demo-admin:hover{background:#1e293b}
@media(max-width:650px){
    .admin-demo-link-fields,
    .detail-demo-actions{grid-template-columns:1fr}
}


/* ===== KESKINSOFT CUSTOMER CENTER V1 ===== */
.ks-id-badge{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:7px 10px;border:1px solid #cfe0f6;border-radius:999px;background:#f4f9ff;font-size:11px}
.ks-id-badge b{color:#136cf5}.ks-id-badge span{font-weight:900;letter-spacing:.04em}
.customer-center-section{margin-top:22px}
.customer-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}
.customer-section-head h2{margin:4px 0 0;font-size:22px}
.customer-dashboard-grid .dash-card{min-height:98px}
.customer-primary-card{border-color:#9cc8ff!important;background:#f3f8ff!important}
.creator-tools-section{padding-top:6px;border-top:1px solid #e6ebf2}
.account-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.customer-table-card{background:#fff;border:1px solid #e1e8f0;border-radius:18px;overflow:hidden}
.customer-table-scroll{overflow:auto}
.customer-table{width:100%;border-collapse:collapse;min-width:900px}
.customer-table th,.customer-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #edf1f5;font-size:12px}
.customer-table th{background:#f8fafc;color:#64748b;font-size:10px;text-transform:uppercase;letter-spacing:.06em}
.customer-table tr:last-child td{border-bottom:0}
.btn.compact{padding:7px 10px;font-size:10px}
.status-chip{display:inline-flex;align-items:center;padding:6px 8px;border-radius:999px;background:#eef2f7;color:#475569;font-size:10px;font-weight:800;white-space:nowrap}
.status-chip.success{background:#dcfce7;color:#166534}
.status-chip.warning{background:#fff3cd;color:#7a5200}
.license-list{display:grid;gap:14px}
.license-card{background:#fff;border:1px solid #e1e8f0;border-radius:18px;padding:18px}
.license-main{display:flex;justify-content:space-between;gap:20px;align-items:start}
.license-main h3{margin:8px 0 12px;font-size:20px}
.license-type-pill{font-size:9px;font-weight:900;color:#136cf5;letter-spacing:.08em}
.license-key-row span{display:block;font-size:10px;color:#64748b;margin-bottom:5px}
.license-key-row code{display:inline-block;padding:8px 10px;border-radius:9px;background:#0f172a;color:#fff;font-size:11px;word-break:break-all}
.license-status{padding:6px 9px;border-radius:999px;background:#fee2e2;color:#991b1b;font-size:10px;font-weight:900}
.license-status.active{background:#dcfce7;color:#166534}
.license-meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px}
.license-meta-grid>div{padding:10px;border:1px solid #edf1f5;border-radius:11px;background:#f8fafc}
.license-meta-grid small,.license-meta-grid b{display:block}
.license-meta-grid small{font-size:9px;color:#64748b;margin-bottom:4px}.license-meta-grid b,.license-meta-grid a{font-size:11px}
.license-actions{max-width:320px}
.library-badge-row{display:flex;justify-content:space-between;gap:8px;align-items:center}
.update-badge{font-size:8px;font-weight:900;padding:5px 7px;border-radius:999px;background:#fff3cd;color:#7a5200}
.library-license-mini{font-size:9px;color:#64748b;margin-top:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.payment-status-pill.paid{background:#dcfce7;color:#166534}
@media(max-width:760px){
  .license-main{flex-direction:column}
  .license-meta-grid{grid-template-columns:1fr 1fr}
  .customer-stats{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .license-meta-grid{grid-template-columns:1fr}
}


/* ===== KESKINSOFT LICENSE SYSTEM V1 ===== */
.license-activation-card{background:#fff;border:1px solid #e1e8f0;border-radius:18px;padding:20px;max-width:760px}
.license-domain-form{display:grid;gap:12px;margin-top:18px}
.license-domain-form label{font-weight:800;font-size:12px}
.license-domain-form input{display:block;width:100%;margin-top:7px;padding:13px 14px;border:1px solid #cfd9e6;border-radius:11px;font:inherit}
.license-domain-form p{margin:0;color:#64748b;font-size:11px}
.bound-domain-box{margin:18px 0;padding:16px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:14px}
.bound-domain-box small,.bound-domain-box strong,.bound-domain-box span{display:block}
.bound-domain-box small{color:#15803d;font-size:9px;font-weight:900;letter-spacing:.08em}
.bound-domain-box strong{font-size:19px;margin:5px 0}.bound-domain-box span{font-size:10px;color:#64748b}
.btn.danger{background:#fff;border:1px solid #fecaca;color:#b91c1c}
.license-meta-grid{grid-template-columns:repeat(5,1fr)}
@media(max-width:900px){.license-meta-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.license-meta-grid{grid-template-columns:1fr}}


/* KESKINSOFT V2.4 LIVE PRODUCT DETAIL */
.ks-detail-alert{margin:0 0 14px;padding:12px 14px;border-radius:12px;font-size:12px;font-weight:800}.ks-detail-alert.success{background:#ecfdf5;border:1px solid #bbf7d0;color:#047857}.ks-detail-alert.error{background:#fff1f2;border:1px solid #fecdd3;color:#be123c}
.detail-demo-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}.detail-demo-actions .btn{min-height:44px;display:flex;align-items:center;justify-content:center}.btn.demo-site{background:#eff6ff!important;border:1px solid #bfdbfe!important;color:#1d4ed8!important}.btn.demo-admin{background:#102a4d!important;border:1px solid #102a4d!important;color:#fff!important}
.ks-demo-credentials{padding:13px;border:1px solid #cfe0ff;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#eef5ff)}.ks-demo-cred-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.ks-demo-cred-head span{font-size:9px;font-weight:900;letter-spacing:.12em;color:#126bf3;background:#fff;border:1px solid #cfe0ff;border-radius:999px;padding:4px 7px}.ks-demo-cred-row{display:grid;grid-template-columns:62px 1fr auto;gap:7px;align-items:center;margin-top:7px}.ks-demo-cred-row small{color:#64748b}.ks-demo-cred-row code{background:#0f172a;color:#fff;border-radius:8px;padding:8px 9px;overflow:auto}.ks-demo-cred-row button{border:1px solid #bcd2f5;background:#fff;color:#126bf3;border-radius:8px;padding:7px 9px;font-weight:800;cursor:pointer}
.ks-tech-card{margin:12px 0;padding:14px;border:1px solid #dbe6f3;border-radius:15px;background:linear-gradient(180deg,#fff,#f8fbff)}.ks-tech-head{display:flex;justify-content:space-between;align-items:flex-start}.ks-tech-head span{font-size:9px;color:#1683ff;font-weight:900;letter-spacing:.13em}.ks-tech-head h3{margin:3px 0 9px;font-size:15px}.ks-tech-head>b{font-size:9px;color:#64748b}.ks-tech-chips{display:flex;flex-wrap:wrap;gap:6px}.ks-tech-chips span{padding:6px 9px;border-radius:999px;background:#eef5ff;border:1px solid #d8e7ff;color:#1e4f9a;font-size:10px;font-weight:800}.ks-tech-req{border-top:1px solid #e4ebf4;margin-top:10px;padding-top:10px}.ks-tech-req small{display:block;color:#64748b;margin-bottom:4px}.ks-tech-req p{margin:0;color:#334155;font-size:11px;line-height:1.55}
.ks-favorite-form{margin:0}.ks-favorite-form .btn span{margin-left:6px;font-size:10px}.favorite-active{background:#fff1f2!important;color:#be123c!important;border-color:#fecdd3!important}
.ks-reviews-section{margin-top:20px;padding:24px;border:1px solid #dfe7f1;border-radius:22px;background:#fff}.ks-reviews-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.ks-reviews-head>div:first-child>span{font-size:9px;color:#1683ff;font-weight:900;letter-spacing:.14em}.ks-reviews-head h2{margin:4px 0;font-size:23px}.ks-reviews-head p{margin:0;color:#64748b}.ks-review-score{min-width:110px;text-align:center;background:#f8fbff;border:1px solid #e0eaf6;border-radius:16px;padding:12px}.ks-review-score strong{font-size:28px}.ks-review-score>b{color:#f59e0b;font-size:20px}.ks-review-score small{display:block;color:#64748b}.ks-review-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:16px}.ks-review-list{display:grid;gap:10px}.ks-review-card{border:1px solid #e5ebf2;border-radius:15px;padding:14px;background:#fcfdff}.ks-review-card-head{display:flex;gap:9px;align-items:center}.ks-review-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:#126bf3;font-weight:900}.ks-review-card-head>div:nth-child(2){display:flex;flex-direction:column}.ks-review-card-head small{color:#64748b}.ks-stars{margin-left:auto;color:#f59e0b}.ks-stars i{font-style:normal;color:#d8dee8}.ks-review-card h4{margin:10px 0 4px}.ks-review-card p{margin:0;color:#475569;line-height:1.6}.ks-review-empty{padding:34px;border:1px dashed #cbd5e1;border-radius:15px;text-align:center;color:#64748b}.ks-review-empty b,.ks-review-empty span{display:block}.ks-review-form{border:1px solid #dbe6f3;border-radius:16px;padding:16px;background:linear-gradient(180deg,#fbfdff,#f5f9ff);align-self:start}.ks-review-form h3{margin-top:0}.ks-review-form form{display:grid;gap:10px}.ks-review-form label{display:grid;gap:5px;font-size:11px;font-weight:800}.ks-review-form input,.ks-review-form select,.ks-review-form textarea{width:100%;border:1px solid #cfd9e6;border-radius:9px;padding:9px;background:#fff;font:inherit}.ks-review-form small{color:#64748b}
@media(max-width:900px){.ks-review-layout{grid-template-columns:1fr}.ks-reviews-head{flex-direction:column}.detail-demo-actions{grid-template-columns:1fr}}


/* ==========================================================
   KESKINSOFT GLOBAL FOOTER UX/UI + GLOBAL SCROLL TOP V1.4
   ========================================================== */

.ks-site-footer{
    position:relative;
    overflow:hidden;
    margin-top:34px;
    background:
        linear-gradient(135deg,#07172b 0%,#0c2443 58%,#0a1c35 100%);
    color:#dbeafe;
    border-top:1px solid rgba(148,163,184,.18);
}
.ks-site-footer-inner{
    position:relative;
    z-index:2;
    width:min(1420px,calc(100% - 40px));
    margin:0 auto;
}
.ks-site-footer-glow{
    position:absolute;
    border-radius:50%;
    filter:blur(10px);
    pointer-events:none;
    opacity:.32;
}
.ks-site-footer-glow-one{
    width:440px;
    height:440px;
    left:-160px;
    top:-210px;
    background:radial-gradient(circle,#1d8fff 0%,rgba(29,143,255,0) 68%);
}
.ks-site-footer-glow-two{
    width:360px;
    height:360px;
    right:-130px;
    bottom:-220px;
    background:radial-gradient(circle,#3b82f6 0%,rgba(59,130,246,0) 70%);
}
.ks-site-footer-top{
    display:grid;
    grid-template-columns:minmax(300px,1.55fr) repeat(3,minmax(150px,.72fr));
    gap:42px;
    padding:46px 0 38px;
}
.ks-site-footer-brand p{
    max-width:520px;
    margin:18px 0;
    color:#a9bdd5;
    font-size:13px;
    line-height:1.72;
}
.ks-site-footer-logo{
    display:inline-flex;
    align-items:center;
    gap:11px;
    color:#fff;
    text-decoration:none;
}
.ks-site-footer-logo-mark{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:linear-gradient(145deg,#1593ff,#1e6ff4);
    color:#fff;
    font-weight:950;
    font-size:20px;
    box-shadow:0 10px 28px rgba(30,111,244,.30);
}
.ks-site-footer-logo b,
.ks-site-footer-logo small{
    display:block;
}
.ks-site-footer-logo b{
    font-size:18px;
    letter-spacing:-.02em;
}
.ks-site-footer-logo small{
    margin-top:2px;
    color:#86bdf7;
    font-size:8px;
    font-weight:900;
    letter-spacing:.17em;
}
.ks-site-footer-trust{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.ks-site-footer-trust span{
    display:inline-flex;
    align-items:center;
    min-height:29px;
    padding:0 9px;
    border:1px solid rgba(147,197,253,.16);
    border-radius:999px;
    background:rgba(255,255,255,.045);
    color:#c6d8ec;
    font-size:9px;
    font-weight:800;
}
.ks-site-footer-col{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
}
.ks-site-footer-col>b{
    margin-bottom:4px;
    color:#fff;
    font-size:12px;
}
.ks-site-footer-col a{
    position:relative;
    color:#a9bdd5;
    font-size:11px;
    text-decoration:none;
    transition:.18s ease;
}
.ks-site-footer-col a::after{
    content:'';
    position:absolute;
    left:0;
    right:100%;
    bottom:-3px;
    height:1px;
    background:#4ea6ff;
    transition:.18s ease;
}
.ks-site-footer-col a:hover{
    color:#fff;
    transform:translateX(3px);
}
.ks-site-footer-col a:hover::after{
    right:0;
}
.ks-site-footer-bar{
    min-height:68px;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:18px;
    border-top:1px solid rgba(148,163,184,.14);
    color:#8fa7c1;
    font-size:10px;
}
.ks-site-footer-mini{
    display:flex;
    align-items:center;
    gap:7px;
}
.ks-live-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 0 5px rgba(34,197,94,.10);
}
.ks-site-footer-copy{
    text-align:center;
}
.ks-site-footer-support{
    justify-self:end;
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 11px;
    border:1px solid rgba(147,197,253,.15);
    border-radius:10px;
    background:rgba(255,255,255,.04);
    color:#c7d9ec;
    text-decoration:none;
    font-weight:800;
}
.ks-site-footer-support span{
    width:20px;
    height:20px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#1683ff;
    color:#fff;
}

/* Global Scroll To Top */
.ks-global-scroll-top{
    --ks-scroll-rotation:0deg;
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:3000;
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border:1px solid rgba(37,99,235,.20);
    border-radius:18px;
    background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(232,244,255,.96));
    box-shadow:0 16px 40px rgba(15,23,42,.18);
    color:#1677e8;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transform:translateY(18px) scale(.86);
    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .28s cubic-bezier(.2,.8,.2,1),
        box-shadow .18s ease;
    overflow:hidden;
}
.ks-global-scroll-top.is-visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
}
.ks-global-scroll-top:hover{
    transform:translateY(-3px) scale(1.04);
    box-shadow:0 20px 46px rgba(37,99,235,.22);
}
.ks-global-scroll-top:active,
.ks-global-scroll-top.is-clicked{
    transform:scale(.94);
}
.ks-global-scroll-gear{
    position:absolute;
    font-size:31px;
    line-height:1;
    transform:rotate(var(--ks-scroll-rotation));
    transition:transform .08s linear;
    filter:drop-shadow(0 2px 2px rgba(37,99,235,.12));
}
.ks-global-scroll-arrow{
    position:absolute;
    width:21px;
    height:21px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#fff;
    color:#0f6edb;
    font-size:14px;
    font-weight:950;
    line-height:1;
    box-shadow:0 3px 8px rgba(15,23,42,.10),0 0 0 1px rgba(37,99,235,.10);
}
.ks-global-scroll-top.is-clicked .ks-global-scroll-gear{
    animation:ksGlobalGearBoost .65s cubic-bezier(.2,.8,.2,1);
}
@keyframes ksGlobalGearBoost{
    from{transform:rotate(var(--ks-scroll-rotation));}
    to{transform:rotate(calc(var(--ks-scroll-rotation) + 540deg));}
}

@media(max-width:980px){
    .ks-site-footer-top{
        grid-template-columns:1.4fr 1fr 1fr;
    }
    .ks-site-footer-brand{
        grid-column:1/-1;
    }
}
@media(max-width:680px){
    .ks-site-footer-inner{
        width:min(100% - 28px,1420px);
    }
    .ks-site-footer-top{
        grid-template-columns:1fr 1fr;
        gap:28px 22px;
        padding:34px 0 28px;
    }
    .ks-site-footer-brand{
        grid-column:1/-1;
    }
    .ks-site-footer-bar{
        grid-template-columns:1fr;
        justify-items:center;
        padding:18px 0;
        gap:10px;
    }
    .ks-site-footer-mini,
    .ks-site-footer-support{
        justify-self:center;
    }
    .ks-global-scroll-top{
        right:14px;
        bottom:14px;
        width:52px;
        height:52px;
        border-radius:16px;
    }
    .ks-global-scroll-gear{
        font-size:28px;
    }
}
@media(max-width:440px){
    .ks-site-footer-top{
        grid-template-columns:1fr;
    }
    .ks-site-footer-brand{
        grid-column:auto;
    }
}
@media(prefers-reduced-motion:reduce){
    .ks-global-scroll-top,
    .ks-global-scroll-gear,
    .ks-site-footer-col a{
        transition:none !important;
        animation:none !important;
    }
}


/* KeskinSoft unified template technical form */
.ks-product-tech-card{margin:20px 0;padding:20px;border:1px solid #dbe7f5;border-radius:18px;background:#f8fbff;display:grid;gap:14px}.ks-product-tech-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.ks-product-tech-head h3{margin:3px 0 4px;font-size:20px}.ks-product-tech-head small{color:#6c7f98}.ks-product-tech-card label{display:grid;gap:7px;font-weight:700}.ks-product-tech-card label small{font-weight:400}.ks-product-tech-card input,.ks-product-tech-card textarea,.ks-product-tech-card select{width:100%}.ks-v27-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ks-v26-tip{padding:11px 13px;border-radius:12px;background:#edf6ff;color:#31577c;font-size:13px}.upload-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:900px){.ks-v27-grid,.upload-grid{grid-template-columns:1fr}}


/* KESKINSOFT TEMPLATE DETAIL V1.1 - boşluğu değerlendiren açıklama yerleşimi */
.template-detail-gallery .template-description-inline{
    margin:18px 0 0;
    padding:20px;
    border:1px solid #e5eaf1;
    border-radius:15px;
    background:#fff;
    overflow:visible;
}
.template-detail-gallery .template-description-inline h2{margin:0 0 14px;font-size:24px}
.template-detail-gallery .template-description-inline .rich-text{line-height:1.72;color:#334155}
.template-detail-gallery .template-description-inline .detail-tags{margin-top:16px}
@media(max-width:1000px){
    .template-detail-gallery .template-description-inline{margin-top:16px}
}
