*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--text);font-family:var(--font);font-size:15px;line-height:1.6}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit}
.container{width:min(var(--container),calc(100% - 48px));margin:0 auto}
.muted{color:var(--muted)}
.site-header{z-index:60;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.header-main{background:#fff}.header-grid{min-height:72px;display:grid;grid-template-columns:210px minmax(340px,620px) 1fr;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:700;letter-spacing:-.8px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary);font-size:16px}.brand-word>span{color:var(--primary)}
.global-search{position:relative;height:46px;display:flex;align-items:center;border:1px solid var(--line-strong);border-radius:var(--ui-radius);background:#fff;transition:.17s}.global-search:focus-within{border-color:#8fa0c9;box-shadow:0 0 0 4px rgba(64,86,214,.08)}.search-leading{position:absolute;left:14px;color:#9aa3b2;font-size:14px}.global-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;padding:0 14px 0 40px;color:var(--text);font-size:14px}.global-search input::placeholder{color:#98a2b3}.global-search button{width:50px;height:100%;border:0;border-radius:0 var(--ui-radius) var(--ui-radius) 0;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;cursor:pointer}.search-suggest{display:none;position:absolute;top:54px;left:0;right:0;padding:8px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--shadow);z-index:70}.search-suggest.open{display:block}.suggest-item{display:flex;justify-content:space-between;gap:15px;padding:10px 11px;border-radius:var(--ui-radius);font-size:14px}.suggest-item:hover{background:#f8f9fc}.suggest-item small{color:var(--muted)}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px}.header-actions>a{position:relative;display:flex;align-items:center;gap:7px;color:#3f4a5c;white-space:nowrap}.header-actions>a:hover{color:var(--primary)}.header-actions i{font-size:18px}.header-actions small{font-size:14px;font-weight:500}.header-actions b{position:absolute;left:12px;top:-10px;min-width:17px;height:17px;padding:0 4px;border-radius:var(--ui-radius);background:var(--primary);color:#fff;font-size:14px;display:grid;place-items:center}
.header-actions>.header-action-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:var(--ui-radius)}.header-actions>.header-action-icon:hover{background:var(--primary-soft)}.header-actions>.header-action-icon:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.header-actions>.header-action-icon b{left:auto;right:-3px;top:-3px}.header-actions>.header-action-icon::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 7px);left:50%;z-index:80;transform:translate(-50%,-3px);padding:5px 8px;border-radius:4px;background:#1f2937;color:#fff;font-size:12px;font-weight:600;line-height:1;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.header-actions>.header-action-icon:hover::after,.header-actions>.header-action-icon:focus-visible::after{opacity:1;visibility:visible;transform:translate(-50%,0)}
.header-nav{border-top:1px solid #f2f4f7}.nav-row{height:42px;display:flex;align-items:center;gap:28px;font-size:14px;font-weight:500}.nav-row>a,.nav-categories{color:#4b5565}.nav-row>a:hover,.nav-categories:hover{color:var(--primary)}.nav-register{margin-left:auto;padding:7px 12px;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary)!important;font-weight:600}
.nav-categories{display:flex;align-items:center;gap:7px;border:0;background:transparent;padding:0;cursor:pointer;font-weight:600}.nav-categories i{font-size:14px}.mega-wrap{position:relative}.mega-menu{top:31px;width:285px;padding:8px;box-shadow:var(--shadow)}.mega-wrap:hover .mega-menu{display:grid}.mega-menu a{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:var(--ui-radius);font-size:14px}.mega-menu a i{width:15px;color:#9aa3b2}.mega-menu a:hover{background:var(--primary-softer);color:var(--primary)}
.mobile-menu-button,.mobile-panel{display:none}
.hero{position:relative;overflow:hidden;padding:62px 0 50px;background:radial-gradient(circle at 78% 26%,rgba(47,111,177,.13),transparent 27%),linear-gradient(180deg,#f6f8fa 0,#fff 100%);border-bottom:1px solid #f1f2f6}.hero:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-120px;top:-160px;background:rgba(64,86,214,.055)}.hero-inner{position:relative;display:grid;grid-template-columns:1.08fr .92fr;gap:58px;align-items:center}.eyebrow{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid #d7dee9;border-radius:var(--ui-radius);background:#fff;color:var(--primary);font-size:14px;font-weight:600;margin-bottom:18px}.hero h1{max-width:750px;margin:0 0 16px;font-size:50px;line-height:1.08;letter-spacing:-2.3px}.hero p{max-width:650px;margin:0 0 25px;color:var(--muted);font-size:16px}.hero-search{display:flex;max-width:720px;height:58px;overflow:hidden;border:1px solid #d6dce6;border-radius:var(--ui-radius);background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.055)}.hero-search input{flex:1;min-width:0;border:0;outline:0;padding:0 18px;font-size:14px}.hero-search button{border:0;padding:0 27px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-weight:600;cursor:pointer}.hero-visual{position:relative;min-height:330px}.hero-card{position:absolute;border:1px solid rgba(230,232,240,.9);border-radius:var(--ui-radius);background:rgba(255,255,255,.96);box-shadow:0 18px 55px rgba(64,86,214,.12);padding:20px}.hero-card.main{inset:0 34px 28px 0}.hero-card.float{right:0;bottom:0;width:225px}.hero-example{margin-top:12px}.hero-book-title{display:block;font-size:15px}.hero-alert-title{display:block;margin-top:5px;font-size:14px}.mini-book{display:flex;gap:18px;align-items:flex-start}.cover-demo{width:112px;height:164px;display:flex;align-items:flex-end;padding:14px;border-radius:var(--ui-radius);background:linear-gradient(155deg,#263653,#4056d6);color:#fff;font-size:15px;font-weight:700;line-height:1.25}.hero-stat{margin-top:8px;font-size:30px;font-weight:700;letter-spacing:-1px}.price-row{display:flex;align-items:flex-end;gap:10px;margin-top:9px}.price-main{font-size:24px;font-weight:700}.price-old{text-decoration:line-through;color:#98a2b3;font-size:14px}.store-pill{margin-top:15px;padding:10px 11px;border-radius:var(--ui-radius);background:#f7f8fb;color:#566176;font-size:14px}
.trust-strip{padding:22px 0 8px}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--shadow-sm)}.trust-item{padding:17px 19px;border-right:1px solid var(--line)}.trust-item:last-child{border-right:0}.trust-item strong{display:block;font-size:14px}.trust-item span{font-size:14px;color:var(--muted)}
.section.soft{background:#fafbfe;border-top:1px solid #f0f2f6;border-bottom:1px solid #f0f2f6}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-head h1,.section-head h2{margin:0;font-size:27px;letter-spacing:-.9px}.section-head p{margin:5px 0 0;color:var(--muted);font-size:14px}.section-head>a{color:var(--primary);font-size:14px;font-weight:600}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.category-card{min-height:112px;padding:17px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;transition:.16s}.category-card:hover{transform:translateY(-2px);border-color:#cfd4df;box-shadow:var(--shadow-sm)}.category-icon{width:38px;height:38px;display:grid;place-items:center;margin-bottom:14px;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary);font-size:14px;font-weight:700}.category-card strong{display:block;font-size:14px}.category-card span{font-size:14px;color:var(--muted)}
.book-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.book-card{min-width:0;display:flex;flex-direction:column;padding:12px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;transition:.17s}.book-card:hover{transform:translateY(-2px);border-color:#d0d5df;box-shadow:var(--shadow)}.book-cover{position:relative;aspect-ratio:2/3;overflow:hidden;display:flex;align-items:flex-end;padding:15px;border-radius:var(--ui-radius);background:#2d265f;color:#fff;font-size:14px;font-weight:700;line-height:1.3}.book-cover:before{content:"";position:absolute;top:12px;left:12px;width:22px;height:3px;border-radius:var(--ui-radius);background:rgba(255,255,255,.65)}.book-cover.t2{background:#6a2b1f}.book-cover.t3{background:#0d6556}.book-cover.t4{background:#54229a}.book-cover.t5{background:#3156a8}.book-meta{padding:12px 2px 2px}.book-meta h3{min-height:38px;margin:0 0 4px;font-size:14px;line-height:1.38}.book-meta .author{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:14px}.rating{margin-top:8px;color:#f59e0b;font-size:14px}.book-price{display:flex;justify-content:space-between;align-items:flex-end;margin-top:auto;padding-top:12px}.book-price strong{font-size:16px}.book-price small{color:var(--muted);font-size:14px}.drop-badge{display:inline-block;margin-top:8px;padding:4px 7px;border-radius:var(--ui-radius);background:#ecfdf5;color:#047857;font-size:14px;font-weight:700}
.ad-slot{min-height:100px;display:flex;align-items:center;justify-content:center;padding:20px;border:1px dashed #cfd5df;border-radius:var(--ui-radius);background:#fbfcfe;color:#98a2b3;font-size:14px;text-align:center}
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.how-card{padding:22px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}.how-card b{width:32px;height:32px;display:grid;place-items:center;margin-bottom:13px;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary)}.how-card h3{margin:0 0 5px;font-size:15px}.how-card p{margin:0;color:var(--muted);font-size:14px}
.site-footer{padding:48px 0 20px;border-top:1px solid var(--line);background:#fff}.footer-grid{display:grid;grid-template-columns:1.45fr repeat(3,1fr);gap:42px}.brand-footer{font-size:26px;margin-bottom:12px}.footer-grid p{max-width:430px;color:var(--muted);font-size:14px}.footer-grid h4{margin:0 0 13px;font-size:14px}.footer-grid>div>a{display:block;margin:8px 0;color:#697386;}.footer-grid>div>a:hover{color:var(--primary)}.footer-bottom{margin-top:32px;padding-top:17px;border-top:1px solid var(--line);color:#98a2b3;font-size:14px}
.page-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:26px}.sidebar{position:sticky;top:132px;height:max-content;padding:17px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--shadow-sm)}.filter-block+.filter-block{margin-top:17px;padding-top:17px;border-top:1px solid var(--line)}.filter-block h4{margin:0 0 9px;font-size:14px}.filter-block label{display:flex;align-items:center;gap:8px;margin:8px 0;color:#566176;font-size:14px}
.listing-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px}.listing-toolbar h1{margin:0;font-size:31px;letter-spacing:-1px}.select{padding:9px 11px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}
.result-list{display:grid;gap:11px}.result-row{display:grid;grid-template-columns:84px minmax(0,1fr) 170px;gap:17px;padding:14px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;transition:.15s}.result-row:hover{border-color:#d1d7e0;box-shadow:var(--shadow-sm)}.result-cover{width:84px;height:118px;display:flex;align-items:flex-end;padding:10px;border-radius:var(--ui-radius);background:linear-gradient(150deg,#2c2458,#6d5dfc);color:#fff;font-size:14px;font-weight:600}.result-row h3{margin:2px 0 4px;font-size:15px}.result-row p{margin:0;color:var(--muted);font-size:14px}.result-price{text-align:right}.result-price strong{display:block;font-size:18px}.result-price small{color:var(--muted);font-size:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;border:1px solid transparent;border-radius:var(--ui-radius);font-size:14px;font-weight:600;cursor:pointer}.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-light{border-color:var(--line);background:#fff;color:var(--text)}.btn-danger{border-color:#fecdd3;background:#fff1f2;color:#be123c}
.book-detail{padding-bottom:52px}.book-attributes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:18px}.attr{padding:10px 12px;border-radius:var(--ui-radius);background:#f7f8fb}.attr small{display:block;color:var(--muted);font-size:14px}.attr strong{font-size:14px}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.content-card{margin-top:28px;padding:22px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}.content-card h2{margin:0 0 10px;font-size:20px}.content-card p{margin-bottom:0;color:#566176;font-size:14px}.editions{display:flex;gap:9px;flex-wrap:wrap}.edition-chip{padding:9px 12px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;font-size:14px}.edition-chip.active{border-color:#8fa0c9;background:#f3f6f9;color:var(--primary)}
.offer-table{width:100%;border-collapse:collapse}.offer-table tr{border-bottom:1px solid var(--line)}.offer-table tr:last-child{border-bottom:0}.offer-table td{padding:13px 12px}.offer-store{font-weight:600}.shipping{color:var(--muted);font-size:14px}.stock{color:var(--success);font-size:14px}.offer-price{text-align:right;font-size:16px;font-weight:700}
.auth-shell{min-height:65vh;display:grid;place-items:center;padding:50px 20px}.auth-card{width:min(470px,100%);padding:30px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--shadow)}.auth-card h1{margin:0 0 6px}.auth-card>p{margin-top:0;color:var(--muted)}.stack-form{display:grid;gap:13px}.stack-form label{display:grid;gap:6px;font-size:14px;font-weight:600}.stack-form input,.stack-form select,.stack-form textarea{width:100%;padding:11px 12px;border:1px solid #d7dce5;border-radius:var(--ui-radius);outline:0}.stack-form input:focus,.stack-form textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(64,86,214,.08)}
.alert{margin:14px 0;padding:11px 13px;border-radius:var(--ui-radius);font-size:14px}.alert-success{border:1px solid #a7f3d0;background:#ecfdf5;color:#047857}.alert-danger{border:1px solid #fecdd3;background:#fff1f2;color:#be123c}.alert-warning{border:1px solid #fde68a;background:#fffbeb;color:#b45309}
.installer-page{min-height:100vh;display:grid;place-items:center;padding:30px;background:#f8fafc}.installer-card{width:min(620px,100%);padding:34px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--shadow)}.installer-card h1{margin-bottom:6px}.installer-card>p,.muted{color:var(--muted)}.install-ok{margin:18px 0;padding:12px 14px;border-radius:var(--ui-radius);background:#ecfdf5;color:#047857}.install-note{margin-top:20px;font-size:14px}
.account-layout{grid-template-columns:230px 1fr;gap:25px;padding:36px 0 60px}.account-nav{padding:9px;}.account-nav a{display:block;padding:10px 11px;font-size:14px}.account-content h1{margin-top:0}.empty-state{padding:38px;border:1px dashed var(--line);border-radius:var(--ui-radius);text-align:center;color:var(--muted)}
.cookie-banner{position:fixed;left:24px;right:24px;bottom:20px;z-index:100;display:none;align-items:center;justify-content:space-between;gap:22px;padding:17px 19px;border-radius:var(--ui-radius);background:#111827;color:#fff;box-shadow:0 18px 50px rgba(15,23,42,.3)}.cookie-banner.show{display:flex}.cookie-banner p{margin:4px 0 0;color:#cbd5e1;font-size:14px}.cookie-actions{display:flex;gap:8px;flex:none}.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
@media(max-width:1100px){.header-grid{grid-template-columns:180px minmax(260px,1fr) auto;gap:14px}.header-actions small{display:none}.category-grid{grid-template-columns:repeat(3,1fr)}.book-grid{grid-template-columns:repeat(4,1fr)}.hero h1{font-size:42px}}
@media(max-width:820px){.container{width:min(100% - 28px,var(--container))}.header-grid{min-height:64px;grid-template-columns:1fr auto}.brand{font-size:21px}.global-search,.header-actions,.header-nav{display:none}.mobile-menu-button{display:grid;place-items:center;width:40px;height:40px;border:0;background:transparent;font-size:20px}.mobile-panel{display:none;padding:14px;border-top:1px solid var(--line);background:#fff}.mobile-panel.open{display:grid;gap:7px}.mobile-panel>a{padding:9px}.mobile-search{display:flex;margin-bottom:7px}.mobile-search input{flex:1;padding:10px;border:1px solid var(--line);border-radius:var(--ui-radius) 0 0 var(--ui-radius)}.mobile-search button{border:0;border-radius:0 var(--ui-radius) var(--ui-radius) 0;background:var(--primary);color:#fff;padding:0 14px}.hero{padding-top:38px}.hero-inner{grid-template-columns:1fr}.hero h1{font-size:36px}.hero-visual{display:none}.trust-grid{grid-template-columns:1fr 1fr}.trust-item:nth-child(2){border-right:0}.trust-item:nth-child(-n+2){border-bottom:1px solid var(--line)}.category-grid{grid-template-columns:repeat(2,1fr)}.book-grid{grid-template-columns:repeat(2,1fr)}.section{padding:42px 0}.page-layout{grid-template-columns:1fr}.sidebar{position:static;display:none}.footer-grid{grid-template-columns:1fr 1fr}.cookie-banner{left:12px;right:12px;bottom:12px;align-items:stretch;flex-direction:column}.cookie-actions{width:100%}.cookie-actions .btn{flex:1}.account-layout{grid-template-columns:1fr}.account-nav{display:flex;overflow:auto}.account-nav a{white-space:nowrap}.result-row{grid-template-columns:70px 1fr}.result-cover{width:70px;height:100px}.result-price{grid-column:2;text-align:left}}
@media(max-width:520px){.trust-grid{grid-template-columns:1fr}.trust-item{border-right:0!important;border-bottom:1px solid var(--line)}.trust-item:last-child{border-bottom:0}.category-grid{grid-template-columns:1fr 1fr}.book-grid{grid-template-columns:1fr 1fr;gap:10px}.book-card{padding:9px}.book-cover{padding:12px;font-size:14px}.section-head h2{font-size:22px}.book-attributes{grid-template-columns:1fr}.offer-table{font-size:14px}.offer-table td{padding:9px}.footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column;gap:6px}}.cover-action{width:100%}.price-box{padding:18px;border:1px solid var(--line);border-radius:var(--ui-radius);background:linear-gradient(145deg,#fff,#faf9ff)}.best-store{margin:3px 0 13px;color:var(--primary);font-weight:600}.price-buy{width:100%;min-height:46px}.price-updated{margin-top:13px;color:var(--muted);font-size:14px;display:flex;align-items:center;gap:6px}
.about-book .section-head{margin-bottom:0}.about-book .section-head p{max-width:980px;line-height:1.75}.edition-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.edition-card{display:grid;grid-template-columns:54px 1fr;gap:11px;padding:12px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}.edition-card.active{border-color:#8fa0c9;background:#fcfbff}.edition-cover-mini{width:54px;height:76px;border-radius:var(--ui-radius);background:#f3f4f7;display:grid;place-items:center;overflow:hidden;color:var(--primary)}.edition-cover-mini img{width:100%;height:100%;object-fit:cover}.edition-card strong,.edition-card span,.edition-card small{display:block}.edition-card strong{font-size:14px}.edition-card span,.edition-card small{margin-top:3px;color:var(--muted);font-size:14px}
.offer-table-wrap{overflow:auto}.offer-table thead th{padding:10px 12px;color:var(--muted);font-size:14px;font-weight:600;text-align:left;border-bottom:1px solid var(--line)}.offer-table td{font-size:14px}.offer-table .stock{white-space:nowrap}.offer-table .btn{white-space:nowrap}.compare-card{padding:0;overflow:hidden}.compare-card>.section-head{padding:20px 20px 12px;margin:0}
.book-lower-grid{display:grid;grid-template-columns:1.1fr .85fr .85fr;gap:14px}.lower-card{min-height:245px}.history-placeholder{height:150px;display:grid;place-items:center;align-content:center;gap:10px;border:1px dashed var(--line-strong);border-radius:var(--ui-radius);background:#fafbfe;color:var(--muted);text-align:center;padding:20px}.history-placeholder i{font-size:28px;color:var(--primary)}.wide-action{width:100%;min-height:45px}.review-score{display:flex;align-items:center;gap:16px;margin-top:22px}.review-score>strong{font-size:44px;letter-spacing:-2px}.review-stars{color:var(--warning);letter-spacing:2px}.review-score span{color:var(--muted);font-size:14px}.rating-buttons{display:flex;gap:7px;flex-wrap:wrap}.rating-buttons i{color:var(--warning)}.review-list{display:grid;gap:10px;margin-bottom:18px}.review-list article{padding:13px;border:1px solid var(--line);border-radius:var(--ui-radius)}.review-list article>span{margin-left:8px;color:var(--warning)}.review-list p{margin:7px 0 0!important}
.author-page.section{padding-top:0}.author-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px}.author-profile-card{position:sticky;top:132px;height:max-content;padding:22px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--shadow-sm)}.author-photo{width:148px;height:148px;margin:0 auto 16px;border-radius:50%;object-fit:cover}.author-photo-placeholder{display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-size:44px}.author-profile-card h1{margin:0;text-align:center;font-size:22px}.author-years{text-align:center;color:var(--muted);font-size:14px;margin-top:4px}.author-follow{width:100%;margin-top:16px}.author-mini-stats{display:grid;gap:0;margin-top:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.author-mini-stats>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f1f3f6}.author-mini-stats>div:last-child{border-bottom:0}.author-mini-stats span{color:var(--muted);font-size:14px}.author-mini-stats strong{font-size:14px}.author-bio{margin-top:18px}.author-bio h3{font-size:14px}.author-bio p{color:#596579;font-size:14px;line-height:1.75}.author-bio dl{margin:12px 0}.author-bio dt{color:var(--muted);font-size:14px}.author-bio dd{margin:2px 0 0;font-size:14px}.author-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.author-heading .eyebrow{margin-bottom:10px}.author-heading h2{margin:0;font-size:34px;letter-spacing:-1.2px}.author-heading p{margin:6px 0 0;color:var(--muted);font-size:14px}.author-actions{display:flex;gap:8px}.author-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.author-stat{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}.author-stat>i{width:42px;height:42px;display:grid;place-items:center;border-radius:var(--ui-radius);background:#edf2f8;color:var(--primary);font-size:18px}.author-stat.green>i{background:#ecfdf5;color:#0c9b5a}.author-stat.orange>i{background:#fff7ed;color:#ea7500}.author-stat.blue>i{background:#eff6ff;color:#2563eb}.author-stat strong{display:block;font-size:22px}.author-stat span{display:block;color:var(--muted);font-size:14px}.author-books-head{margin:24px 0 12px}.author-books-head h2{margin:0;font-size:21px}.author-books-head p{margin:3px 0 0;color:var(--muted);font-size:14px}.author-book-list{display:grid;gap:10px}.author-book-row{display:grid;grid-template-columns:78px 1fr 170px;gap:16px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}.author-book-row:hover{border-color:#d3d8e2;box-shadow:var(--shadow-sm)}.author-book-row .result-cover{width:78px;height:108px}.author-book-copy h3{margin:0 0 5px;font-size:14px}.author-book-copy .rating span{color:var(--muted)}.author-book-copy p{margin:5px 0 0;color:var(--muted);font-size:14px}.author-book-price{text-align:right}.author-book-price small,.author-book-price span{display:block;color:var(--muted);font-size:14px}.author-book-price strong{display:block;margin:3px 0 7px;font-size:18px}.author-book-price span{color:var(--primary);font-weight:600}
@media(max-width:1100px){.edition-cards{grid-template-columns:repeat(2,1fr)}.book-lower-grid{grid-template-columns:1fr 1fr}.book-lower-grid .lower-card:last-child{grid-column:1/-1}.author-stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.book-lower-grid{grid-template-columns:1fr}.book-lower-grid .lower-card:last-child{grid-column:auto}.edition-cards{grid-template-columns:1fr}.author-layout{grid-template-columns:1fr}.author-profile-card{position:static}.author-profile-head{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:center}.author-profile-head .author-photo{width:96px;height:96px;margin:0}.author-profile-copy h1{text-align:left;font-size:24px;line-height:1.2}.author-profile-copy .author-years{text-align:left;margin-top:6px}.author-heading{align-items:flex-start;flex-direction:column}.author-book-row{grid-template-columns:70px 1fr}.author-book-price{grid-column:2;text-align:left}.author-stat-grid{grid-template-columns:1fr 1fr}}


.home-hero{position:relative;overflow:hidden;padding:58px 0 42px;background:radial-gradient(circle at 78% 30%,rgba(64,86,214,.12),transparent 30%),linear-gradient(180deg,#f6f8fa,#fff)}.home-hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:54px;align-items:center}.home-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:16px;padding:6px 10px;border:1px solid #d7dee9;border-radius:var(--ui-radius);background:#fff;color:var(--primary);font-size:14px;font-weight:600}.home-hero h1{max-width:760px;margin:0;font-size:54px;line-height:1.07;letter-spacing:-2.4px}.home-hero h1 span{color:var(--primary)}.home-hero p{max-width:640px;margin:16px 0 24px;color:var(--muted);font-size:15px}.home-search{position:relative;display:flex;align-items:center;max-width:720px;height:58px;border:1px solid var(--line-strong);border-radius:var(--ui-radius);background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.06);overflow:hidden}.home-search>i{position:absolute;left:17px;color:#98a2b3}.home-search input{flex:1;height:100%;min-width:0;border:0;outline:0;padding:0 16px 0 46px;font-size:14px}.home-search button{height:100%;padding:0 24px;border:0;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-weight:600;cursor:pointer}.popular-searches{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:13px}.popular-searches>span{color:var(--muted);font-size:14px}.popular-searches a{padding:5px 9px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;color:#596579;font-size:14px}.popular-searches a:hover{border-color:#cbd5e1;color:var(--primary)}.hero-metrics{display:flex;gap:24px;flex-wrap:wrap;margin-top:25px}.hero-metrics>div{display:grid;grid-template-columns:34px auto;column-gap:9px;align-items:center}.hero-metrics i{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary)}.hero-metrics strong{font-size:14px}.hero-metrics span{color:var(--muted);font-size:14px}.home-hero-showcase{min-height:355px}.showcase-glow{inset:35px 30px;background:radial-gradient(circle,#dce4ee,transparent 70%);filter:blur(8px)}.showcase-book{position:absolute;width:180px;padding:12px;border:1px solid rgba(228,230,238,.85);border-radius:var(--ui-radius);background:rgba(255,255,255,.92);box-shadow:0 18px 50px rgba(64,86,214,.12);backdrop-filter:blur(8px)}.showcase-book .home-cover-fallback,.showcase-book img{border-radius:var(--ui-radius)}.showcase-book>span{display:block;margin-top:9px;font-size:14px;}.showcase-1{left:33%;top:5px;z-index:4}.showcase-2{left:3%;top:72px;transform:rotate(-4deg);opacity:.88}.showcase-3{right:1%;top:82px;opacity:.82}.showcase-4{left:53%;top:100px;transform:rotate(2deg);opacity:.72}.showcase-badge{position:absolute;right:23px;top:7px;z-index:6;padding:8px 11px;border-radius:var(--ui-radius);background:#ecfdf5;color:#0c8b4d;font-size:14px;font-weight:700;box-shadow:var(--shadow-sm)}.showcase-badge i{margin-right:5px}.home-cover-fallback{width:100%;height:100%;display:flex;align-items:flex-end;padding:12px;background:linear-gradient(155deg,#2b3b55,#4056d6);color:#fff;font-size:14px;font-weight:700;line-height:1.25}.home-cover-fallback.t2{background:linear-gradient(155deg,#7c2d12,#c2410c)}.home-cover-fallback.t3{background:linear-gradient(155deg,#065f46,#0f766e)}.home-cover-fallback.t4{background:linear-gradient(155deg,#334155,#46658f)}.home-cover-fallback.t5{background:linear-gradient(155deg,#1e3a8a,#2563eb)}
.home-how{padding:26px 0 8px}.home-how-title{text-align:center;margin-bottom:15px;font-size:18px;font-weight:700}.home-how-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.home-how-item{position:relative;display:grid;grid-template-columns:34px 40px 1fr;align-items:center;gap:10px;padding:16px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--shadow-sm)}.home-how-item>b{position:absolute;left:10px;top:9px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:var(--primary);color:#fff;font-size:14px}.home-how-item>i{grid-column:2;width:40px;height:40px;display:grid;place-items:center;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary);font-size:16px}.home-how-item>div{grid-column:3}.home-how-item strong,.home-how-item span{display:block}.home-how-item strong{font-size:14px}.home-how-item span{margin-top:2px;color:var(--muted);font-size:14px}.home-category-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}.home-category-grid>a{display:grid;justify-items:center;gap:7px;padding:17px 10px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;text-align:center;transition:.16s}.home-category-grid>a:hover{transform:translateY(-2px);border-color:#d3cdfd;box-shadow:var(--shadow-sm)}.home-category-grid i{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-size:17px}.home-category-grid strong{font-size:14px}.home-category-grid span{color:var(--muted);font-size:14px}.home-two-col{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.5fr);gap:18px}.home-book-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.home-book-card{display:grid;grid-template-columns:80px 1fr;gap:12px;padding:12px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}.home-book-cover{width:80px;height:112px;overflow:hidden;border-radius:var(--ui-radius)}.home-book-cover img{width:100%;height:100%;object-fit:cover}.home-book-card h3{margin:1px 0 3px;font-size:14px}.home-book-card p{margin:0;color:var(--muted);font-size:14px}.home-book-card strong{display:block;margin-top:10px;font-size:14px}.price-drop-chip{display:inline-flex;align-items:center;gap:4px;margin-top:5px;color:#0c8b4d;font-size:14px;font-weight:600}.cheap-list{padding:18px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--shadow-sm)}.cheap-list .section-head{margin-bottom:10px}.cheap-list ol{margin:0;padding-left:25px}.cheap-list li{padding:9px 0;border-bottom:1px solid #f0f2f5}.cheap-list li:last-child{border-bottom:0}.cheap-list a{display:flex;justify-content:space-between;gap:14px}.cheap-list span strong,.cheap-list span small{display:block}.cheap-list span strong{font-size:14px}.cheap-list span small{color:var(--muted);font-size:14px}.cheap-list b{font-size:14px;white-space:nowrap}.home-card-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.home-product-card{padding:11px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;transition:.16s}.home-product-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm)}.home-product-cover{height:220px;overflow:hidden;border-radius:var(--ui-radius)}.home-product-cover img{width:100%;height:100%;object-fit:cover}.home-product-card h3{margin:10px 0 3px;font-size:14px;line-height:1.35}.home-product-card p{margin:0;color:var(--muted);font-size:14px}.home-product-bottom{display:flex;justify-content:space-between;align-items:flex-end;margin-top:10px}.home-product-bottom strong{font-size:14px}.home-product-bottom span{color:var(--muted);font-size:14px}.home-feature-strip{padding:0 0 55px}.home-feature-strip>.container{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid var(--line);border-radius:var(--ui-radius);background:linear-gradient(90deg,#fff,#f6f8fa);overflow:hidden}.home-feature-strip>.container>div{display:flex;align-items:center;gap:14px;padding:19px 22px;border-right:1px solid var(--line)}.home-feature-strip>.container>div:last-child{border-right:0}.home-feature-strip i{width:42px;height:42px;display:grid;place-items:center;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary);font-size:18px}.home-feature-strip strong,.home-feature-strip small{display:block}.home-feature-strip strong{font-size:14px}.home-feature-strip small{color:var(--muted);font-size:14px}
@media(max-width:1100px){.home-category-grid{grid-template-columns:repeat(4,1fr)}.home-card-grid{grid-template-columns:repeat(3,1fr)}.home-book-row{grid-template-columns:1fr 1fr}.home-how-grid{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.home-hero-grid{grid-template-columns:1fr}.home-hero h1{font-size:38px}.home-how-grid{grid-template-columns:1fr}.home-two-col{grid-template-columns:1fr}.home-category-grid{grid-template-columns:repeat(2,1fr)}.home-card-grid{grid-template-columns:repeat(2,1fr)}.home-book-row{grid-template-columns:1fr}.home-feature-strip>.container{grid-template-columns:1fr}.home-feature-strip>.container>div{border-right:0;border-bottom:1px solid var(--line)}}


.search-layout{grid-template-columns:235px minmax(0,1fr) 260px;}.search-filter-card,.search-help-card{height:max-content;padding:18px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--shadow-sm)}.search-filter-card h3,.search-help-card h3{margin:0 0 14px;font-size:14px}.search-filter-block{padding:14px 0;}.search-filter-block h4{margin:0 0 10px;}.search-filter-block>a,.search-filter-block>label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 0;color:#596579;font-size:14px}.search-filter-block>a.active{color:var(--primary);font-weight:600}.search-filter-block span{color:#98a2b3}.price-range-mock{display:flex;justify-content:space-between;gap:8px}.price-range-mock span{flex:1;padding:8px;border:1px solid var(--line);border-radius:var(--ui-radius);text-align:center;font-size:14px}.search-filter-button{width:100%}.search-results-head{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:14px}.search-results-head h1{font-size:25px;letter-spacing:-.8px}.search-results-head p{margin:4px 0 0;color:var(--muted);}.search-result-cards{display:grid;gap:12px}.search-result-card{position:relative;display:grid;grid-template-columns:110px minmax(0,1fr) 220px;gap:18px;padding:16px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--shadow-sm);transition:.16s}.search-result-card:hover{border-color:#cfd7e5;transform:translateY(-1px)}.search-result-cover{width:110px;height:158px;overflow:hidden;border-radius:var(--ui-radius)}.search-result-cover img{width:100%;height:100%;object-fit:cover}.search-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.search-title-line h2{margin:0;font-size:17px}.search-title-line span{padding:4px 8px;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary);font-size:14px}.search-author{margin:4px 0;color:#4d596c;font-size:14px}.search-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:13px;color:var(--muted);font-size:14px}.search-meta span{display:flex;align-items:center;gap:5px}.search-card-actions{display:flex;gap:15px;flex-wrap:wrap;margin-top:14px;color:#61708a;font-size:14px}.search-card-actions span{display:flex;align-items:center;gap:5px}.search-price-box{display:grid;align-content:center;gap:5px;padding-left:18px;border-left:1px solid var(--line)}.search-price-box small{color:var(--success);font-size:14px;font-weight:600}.search-price-box strong{font-size:26px;letter-spacing:-.8px}.search-price-box span{color:var(--muted);font-size:14px}.search-price-box b{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:9px;padding:10px;border-radius:var(--ui-radius);background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-size:14px}.search-help-card{position:sticky;top:132px;background:linear-gradient(180deg,#f6f8fa,#fff)}.search-help-visual{height:120px;display:grid;place-items:center;color:var(--primary);font-size:44px}.search-help-card p{color:var(--muted);font-size:14px;line-height:1.7}.search-help-separator{margin:18px 0;border-top:1px solid var(--line)}.search-help-card h4{margin:0 0 7px;font-size:14px}.search-empty-head{max-width:760px;margin:40px auto;text-align:center}.search-empty-head h1{font-size:34px;margin-bottom:8px}.search-empty-head p{color:var(--muted)}
.category-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px}.category-sidebar{position:sticky;top:132px;height:max-content;border:1px solid var(--line);box-shadow:var(--shadow-sm);}.category-sidebar-title{display:flex;align-items:center;gap:11px;padding:17px;border-bottom:1px solid var(--line);background:#fbfbff}.category-sidebar-title>i{width:36px;height:36px;display:grid;place-items:center;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary)}.category-sidebar-title strong,.category-sidebar-title span{display:block}.category-sidebar-title strong{font-size:14px}.category-sidebar-title span{color:var(--muted);font-size:14px}.category-filter-section{border-bottom:1px solid var(--line)}.category-filter-section h3{margin:0 0 10px;font-size:14px}.category-filter-section>a,.category-filter-section>label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;color:#596579;font-size:14px}.category-filter-section span{color:#98a2b3}.category-clear{margin:15px 17px}.category-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.category-heading h1{margin:3px 0 5px;font-size:34px;letter-spacing:-1.2px}.category-heading p{max-width:800px;margin:0;color:var(--muted);font-size:14px}.category-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.category-stats>div{display:grid;grid-template-columns:40px 1fr;column-gap:11px;align-items:center;padding:15px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}.category-stats i{grid-row:1/3;width:40px;height:40px;display:grid;place-items:center;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary)}.category-stats strong{font-size:20px}.category-stats span{color:var(--muted);font-size:14px}.category-tabs{display:flex;gap:8px;overflow:auto;margin:5px 0 14px;padding:7px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}.category-tabs a{padding:8px 12px;border-radius:var(--ui-radius);color:#596579;font-size:14px;white-space:nowrap}.category-tabs a.active,.category-tabs a:hover{background:var(--primary-soft);color:var(--primary)}.category-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:var(--muted);font-size:14px}.category-result-list{display:grid;gap:10px}.category-result-row{position:relative;display:grid;grid-template-columns:90px minmax(0,1fr) 190px;gap:16px;padding:13px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;transition:.15s}.category-result-row:hover{border-color:#cfd7e5;box-shadow:var(--shadow-sm)}.category-result-cover{width:90px;height:130px;overflow:hidden;border-radius:var(--ui-radius)}.category-result-cover img{width:100%;height:100%;object-fit:cover}.category-result-copy h2{margin:1px 0 3px;font-size:15px}.category-author-link{color:var(--primary);font-size:14px}.category-result-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:14px}.category-result-meta span+span:before{content:"\\2022";margin-right:10px}.category-price-compare{display:grid;align-content:center;gap:4px;padding-left:16px;border-left:1px solid var(--line)}.category-price-compare small{color:var(--muted);font-size:14px}.category-price-compare strong{font-size:21px}.category-price-compare span{color:var(--muted);font-size:14px}.category-price-compare b{margin-top:7px;color:var(--primary);font-size:14px}.category-fav{position:absolute;right:12px;top:10px;color:#8793a6}
@media(max-width:1150px){.search-layout{grid-template-columns:220px 1fr}.search-help-card{display:none}.category-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.search-layout,.category-layout{grid-template-columns:1fr}.search-filter-card,.category-sidebar{display:none}.search-result-card{grid-template-columns:80px 1fr}.search-result-cover{width:80px;height:118px}.search-price-box{grid-column:2;border-left:0;padding-left:0}.category-result-row{grid-template-columns:72px 1fr}.category-result-cover{width:72px;height:105px}.category-price-compare{grid-column:2;border-left:0;padding-left:0}.category-stats{grid-template-columns:1fr 1fr}}


body{background:#f6f7f9}
.site-header,.header-main,.header-nav{background:#fbfcfd}
.site-header{box-shadow:0 1px 0 rgba(16,24,40,.04)}
.hero,.home-hero{background:linear-gradient(135deg,#f7f8fa 0%,#eef3f8 55%,#f3f5f7 100%)}
.section.soft{background:#eef2f5}
.mega-menu{top:36px;width:min(980px,calc(100vw - 48px));padding:18px;border-radius:var(--ui-radius);background:#fdfefe}
.mega-menu-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;padding-bottom:13px;margin-bottom:14px;border-bottom:1px solid var(--line)}.mega-menu-head strong{font-size:18px}.mega-menu-head span{color:var(--muted)}
.mega-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}.mega-column{min-width:0}.mega-parent{display:flex!important;align-items:center;justify-content:space-between!important;padding:0 0 8px!important;font-weight:700!important;font-size:15px!important;color:var(--text)!important}.mega-parent i{font-size:14px!important;color:#8b95a6!important}.mega-child-list{display:grid;gap:2px}.mega-child-list a,.mega-child-list span{display:block;padding:5px 0!important;color:#667085!important;font-size:14px!important}.mega-child-list a:hover{color:var(--primary)!important;background:transparent!important}
.site-modal{position:fixed;inset:0;z-index:120;display:none}.site-modal.open{display:block}.site-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(3px)}.site-modal-dialog{position:relative;width:min(460px,calc(100% - 32px));margin:12vh auto 0;padding:26px;background:#fff;border:1px solid var(--line);border-radius:var(--ui-radius);box-shadow:0 24px 70px rgba(15,23,42,.24)}.site-modal-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;color:#64748b;cursor:pointer}.modal-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:var(--ui-radius);background:#eef3fb;color:var(--primary);font-size:20px}.site-modal-dialog h2{margin:14px 0 6px;font-size:22px}.site-modal-dialog>p{margin:0 0 18px;color:var(--muted)}.modal-check{display:flex!important;align-items:center;gap:8px!important}.modal-check input{width:auto!important}.modal-message{min-height:22px;color:var(--muted)}.modal-message.success{color:var(--success)}.modal-message.error{color:var(--danger)}.modal-open{overflow:hidden}.site-toast{position:fixed;left:50%;bottom:28px;z-index:150;transform:translate(-50%,20px);opacity:0;padding:11px 15px;border-radius:var(--ui-radius);background:#111827;color:#fff;transition:.18s}.site-toast.show{transform:translate(-50%,0);}
.site-footer{background:#101827;color:#d0d5dd;border-top:0;padding-top:46px}.site-footer .brand{color:#fff}.site-footer .brand-word>span{color:#91a4ff}.site-footer .brand-mark{background:#1c2740;color:#91a4ff}.footer-grid p,.footer-grid>div>a,.footer-bottom{color:#98a2b3}.footer-grid h4{color:#fff;font-size:15px}.footer-grid>div>a{font-size:14px}.footer-grid>div>a:hover{color:#fff}.footer-bottom{border-color:#273248}.home-feature-strip{background:#eef2f5;padding-top:26px}
@media(max-width:1000px){.mega-menu-grid{grid-template-columns:repeat(2,1fr)}}


.footer-service-row{grid-template-columns:repeat(3,1fr);gap:0;margin-bottom:42px;border:1px solid #2a3448;background:#151f32}
.footer-service-row>div{padding:20px 22px;border-right:1px solid #2a3448}
.footer-service-row i{width:42px;height:42px;border-radius:var(--ui-radius);background:#202c43;color:#aebbf0;font-size:18px}
.footer-service-row strong,.footer-service-row small{display:block}.footer-service-row small{color:#98a2b3;font-size:14px}
.footer-about{max-width:440px}.footer-mini-note{align-items:flex-start;padding:12px;border:1px solid #273248;background:#151f32;color:#98a2b3;font-size:14px}.footer-mini-note i{color:#8da0da}.footer-bottom a{color:#98a2b3}


.mega-menu{width:min(1180px,calc(100vw - 48px))}
.mega-menu-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.mega-more{margin-top:5px!important;padding-top:7px!important;border-top:1px solid var(--line);color:var(--primary)!important;font-weight:600!important}.mega-more i{margin-left:5px;font-size:12px!important}
@media(max-width:1180px){.mega-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* Homepage hero selected-book showcase */
.home-hero-showcase{position:relative;min-height:370px;isolation:isolate}
.showcase-glow{position:absolute;inset:42px 18px 22px;background:radial-gradient(circle at 50% 45%,rgba(64,86,214,.17),rgba(64,86,214,.06) 35%,transparent 70%);filter:blur(12px)}
.showcase-book{width:176px;padding:10px;background:rgba(255,255,255,.96);border:1px solid #e1e6ed;box-shadow:0 24px 58px rgba(15,23,42,.13);will-change:transform}
.showcase-book .home-cover-fallback,.showcase-book img{width:100%;aspect-ratio:2/3;object-fit:cover}
.showcase-book>span{min-height:22px;margin-top:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.showcase-1{left:3%;top:102px;z-index:2;opacity:1;transform:rotate(-4deg);animation:kfFloatLeft 4.8s ease-in-out infinite}
.showcase-2{left:50%;top:20px;z-index:5;width:190px;opacity:1;transform:translateX(-50%);animation:kfFloatCenter 4.2s ease-in-out infinite}
.showcase-3{right:2%;top:104px;z-index:2;opacity:1;transform:rotate(4deg);animation:kfFloatRight 5.1s ease-in-out infinite}
.showcase-badge{right:9%;top:4px;z-index:7}
@keyframes kfFloatLeft{
  0%,100%{transform:translateY(0) rotate(-4deg)}
  50%{transform:translateY(-12px) rotate(-2.5deg)}
}
@keyframes kfFloatCenter{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(-16px)}
}
@keyframes kfFloatRight{
  0%,100%{transform:translateY(0) rotate(4deg)}
  50%{transform:translateY(-10px) rotate(2.5deg)}
}
@media (prefers-reduced-motion:reduce){
  .showcase-1,.showcase-2,.showcase-3{animation:none}
}
@media(max-width:1100px){
  .showcase-book{width:158px}.showcase-2{width:172px}
}


/* Category mega menu: left master list + right submenu */
.mega-menu{display:none;position:absolute;left:0;top:38px;width:min(1080px,calc(100vw - 48px));padding:0;border:1px solid var(--line);background:#fff;box-shadow:0 24px 60px rgba(15,23,42,.16);overflow:hidden}
.mega-wrap.open .mega-menu{display:block}
.mega-wrap:hover .mega-menu{display:none}
.mega-wrap.open:hover .mega-menu{display:block}
.mega-desktop{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:430px}
.mega-main-list{padding:10px 0;background:#f8fafc;border-right:1px solid var(--line)}
.mega-main-item{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;padding:12px 16px!important;color:#344054!important;font-weight:600!important}
.mega-main-item>span{display:flex;align-items:center;gap:11px;min-width:0}
.mega-main-item>span>i{width:20px;text-align:center;color:#667085}
.mega-main-item>i{font-size:12px;color:#98a2b3}
.mega-main-item.active,.mega-main-item:hover{background:#fff;color:var(--primary)!important;box-shadow:inset 3px 0 0 var(--primary)}
.mega-main-item.active>span>i,.mega-main-item:hover>span>i{color:var(--primary)}
.mega-detail{position:relative;padding:24px 26px;background:#fff}
.mega-detail-panel{display:none}
.mega-detail-panel.active{display:block}
.mega-detail-title{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.mega-detail-title>a{font-size:20px;font-weight:700;color:var(--text)}
.mega-detail-title>span{color:var(--muted);font-size:14px}
.mega-detail-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 18px}
.mega-detail-links>a{display:flex!important;align-items:center!important;gap:8px;padding:9px 8px!important;color:#475467!important;font-size:14px!important;border:1px solid transparent}
.mega-detail-links>a:hover{background:#f8fafc!important;border-color:#e5e7eb;color:var(--primary)!important}
.mega-detail-links>a i{width:18px;text-align:center;color:#98a2b3}
.mega-mobile{display:none}
@media(max-width:820px){
  .header-nav{display:none}
  .mega-desktop{display:none}
  .mega-mobile{display:block}
  .mega-menu{position:static;width:auto;border:0;box-shadow:none;background:transparent}
  .mega-mobile-group{border-bottom:1px solid var(--line)}
  .mega-mobile-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border:0;background:transparent;color:var(--text);font-weight:600;text-align:left}
  .mega-mobile-toggle>span{display:flex;align-items:center;gap:10px}
  .mega-mobile-toggle>span i{width:18px;color:var(--primary)}
  .mega-mobile-children{display:none;padding:0 0 10px 28px}
  .mega-mobile-group.open .mega-mobile-children{display:grid}
  .mega-mobile-group.open .mega-mobile-toggle>i{transform:rotate(180deg)}
  .mega-mobile-children a{padding:8px 0;color:#667085}
  .mega-mobile-all{font-weight:600;color:var(--primary)!important}
}


.mobile-category-menu{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.mobile-category-main-toggle,.mobile-category-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border:0;background:transparent;color:var(--text);font:inherit;font-weight:600;text-align:left}
.mobile-category-main-toggle>span,.mobile-category-toggle>span{display:flex;align-items:center;gap:10px}
.mobile-category-main-toggle>span i,.mobile-category-toggle>span i{width:18px;text-align:center;color:var(--primary)}
.mobile-category-main-panel,.mobile-category-children{display:none}
.mobile-category-menu.open>.mobile-category-main-panel{display:block}
.mobile-category-menu.open>.mobile-category-main-toggle>i,.mobile-category-group.open>.mobile-category-toggle>i{transform:rotate(180deg)}
.mobile-category-group{border-top:1px solid #eef1f4}
.mobile-category-toggle{padding-left:10px}
.mobile-category-children{padding:0 0 8px 36px}
.mobile-category-group.open>.mobile-category-children{display:grid}
.mobile-category-children a{padding:8px 0!important;color:#667085!important}
.mobile-category-all{color:var(--primary)!important;font-weight:600}


/* Header secondary navigation */
.header-nav{
  background:#f4f6f8!important;
  border-top:1px solid #eef1f4;
  border-bottom:1px solid #e4e8ee;
  transition:transform .22s ease,opacity .18s ease,box-shadow .18s ease;
  will-change:transform;
}
.site-header{
  position:sticky;
  top:0;
  z-index:90;
}
.site-header.nav-hidden .header-nav{
  transform:translateY(-100%);
}
.site-header.nav-visible .header-nav{
  transform:translateY(0);
}
.site-header.is-scrolled .header-main{
  box-shadow:0 4px 14px rgba(15,23,42,.06);
}
.site-header.is-scrolled .header-nav{
  box-shadow:0 6px 14px rgba(15,23,42,.035);
}
@media(max-width:820px){
  .header-nav{display:none!important}
}


/* Secondary nav collapse + active state */
.header-nav{
  max-height:42px;
  overflow:visible;
  transform:none!important;
  transition:max-height .2s ease,opacity .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.site-header.nav-hidden .header-nav{
  max-height:0;
  opacity:0;
  overflow:hidden;
  border-top-color:transparent;
  border-bottom-color:transparent;
  box-shadow:none!important;
  pointer-events:none;
}
.site-header.nav-visible .header-nav{
  max-height:42px;
  opacity:1;
  overflow:visible;
}
.nav-row>a.nav-active,
.nav-row>.mega-wrap>.nav-categories.nav-active{
  position:relative;
  color:var(--text)!important;
  font-weight:700;
}
.nav-row>a.nav-active::after,
.nav-row>.mega-wrap>.nav-categories.nav-active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:2px;
  background:var(--primary);
}
.mega-menu .nav-active,
.mega-menu a.nav-active{box-shadow:none!important}


/* Category filters */
.category-page.section{padding-top:0}
.filter-label-main{gap:8px;color:#596579!important}
.category-price-inputs{gap:8px}
.category-price-inputs input{height:40px;padding:8px 34px 8px 10px;border:1px solid var(--line);color:var(--text);}
.category-price-inputs input:focus{border-color:#aeb8ca;}
.category-result-list{transition:opacity .16s ease}
.category-result-list.is-loading{opacity:.42;}
.category-result-list.is-loading:before{content:"Filtreleniyor...";display:block;margin-bottom:10px;padding:10px 12px;border:1px solid var(--line);background:#fff;color:var(--muted);font-size:14px}


/* Category AJAX loading + reveal */
.category-result-list{position:relative}
.category-result-list.is-loading{opacity:1!important;pointer-events:none}
.category-result-list.is-loading>*{visibility:hidden}
.category-result-list.is-loading::before{
  content:"";
  display:block;
  height:132px;
  border:1px solid var(--line);
  background:
    linear-gradient(90deg,transparent 0,rgba(255,255,255,.7) 50%,transparent 100%),
    linear-gradient(#edf1f5 0 0) 16px 16px/90px 100px no-repeat,
    linear-gradient(#edf1f5 0 0) 124px 20px/36% 14px no-repeat,
    linear-gradient(#edf1f5 0 0) 124px 48px/22% 12px no-repeat,
    linear-gradient(#edf1f5 0 0) 124px 78px/42% 10px no-repeat,
    linear-gradient(#edf1f5 0 0) calc(100% - 170px) 34px/130px 18px no-repeat,
    #fff;
  background-size:220px 100%,90px 100px,36% 14px,22% 12px,42% 10px,130px 18px,auto;
  background-position:-220px 0,16px 16px,124px 20px,124px 48px,124px 78px,calc(100% - 24px) 34px,0 0;
  animation:categorySkeletonShimmer 1.1s linear infinite;
}
.category-result-list.is-loading::after{
  content:"";
  display:block;
  height:132px;
  margin-top:10px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 142px 0 #fff,0 142px 0 1px var(--line);
}
.category-result-list.is-revealing .category-result-row{
  opacity:0;
  transform:translateY(8px);
  animation:categoryResultReveal .28s ease forwards;
}
@keyframes categorySkeletonShimmer{
  to{background-position:calc(100% + 220px) 0,16px 16px,124px 20px,124px 48px,124px 78px,calc(100% - 24px) 34px,0 0}
}
@keyframes categoryResultReveal{
  to{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){
  .category-result-list.is-loading::before,
  .category-result-list.is-revealing .category-result-row{animation:none}
}


/* Hepsiburada-like category filters */
.category-filter-section{padding:20px 17px}
.category-filter-section h3{margin:0 0 16px;font-size:16px;font-weight:700;color:#111827}
.filter-row{display:flex!important;align-items:center;justify-content:space-between!important;gap:12px;margin:11px 0!important;color:#475467!important}
.filter-label-main{display:flex!important;align-items:center;min-width:0}
.filter-label-main>span:not(.filter-stars){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-count{margin-left:auto;color:#98a2b3!important;}
.filter-label-main input[type="checkbox"]{
  appearance:none;-webkit-appearance:none;
  width:19px;height:19px;flex:0 0 19px;
  margin:0;border:1px solid #cfd6df;border-radius:var(--ui-radius);background:#fff;
  display:grid;place-items:center;cursor:pointer;
  transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease
}
.filter-label-main input[type="checkbox"]::after{
  content:"";width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;
  transform:rotate(-45deg) scale(0);transition:transform .12s ease
}
.filter-label-main input[type="checkbox"]:checked{border-color:#4056d6;background:#4056d6}
.filter-label-main input[type="checkbox"]:checked::after{transform:rotate(-45deg) scale(1)}
.filter-label-main input[type="checkbox"]:focus-visible{box-shadow:0 0 0 3px rgba(64,86,214,.12)}

.price-slider{position:relative;height:34px;margin:2px 3px 12px}
.price-slider-track{position:absolute;left:0;right:0;top:15px;height:4px;border-radius:var(--ui-radius);background:#dfe4ea}
.price-slider-fill{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--ui-radius);background:#4056d6}
.price-range{
  position:absolute;left:0;right:0;top:6px;width:100%;height:22px;margin:0;
  appearance:none;-webkit-appearance:none;background:transparent;pointer-events:none;outline:none
}
.price-range::-webkit-slider-runnable-track{height:4px;background:transparent}
.price-range::-moz-range-track{height:4px;background:transparent}
.price-range::-webkit-slider-thumb{
  appearance:none;-webkit-appearance:none;pointer-events:auto;
  width:22px;height:22px;margin-top:-9px;border:2px solid #cfd6df;border-radius:50%;
  box-shadow:0 1px 4px rgba(15,23,42,.12)
}
.price-range::-moz-range-thumb{
  pointer-events:auto;width:22px;height:22px;border:2px solid #cfd6df;border-radius:50%;
  box-shadow:0 1px 4px rgba(15,23,42,.12)
}
.price-range:active::-webkit-slider-thumb,.price-range:active::-moz-range-thumb{cursor:grabbing;border-color:#4056d6}
.category-price-inputs{display:grid;grid-template-columns:1fr 1fr;}
.category-price-inputs label{position:relative;display:block}
.category-price-inputs input{
  width:100%;height:44px;padding:0 38px 0 12px;border:1px solid #d7dde6;border-radius:var(--ui-radius);background:#fff;
  color:#475467;font-weight:600;text-align:left;outline:none
}
.category-price-inputs input:focus{border-color:#a8b2c2;box-shadow:0 0 0 3px rgba(64,86,214,.07)}
.category-price-inputs label>span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#98a2b3;}

.rating-filter-row{min-height:24px}
.filter-stars{display:inline-flex;align-items:center;gap:2px}
.filter-stars i{font-size:16px;color:#f59e0b}
.filter-stars i.fa-regular{color:#cfd6df}

.category-sidebar{overflow:hidden}
.category-clear{margin-top:16px}


/* Category spacing + mobile filter drawer */
.category-subcategory-list{display:grid;max-height:230px;overflow-y:auto;padding-right:5px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}
.category-subcategory-list::-webkit-scrollbar{width:6px}
.category-subcategory-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:var(--ui-radius)}
.category-subcategory-list>a{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;color:#596579;}
.category-filter-mobile-head,.category-mobile-filter-btn,.category-filter-backdrop{display:none}
.category-toolbar-left{display:flex;align-items:center;gap:12px}

@media(max-width:820px){
  .category-layout{display:block}
  .category-sidebar{
    position:fixed!important;
    left:0;top:0;bottom:0;
    width:min(340px,88vw);
    height:100vh!important;
    z-index:120;
    transform:translateX(-104%);
    transition:transform .22s ease;
    border-radius:0!important;
    overflow-y:auto!important;
    box-shadow:0 20px 55px rgba(15,23,42,.28);
    background:#fff;
  }
  body.category-filter-open{overflow:hidden}
  body.category-filter-open .category-sidebar{transform:translateX(0)}
  .category-filter-backdrop{position:fixed;inset:0;z-index:110;background:rgba(15,23,42,.45);backdrop-filter:blur(2px)}
  body.category-filter-open .category-filter-backdrop{display:block}
  .category-filter-mobile-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line);background:#fff}
  .category-filter-mobile-head strong{font-size:17px}
  .category-filter-mobile-head button{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;color:#475467}
  .category-mobile-filter-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;color:#344054;font-weight:600}
  .category-toolbar{align-items:center;gap:10px}
  .category-toolbar-left{display:flex;align-items:center;gap:10px}
  .category-toolbar .select{min-width:150px}
}


/* Interactive cursors + mobile category drawer fix */
a,button,[role="button"],label[for],select,input[type="checkbox"],input[type="radio"],input[type="range"],.mobile-menu-button,.category-mobile-filter-btn,.nav-group-toggle{cursor:pointer}
.price-range::-webkit-slider-thumb{cursor:grab}
.price-range::-moz-range-thumb{cursor:grab}
.price-range:active::-webkit-slider-thumb{cursor:grabbing}
.price-range:active::-moz-range-thumb{cursor:grabbing}

@media(max-width:820px){
  .category-sidebar{
    display:block!important;
    visibility:visible!important;
    transform:translateX(-104%)!important;
  }
  body.category-filter-open .category-sidebar{
    transform:translateX(0)!important;
  }
}


/* Active category filter chips + stronger filter text */
.category-filter-section,
.category-filter-section label,
.category-filter-section a,
.filter-label-main,
.filter-label-main>span,
.category-price-inputs input,
.category-subcategory-list>a{
  color:#192020!important;
}
.category-filter-section h3{color:#192020!important}
.filter-count{color:#5f6767!important}
.category-price-inputs label>span{color:#6f7777!important}
.category-heading-main>p{color:#5f6767!important}
.category-active-filters{display:none;flex-wrap:wrap;gap:8px;margin:6px 0 4px}
.category-active-filters.has-filters{display:flex}
.active-filter-chip{
  display:inline-flex;align-items:center;gap:8px;
  min-height:36px;padding:7px 10px;
  border:1px solid #d2d8d8;border-radius:var(--ui-radius);
  background:#fff;color:#192020;font-weight:600;cursor:pointer;
}
.active-filter-chip:hover{border-color:#aeb7b7;background:#f7f9f9}
.active-filter-chip i{font-size:12px;color:#6a7272}
#categoryDefaultTitle[hidden]{display:none!important}


/* Sidebar filter summary chips */
.category-filter-summary{display:block!important}
.category-filter-summary-default{display:flex;align-items:center;gap:12px}
.category-filter-summary-default[hidden]{display:none!important}
.category-filter-summary-default>i{width:40px;height:40px;display:grid;place-items:center;border-radius:var(--ui-radius);background:#eef3fb;color:var(--primary)}
.category-filter-summary-default strong,.category-filter-summary-default span{display:block}
.category-filter-summary-default strong{color:#192020;font-size:15px}
.category-filter-summary-default span{margin-top:2px;color:#5f6767;font-size:14px}
.category-filter-summary .category-active-filters{margin:0}
.category-filter-summary .active-filter-chip{max-width:100%;font-size:14px}


.category-filter-section .filter-row,
.category-filter-section .filter-row *,
.category-filter-section label,
.category-filter-section label *{
  cursor:pointer;
}
.category-filter-section .filter-count{cursor:pointer}


/* Range cursor/thumb override */
.category-filter-section input[type="range"],
.category-filter-section .price-range{
  cursor:grab!important;
}
.category-filter-section input[type="range"]:active,
.category-filter-section .price-range:active{
  cursor:grabbing!important;
}
.price-range::-webkit-slider-thumb{
  cursor:grab!important;
  background:#fff;
  border-color:#aeb7c5;
}
.price-range:hover::-webkit-slider-thumb{
  border-color:#4056d6;
}
.price-range:active::-webkit-slider-thumb{
  cursor:grabbing!important;
  background:#4056d6;
  border-color:#4056d6;
}
.price-range::-moz-range-thumb{
  cursor:grab!important;
  background:#fff;
  border-color:#aeb7c5;
}
.price-range:hover::-moz-range-thumb{
  border-color:#4056d6;
}
.price-range:active::-moz-range-thumb{
  cursor:grabbing!important;
  background:#4056d6;
  border-color:#4056d6;
}


/* Range cursor: system default color/shape */
.category-filter-section input[type="range"],
.category-filter-section .price-range,
.price-range::-webkit-slider-thumb,
.price-range::-moz-range-thumb,
.category-filter-section input[type="range"]:active,
.category-filter-section .price-range:active{
  cursor:default!important;
}

.category-clear[hidden]{display:none!important}
@media(max-width:820px){.category-stats{display:none!important}}
@media(max-width:820px){
  .category-heading{margin-top:14px}
  .category-heading-main{padding:6px 0 14px}
  .category-heading h1{margin:0 0 6px}
}
@media(max-width:820px){
  .category-heading{margin-top:0!important}
}


/* Categories directory */
.categories-page.section{padding-top:0}
.categories-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:18px 0 26px}
.categories-page-head h1{margin:0 0 6px;font-size:34px;line-height:1.2;letter-spacing:-.8px}
.categories-page-head p{max-width:760px;margin:0;color:var(--muted)}
.categories-total{flex:0 0 auto;padding:8px 11px;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--surface-2);color:var(--text-2);font-size:14px;font-weight:600}
.categories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding-bottom:38px}
.category-directory-card{overflow:hidden;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}
.category-directory-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border-bottom:1px solid var(--line);background:#fafbfc}
.category-directory-head h2{margin:0;font-size:19px;line-height:1.3}
.category-directory-head span{display:block;margin-top:3px;color:var(--muted);font-size:14px}
.category-directory-head>i{color:var(--primary);font-size:14px}
.category-directory-head:hover h2{color:var(--primary)}
.category-directory-links{display:grid;padding:8px 0}
.category-directory-links>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 18px;color:#344054;font-size:14px}
.category-directory-links>a:hover{background:#f8fafc;color:var(--primary)}
.category-directory-links small{color:#98a2b3;font-size:13px}
.category-directory-empty{padding:16px 18px;color:var(--muted);font-size:14px}
@media(max-width:1000px){.categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){
  .categories-page-head{align-items:flex-start;padding:14px 0 20px}
  .categories-page-head h1{font-size:28px}
  .categories-total{display:none}
  .categories-grid{grid-template-columns:1fr;gap:12px;padding-bottom:28px}
}


.categories-grid{align-items:start}
.category-directory-card{align-self:start}
.category-directory-links>a>span{display:block!important;visibility:visible!important;opacity:1!important;color:#344054!important;font-weight:500!important}
.category-directory-links>a:hover>span{color:var(--primary)!important}


.category-directory-links{
  max-height:286px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
.category-directory-links::-webkit-scrollbar{width:6px}
.category-directory-links::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:var(--ui-radius)}


/* Authors directory */
.authors-directory-page{background:#fff}
.authors-directory-head{margin-bottom:14px}
.authors-alphabet{margin-bottom:24px}
.authors-alphabet a{min-width:32px;height:32px;display:grid;place-items:center;padding:0 9px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;color:#475467;font-size:14px;font-weight:600}
.authors-alphabet a:hover{border-color:#b9c3d4;color:var(--primary);background:#f8fafc}
.authors-directory{display:grid;gap:26px}
.authors-letter-section{scroll-margin-top:130px}
.authors-letter-section>h2{margin:0 0 10px;font-size:20px;line-height:1;color:var(--text)}
.authors-compact-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.author-compact-card{min-width:0;display:flex;align-items:center;gap:12px;min-height:68px;padding:9px 11px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.author-compact-card:hover{border-color:#cfd7e5;box-shadow:var(--shadow-sm);transform:translateY(-1px)}
.author-compact-avatar{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-weight:700}
.author-compact-avatar img{width:100%;height:100%;object-fit:cover}
.author-compact-card strong{min-width:0;white-space:nowrap;font-size:14px}
@media(max-width:1200px){.authors-compact-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.authors-compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){
  .authors-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .author-compact-card{min-height:62px;padding:7px 9px;gap:9px}
  .author-compact-avatar{width:42px;height:42px;flex-basis:42px}
}
@media(max-width:430px){.authors-compact-grid{grid-template-columns:1fr}}


.author-compact-avatar{border-radius:var(--ui-radius)!important}
.author-compact-card strong{
  white-space:normal!important;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.35;
}


.authors-tools{display:grid;gap:12px;margin-bottom:22px}
.authors-search{position:relative;max-width:520px}
.authors-search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#98a2b3;font-size:14px}
.authors-search input{width:100%;height:44px;padding:0 14px 0 39px;border:1px solid var(--line-strong);border-radius:var(--ui-radius);background:#fff;outline:none;color:var(--text)}
.authors-search input:focus{border-color:#8fa0c9;box-shadow:0 0 0 3px rgba(64,86,214,.07)}
.authors-alphabet{display:flex;flex-wrap:wrap;gap:6px}
.authors-alphabet button{min-width:32px;height:32px;padding:0 9px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;color:#475467;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.authors-alphabet button:hover,.authors-alphabet button.active{border-color:#8fa0c9;background:var(--primary-soft);color:var(--primary)}
.authors-list-state{min-height:84px}
.authors-loading{padding:24px;border:1px dashed var(--line);border-radius:var(--ui-radius);color:var(--muted);text-align:center}
.authors-load-more-wrap{display:flex;justify-content:center;margin-top:18px}
.authors-load-more-wrap[hidden]{display:none!important}


/* Publishers directory */
.publishers-directory-head{margin-bottom:14px}
.publishers-tools{display:grid;gap:12px;margin-bottom:22px}
.publishers-search{position:relative;max-width:520px}
.publishers-search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#98a2b3;font-size:14px}
.publishers-search input{width:100%;height:44px;padding:0 14px 0 39px;border:1px solid var(--line-strong);border-radius:var(--ui-radius);background:#fff;outline:none;color:var(--text)}
.publishers-search input:focus{border-color:#8fa0c9;box-shadow:0 0 0 3px rgba(64,86,214,.07)}
.publishers-alphabet{display:flex;flex-wrap:wrap;gap:6px}
.publishers-alphabet button{min-width:32px;height:32px;padding:0 9px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;color:#475467;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.publishers-alphabet button:hover,.publishers-alphabet button.active{border-color:#8fa0c9;background:var(--primary-soft);color:var(--primary)}
.publishers-list-state{min-height:84px}
.publishers-loading{padding:24px;border:1px dashed var(--line);border-radius:var(--ui-radius);color:var(--muted);text-align:center}
.publishers-compact-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.publisher-compact-card{min-width:0;display:flex;align-items:center;gap:12px;min-height:68px;padding:9px 11px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.publisher-compact-card:hover{border-color:#cfd7e5;box-shadow:var(--shadow-sm);transform:translateY(-1px)}
.publisher-compact-logo{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;overflow:hidden;border-radius:var(--ui-radius);background:#fff;border:1px solid var(--line);color:var(--primary);font-weight:700}
.publisher-compact-logo img{width:100%;height:100%;object-fit:contain;padding:4px}
.publisher-compact-card strong{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.35;font-size:14px}
.publishers-load-more-wrap{display:flex;justify-content:center;margin-top:18px}
.publishers-load-more-wrap[hidden]{display:none!important}
@media(max-width:1200px){.publishers-compact-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.publishers-compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){
  .publishers-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .publisher-compact-card{min-height:62px;padding:7px 9px;gap:9px}
  .publisher-compact-logo{width:42px;height:42px;flex-basis:42px}
}
@media(max-width:430px){.publishers-compact-grid{grid-template-columns:1fr}}


/* Directory filters: alphabet + search on one row */
.authors-tools,
.publishers-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,360px);
  align-items:center;
  gap:12px;
}
.authors-alphabet,
.publishers-alphabet{
  grid-column:1;
  grid-row:1;
}
.authors-search,
.publishers-search{
  grid-column:2;
  grid-row:1;
  width:100%;
  justify-self:end;
}

@media(max-width:820px){
  .authors-tools,
  .publishers-tools{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  .authors-alphabet,
  .publishers-alphabet{
    grid-column:1;
    grid-row:1;
  }
  .authors-search,
  .publishers-search{
    grid-column:1;
    grid-row:2;
    width:100%;
  }
}


/* Alphabet uses only needed space; search fills the remaining row */
.authors-tools,
.publishers-tools{
  display:flex!important;
  align-items:flex-start;
  gap:10px;
}
.authors-alphabet,
.publishers-alphabet{
  flex:0 1 auto;
  width:auto;
  margin:0;
}
.authors-search,
.publishers-search{
  flex:1 1 260px;
  min-width:260px;
  max-width:none;
  width:auto;
  margin:0;
}

@media(max-width:820px){
  .authors-tools,
  .publishers-tools{
    display:flex!important;
    flex-direction:column;
    align-items:stretch;
  }
  .authors-alphabet,
  .publishers-alphabet{
    width:100%;
  }
  .authors-search,
  .publishers-search{
    width:100%;
    min-width:0;
    flex:0 0 auto;
  }
}


.authors-alphabet button,
.publishers-alphabet button,
.authors-search input,
.publishers-search input{
  height:40px!important;
}


/* Mobile header menu overlays page instead of pushing content */
@media(max-width:820px){
  .site-header{position:sticky}
  .mobile-panel{
    position:absolute!important;
    top:100%;
    left:0;
    right:0;
    z-index:95;
    width:100%;
    max-height:calc(100vh - 64px);
    overflow-y:auto;
    overscroll-behavior:contain;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    box-shadow:0 16px 32px rgba(15,23,42,.12);
  }
  .mobile-panel.open{display:grid}

  .mobile-category-main-panel{
    max-height:60vh;
    overflow-y:auto;
    overscroll-behavior:contain;
  }

  .mobile-category-children{
    max-height:220px;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding-right:6px;
    scrollbar-width:thin;
    scrollbar-color:#cbd5e1 transparent;
  }
  .mobile-category-children::-webkit-scrollbar{width:5px}
  .mobile-category-children::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:var(--ui-radius)}
}


/* Mobile menu as right-side sliding drawer */
@media(max-width:820px){
  .mobile-panel{
    display:block!important;
    position:fixed!important;
    top:0!important;
    right:0!important;
    left:auto!important;
    bottom:0!important;
    width:min(360px,88vw)!important;
    max-height:none!important;
    height:100vh!important;
    padding:18px 16px!important;
    overflow-y:auto!important;
    background:#fff!important;
    border:0!important;
    border-left:1px solid var(--line)!important;
    box-shadow:-18px 0 40px rgba(15,23,42,.18)!important;
    transform:translateX(104%);
    transition:transform .22s ease;
    z-index:130!important;
  }
  .mobile-panel.open{
    transform:translateX(0);
  }

  body.mobile-menu-open{overflow:hidden}

  .mobile-menu-backdrop{
    position:fixed;
    inset:0;
    z-index:120;
    background:rgba(15,23,42,.42);
    backdrop-filter:blur(2px);
    opacity:0;
    visibility:hidden;
    transition:opacity .2s ease,visibility .2s ease;
  }
  body.mobile-menu-open .mobile-menu-backdrop{
    opacity:1;
    visibility:visible;
  }
}


@media(max-width:820px){
  .mobile-panel{
    display:flex!important;
    flex-direction:column;
    gap:0!important;
    padding:0!important;
  }
  .mobile-drawer-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:60px;
    padding:0 16px;
    border-bottom:1px solid var(--line);
    background:#fff;
    position:sticky;
    top:0;
    z-index:4;
  }
  .mobile-drawer-head strong{font-size:17px}
  .mobile-drawer-head button{
    width:38px;height:38px;
    display:grid;place-items:center;
    border:1px solid var(--line);
    border-radius:var(--ui-radius);
    background:#fff;
    color:#344054;
    font-size:17px;
  }
  .mobile-panel>.mobile-search{margin:14px 16px 10px}
  .mobile-panel>.mobile-category-menu{margin:0 16px}
  .mobile-panel>a{
    display:flex!important;
    align-items:center;
    min-height:44px;
    margin:0 16px;
    padding:10px 0!important;
    border-bottom:1px solid #eef1f4;
    color:#344054;
    font-size:14px;
  }
  .mobile-panel>a:last-child{border-bottom:0}
  .mobile-category-main-panel{max-height:52vh}
  .mobile-category-children{max-height:190px}
}


/* Refined mobile drawer */
@media(max-width:820px){
  .mobile-panel{
    width:min(340px,90vw)!important;
    padding:0 0 18px!important;
    background:#fff!important;
    box-shadow:-12px 0 32px rgba(15,23,42,.16)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:thin;
    scrollbar-color:#cbd5e1 transparent;
  }
  .mobile-panel::-webkit-scrollbar{width:5px}
  .mobile-panel::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:var(--ui-radius)}

  .mobile-drawer-head{
    min-height:58px;
    padding:0 14px;
  }
  .mobile-drawer-head strong{font-size:16px}
  .mobile-drawer-head button{
    width:36px;height:36px;
    font-size:16px;
  }

  .mobile-panel>.mobile-search{
    margin:12px 14px 10px!important;
  }
  .mobile-search input{
    height:44px;
    padding:0 12px;
    font-size:14px;
  }
  .mobile-search button{
    width:44px;
    padding:0!important;
  }

  .mobile-panel>.mobile-category-menu{
    margin:0 14px 8px!important;
    border:1px solid var(--line);
    border-radius:var(--ui-radius);
    overflow:hidden;
    background:#fff;
  }

  .mobile-category-main-toggle,
  .mobile-category-toggle{
    min-height:46px;
    padding:0 12px!important;
    border:0!important;
    border-bottom:1px solid #eef1f4!important;
    font-size:14px!important;
    background:#fff!important;
  }
  .mobile-category-main-toggle{
    font-weight:700!important;
  }
  .mobile-category-main-toggle>span,
  .mobile-category-toggle>span{
    gap:9px!important;
  }

  .mobile-category-main-panel{
    max-height:none!important;
    overflow:visible!important;
  }

  .mobile-category-group:last-child>.mobile-category-toggle{
    border-bottom:0!important;
  }
  .mobile-category-group.open>.mobile-category-toggle{
    background:#f8fafc!important;
  }

  .mobile-category-children{
    max-height:176px!important;
    padding:6px 12px 8px 36px!important;
    overflow-y:auto!important;
    border-bottom:1px solid #eef1f4;
    background:#fbfcfd;
  }
  .mobile-category-children a{
    min-height:36px;
    display:flex!important;
    align-items:center;
    padding:7px 0!important;
    font-size:14px!important;
    color:#596579!important;
  }
  .mobile-category-children .mobile-category-all{
    color:var(--primary)!important;
    font-weight:600;
  }

  .mobile-panel>a{
    min-height:42px!important;
    margin:0 14px!important;
    padding:9px 4px!important;
    border-bottom:1px solid #eef1f4!important;
    font-size:14px!important;
    color:#344054!important;
  }
  .mobile-panel>a:hover{
    color:var(--primary)!important;
    background:#f8fafc;
  }
}


@media(max-width:820px){
  .mobile-menu-backdrop{
    background:#000!important;
    opacity:0;
  }
  body.mobile-menu-open .mobile-menu-backdrop{
    opacity:.72!important;
  }
}


@media(max-width:820px){
  .mobile-menu-backdrop{
    background:#000!important;
    opacity:0!important;
    backdrop-filter:none!important;
  }
  body.mobile-menu-open .mobile-menu-backdrop{
    opacity:1!important;
  }
}


/* Backdrop must live outside sticky/backdrop-filter header to cover the viewport */
@media(max-width:820px){
  .mobile-menu-backdrop{
    position:fixed!important;
    inset:0!important;
    z-index:120!important;
    background:rgba(0,0,0,.58)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    backdrop-filter:none!important;
    transition:opacity .2s ease,visibility .2s ease!important;
  }
  .mobile-panel{z-index:130!important}
}


/* Mobile drawer backdrop: same visual treatment as filter drawer */
@media(max-width:820px){
  .mobile-menu-backdrop{
    background:rgba(15,23,42,.45)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    backdrop-filter:blur(2px)!important;
  }

  /* Cleaner drawer scrollbars */
  .mobile-panel,
  .category-sidebar{
    scrollbar-width:thin!important;
    scrollbar-color:#aeb7c5 transparent!important;
  }
  .mobile-panel::-webkit-scrollbar,
  .category-sidebar::-webkit-scrollbar{
    width:5px!important;
  }
  .mobile-panel::-webkit-scrollbar-track,
  .category-sidebar::-webkit-scrollbar-track{
    background:transparent!important;
  }
  .mobile-panel::-webkit-scrollbar-thumb,
  .category-sidebar::-webkit-scrollbar-thumb{
    background:#aeb7c5!important;
    border-radius:var(--ui-radius)!important;
  }

  /* Nested filter/category lists use a softer scrollbar */
  .category-subcategory-list,
  .mobile-category-children{
    scrollbar-width:thin!important;
    scrollbar-color:#cbd5e1 transparent!important;
  }
  .category-subcategory-list::-webkit-scrollbar,
  .mobile-category-children::-webkit-scrollbar{
    width:4px!important;
  }
  .category-subcategory-list::-webkit-scrollbar-thumb,
  .mobile-category-children::-webkit-scrollbar-thumb{
    background:#cbd5e1!important;
    border-radius:var(--ui-radius)!important;
  }
}


@media(max-width:820px){
  .mobile-menu-backdrop{
    position:fixed!important;
    inset:0!important;
    z-index:120!important;
    background:rgba(15,23,42,.45)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    backdrop-filter:blur(2px)!important;
  }
  body.mobile-menu-open .mobile-menu-backdrop{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
  .mobile-panel{
    z-index:130!important;
    filter:none!important;
    backdrop-filter:none!important;
  }
}


/* Book detail responsive refinement */
@media(max-width:820px){
  .book-detail{padding-bottom:28px}
  .book-detail>.container{width:min(100% - 20px,var(--container))}
  .cover-action{
    min-height:42px;
    padding:8px 6px!important;
    font-size:13px!important;
    line-height:1.25;
  }
  .price-box{
    padding:15px!important;
  }
  .price-buy{
    min-height:46px!important;
  }

  .content-card{
    margin-top:14px!important;
    padding:16px!important;
  }
  .content-card h2{
    font-size:18px!important;
  }
  .content-card .section-head{
    margin-bottom:12px!important;
  }
  .content-card .section-head h2{
    font-size:18px!important;
  }
  .content-card .section-head p,
  .content-card p{
    font-size:14px!important;
    line-height:1.65;
  }

  .edition-cards{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .edition-card{
    grid-template-columns:48px minmax(0,1fr)!important;
    gap:10px!important;
    padding:10px!important;
  }
  .edition-cover-mini{
    width:48px!important;
    height:68px!important;
  }

  .compare-card{
    padding:0!important;
  }
  .compare-card>.section-head{
    padding:16px 16px 10px!important;
  }
  .offer-table-wrap{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .offer-table{
    min-width:760px;
  }
  .offer-table th,
  .offer-table td{
    white-space:nowrap;
    padding:10px!important;
    font-size:13px!important;
  }
  .offer-table .btn{
    min-height:36px;
    padding:8px 10px!important;
    font-size:13px!important;
  }

  .book-lower-grid{
    grid-template-columns:1fr!important;
    gap:0!important;
  }
  .lower-card{
    min-height:0!important;
  }
  .history-placeholder{
    height:auto!important;
    min-height:125px;
    padding:18px!important;
  }
  .review-score{
    margin-top:14px!important;
  }

  .rating-buttons{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px!important;
  }
  .rating-buttons .btn{
    min-width:0;
    padding:9px 4px!important;
  }

  .review-list article{
    padding:11px!important;
  }

  .site-modal-dialog{
    width:calc(100% - 24px)!important;
    max-height:88vh;
    overflow-y:auto;
  }
}

@media(max-width:520px){
  .rating-buttons{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}


/* Book top area closer to reference */
.book-publisher-link{color:var(--text)}
.book-publisher-link:hover{color:var(--primary)}

@media(max-width:820px){
  .cover-action{
    width:132px!important;
  }
}
@media(max-width:520px){
  .cover-action{width:138px!important}
}

/* Footer service row responsive */
@media(max-width:820px){
  .footer-service-row{
    grid-template-columns:1fr!important;
    margin-bottom:28px!important;
  }
  .footer-service-row>div{
    border-right:0!important;
    border-bottom:1px solid #2a3448;
    padding:16px!important;
    gap:12px!important;
  }
  .footer-service-row i{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px;
    font-size:16px!important;
  }
  .footer-service-row strong{
    font-size:14px!important;
  }
  .footer-service-row small{
    font-size:13px!important;
    line-height:1.5;
  }
}


/* Reusable book + store comparison row */
.book-compare-row{
  grid-template-columns:minmax(290px,330px) minmax(0,1fr);
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
.book-compare-cover{
  display:block;
  width:88px;
  height:124px;
  border-radius:var(--ui-radius);
  overflow:hidden;
  background:#f3f4f6;
  box-shadow:0 1px 2px rgba(16,24,40,.08);
}
.book-compare-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.book-compare-cover .home-cover-fallback{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  padding:8px;
  font-size:12px;
  line-height:1.25;
  text-align:center;
}
.book-compare-copy{padding-top:2px}
.book-compare-title:hover{color:var(--primary)}
.book-compare-author{
  margin-top:5px;
  color:#667085;
  font-size:14px;
}
.book-compare-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px 10px;
  margin-top:8px;
  color:#667085;
  font-size:14px;
}
.book-compare-rating{
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:9px;
  font-size:14px;
}
.book-compare-rating i{color:#f59e0b}
.book-compare-rating strong{font-size:14px}
.book-compare-rating span{color:#7b8494;font-size:14px}

.book-compare-offers{
  grid-auto-flow:column;
  grid-auto-columns:minmax(130px,1fr);
}
.book-compare-offer{
  gap:9px;
}
.book-compare-store{
  height:25px;
  max-width:100%;
}
.book-compare-store img{
  max-width:96px;
  max-height:26px;
}
.book-compare-store strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:120px;
  font-size:14px;
}
.book-compare-store-fallback{
  display:none;
}
.book-compare-store.logo-error .book-compare-store-fallback{
  display:block;
}
.book-compare-price{
  font-weight:700;
}
.book-compare-go{
  width:100%;
  min-height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px 8px;
  border-radius:var(--ui-radius);
  background:#f1efff;
  color:var(--primary);
  font-size:12px;
  font-weight:600;
}
.book-compare-go:hover{background:#e8e5ff}
.book-compare-no-offer{
  padding:18px 20px;
  color:var(--muted);
}
.book-compare-no-offer i{
  color:#98a2b3;
}
.category-result-list,
.search-result-cards{
  display:grid;
  gap:10px;
}

/* Number of visible store columns is purely responsive; no trailing store-count box */
@media(min-width:1380px){
  .book-compare-offer:nth-child(n+6){display:none}
}
@media(min-width:1180px) and (max-width:1379px){
  .book-compare-offer:nth-child(n+5){display:none}
}
@media(min-width:900px) and (max-width:1179px){
  .book-compare-row{grid-template-columns:minmax(250px,290px) minmax(0,1fr)}
  .book-compare-offer:nth-child(n+4){display:none}
}
@media(max-width:899px){
  .book-compare-row{
    grid-template-columns:1fr;
  }
  .book-compare-summary{
    grid-column:1;
  }
  .book-compare-offers{
    grid-column:1;
    grid-row:2;
    grid-auto-columns:150px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    border-top:1px solid var(--line);
  }
  .book-compare-offer{
    display:flex!important;
    border-left:1px solid var(--line);
  }
  .book-compare-offer:first-child{border-left:0}
}
@media(max-width:520px){
  .book-compare-row{grid-template-columns:1fr}
  .book-compare-summary{
    grid-template-columns:74px minmax(0,1fr);
    gap:11px;
    padding:10px;
  }
  .book-compare-cover{
    width:74px;
    height:108px;
  }
  .book-compare-title{font-size:14px}
  .book-compare-offers{grid-auto-columns:138px}
  .book-compare-offer{padding:12px 8px}
}

/* Search page uses the same reusable row without forcing the old card layout */
.search-results-main .book-compare-row{width:100%}

.book-compare-row[data-book-url]{cursor:pointer}
.book-compare-row[data-book-url]:hover{border-color:#cfd6e2;background:#fcfdff}
.book-compare-row[data-book-url] .book-compare-offer{cursor:pointer}
.book-compare-link{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
}
.book-compare-summary,
.book-compare-offers{
  position:relative;
  z-index:0;
}
.book-compare-row:hover{
  border-color:#cfd6e2;
  background:#fcfdff;
  box-shadow:0 4px 16px rgba(15,23,42,.04);
}
.book-compare-row[data-book-url]{cursor:default}


@media(max-width:760px){
  .category-sidebar .category-clear{
    display:none!important;
  }
}


/* Compact content-driven rating filter */
.rating-filter-row{
  min-height:22px!important;
  margin:8px 0!important;
}
.rating-filter-row .filter-label-main{
  gap:8px!important;
}
.rating-filter-row .filter-label-main input[type="checkbox"]{
  width:17px!important;
  height:17px!important;
  flex-basis:17px!important;
}
.filter-stars{
  gap:1px!important;
}
.filter-stars i{
  font-size:14px!important;
  line-height:1!important;
}
.rating-filter-row .filter-count{
  font-size:13px!important;
}


/* Contact page */
.contact-page{padding:0 0 56px}
.contact-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.contact-kicker{display:inline-block;margin-bottom:8px;color:var(--primary);font-size:11px;font-weight:700;letter-spacing:.08em}
.contact-page-head h1{margin:0;font-size:34px;line-height:1.15;letter-spacing:-1px;color:var(--text)}
.contact-page-head p{max-width:620px;margin:8px 0 0;color:var(--muted);font-size:15px;line-height:1.65}

.contact-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}
.contact-side-card,.contact-card{border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}
.contact-side-card{padding:18px}
.contact-side-main{display:flex;align-items:center;gap:12px}
.contact-side-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:var(--ui-radius);background:var(--primary-soft);color:var(--primary)}
.contact-side-main small,.contact-side-main strong{display:block}
.contact-side-main small{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.contact-side-main strong{margin-top:3px;font-size:14px;word-break:break-word}
.contact-side-divider{height:1px;margin:16px 0;background:var(--line)}
.contact-side-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;padding:10px 0}
.contact-side-item>i{width:30px;height:30px;display:grid;place-items:center;border-radius:var(--ui-radius);background:#f7f8fb;color:#667085;font-size:12px}
.contact-side-item strong{display:block;font-size:14px}
.contact-side-item p{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.55}

.contact-card{padding:22px}
.contact-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}
.contact-card-head h2{margin:0;font-size:20px}
.contact-card-head p{margin:4px 0 0;color:var(--muted);font-size:14px}
.contact-card-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;border-radius:var(--ui-radius);background:#f7f8fb;color:#667085}

.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-form label{display:grid;gap:6px;color:#344054;font-size:14px;font-weight:600}
.contact-form .full{grid-column:1/-1}
.contact-input-wrap{position:relative}
.contact-input-wrap i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#98a2b3;font-size:12px;pointer-events:none}
.contact-form input,.contact-form textarea{width:100%;border:1px solid #d7dde6;border-radius:var(--ui-radius);background:#fff;color:var(--text);outline:none;font:inherit;font-size:14px}
.contact-form input{height:44px;padding:0 12px 0 36px}
.contact-form textarea{min-height:150px;padding:11px 12px;resize:vertical}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:#a4acb9}
.contact-form input:focus,.contact-form textarea:focus{border-color:#8fa0c9;box-shadow:0 0 0 3px rgba(64,86,214,.08)}
.contact-form-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:2px}
.contact-form-footer>span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}
.contact-form-footer>span i{color:#98a2b3}
.contact-submit{min-width:150px;background-image:none!important;background-color:var(--primary)!important;transition:background-color .18s ease!important;box-shadow:none!important;filter:none!important;transform:none!important}
.contact-submit:hover,.contact-submit:focus,.contact-submit:active{background-color:var(--primary-dark)!important;box-shadow:none!important;filter:none!important;transform:none!important}
.contact-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

@media(max-width:860px){
  .contact-layout{grid-template-columns:1fr}
  .contact-side-card{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
  .contact-side-main,.contact-side-divider{grid-column:1/-1}
  .contact-side-divider{margin:14px 0 6px}
}
@media(max-width:620px){
  .contact-page{padding-bottom:32px}
  .contact-page-head{margin-bottom:16px}
  .contact-page-head h1{font-size:27px}
  .contact-layout{gap:12px}
  .contact-side-card{display:block;padding:15px}
  .contact-card{padding:18px}
  .contact-form{grid-template-columns:1fr}
  .contact-form .full{grid-column:auto}
  .contact-form-footer{align-items:stretch;flex-direction:column}
  .contact-form-footer>span{line-height:1.45}
  .contact-submit{width:100%}
}

/* Frontend admin bar */
.site-adminbar{
  position:fixed;
  inset:0 0 auto 0;
  z-index:5000;
  height:36px;
  background:#1f2329;
  color:#e5e7eb;
  box-shadow:0 1px 0 rgba(255,255,255,.05);
}
.has-adminbar .site-header{top:36px}
.has-adminbar{padding-top:36px}
.site-adminbar-inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 10px;
}
.site-adminbar-left,
.site-adminbar-right{
  display:flex;
  align-items:center;
  min-width:0;
}
.site-adminbar a,
.site-adminbar button{
  height:36px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 10px;
  border:0;
  background:transparent;
  color:#d8dee9;
  font:500 12px/1 "Poppins",sans-serif;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}
.site-adminbar a:hover,
.site-adminbar button:hover{
  background:#2a3038;
  color:#fff;
}
.site-adminbar-brand{
  font-weight:700!important;
  color:#fff!important;
}
.site-adminbar i{font-size:12px}
.site-adminbar-maintenance{
  border-left:1px solid rgba(255,255,255,.08)!important;
}
.site-adminbar-maintenance.is-active{
  background:#7f1d1d!important;
  color:#fff!important;
}
.site-adminbar-user{
  border-left:1px solid rgba(255,255,255,.08);
}
@media(max-width:980px){
  .site-adminbar a span,
  .site-adminbar button span{display:none}
  .site-adminbar a,
  .site-adminbar button{
    width:38px;
    justify-content:center;
    padding:0;
  }
  .site-adminbar-brand span{display:inline!important}
  .site-adminbar-brand{width:auto!important;padding:0 10px!important}
}
@media(max-width:620px){
  .site-adminbar{
    height:42px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
  }
  .site-adminbar::-webkit-scrollbar{display:none}
  .has-adminbar{padding-top:42px}
  .has-adminbar .site-header{top:42px}
  .site-adminbar-inner{
    width:max-content;
    min-width:100%;
    height:42px;
    padding:0 4px;
  }
  .site-adminbar a,
  .site-adminbar button{height:42px}
}


/* Shared layout utilities */
.account-trust-grid{margin-top:24px}
.alert-create-form{max-width:520px;margin-bottom:30px}
.result-row-summary{grid-template-columns:1fr auto}
.content-narrow{max-width:900px}
.blog-detail-title{font-size:38px;line-height:1.2}
.blog-detail-cover{max-height:520px;border-radius:var(--ui-radius);margin:18px 0 4px}
.blog-detail-ad{margin:24px 0}
.blog-category-chips{margin-bottom:25px}
.grid-empty-full{grid-column:1/-1}
.notification-row{grid-template-columns:1fr}
.auth-forgot{text-align:right;margin-top:-6px}
.auth-forgot a,.auth-switch a,.text-primary{color:var(--primary)}
.auth-forgot a{font-size:13px}
.auth-switch{margin-top:18px}
.search-price-inputs input{width:100%;min-width:0}
@media(max-width:640px){
  .blog-detail-title{font-size:30px}
  .result-row-summary{grid-template-columns:1fr}
  .search-price-inputs{grid-template-columns:1fr}
}


/* Author profile actions / share / mobile details */
.author-profile-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  margin-top:16px;
}
.author-profile-actions .author-follow{
  width:100%;
  margin:0;
}
.author-share-wrap{
  position:relative;
}
.author-share-toggle{
  width:100%;
  height:100%;
}
.author-share-chevron{
  margin-left:auto;
  font-size:10px;
  transition:transform .16s ease;
}
.author-share-wrap.is-open .author-share-chevron{
  transform:rotate(180deg);
}
.author-share-menu{
  position:absolute;
  left:0;
  top:calc(100% + 7px);
  z-index:25;
  display:none;
  width:210px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
  box-shadow:var(--shadow);
}
.author-share-wrap.is-open .author-share-menu{
  display:grid;
}
.author-share-menu a,
.author-share-menu button{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 10px;
  border:0;
  border-radius:var(--ui-radius);
  background:transparent;
  color:var(--text-2);
  text-align:left;
  font-size:13px;
  cursor:pointer;
}
.author-share-menu a:hover,
.author-share-menu button:hover{
  background:var(--primary-softer);
  color:var(--primary);
}
.author-share-menu i{
  width:18px;
  text-align:center;
  font-size:15px;
}
.author-bio-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text);
  font-size:14px;
  font-weight:700;
  text-align:left;
}
.author-bio-toggle i{
  display:none;
  font-size:11px;
  color:var(--muted);
  transition:transform .16s ease;
}
.author-bio-content{
  display:block;
}
@media(max-width:820px){
  .author-profile-actions{
    margin-top:14px;
  }
  .author-mini-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-top:14px;
  }
  .author-mini-stats>div{
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    padding:10px 5px;
    border-bottom:0;
    border-right:1px solid #f1f3f6;
    text-align:center;
  }
  .author-mini-stats>div:last-child{
    border-right:0;
  }
  .author-mini-stats span{
    font-size:11px;
    line-height:1.3;
  }
  .author-mini-stats strong{
    order:-1;
    font-size:16px;
  }
  .author-bio{
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid var(--line);
  }
  .author-bio-toggle{
    padding:3px 0;
    cursor:pointer;
  }
  .author-bio-toggle i{
    display:block;
  }
  .author-bio-content{
    display:none;
    padding-top:8px;
  }
  .author-bio.is-open .author-bio-content{
    display:block;
  }
  .author-bio.is-open .author-bio-toggle i{
    transform:rotate(180deg);
  }
  .author-share-menu{
    left:auto;
    right:0;
  }
}
@media(max-width:420px){
  .author-profile-actions{
    grid-template-columns:1fr 1fr;
  }
  .author-share-menu{
    width:200px;
  }
}


/* Author action buttons: keep labels on one line */
.author-profile-actions{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:7px;
}
.author-profile-actions .btn{
  min-width:0;
  padding:9px 9px;
  font-size:13px;
  white-space:nowrap;
}
.author-profile-actions .author-follow,
.author-profile-actions .author-share-toggle{
  height:42px;
}
.author-profile-actions .author-share-chevron{
  margin-left:2px;
}

.author-follow.is-active{
  border-color:var(--primary);
  background:var(--primary-softer);
  color:var(--primary);
}
.author-follow:disabled{
  opacity:.65;
  cursor:wait;
}


/* Author actions stacked */
.author-profile-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.author-profile-actions .author-follow,
.author-profile-actions .author-share-wrap,
.author-profile-actions .author-share-toggle{
  width:100%;
}
.author-profile-actions .author-follow{
  justify-content:center;
}
.author-profile-actions .author-share-toggle{
  justify-content:center;
}
.author-profile-actions .author-share-menu{
  left:0;
  right:auto;
  width:100%;
  min-width:210px;
}
@media(max-width:820px){
  .author-profile-actions{
    grid-template-columns:none;
  }
  .author-profile-actions .author-share-menu{
    left:0;
    right:auto;
  }
}


/* Author follow/share responsive labels */
.author-follow-label-mobile,
.author-share-label-mobile{
  display:none;
}
.author-follow.is-active{
  border-color:var(--primary)!important;
  background:var(--primary)!important;
  color:#fff!important;
}
.author-follow.is-active i,
.author-follow.is-active span{
  color:#fff!important;
}
@media(max-width:820px){
  .author-profile-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
  }
  .author-follow-label-desktop,
  .author-share-label-desktop{
    display:none;
  }
  .author-follow-label-mobile,
  .author-share-label-mobile{
    display:inline;
  }
  .author-profile-actions .author-follow,
  .author-profile-actions .author-share-wrap,
  .author-profile-actions .author-share-toggle{
    width:100%;
  }
  .author-profile-actions .author-follow,
  .author-profile-actions .author-share-toggle{
    justify-content:center;
    min-width:0;
    white-space:nowrap;
  }
  .author-profile-actions .author-share-menu{
    left:auto;
    right:0;
    width:210px;
    min-width:210px;
  }
}


@media(max-width:820px){
  .author-mini-stats{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .author-mini-stats>div{
    padding:9px 3px;
  }
  .author-mini-stats span{
    font-size:10px;
    line-height:1.2;
  }
  .author-mini-stats strong{
    font-size:15px;
  }
}


/* Author book grid */
.author-book-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:18px 14px;
  align-items:start;
}
.author-book-card{
  min-width:0;
  color:var(--text);
  text-decoration:none;
}
.author-book-cover{
  position:relative;
  width:100%;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 2px 8px rgba(16,24,40,.05);
  transition:box-shadow .18s ease,border-color .18s ease;
}
.author-book-cover img{
  display:block;
}
.author-book-cover-placeholder{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#f4f6fa,#e9edf5);
  color:#a3adbd;
  font-size:28px;
}
.author-book-card:hover .author-book-cover{
  border-color:#cfd7e6;
  box-shadow:0 5px 14px rgba(16,24,40,.08);
}
.author-book-card h3{
  min-height:36px;
  margin:9px 0 2px;
  line-height:1.4;
  font-weight:700;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.author-book-card-price{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:6px;
  margin-top:0;
}
.author-book-card-price span{
  font-size:9px;
  font-weight:500;
  white-space:nowrap;
}
.author-book-card-price strong{
  color:var(--primary);
  font-weight:700;
  letter-spacing:-.01em;
  white-space:nowrap;
}
.author-books-empty{
  grid-column:1/-1;
}
.author-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:28px;
}
.author-pagination a,
.author-pagination span{
  min-width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
  color:var(--text-2);
  font-size:12px;
  font-weight:600;
}
.author-pagination span{
  border-color:transparent;
  background:transparent;
}
.author-pagination a:hover{
  border-color:var(--primary);
  color:var(--primary);
}
.author-pagination a.is-active{
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
}
@media(max-width:1180px){
  .author-book-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:980px){
  .author-book-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:820px){
  .author-book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}
}
@media(max-width:560px){
  .author-book-card h3{font-size:12px}
  .author-book-card-price strong{font-size:12px}
}


/* Author books redesign: roomier catalogue cards */
.author-book-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:26px 20px;
}
.author-book-card{
  display:block;
  padding:10px;
  border:1px solid transparent;
  border-radius:var(--ui-radius);
  background:#fff;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.author-book-card:hover{
  border-color:#e3e8f0;
  box-shadow:0 6px 18px rgba(16,24,40,.06);
}
.author-book-cover{
  aspect-ratio:2/3;
  border:0;
  border-radius:var(--ui-radius);
  background:#f7f8fa;
  box-shadow:none;
}
.author-book-card:hover .author-book-cover{
  border-color:transparent;
  box-shadow:none;
}
.author-book-cover img{
  object-fit:contain;
  background:#fff;
}
.author-book-card h3{
  min-height:40px;
  margin:11px 2px 7px;
  font-size:13px;
  line-height:1.45;
}
.author-book-card-price{
  margin:0 2px;
  padding-top:7px;
  border-top:1px solid #f0f2f5;
}
.author-book-card-price span{
  font-size:10px;
  color:#98a2b3;
}
.author-book-card-price strong{
  font-size:14px;
  color:var(--text);
}
@media(max-width:1200px){
  .author-book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 18px}
}
@media(max-width:900px){
  .author-book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px}
}
@media(max-width:560px){
  .author-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
  .author-book-card{padding:8px}
}


/* Author book card border refinement */
.author-book-card{
  border-color:#e6eaf0;
}
.author-book-card:hover{
  border-color:#d7dde7;
}


/* Author book cards: cover flush to card edges */
.author-book-card{
  padding:0;
  overflow:hidden;
}
.author-book-card h3{
  margin:11px 10px 7px;
}
.author-book-card-price{
  margin:0 10px 10px;
}
.author-book-cover{
  border-radius:var(--ui-radius) var(--ui-radius) 0 0;
}


/* Author book cover: no letterboxing, rounded image */
.author-book-cover{
  background:transparent;
}
.author-book-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}


/* Sidebar typography: 1px smaller */
.category-sidebar,
.category-sidebar .category-filter-section,
.category-sidebar .category-filter-section label,
.category-sidebar .category-filter-section a,
.category-sidebar .filter-label-main,
.category-sidebar .filter-count,
.category-sidebar .category-price-inputs input,
.category-sidebar .category-price-inputs label>span,
.category-sidebar .category-subcategory-list>a,
.category-sidebar .category-active-filters,
.category-sidebar .active-filter-chip{
  font-size:13px!important;
}
.category-sidebar .category-filter-section h3{
  font-size:13px!important;
}


/* Account area */
.account-layout{
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:28px;
  padding:32px 0 60px;
}
.account-nav{
  position:sticky;
  top:118px;
  height:max-content;
  display:grid;
  gap:3px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
}
.account-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:9px 11px;
  border-radius:var(--ui-radius);
  color:#475467;
  font-size:13px;
  font-weight:500;
}
.account-nav a i{width:18px;text-align:center;color:#98a2b3}
.account-nav a:hover{background:#f7f8fb;color:var(--text)}
.account-nav a.active{background:var(--primary);color:#fff}
.account-nav a.active i{color:#fff}
.account-nav .account-logout{margin-top:5px;border-top:1px solid var(--line);border-radius:0;padding-top:12px;}
.account-content{min-width:0}
.account-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.account-page-head h1{margin:0;font-size:29px;line-height:1.25;letter-spacing:-.7px;color:#101828}
.account-page-head p{margin:6px 0 0;color:#667085;font-size:14px;line-height:1.5}
.account-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}
.account-stat-grid a{
  padding:17px;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
}
.account-stat-grid strong{display:block;font-size:24px;line-height:1.1;color:var(--text)}
.account-stat-grid span{display:block;margin-top:5px;color:var(--muted);font-size:12px}
.account-card{padding:18px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}
.account-summary-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0}
.account-summary-card>div{padding:16px 18px;border-bottom:1px solid var(--line)}
.account-summary-card>div:nth-child(odd){border-right:1px solid var(--line)}
.account-summary-card>div:nth-last-child(-n+2){border-bottom:0}
.account-summary-card span,.security-info span{display:block;color:var(--muted);font-size:12px}
.account-summary-card strong,.security-info strong{display:block;margin-top:4px;font-size:14px}
.account-form{display:grid;gap:14px;max-width:680px}
.account-form label{display:grid;gap:6px;font-size:13px;font-weight:600}
.account-form input{
  width:100%;
  height:42px;
  padding:0 11px;
  border:1px solid #d7dce5;
  border-radius:var(--ui-radius);
  background:#fff;
  outline:0;
}
.account-form input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(64,86,214,.08)}
.account-form label small{color:var(--muted);font-size:11px;font-weight:400}
.account-form-actions{display:flex;justify-content:flex-end;padding-top:4px}
.security-info{max-width:680px;margin-bottom:12px}

.account-book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.account-book-card{overflow:hidden;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}
.account-book-cover{display:block;aspect-ratio:2/3;background:#f7f8fa;overflow:hidden}
.account-book-cover img{width:100%;height:100%;display:block;object-fit:cover}
.account-book-cover>span{width:100%;height:100%;display:grid;place-items:center;color:#98a2b3;font-size:28px}
.account-book-meta{padding:11px}
.account-book-meta h3{min-height:38px;margin:0;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.account-book-meta p{margin:4px 0 9px;color:var(--muted);font-size:11px}
.account-book-meta>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid #f0f2f5}
.account-book-meta strong{font-size:14px}
.account-icon-action{
  width:34px;height:34px;display:grid;place-items:center;padding:0;
  border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;color:#667085;cursor:pointer;
}
.account-icon-action.is-active{border-color:#f3c4ca;background:#fff5f6;color:#e11d48}
.account-empty{grid-column:1/-1}
.account-pagination{display:flex;justify-content:center;gap:6px;margin-top:22px}
.account-pagination a{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff;font-size:12px}
.account-pagination a.active{border-color:var(--primary);background:var(--primary);color:#fff}

.followed-author-grid{display:grid;gap:10px}
.followed-author-card{
  display:grid;
  grid-template-columns:62px minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  padding:12px;
}
.followed-author-photo{width:62px;height:62px;border-radius:50%;background:var(--primary-soft)}
.followed-author-photo img{width:100%;height:100%;object-fit:cover}
.followed-author-copy h3{font-size:14px}
.followed-author-copy p{margin:4px 0 0;font-size:12px}
.account-follow-btn{margin:0!important;white-space:nowrap}

.preference-list{display:grid;gap:0;max-width:760px;padding:0}
.preference-list>label{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;border-bottom:1px solid var(--line);cursor:pointer}
.preference-list>label:last-of-type{border-bottom:0}
.preference-list strong{display:block;font-size:13px}
.preference-list small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.preference-list input[type="checkbox"]{width:18px;height:18px;flex:none;accent-color:var(--primary)}
.preference-list .account-form-actions{padding:14px 17px;border-top:1px solid var(--line)}

.account-notification-list,.account-alert-list{display:grid;gap:8px}
.account-notification{
  display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:12px;align-items:start;
  padding:14px;
}
.account-notification.unread{background:#fafaff;border-color:#dcd9ff}
.notification-dot{width:7px;height:7px;margin-top:6px;border-radius:50%;background:#d0d5dd}
.account-notification.unread .notification-dot{background:var(--primary)}
.notification-copy p{margin:4px 0;color:#667085;font-size:12px;line-height:1.55}
.notification-copy small{color:#98a2b3;font-size:10px}
.notification-actions button{border-radius:var(--ui-radius);}

.account-inline-form{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px;align-items:end;margin-bottom:14px}
.account-inline-form label{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px;align-items:center;font-size:13px;font-weight:600}
.account-inline-form input{height:42px;padding:0 11px;border:1px solid var(--line);border-radius:var(--ui-radius)}
.account-alert-row{
  display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:14px;align-items:center;
  padding:13px 14px;
}
.account-alert-row.passive{opacity:.65}
.account-alert-row strong{font-size:13px}
.account-alert-row p{margin:4px 0 0;color:var(--muted);font-size:11px}
.account-alert-price{text-align:right;font-weight:700}
.account-row-actions{display:flex;align-items:center;gap:6px}
.account-row-actions form{margin:0}

@media(max-width:1000px){
  .account-stat-grid{grid-template-columns:repeat(2,1fr)}
  .account-book-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  .account-layout{grid-template-columns:1fr;gap:16px;padding-top:18px}
  .account-nav{position:static;display:flex;overflow-x:auto;padding:6px;gap:3px;scrollbar-width:none}
  .account-nav::-webkit-scrollbar{display:none}
  .account-nav a{flex:0 0 auto;white-space:nowrap}
  .account-nav .account-logout{margin-top:0;border-top:0;border-left:1px solid var(--line);border-radius:0}
  .account-book-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:600px){
  .account-page-head{align-items:stretch;flex-direction:column}
  .account-stat-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .account-stat-grid a{padding:13px}
  .account-stat-grid strong{font-size:20px}
  .account-summary-card{grid-template-columns:1fr}
  .account-summary-card>div,.account-summary-card>div:nth-child(odd){border-right:0;border-bottom:1px solid var(--line)}
  .account-summary-card>div:last-child{border-bottom:0}
  .account-book-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .followed-author-card{grid-template-columns:52px minmax(0,1fr);padding:10px}
  .followed-author-photo{width:52px;height:52px}
  .followed-author-card .account-follow-btn{grid-column:1/-1;width:100%}
  .account-inline-form,.account-inline-form label{grid-template-columns:1fr}
  .account-alert-row{grid-template-columns:minmax(0,1fr) auto}
  .account-row-actions{grid-column:1/-1;justify-content:flex-end}
}




/* Filter lists */
.filter-section-title{
  margin:0 0 9px;
  color:var(--text);
  font-size:13px;
}
.filter-scroll-list{
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
.filter-scroll-list::-webkit-scrollbar{width:6px}
.filter-scroll-list::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:var(--ui-radius);
}
@media(max-width:820px){
  .filter-scroll-list{
    -webkit-overflow-scrolling:touch;
  }
}

/* Points and rewards */
.points-page{display:grid;gap:14px}
.points-page .account-page-head{margin-bottom:0}
.points-page .account-page-head>.btn{min-height:40px;padding-inline:14px;border-color:#d7dfea}
.point-balance-card{display:flex;align-items:center;gap:15px;min-height:108px;padding:20px 22px;border:1px solid #e1e6ef;border-radius:7px;background:linear-gradient(120deg,#fff 0%,#f7f8ff 100%)}
.point-balance-icon{display:grid;flex:0 0 auto;place-items:center;width:46px;height:46px;border-radius:50%;background:#eef2ff;color:#5268d9;font-size:18px}
.point-balance-copy{display:grid;gap:2px;margin:0;text-align:left}
.point-balance-copy>span{color:#667085;font-size:13px}
.point-balance-copy strong{margin:0;color:#101828;font-size:30px;letter-spacing:-1px;line-height:1}
.point-balance-copy strong small{color:#667085;font-size:13px;font-weight:500;letter-spacing:0}
.point-balance-copy p{margin:3px 0 0;color:#667085;font-size:13px}
.point-balance-mini{display:flex;align-items:baseline;gap:5px;padding:8px 12px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fff}
.point-balance-mini strong{font-size:20px}.point-balance-mini span{color:var(--muted);font-size:11px}
.point-history{padding:0;overflow:hidden;border-color:#e1e6ef;border-radius:7px}.point-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 18px;border-bottom:1px solid #e8ecf2}.point-history-head h2,.contribution-history h2{margin:0;font-size:15px}.point-history-head p{margin:9px 0 0;color:#344054;font-size:14px;line-height:1.45}.point-history-head>span{flex:0 0 auto;color:#667085;font-size:12px}
.point-history-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 17px;border-bottom:1px solid #eef1f4}
.point-history-row:last-child,.contribution-history-row:last-child{border-bottom:0}
.point-history-row strong,.point-history-row span,.contribution-history-row strong,.contribution-history-row span{display:block}
.point-history-row strong,.contribution-history-row strong{font-size:14px}.point-history-row span,.contribution-history-row span{margin-top:2px;color:var(--muted);font-size:12px}.point-history-row-icon{display:grid!important;place-items:center;width:34px;height:34px;border-radius:50%;font-size:12px}.point-history-row>b{font-size:14px}
.point-plus{color:#087f5b;font-weight:700}.point-minus{color:#c92a2a;font-weight:700}.point-history-row-icon.point-plus{background:#e8f8f0}.point-history-row-icon.point-minus{background:#fff0f1}
.point-history .member-empty{min-height:168px;border-width:0;border-radius:0}.point-history .member-empty i{font-size:24px}
.point-contribution-cta{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:14px;margin-top:0;padding:16px 17px;border-color:#e1e6ef;border-radius:7px}.point-contribution-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff7d8;color:#d88a00;font-size:16px}.point-contribution-cta strong{font-size:14px}.point-contribution-cta p{margin:4px 0 0;color:#667085;font-size:12px;line-height:1.45}.point-contribution-cta .btn{white-space:nowrap}

.reward-market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.reward-market-cover span{width:100%;height:100%;display:grid;place-items:center;color:#98a2b3;font-size:30px}
.reward-market-copy{padding:12px}.reward-market-copy h3{margin:0;font-size:14px;line-height:1.4}.reward-market-copy p{margin:4px 0 10px;color:var(--muted);font-size:11px}
.reward-market-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;padding-top:9px;border-top:1px solid #eef1f4}
.reward-market-meta strong{font-size:14px}.reward-market-meta span{color:var(--muted);font-size:11px}.reward-market-copy form,.reward-market-copy .btn{width:100%}.reward-market-copy .btn[disabled]{opacity:.55;cursor:not-allowed}

.account-reward-orders{display:grid;gap:10px}.account-reward-order{padding:0;}
.account-order-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid var(--line);background:#fafbfc}
.account-order-head strong,.account-order-head span{display:block}.account-order-head>div>span{margin-top:2px;color:var(--muted);font-size:11px}
.account-order-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:14px 15px}
.account-order-body small,.account-order-body strong{display:block}.account-order-body small{color:#98a2b3;font-size:10px;text-transform:uppercase}.account-order-body strong{margin-top:4px;font-size:13px}
.order-status{display:inline-flex;align-items:center;width:max-content;padding:5px 8px;border-radius:var(--ui-radius);font-size:11px;font-weight:600;background:#f2f4f7;color:#475467}
.order-status.pending{background:#fff7ed;color:#c2410c}.order-status.preparing{background:#eff6ff;color:#1d4ed8}.order-status.shipped{background:#eef2ff;color:#4338ca}.order-status.delivered,.order-status.approved{background:#ecfdf3;color:#047857}.order-status.cancelled,.order-status.rejected{background:#fff1f2;color:#be123c}

.account-profile-form{display:grid;gap:14px}.account-form-section-head h2{margin:0;font-size:16px}.account-form-section-head p{margin:4px 0 4px;color:var(--muted);font-size:12px}
.account-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.account-form-grid .full{grid-column:1/-1}
.account-form textarea,.contribution-form select{width:100%;padding:11px 12px;border:1px solid #d7dce5;border-radius:var(--ui-radius);background:#fff;outline:0}
.contribution-book{padding:11px 12px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#f8fafc}.contribution-book span,.contribution-book strong{display:block}.contribution-book span{color:var(--muted);font-size:10px}.contribution-book strong{margin-top:3px;font-size:13px}
.contribution-history{padding:0;overflow:hidden;margin-top:14px}
.contribution-page{display:grid;gap:18px}
.contribution-page .account-page-head{margin-bottom:0}
.contribution-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(235px,.75fr);gap:16px;align-items:start}
.contribution-form{max-width:none;padding:20px;border-color:#e1e6ef;border-radius:9px;box-shadow:0 5px 18px rgba(15,23,42,.035)}
.contribution-form-head{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:12px;margin:-20px -20px 2px;padding:18px 20px;border-bottom:1px solid #e9edf3;background:#fbfcfe}
.contribution-form-head>span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#eef2ff;color:#4056d6;font-size:16px}
.contribution-form-head h2{margin:0;color:#101828;font-size:17px;line-height:1.3}
.contribution-form-head p{margin:4px 0 0;color:#667085;font-size:13px;line-height:1.45}
.contribution-form label{gap:7px;color:#344054;font-size:13px;font-weight:700}
.contribution-form input,.contribution-form select,.contribution-form textarea{border-color:#d9e0ea;border-radius:7px;font-size:14px;transition:border-color .15s ease,box-shadow .15s ease}
.contribution-form input,.contribution-form select{height:46px;padding:0 12px}
.contribution-form textarea{min-height:142px;padding:12px;resize:vertical}
.contribution-form input:hover,.contribution-form select:hover,.contribution-form textarea:hover{border-color:#aebbd0}
.contribution-form input:focus,.contribution-form select:focus,.contribution-form textarea:focus{border-color:#5268dd;box-shadow:0 0 0 4px rgba(64,86,214,.1)}
.contribution-form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:2px;padding-top:15px;border-top:1px solid #edf0f4}
.contribution-form-actions>span{display:inline-flex;align-items:flex-start;gap:6px;color:#667085;font-size:12px;line-height:1.45}
.contribution-form-actions>span i{margin-top:2px;color:#5268dd}
.contribution-form-actions .btn{flex:0 0 auto;min-width:158px;min-height:44px;padding:0 18px;border:1px solid #4056d6;border-radius:7px!important;background:#4056d6;color:#fff;box-shadow:0 4px 12px rgba(64,86,214,.18);white-space:nowrap;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.contribution-form-actions .btn:hover{border-color:#3448bd;background:#3448bd;box-shadow:0 7px 16px rgba(64,86,214,.23);transform:translateY(-1px)}
.contribution-form-actions .btn:active{box-shadow:0 2px 7px rgba(64,86,214,.16);transform:translateY(0)}
.contribution-form-actions .btn:focus-visible{outline:3px solid rgba(64,86,214,.2);outline-offset:2px}
.contribution-guide{padding:20px;border:1px solid #e1e6ef;border-radius:9px;background:linear-gradient(145deg,#fff,#f8faff);box-shadow:0 5px 18px rgba(15,23,42,.03)}
.contribution-guide-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:15px;border-radius:50%;background:#fff5d8;color:#d78700;font-size:18px}
.contribution-guide h2{margin:0;color:#101828;font-size:17px}
.contribution-guide ul{display:grid;gap:10px;margin:16px 0 0;padding:0;list-style:none}
.contribution-guide li{position:relative;padding-left:19px;color:#52617a;font-size:13px;line-height:1.5}
.contribution-guide li::before{content:'✓';position:absolute;left:0;top:0;color:#16835e;font-weight:800}
.contribution-history{margin-top:0;border-color:#e1e6ef;border-radius:9px;box-shadow:0 5px 18px rgba(15,23,42,.03)}
.contribution-history-head{padding:17px 18px;border-bottom:1px solid #e8ecf2;background:#fff}
.contribution-history-head h2{margin:0;color:#101828;font-size:15px}
.contribution-history-head p{margin:6px 0 0;color:#667085;font-size:13px}
.contribution-history .member-empty{min-height:168px;border-width:0;border-radius:0}
@media(max-width:900px){.contribution-layout{grid-template-columns:1fr}.contribution-guide{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:12px}.contribution-guide-icon{grid-row:1/3;margin:0}.contribution-guide ul{grid-column:2;margin-top:12px}}
@media(max-width:600px){.contribution-page{gap:14px}.contribution-form{padding:15px}.contribution-form-head{grid-template-columns:40px minmax(0,1fr);gap:10px;margin:-15px -15px 1px;padding:15px}.contribution-form-head>span{width:40px;height:40px}.contribution-form-head h2{font-size:16px}.contribution-form-head p{font-size:12px}.contribution-form-actions{align-items:stretch;flex-direction:column}.contribution-form-actions .btn{width:100%}.contribution-guide{display:block;padding:16px}.contribution-guide-icon{width:40px;height:40px;margin-bottom:12px}.contribution-guide ul{margin-top:13px}.contribution-history-head{padding:15px}.contribution-history .member-empty{min-height:155px;padding:22px 14px}}
@media(max-width:900px){.reward-market-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.points-page{gap:12px}.points-page .account-page-head{align-items:stretch!important}.points-page .account-page-head>.btn{width:100%}.point-balance-card{min-height:100px;padding:17px}.point-balance-icon{width:40px;height:40px;font-size:16px}.point-balance-copy strong{font-size:27px}.point-balance-copy p{margin-top:2px;font-size:12px}.point-history-head{padding:15px}.point-history-head p{font-size:13px}.point-history-row{padding:12px 15px}.point-history .member-empty{min-height:155px;padding:22px 14px}.point-contribution-cta{grid-template-columns:34px minmax(0,1fr);padding:14px}.point-contribution-icon{width:34px;height:34px}.point-contribution-cta .btn{grid-column:1/-1;width:100%}.reward-market-grid{grid-template-columns:repeat(2,1fr);gap:10px}.account-order-body{grid-template-columns:1fr}.account-form-grid{grid-template-columns:1fr}.account-form-grid .full{grid-column:auto}}

.book-contribution-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.book-contribution-links a{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}
.book-contribution-links a:hover{color:var(--primary)}
.compare-contribution-link{margin:0;padding:10px 20px 14px}


/* === Account responsive drawer + compact reward market === */
.account-menu-toggle,
.account-nav-backdrop,
.account-nav-mobile-head{display:none}

.reward-market-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:start;
}
.reward-market-card{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
}
.reward-market-cover{display:block;aspect-ratio:2/3;overflow:hidden;background:#f5f6f8}
.reward-market-cover img{width:100%;height:100%;display:block;object-fit:cover}
.reward-market-copy{padding:10px!important}
.reward-market-copy h3{
  min-height:36px;
  margin:0!important;
  font-size:13px!important;
  line-height:1.4!important;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.reward-market-copy p{min-height:15px;margin:3px 0 8px!important;font-size:10px!important}
.reward-market-meta{margin-bottom:8px!important;padding-top:8px!important}
.reward-market-meta strong{font-size:13px!important}
.reward-market-meta span{font-size:10px!important}
.reward-market-copy .btn{min-height:36px;padding:7px 9px;font-size:12px}

@media(max-width:1250px){
  .reward-market-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:1050px){
  .reward-market-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media(max-width:820px){
  body.account-menu-open{overflow:hidden}

  .account-layout{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
    padding:16px 0 34px!important;
  }

  .account-menu-toggle{
    grid-column:1/-1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:max-content;
    min-height:40px;
    padding:8px 12px;
    border:1px solid var(--line);
    border-radius:var(--ui-radius);
    background:#fff;
    color:#344054;
    font:inherit;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
  }

  .account-nav-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:159;
    background:rgba(15,23,42,.42);
    opacity:0;
    visibility:hidden;
    transition:opacity .2s ease,visibility .2s ease;
  }

  .account-nav{
    display:block!important;
    position:fixed!important;
    top:0!important;
    bottom:0!important;
    left:0!important;
    z-index:160!important;
    width:min(320px,86vw)!important;
    height:100vh!important;
    margin:0!important;
    padding:0 10px 14px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    border:0!important;
    border-right:1px solid var(--line)!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:18px 0 40px rgba(15,23,42,.18)!important;
    transform:translateX(-104%);
    transition:transform .22s ease;
    scrollbar-width:thin;
  }

  body.account-menu-open .account-nav{transform:translateX(0)}
  body.account-menu-open .account-nav-backdrop{opacity:1;visibility:visible}

  .account-nav-mobile-head{
    position:sticky;
    top:0;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:58px;
    margin:0 -10px 8px;
    padding:0 14px;
    border-bottom:1px solid var(--line);
    background:#fff;
  }
  .account-nav-mobile-head strong{font-size:16px}
  .account-nav-mobile-head button{
    width:36px;height:36px;
    display:grid;place-items:center;
    border:1px solid var(--line);
    border-radius:var(--ui-radius);
    background:#fff;color:#475467;
    cursor:pointer;
  }

  .account-nav a{
    display:flex!important;
    width:100%!important;
    min-height:42px!important;
    margin:0!important;
    padding:9px 10px!important;
    border-radius:var(--ui-radius)!important;
    white-space:normal!important;
  }
  .account-nav .account-logout{
    margin-top:8px!important;
    padding-top:10px!important;
    border-top:1px solid var(--line)!important;
    border-left:0!important;
  }

  .account-content{width:100%;min-width:0}
  .account-page-head{margin-bottom:14px}
  .account-page-head h1{font-size:25px}
  .account-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .reward-market-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media(max-width:620px){
  .account-layout{padding-top:12px!important}
  .account-menu-toggle{width:100%;justify-content:flex-start}
  .account-page-head{align-items:stretch!important;flex-direction:column!important}
  .account-page-head h1{font-size:23px}
  .account-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .account-card{padding:14px}
  .reward-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .point-balance-mini{align-self:flex-start}
  .account-notification{grid-template-columns:7px minmax(0,1fr)!important}
  .notification-actions{grid-column:2;justify-content:flex-end}
  .account-alert-row{grid-template-columns:1fr!important}
  .account-alert-price{text-align:left!important}
  .account-row-actions{grid-column:auto!important;justify-content:flex-start!important}
  .preference-list>label{align-items:flex-start}
}

@media(max-width:390px){
  .reward-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .reward-market-copy{padding:8px!important}
  .reward-market-copy h3{font-size:12px!important}
}


/* Modern login */
.auth-shell-modern{
  min-height:calc(100vh - 170px);
  display:grid;
  place-items:center;
  padding:56px 24px;
  background:
    radial-gradient(circle at 18% 18%,rgba(64,86,214,.07),transparent 26%),
    linear-gradient(180deg,#f7f9fc 0,#f4f6fa 100%);
}
.auth-panel{
  width:min(920px,100%);
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
  box-shadow:0 22px 60px rgba(15,23,42,.09);
}
.auth-panel-side{
  min-height:520px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:34px;
  padding:38px;
  background:
    radial-gradient(circle at 85% 10%,rgba(255,255,255,.18),transparent 28%),
    linear-gradient(145deg,var(--primary-dark),var(--primary));
  color:#fff;
}
.auth-panel-side-icon{
  width:52px;height:52px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:var(--ui-radius);
  background:rgba(255,255,255,.12);
  font-size:20px;
}
.auth-panel-kicker{
  display:block;
  margin-bottom:10px;
  color:rgba(255,255,255,.72);
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.auth-panel-side h2{
  max-width:340px;
  margin:0;
  font-size:32px;
  line-height:1.18;
  letter-spacing:-1px;
}
.auth-panel-side p{
  max-width:360px;
  margin:12px 0 0;
  color:rgba(255,255,255,.78);
  font-size:13px;
  line-height:1.7;
}
.auth-panel-benefits{display:grid;gap:10px}
.auth-panel-benefits>div{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,.9);
  font-size:12px;
}
.auth-panel-benefits i{
  width:30px;height:30px;
  display:grid;place-items:center;
  border-radius:var(--ui-radius);
  background:rgba(255,255,255,.12);
  font-size:12px;
}
.auth-panel-form{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:42px 48px;
}
.auth-panel-head{margin-bottom:24px}
.auth-panel-head h1{
  margin:0;
  font-size:30px;
  line-height:1.2;
  letter-spacing:-.8px;
}
.auth-panel-head p{
  margin:7px 0 0;
  color:var(--muted);
  font-size:13px;
}
.auth-panel-mobile-icon{display:none}
.auth-modern-form{display:grid;gap:17px}
.auth-modern-form label{
  display:grid;
  gap:7px;
  color:var(--text);
  font-size:13px;
  font-weight:600;
}
.auth-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.auth-label-row a{
  color:var(--primary);
  font-size:11px;
  font-weight:500;
}
.auth-label-row a:hover{text-decoration:underline}
.auth-input-wrap{position:relative}
.auth-input-wrap>i{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  color:#98a2b3;
  font-size:13px;
  pointer-events:none;
}
.auth-input-wrap input{
  width:100%;
  height:46px;
  padding:0 44px 0 38px;
  border:1px solid var(--line-strong);
  border-radius:var(--ui-radius);
  background:#fff;
  color:var(--text);
  outline:none;
  font-size:13px;
  transition:.15s ease;
}
.auth-input-wrap input::placeholder{color:#a4acb9}
.auth-input-wrap input:focus{
  border-color:#8fa0c9;
  box-shadow:0 0 0 3px rgba(64,86,214,.08);
}
.auth-password-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:34px;height:34px;
  display:grid;place-items:center;
  border:0;
  border-radius:var(--ui-radius);
  background:transparent;
  color:#98a2b3;
  cursor:pointer;
}
.auth-password-toggle:hover{background:#f5f7fa;color:#475467}
.auth-submit{
  width:100%;
  min-height:46px;
  margin-top:2px;
  font-size:13px;
}
.auth-register-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.auth-register-cta strong,
.auth-register-cta span{display:block}
.auth-register-cta strong{font-size:12px}
.auth-register-cta span{
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}
.auth-register-cta .btn{
  flex:0 0 auto;
  min-width:92px;
}

@media(max-width:760px){
  .auth-shell-modern{
    min-height:calc(100vh - 70px);
    padding:24px 16px 36px;
    place-items:start center;
  }
  .auth-panel{grid-template-columns:1fr}
  .auth-panel-side{display:none}
  .auth-panel-form{padding:28px 22px}
  .auth-panel-mobile-icon{
    width:42px;height:42px;
    display:grid;place-items:center;
    margin-bottom:16px;
    border-radius:var(--ui-radius);
    background:var(--primary-soft);
    color:var(--primary);
  }
  .auth-panel-head h1{font-size:26px}
}

@media(max-width:480px){
  .auth-shell-modern{padding:18px 12px 28px}
  .auth-panel-form{padding:24px 18px}
  .auth-register-cta{
    align-items:stretch;
    flex-direction:column;
  }
  .auth-register-cta .btn{width:100%}
}


/* Login mobile height fix */
@media(max-width:760px){
  .auth-shell-modern{
    min-height:0!important;
    height:auto!important;
    padding-bottom:24px!important;
  }
}
@media(max-width:480px){
  .auth-shell-modern{
    padding-bottom:20px!important;
  }
}



/* Global links */
a,
a:hover,
a:focus,
a:active{
  text-decoration:none!important;
}

/* Login button interactions */
.auth-submit{
  background-image:none!important;
  background-color:var(--primary)!important;
  box-shadow:none!important;
  filter:none!important;
  text-shadow:none!important;
  transform:none!important;
  transition:background-color .18s ease!important;
}
.auth-submit:hover,
.auth-submit:focus,
.auth-submit:active{
  background-image:none!important;
  background-color:var(--primary-dark)!important;
  box-shadow:none!important;
  filter:none!important;
  text-shadow:none!important;
  transform:none!important;
  outline:none!important;
}
.auth-register-cta .btn-light{
  box-shadow:none!important;
  transform:none!important;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease!important;
}
.auth-register-cta .btn-light:hover,
.auth-register-cta .btn-light:focus,
.auth-register-cta .btn-light:active{
  background:#f7f9fc!important;
  border-color:#b9c3d4!important;
  color:var(--primary)!important;
  box-shadow:none!important;
  transform:none!important;
}



/* Forgot password */
.auth-single-page{
  min-height:0!important;
  padding-top:56px;
  padding-bottom:56px;
}
.auth-panel-single{
  width:min(520px,100%);
  display:block;
}
.auth-panel-single .auth-panel-form{
  padding:38px 40px;
}
.auth-panel-single-icon{
  display:grid!important;
  width:44px;
  height:44px;
  place-items:center;
  margin-bottom:16px;
  border-radius:var(--ui-radius);
  background:var(--primary-soft);
  color:var(--primary);
}
.auth-reset-head p{
  max-width:420px;
  line-height:1.6;
}
.auth-reset-footer{
  margin-top:22px;
}
.auth-success-box{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:14px;
  margin-bottom:16px;
  border:1px solid #b7ead6;
  border-radius:var(--ui-radius);
  background:#f0fdf7;
}
.auth-success-box>span{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:var(--ui-radius);
  background:#dff7ec;
  color:#087f5b;
  font-size:16px;
}
.auth-success-box strong{
  display:block;
  color:#166534;
  font-size:13px;
}
.auth-success-box p{
  margin:4px 0 0;
  color:#3f6f5c;
  font-size:12px;
  line-height:1.55;
}
.auth-back-login{
  width:100%;
}

@media(max-width:600px){
  .auth-single-page{
    padding:18px 12px 28px!important;
  }
  .auth-panel-single .auth-panel-form{
    padding:24px 18px;
  }
}


/* Register page */
.auth-register-page{
  min-height:0!important;
  padding-top:56px;
  padding-bottom:56px;
}
.auth-register-side h2{max-width:320px}
.auth-field-help{
  margin-top:-2px;
  color:var(--muted);
  font-size:10px;
  font-weight:400;
}
@media(max-width:760px){
  .auth-register-page{
    padding:18px 12px 28px!important;
  }
}


/* Abonelikten çıkış */
.unsubscribe-page{
  background:#f6f8fc;
}
.unsubscribe-shell{
  position:relative;
  overflow:hidden;
  padding:64px 0 82px;
  background:
    radial-gradient(circle at 12% 12%,rgba(64,86,214,.07),transparent 28%),
    radial-gradient(circle at 88% 18%,rgba(47,111,177,.06),transparent 24%),
    linear-gradient(180deg,#f8faff 0,#f5f7fb 100%);
}
.unsubscribe-container{
  width:min(860px,calc(100% - 32px));
}
.unsubscribe-card{
  position:relative;
  overflow:hidden;
  padding:48px 52px;
  border:1px solid #e3e8f0;
  border-radius:22px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.08);
}
.unsubscribe-card-accent{
  position:absolute;
  inset:0 0 auto;
  height:5px;
}
.unsubscribe-card.is-success .unsubscribe-card-accent{
  background:linear-gradient(90deg,#16a36a,#31c48d);
}
.unsubscribe-card.is-error .unsubscribe-card-accent{
  background:linear-gradient(90deg,#f59e0b,#e5484d);
}
.unsubscribe-icon-wrap{
  display:flex;
  margin-bottom:18px;
}
.unsubscribe-icon{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  border-radius:18px;
  font-size:25px;
}
.unsubscribe-icon-wrap.is-success .unsubscribe-icon{
  color:#0f8f5f;
  background:#eafaf3;
  border:1px solid #ccefe0;
}
.unsubscribe-icon-wrap.is-error .unsubscribe-icon{
  color:#c34a24;
  background:#fff4ed;
  border:1px solid #f5d8ca;
}
.unsubscribe-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:6px 10px;
  margin-bottom:15px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
}
.unsubscribe-status.is-success{
  color:#087a50;
  background:#ecfdf5;
  border:1px solid #d1fae5;
}
.unsubscribe-status.is-error{
  color:#b54708;
  background:#fff8eb;
  border:1px solid #fde7bd;
}
.unsubscribe-card h1{
  max-width:680px;
  margin:0;
  color:#101828;
  font-size:38px;
  line-height:1.15;
  letter-spacing:-1.35px;
}
.unsubscribe-lead{
  max-width:710px;
  margin:16px 0 0;
  color:#475467;
  font-size:16px;
  line-height:1.8;
}
.unsubscribe-lead strong{
  color:#101828;
  font-weight:700;
  word-break:break-word;
}
.unsubscribe-info-box{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:14px;
  align-items:start;
  margin-top:28px;
  padding:18px 20px;
  border:1px solid #e5eaf1;
  border-radius:14px;
  background:#f8fafc;
}
.unsubscribe-info-box.is-error{
  border-color:#f1e3d9;
  background:#fffaf6;
}
.unsubscribe-info-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#fff;
  color:var(--primary);
  border:1px solid #e6eaf0;
  font-size:16px;
}
.unsubscribe-info-box.is-error .unsubscribe-info-icon{
  color:#c34a24;
  border-color:#f1dfd3;
}
.unsubscribe-info-box strong{
  display:block;
  margin-bottom:3px;
  color:#1d2939;
  font-size:14px;
}
.unsubscribe-info-box p{
  margin:0;
  color:#667085;
  font-size:13px;
  line-height:1.7;
}
.unsubscribe-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
}
.unsubscribe-primary-btn,
.unsubscribe-secondary-btn{
  min-height:46px;
  padding:11px 16px;
  border-radius:10px;
}
.unsubscribe-primary-btn{
  box-shadow:0 8px 20px rgba(64,86,214,.17);
}
.unsubscribe-secondary-btn{
  background:#fff;
}
.unsubscribe-footnote{
  margin:18px 0 0;
  color:#98a2b3;
  font-size:12px;
  line-height:1.65;
}
.unsubscribe-footnote strong{
  color:#667085;
  font-weight:600;
}

@media(max-width:760px){
  .unsubscribe-shell{
    padding:30px 0 48px;
  }
  .unsubscribe-container{
    width:min(100% - 24px,860px);
  }
  .unsubscribe-card{
    padding:32px 22px;
    border-radius:18px;
  }
  .unsubscribe-icon{
    width:56px;
    height:56px;
    border-radius:16px;
    font-size:22px;
  }
  .unsubscribe-card h1{
    font-size:30px;
    letter-spacing:-.9px;
  }
  .unsubscribe-lead{
    font-size:15px;
    line-height:1.72;
  }
  .unsubscribe-info-box{
    grid-template-columns:1fr;
    padding:16px;
  }
  .unsubscribe-actions{
    flex-direction:column;
  }
  .unsubscribe-actions .btn{
    width:100%;
  }
}


/* Blog index */
.blog-index-page{
  background:#fff;
}
.blog-index{
  background:linear-gradient(180deg,#f7f9fc 0,#fff 34%);
}
.blog-hero{
  padding:58px 0 34px;
  border-bottom:1px solid #eef1f5;
}
.blog-hero-copy{
  max-width:820px;
}
.blog-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  padding:7px 11px;
  border:1px solid #dfe5ee;
  border-radius:999px;
  background:#fff;
  color:var(--primary);
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
}
.blog-hero h1{
  max-width:850px;
  margin:0;
  color:#101828;
  font-size:44px;
  line-height:1.12;
  letter-spacing:-1.6px;
}
.blog-hero p{
  max-width:760px;
  margin:14px 0 0;
  color:#667085;
  font-size:16px;
  line-height:1.8;
}
.blog-category-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:28px;
}
.blog-category-chip{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 13px;
  border:1px solid #dfe4ec;
  border-radius:10px;
  background:#fff;
  color:#475467;
  font-size:13px;
  font-weight:600;
  transition:.16s ease;
}
.blog-category-chip:hover{
  border-color:#bfc8d8;
  color:var(--primary);
  transform:translateY(-1px);
}
.blog-category-chip.active{
  border-color:#cbd4ff;
  background:#eef1ff;
  color:var(--primary);
}

.blog-content-section{
  padding:34px 0 72px;
}
.blog-featured-card{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);
  min-height:390px;
  overflow:hidden;
  border:1px solid #e4e8ef;
  border-radius:20px;
  background:#fff;
  box-shadow:0 20px 55px rgba(15,23,42,.06);
}
.blog-featured-media{
  position:relative;
  min-height:390px;
  overflow:hidden;
  background:#eef2ff;
}
.blog-featured-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.blog-featured-media:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:28%;
  background:linear-gradient(180deg,transparent,rgba(15,23,42,.12));
  pointer-events:none;
}
.blog-featured-media.no-image:after{
  display:none;
}
.blog-placeholder-art{
  position:relative;
  height:100%;
  min-height:390px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:34px;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,255,255,.17),transparent 26%),
    linear-gradient(145deg,#2b2a68 0,#4056d6 58%,#2f6fb1 100%);
  color:#fff;
}
.blog-placeholder-art i{
  font-size:34px;
  opacity:.9;
}
.blog-placeholder-art span{
  max-width:72%;
  font-size:18px;
  font-weight:700;
  line-height:1.35;
}
.blog-placeholder-art.small{
  min-height:210px;
  padding:22px;
}
.blog-placeholder-art.small i{
  font-size:25px;
}
.blog-placeholder-art.small span{
  font-size:15px;
}

.blog-featured-body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:38px 40px;
}
.blog-post-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
  margin-bottom:15px;
  color:#98a2b3;
  font-size:12px;
}
.blog-post-meta>span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.blog-post-category{
  padding:6px 9px;
  border-radius:999px;
  background:#eef1ff;
  color:var(--primary)!important;
  font-weight:700;
}
.blog-featured-body h2{
  margin:0;
  color:#101828;
  font-size:31px;
  line-height:1.22;
  letter-spacing:-1px;
}
.blog-featured-body h2 a:hover{
  color:var(--primary);
}
.blog-featured-body>p{
  margin:16px 0 0;
  color:#667085;
  font-size:15px;
  line-height:1.8;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
}
.blog-featured-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid #edf0f4;
}
.blog-author{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#667085;
  font-size:13px;
}
.blog-read-link,
.blog-card-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--primary);
  font-size:13px;
  font-weight:700;
}
.blog-read-link i,
.blog-card-link i{
  transition:transform .15s ease;
}
.blog-read-link:hover i,
.blog-card-link:hover i{
  transform:translateX(3px);
}

.blog-list-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin:42px 0 18px;
}
.blog-list-head span{
  display:block;
  margin-bottom:4px;
  color:var(--primary);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.blog-list-head h2{
  margin:0;
  color:#101828;
  font-size:27px;
  line-height:1.2;
  letter-spacing:-.8px;
}
.blog-list-head>strong{
  flex:0 0 auto;
  padding:7px 10px;
  border:1px solid #e1e6ee;
  border-radius:8px;
  background:#f8fafc;
  color:#667085;
  font-size:12px;
}

.blog-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.blog-article-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #e4e8ef;
  border-radius:16px;
  background:#fff;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.blog-article-card:hover{
  transform:translateY(-3px);
  border-color:#d4dbe7;
  box-shadow:0 16px 36px rgba(15,23,42,.07);
}
.blog-card-media{
  position:relative;
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#eef2ff;
}
.blog-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}
.blog-article-card:hover .blog-card-media img{
  transform:scale(1.025);
}
.blog-card-category{
  position:absolute;
  left:14px;
  bottom:14px;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.7);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#344054;
  font-size:11px;
  font-weight:700;
  backdrop-filter:blur(8px);
}
.blog-card-body{
  padding:18px 18px 20px;
}
.blog-card-date{
  margin-bottom:8px;
  color:#98a2b3;
  font-size:11px;
  font-weight:600;
}
.blog-card-body h3{
  margin:0;
  color:#101828;
  font-size:18px;
  line-height:1.4;
  letter-spacing:-.35px;
}
.blog-card-body h3 a:hover{
  color:var(--primary);
}
.blog-card-body p{
  margin:10px 0 0;
  color:#667085;
  font-size:13px;
  line-height:1.7;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.blog-card-link{
  margin-top:16px;
}
.blog-empty{
  max-width:620px;
  margin:30px auto 0;
  padding:48px 28px;
  border:1px dashed #d9dfe8;
  border-radius:18px;
  background:#fff;
  text-align:center;
}
.blog-empty>span{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  margin:0 auto 15px;
  border-radius:16px;
  background:#eef1ff;
  color:var(--primary);
  font-size:22px;
}
.blog-empty h2{
  margin:0;
  font-size:23px;
}
.blog-empty p{
  margin:8px 0 18px;
  color:#667085;
  font-size:14px;
}

@media(max-width:1050px){
  .blog-featured-card{
    grid-template-columns:1fr;
  }
  .blog-featured-media{
    min-height:320px;
    aspect-ratio:16/8;
  }
  .blog-placeholder-art{
    min-height:320px;
  }
  .blog-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:720px){
  .blog-hero{
    padding:36px 0 24px;
  }
  .blog-hero h1{
    font-size:32px;
    letter-spacing:-1px;
  }
  .blog-hero p{
    font-size:15px;
    line-height:1.7;
  }
  .blog-category-nav{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:3px;
    scrollbar-width:none;
  }
  .blog-category-nav::-webkit-scrollbar{
    display:none;
  }
  .blog-category-chip{
    flex:0 0 auto;
  }
  .blog-content-section{
    padding:24px 0 48px;
  }
  .blog-featured-card{
    border-radius:16px;
  }
  .blog-featured-media{
    min-height:230px;
    aspect-ratio:16/10;
  }
  .blog-placeholder-art{
    min-height:230px;
    padding:24px;
  }
  .blog-featured-body{
    padding:24px 22px;
  }
  .blog-featured-body h2{
    font-size:24px;
  }
  .blog-featured-footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .blog-list-head{
    margin-top:32px;
  }
  .blog-list-head h2{
    font-size:23px;
  }
  .blog-list-head>strong{
    display:none;
  }
  .blog-card-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
}


/* Blog refinements */
.blog-hero-copy{
  max-width:none!important;
}
.blog-hero h1{
  max-width:none!important;
  font-size:34px!important;
  line-height:1.18!important;
  letter-spacing:-1px!important;
}
.blog-hero p{
  max-width:none!important;
  margin-top:8px!important;
  font-size:14px!important;
  line-height:1.7!important;
}
.blog-hero{
  padding-top:30px!important;
}
.blog-content-narrow{
  width:min(1120px,calc(100% - 48px));
}
.blog-list-head.compact{
  margin:0 0 16px;
}
.blog-list-head.compact span{
  margin-bottom:3px;
}
.blog-card-grid.balanced{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.blog-article-card.whole-link{
  display:block;
  color:inherit;
}
.blog-article-card.whole-link .blog-card-body h3{
  transition:color .15s ease;
}
.blog-article-card.whole-link:hover .blog-card-body h3{
  color:var(--primary);
}
.blog-card-body{
  min-height:170px;
}
.blog-card-body h3{
  font-size:17px;
}
.blog-card-body p{
  -webkit-line-clamp:2;
}
.mobile-blog-categories{
  display:none;
}

@media(max-width:1050px){
  .blog-card-grid.balanced{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .blog-content-narrow{
    width:min(940px,calc(100% - 36px));
  }
}
@media(max-width:720px){
  .desktop-blog-categories{
    display:none!important;
  }
  .mobile-blog-categories{
    display:grid;
    gap:7px;
    margin-top:20px;
  }
  .mobile-blog-categories label{
    color:#667085;
    font-size:12px;
    font-weight:700;
  }
  .mobile-blog-categories select{
    width:100%;
    height:44px;
    padding:0 12px;
    border:1px solid var(--line-strong);
    border-radius:10px;
    background:#fff;
    color:#344054;
    outline:none;
  }
  .mobile-blog-categories select:focus{
    border-color:#8fa0c9;
    box-shadow:0 0 0 3px rgba(64,86,214,.07);
  }
  .blog-content-narrow{
    width:min(100% - 24px,1120px);
  }
  .blog-card-grid.balanced{
    grid-template-columns:1fr;
  }
  .blog-hero h1{
    font-size:28px!important;
  }
  .blog-card-body{
    min-height:0;
  }
}


/* Blog: final layout refinements */
.blog-content-section>.container{
  width:min(var(--container),calc(100% - 48px))!important;
  max-width:none!important;
}
.blog-content-narrow{
  width:min(var(--container),calc(100% - 48px))!important;
  max-width:none!important;
}
.blog-card-grid.balanced{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%;
}
.blog-content-section{
  padding-top:34px!important;
}
.blog-hero-copy h1{
  white-space:nowrap;
}
.mobile-blog-category-trigger,
.blog-category-backdrop,
.blog-category-drawer{
  display:none;
}

@media(max-width:820px){
  .blog-hero-copy h1{
    white-space:normal;
  }

  .desktop-blog-categories,
  .mobile-blog-categories{
    display:none!important;
  }

  .mobile-blog-category-trigger{
    width:100%;
    min-height:46px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-top:18px;
    padding:0 14px;
    border:1px solid var(--line-strong);
    border-radius:10px;
    background:#fff;
    color:#344054;
    font:inherit;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
  }
  .mobile-blog-category-trigger>span{
    min-width:0;
    display:flex;
    align-items:center;
    gap:9px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .mobile-blog-category-trigger>span i{
    color:var(--primary);
  }
  .mobile-blog-category-trigger>i{
    flex:0 0 auto;
    color:#98a2b3;
    font-size:12px;
  }

  .blog-category-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:140;
    background:rgba(15,23,42,.42);
    opacity:0;
    visibility:hidden;
    transition:opacity .2s ease,visibility .2s ease;
  }
  .blog-category-backdrop.open{
    opacity:1;
    visibility:visible;
  }

  .blog-category-drawer{
    display:flex;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    z-index:150;
    width:min(330px,88vw);
    flex-direction:column;
    background:#fff;
    border-right:1px solid var(--line);
    box-shadow:18px 0 42px rgba(15,23,42,.16);
    transform:translateX(-104%);
    transition:transform .22s ease;
  }
  .blog-category-drawer.open{
    transform:translateX(0);
  }
  body.blog-category-open{
    overflow:hidden;
  }

  .blog-category-drawer-head{
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:0 16px 0 18px;
    border-bottom:1px solid var(--line);
  }
  .blog-category-drawer-head small{
    display:block;
    margin-bottom:2px;
    color:#98a2b3;
    font-size:11px;
    font-weight:600;
  }
  .blog-category-drawer-head strong{
    display:block;
    color:#101828;
    font-size:17px;
  }
  .blog-category-drawer-head button{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border:1px solid var(--line);
    border-radius:9px;
    background:#fff;
    color:#475467;
    cursor:pointer;
  }

  .blog-category-drawer-list{
    display:grid;
    padding:10px;
    overflow-y:auto;
  }
  .blog-category-drawer-list a{
    min-height:46px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 12px;
    border-radius:9px;
    color:#475467;
    font-size:14px;
    font-weight:500;
  }
  .blog-category-drawer-list a:hover{
    background:#f8fafc;
    color:var(--primary);
  }
  .blog-category-drawer-list a.active{
    background:var(--primary-soft);
    color:var(--primary);
    font-weight:700;
  }
  .blog-category-drawer-list a i{
    font-size:11px;
    color:#a4acb9;
  }

  .blog-content-section>.container{
    width:min(100% - 24px,var(--container))!important;
  }
  .blog-card-grid.balanced{
    grid-template-columns:1fr!important;
  }
}

@media(min-width:821px) and (max-width:1080px){
  .blog-card-grid.balanced{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* Drawer offset when frontend admin bar is visible */
@media(max-width:820px){
  body.has-adminbar .mobile-panel{
    top:36px!important;
    height:calc(100vh - 36px)!important;
    max-height:calc(100vh - 36px)!important;
  }
  body.has-adminbar .mobile-menu-backdrop{
    top:36px!important;
    bottom:0!important;
    height:auto!important;
  }

  body.has-adminbar .blog-category-drawer{
    top:36px!important;
    height:calc(100vh - 36px)!important;
  }
  body.has-adminbar .blog-category-backdrop{
    top:36px!important;
    bottom:0!important;
    height:auto!important;
  }

  body.has-adminbar .category-sidebar{
    top:36px!important;
    height:calc(100vh - 36px)!important;
    max-height:calc(100vh - 36px)!important;
  }
  body.has-adminbar .category-filter-backdrop{
    top:36px!important;
    bottom:0!important;
    height:auto!important;
  }
}

@media(max-width:620px){
  body.has-adminbar .mobile-panel{
    top:42px!important;
    height:calc(100vh - 42px)!important;
    max-height:calc(100vh - 42px)!important;
  }
  body.has-adminbar .mobile-menu-backdrop{
    top:42px!important;
  }

  body.has-adminbar .blog-category-drawer{
    top:42px!important;
    height:calc(100vh - 42px)!important;
  }
  body.has-adminbar .blog-category-backdrop{
    top:42px!important;
  }

  body.has-adminbar .category-sidebar{
    top:42px!important;
    height:calc(100vh - 42px)!important;
    max-height:calc(100vh - 42px)!important;
  }
  body.has-adminbar .category-filter-backdrop{
    top:42px!important;
  }
}


/* Blog spacing + neutral no-image state */
.blog-hero{
  padding-bottom:22px!important;
}
.blog-content-section{
  padding-top:20px!important;
}
.blog-card-body{
  min-height:0!important;
  padding-bottom:16px!important;
}
.blog-card-body p{
  margin-top:8px!important;
}
.blog-card-media.no-image{
  background:#f6f7f9!important;
}
.blog-placeholder-art.small.neutral{
  min-height:210px!important;
  border-bottom:1px solid #edf0f4;
}
.blog-placeholder-art.small.neutral i{
  font-size:30px!important;
}
.blog-placeholder-art.small.neutral span{
  display:none!important;
}

@media(max-width:720px){
  .blog-hero{
    padding-bottom:18px!important;
  }
  .blog-content-section{
    padding-top:16px!important;
  }
  .blog-placeholder-art.small.neutral{
    min-height:190px!important;
  }
}


/* Blog no-image placeholder alignment */
.blog-content-section{
  padding-top:12px!important;
}
.blog-card-media.no-image{
  position:relative;
}
.blog-placeholder-art.small.neutral{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  place-items:center!important;
  justify-content:center!important;
  align-content:center!important;
  padding:0!important;
  margin:0!important;
  background:#f6f7f9!important;
  color:#a7b1c2!important;
  border:0!important;
}
.blog-placeholder-art.small.neutral i{
  margin:0!important;
  font-size:28px!important;
  line-height:1!important;
  opacity:1!important;
}
@media(max-width:720px){
  .blog-content-section{
    padding-top:10px!important;
  }
}


/* Blog detail */
.blog-detail-page{
  background:#fff;
}
.blog-detail{
  background:#fff;
}
.blog-detail-container{
  width:min(980px,calc(100% - 48px));
}
.blog-detail-hero{
  padding:34px 0 26px;
  background:linear-gradient(180deg,#f8fafc 0,#fff 100%);
  border-bottom:1px solid #edf0f4;
}
.blog-detail-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
  margin-bottom:14px;
  color:#98a2b3;
  font-size:12px;
}
.blog-detail-meta>span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.blog-detail-category{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef1ff;
  color:var(--primary);
  font-size:12px;
  font-weight:700;
}
.blog-detail-hero h1{
  max-width:900px;
  margin:0;
  color:#101828;
  font-size:42px;
  line-height:1.16;
  letter-spacing:-1.5px;
}
.blog-detail-lead{
  max-width:820px;
  margin:16px 0 0;
  color:#667085;
  font-size:17px;
  line-height:1.8;
}
.blog-detail-cover-wrap{
  margin:28px 0 0;
}
.blog-detail-cover{
  width:100%;
  max-height:560px;
  object-fit:cover;
  border-radius:5px;
  border:1px solid #e5e9f0;
  box-shadow:0 20px 50px rgba(15,23,42,.07);
}
.blog-detail-content-section{
  padding:30px 0 64px;
}
.blog-detail-ad{
  min-height:86px!important;
  margin:0 0 26px;
  background:#fafbfc;
  color:#98a2b3;
}
.blog-article-content{
  color:#344054;
  line-height:1.85;
}
.blog-article-content>*:first-child{
  margin-top:0;
}
.blog-article-content>*:last-child{
  margin-bottom:0;
}
.blog-article-content p{
  margin:0 0 1.35em;
}
.blog-article-content h2{
  margin:2.1em 0 .7em;
  color:#101828;
  letter-spacing:-.7px;
}
.blog-article-content h3{
  margin:1.8em 0 .65em;
  color:#101828;
  font-size:22px;
  letter-spacing:-.35px;
}
.blog-article-content h4{
  margin:1.6em 0 .55em;
  color:#1d2939;
  font-size:18px;
}
.blog-article-content ul,
.blog-article-content ol{
  margin:0 0 1.5em;
  padding-left:1.4em;
}
.blog-article-content li+li{
  margin-top:.45em;
}
.blog-article-content strong{
  color:#1d2939;
}
.blog-article-content a{
  color:var(--primary);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.blog-article-content blockquote{
  margin:1.8em 0;
  padding:18px 22px;
  border-left:4px solid var(--primary);
  border-radius:0 12px 12px 0;
  background:#f7f9fc;
  color:#475467;
  font-size:17px;
  line-height:1.75;
}
.blog-article-content blockquote p:last-child{
  margin-bottom:0!important;
}
.blog-article-content img{
  width:auto;
  max-width:100%;
  height:auto;
  margin:28px auto;
  border-radius:14px;
  border:1px solid #e5e9f0;
}
.blog-article-content figure{
  margin:28px 0;
}
.blog-article-content figcaption{
  margin-top:8px;
  color:#98a2b3;
  font-size:12px;
  text-align:center;
}
.blog-article-content table{
  width:100%;
  margin:26px 0;
  border-collapse:collapse;
  overflow:hidden;
  border:1px solid #e4e8ef;
  border-radius:12px;
}
.blog-article-content th,
.blog-article-content td{
  padding:12px 14px;
  border-bottom:1px solid #edf0f4;
  text-align:left;
}
.blog-article-content th{
  background:#f8fafc;
  color:#344054;
  font-size:13px;
}
.blog-article-content tr:last-child td{
  border-bottom:0;
}
.blog-article-content hr{
  margin:34px 0;
  border:0;
  border-top:1px solid #e7eaf0;
}
.blog-detail-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:38px;
  padding-top:22px;
  border-top:1px solid #e7eaf0;
}
.blog-back-link,
.blog-category-return{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#475467;
  font-size:13px;
  font-weight:700;
}
.blog-back-link:hover,
.blog-category-return:hover{
  color:var(--primary);
}
.blog-detail-empty{
  padding:56px 28px;
  text-align:center;
}
.blog-detail-empty>span{
  width:60px;
  height:60px;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  border-radius:16px;
  background:#eef1ff;
  color:var(--primary);
  font-size:22px;
}
.blog-detail-empty h1{
  margin:0;
  font-size:28px;
}
.blog-detail-empty p{
  margin:8px 0 20px;
  color:#667085;
}

@media(max-width:720px){
  .blog-detail-container{
    width:min(100% - 24px,980px);
  }
  .blog-detail-hero{
    padding:24px 0 20px;
  }
  .blog-detail-hero h1{
    font-size:31px;
    line-height:1.18;
    letter-spacing:-1px;
  }
  .blog-detail-lead{
    margin-top:12px;
    font-size:15px;
    line-height:1.72;
  }
  .blog-detail-cover-wrap{
    margin-top:20px;
  }
  .blog-detail-cover{
    border-radius:5px;
  }
  .blog-detail-content-section{
    padding:20px 0 42px;
  }
  .blog-detail-ad{
    margin-bottom:20px;
    min-height:74px!important;
  }
  .blog-article-content{
    font-size:15px;
    line-height:1.8;
  }
  .blog-article-content h2{
    font-size:24px;
  }
  .blog-article-content h3{
    font-size:20px;
  }
  .blog-detail-footer{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* Blog detail TOC layout */
.blog-detail-layout{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:34px;
  align-items:start;
}
.blog-toc-card{
  position:sticky;
  top:128px;
  overflow:auto;
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.has-adminbar .blog-toc-card{
  top:164px;
}
.blog-toc-head{
  margin-bottom:8px;
  padding-bottom:10px;
  border-bottom:1px solid #eef1f4;
}
.blog-toc-head span{
  display:flex;
  align-items:center;
  gap:8px;
  color:#344054;
  font-size:13px;
  font-weight:700;
}
.blog-toc-head i{
  color:var(--primary);
}
.blog-toc-nav{
  display:grid;
  gap:3px;
}
.blog-toc-nav a{
  display:block;
  padding:7px 9px;
  border-radius:8px;
  color:#667085;
  font-size:12px;
  line-height:1.45;
  transition:.15s ease;
}
.blog-toc-nav a:hover{
  background:#f8fafc;
  color:var(--primary);
}
.blog-toc-nav a.toc-h3{
  padding-left:20px;
  color:#98a2b3;
}
.blog-toc-nav a.active{
  background:var(--primary-soft);
  color:var(--primary);
  font-weight:700;
}

@media(max-width:900px){
  .blog-detail-layout{
    grid-template-columns:1fr;
    gap:20px;
  }
  .blog-toc-card{
    position:static;
    max-height:none;
  }
  .blog-toc-nav{
    grid-template-columns:1fr;
  }
}


/* Blog detail corrections */
.blog-detail-cover-wrap.is-empty{
  margin-top:26px;
}
.blog-detail-cover-placeholder{
  width:100%;
  aspect-ratio:16/7;
  display:grid;
  place-items:center;
  border:1px solid #e3e8ef;
  border-radius:18px;
  background:#f6f7f9;
  color:#a7b1c2;
}
.blog-detail-cover-placeholder i{
  font-size:34px;
  line-height:1;
}

.blog-detail-layout{
  grid-template-columns:230px minmax(0,1fr)!important;
}
.blog-toc-card{
  display:block!important;
  align-self:start;
}
.blog-article-content>p,
.blog-article-content>div,
.blog-article-content>section{
  width:auto!important;
  max-width:100%!important;
}
.blog-article-content p{
  max-width:none!important;
}
.blog-detail-meta:empty{
  display:none;
}

@media(max-width:900px){
  .blog-detail-layout{
    grid-template-columns:1fr!important;
  }
  .blog-toc-card{
    order:0;
  }
  .blog-article-content{
    order:1;
  }
}


/* Blog detail: shared breadcrumb + two sticky sidebars */
.blog-detail-container{
  width:min(1280px,calc(100% - 48px))!important;
}
.blog-detail-layout{
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr) 250px!important;
  gap:28px!important;
  align-items:start!important;
}
.blog-side{
  min-width:0;
}
.blog-side-left,
.blog-side-right{
  position:sticky;
  top:128px;
  align-self:start;
}
.has-adminbar .blog-side-left,
.has-adminbar .blog-side-right{
  top:164px;
}
.blog-toc-card{
  position:static!important;
  top:auto!important;
  max-height:calc(100vh - 156px);
}
.has-adminbar .blog-toc-card{
  top:auto!important;
  max-height:calc(100vh - 192px);
}
.blog-side-right{
  display:grid;
  gap:16px;
}
.blog-side-card{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.blog-side-card-head{
  padding:13px 14px;
  border-bottom:1px solid #eef1f4;
  color:#344054;
  font-size:13px;
  font-weight:700;
}
.blog-side-links,
.blog-recent-links{
  display:grid;
  padding:6px;
}
.blog-side-links a{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 9px;
  border-radius:8px;
  color:#667085;
  font-size:12px;
}
.blog-side-links a:hover{
  background:#f8fafc;
  color:var(--primary);
}
.blog-side-links i{
  flex:0 0 auto;
  color:#b5bdc9;
  font-size:9px;
}
.blog-recent-links a{
  padding:9px;
  border-radius:8px;
  color:#667085;
  font-size:12px;
  line-height:1.5;
}
.blog-recent-links a:hover{
  background:#f8fafc;
  color:var(--primary);
}
.blog-article-content{
  min-width:0;
}

@media(max-width:1100px){
  .blog-detail-layout{
    grid-template-columns:210px minmax(0,1fr)!important;
  }
  .blog-side-right{
    display:none;
  }
}
@media(max-width:820px){
  .blog-detail-container{
    width:min(100% - 24px,1280px)!important;
  }
  .blog-detail-layout{
    grid-template-columns:1fr!important;
    gap:18px!important;
  }
  .blog-side-left{
    position:static!important;
    top:auto!important;
  }
  .blog-side-right{
    display:none!important;
  }
}


/* Blog detail: true three-column article layout */
.blog-detail.section{
  padding-top:0;
  background:#fff;
}
.blog-detail.section>.container{
  width:min(var(--container),calc(100% - 48px));
}
.blog-detail-grid{
  display:grid;
  grid-template-columns:250px minmax(0,1fr) 260px;
  gap:28px;
  align-items:start;
  padding-bottom:64px;
}
.blog-detail-left,
.blog-detail-right{
  position:sticky;
  top:132px;
  align-self:start;
}
.has-adminbar .blog-detail-left,
.has-adminbar .blog-detail-right{
  top:168px;
}
.blog-detail-main{
  min-width:0;
}
.blog-detail-header{
  margin-bottom:24px;
}
.blog-detail-header .blog-detail-meta{
  margin:0 0 10px;
}
.blog-detail-header h1{
  margin:0;
  max-width:none;
  color:#101828;
  font-size:40px;
  line-height:1.16;
  letter-spacing:-1.35px;
}
.blog-detail-header .blog-detail-lead{
  max-width:none;
  margin:14px 0 0;
  color:#667085;
  font-size:16px;
  line-height:1.75;
}
.blog-detail-main .blog-detail-cover-wrap{
  margin:0 0 24px;
}
.blog-detail-main .blog-detail-cover{
  width:100%;
  max-height:540px;
  object-fit:cover;
}
.blog-detail-main .blog-detail-cover-placeholder{
  aspect-ratio:16/8;
}
.blog-detail-main .blog-detail-ad{
  margin:0 0 26px;
}
.blog-detail-left .blog-toc-card{
  position:static!important;
  max-height:calc(100vh - 160px);
}
.has-adminbar .blog-detail-left .blog-toc-card{
  max-height:calc(100vh - 196px);
}
.blog-detail-right{
  display:grid;
  gap:16px;
}
.blog-side-card{
  box-shadow:none;
}
.blog-side-card-head{
  background:#fafbfc;
}
.blog-article-content{
  width:100%;
  max-width:none!important;
}
.blog-article-content h2,
.blog-article-content h3{
  scroll-margin-top:150px;
}
.has-adminbar .blog-article-content h2,
.has-adminbar .blog-article-content h3{
  scroll-margin-top:186px;
}

@media(max-width:1180px){
  .blog-detail-grid{
    grid-template-columns:220px minmax(0,1fr);
  }
  .blog-detail-right{
    display:none;
  }
}
@media(max-width:820px){
  .blog-detail.section>.container{
    width:min(100% - 24px,var(--container));
  }
  .blog-detail-grid{
    grid-template-columns:1fr;
    gap:18px;
    padding-bottom:42px;
  }
  .blog-detail-left,
  .blog-detail-right{
    position:static;
    top:auto;
  }
  .blog-detail-left{
    order:2;
  }
  .blog-detail-main{
    order:1;
  }
  .blog-detail-right{
    order:3;
    display:grid;
  }
  .blog-detail-header h1{
    font-size:31px;
    line-height:1.18;
    letter-spacing:-1px;
  }
  .blog-detail-header .blog-detail-lead{
    font-size:15px;
  }
  .blog-detail-left .blog-toc-card{
    max-height:none;
  }
}


/* Blog detail sticky sidebars: keep them visually anchored beside article */
.blog-detail-grid{
  position:relative;
}
.blog-detail-left,
.blog-detail-right{
  position:relative!important;
  top:auto!important;
}
.blog-detail-left>.blog-toc-card,
.blog-detail-right>.blog-side-card:first-child{
  position:sticky!important;
  top:128px!important;
}
.has-adminbar .blog-detail-left>.blog-toc-card,
.has-adminbar .blog-detail-right>.blog-side-card:first-child{
  top:164px!important;
}
.blog-detail-left>.blog-toc-card{
  max-height:calc(100vh - 156px)!important;
  overflow:auto;
}
.has-adminbar .blog-detail-left>.blog-toc-card{
  max-height:calc(100vh - 192px)!important;
}
.blog-detail-right{
  display:block!important;
}
.blog-detail-right>.blog-side-card + .blog-side-card{
  margin-top:16px;
}

/* Keep the full right column together while scrolling */
.blog-detail-right{
  position:sticky!important;
  top:128px!important;
}
.has-adminbar .blog-detail-right{
  top:164px!important;
}
.blog-detail-right>.blog-side-card:first-child{
  position:static!important;
  top:auto!important;
}

@media(max-width:1180px){
  .blog-detail-right{
    display:none!important;
    position:static!important;
  }
}
@media(max-width:820px){
  .blog-detail-left,
  .blog-detail-right{
    position:static!important;
    top:auto!important;
  }
  .blog-detail-left>.blog-toc-card,
  .blog-detail-right>.blog-side-card:first-child{
    position:static!important;
    top:auto!important;
    max-height:none!important;
  }
}


/* Blog sticky columns follow the collapsing secondary header */
@media(min-width:821px){
  .blog-detail-left,
  .blog-detail-right{
    top:126px!important;
    transition:top .18s ease;
  }

  body.site-nav-hidden .blog-detail-left,
  body.site-nav-hidden .blog-detail-right{
    top:84px!important;
  }

  body.has-adminbar .blog-detail-left,
  body.has-adminbar .blog-detail-right{
    top:162px!important;
  }

  body.has-adminbar.site-nav-hidden .blog-detail-left,
  body.has-adminbar.site-nav-hidden .blog-detail-right{
    top:120px!important;
  }

  .blog-detail-left .blog-toc-card{
    max-height:calc(100vh - 148px)!important;
  }

  body.site-nav-hidden .blog-detail-left .blog-toc-card{
    max-height:calc(100vh - 106px)!important;
  }

  body.has-adminbar .blog-detail-left .blog-toc-card{
    max-height:calc(100vh - 184px)!important;
  }

  body.has-adminbar.site-nav-hidden .blog-detail-left .blog-toc-card{
    max-height:calc(100vh - 142px)!important;
  }
}


/* Blog detail: TOC mirrors right sidebar cards */
.blog-detail-left .blog-toc-card{
  padding:0!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.blog-detail-left .blog-toc-nav{
  display:grid!important;
  gap:0!important;
  padding:6px!important;
}
.blog-detail-left .blog-toc-nav a{
  min-height:40px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:8px 9px!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#667085!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.45!important;
}
.blog-detail-left .blog-toc-nav a:hover{
  background:#f8fafc!important;
  color:var(--primary)!important;
}
.blog-detail-left .blog-toc-nav a.toc-h3{
  padding-left:20px!important;
  color:#98a2b3!important;
}
.blog-detail-left .blog-toc-nav a.active{
  background:#f8fafc!important;
  color:var(--primary)!important;
  font-weight:600!important;
}
.blog-detail-left .blog-toc-nav a i{
  flex:0 0 auto;
  color:#b5bdc9;
  font-size:9px;
}


/* Blog detail: definitive sticky TOC */
@media(min-width:821px){
  .blog-detail-left{
    position:sticky!important;
    top:126px!important;
    align-self:start!important;
    height:max-content!important;
    z-index:2;
  }

  body.site-nav-hidden .blog-detail-left{
    top:84px!important;
  }

  body.has-adminbar .blog-detail-left{
    top:162px!important;
  }

  body.has-adminbar.site-nav-hidden .blog-detail-left{
    top:120px!important;
  }

  .blog-detail-left>.blog-toc-card{
    position:static!important;
    top:auto!important;
    max-height:calc(100vh - 150px)!important;
    overflow:auto!important;
  }

  body.site-nav-hidden .blog-detail-left>.blog-toc-card{
    max-height:calc(100vh - 108px)!important;
  }

  body.has-adminbar .blog-detail-left>.blog-toc-card{
    max-height:calc(100vh - 186px)!important;
  }

  body.has-adminbar.site-nav-hidden .blog-detail-left>.blog-toc-card{
    max-height:calc(100vh - 144px)!important;
  }
}


/* Blog detail sidebars: no inner scrollbar, larger typography */
.blog-detail-left>.blog-toc-card{
  max-height:none!important;
  overflow:visible!important;
}
.blog-toc-nav a,
.blog-side-links a,
.blog-recent-links a{
  font-size:13px!important;
}
.blog-side-card-head,
.blog-toc-card .blog-side-card-head{
  font-size:14px!important;
}
.blog-toc-nav a.toc-h3{
  font-size:12.5px!important;
}


/* Blog article rhythm and reusable content blocks */
.blog-article-content{
  font-size:16px;
  line-height:1.78;
}
.blog-article-content p{
  margin:0 0 18px!important;
}
.blog-article-content h2{
  margin:42px 0 16px!important;
  font-size:28px;
  line-height:1.3;
}
.blog-article-content h3{
  margin:30px 0 12px!important;
  font-size:21px;
  line-height:1.35;
}
.blog-article-content h4{
  margin:24px 0 10px!important;
}
.blog-article-content ul,
.blog-article-content ol{
  margin:0 0 20px!important;
  padding-left:24px;
}
.blog-article-content li{
  margin:0 0 8px!important;
}
.blog-article-content li:last-child{
  margin-bottom:0!important;
}
.blog-article-content blockquote{
  margin:28px 0!important;
}
.blog-article-content figure,
.blog-article-content .blog-content-image{
  margin:26px 0!important;
}
.blog-article-content h2:first-child,
.blog-article-content h3:first-child,
.blog-article-content p:first-child{
  margin-top:0!important;
}

/* Two-column image/text content blocks */
.blog-article-content .blog-split{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:30px;
  align-items:center;
  margin:34px 0;
}
.blog-article-content .blog-split-media{
  min-width:0;
}
.blog-article-content .blog-split-media img{
  width:100%;
  height:auto;
  margin:0!important;
  border-radius:14px;
  object-fit:cover;
}
.blog-article-content .blog-split-copy{
  min-width:0;
}
.blog-article-content .blog-split-copy>:first-child{
  margin-top:0!important;
}
.blog-article-content .blog-split-copy>:last-child{
  margin-bottom:0!important;
}
.blog-article-content .blog-template-image-placeholder{
  min-height:260px;
  display:grid;
  place-items:center;
  border:1px dashed #d8dde7;
  border-radius:14px;
  background:#f7f8fa;
  color:#98a2b3;
  font-size:13px;
}

/* Highlighted list block */
.blog-article-content .blog-feature-list{
  margin:30px 0;
  padding:22px 24px;
  border:1px solid #e4e8ef;
  border-radius:14px;
  background:#f8fafc;
}
.blog-article-content .blog-feature-list h2,
.blog-article-content .blog-feature-list h3{
  margin-top:0!important;
}
.blog-article-content .blog-feature-list ul,
.blog-article-content .blog-feature-list ol{
  margin-bottom:0!important;
}

/* Gallery / slider */
.blog-article-content .blog-gallery{
  position:relative;
  margin:32px 0;
  overflow:hidden;
  border-radius:14px;
  background:#f5f7fa;
}
.blog-gallery-track{
  position:relative;
}
.blog-gallery-slide{
  display:none;
  margin:0!important;
}
.blog-gallery-slide.is-active{
  display:block;
}
.blog-gallery-slide img{
  width:100%!important;
  max-height:620px;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:cover;
}
.blog-gallery-slide figcaption{
  padding:9px 14px 12px;
  background:#fff;
  text-align:center;
}
.blog-gallery-slide figcaption:empty{
  display:none;
}
.blog-gallery-prev,
.blog-gallery-next{
  position:absolute;
  top:50%;
  z-index:3;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  background:rgba(17,24,39,.55);
  color:#fff;
  cursor:pointer;
  backdrop-filter:blur(8px);
}
.blog-gallery-prev{left:14px}
.blog-gallery-next{right:14px}
.blog-gallery-dots{
  position:absolute;
  left:50%;
  bottom:14px;
  z-index:3;
  display:flex;
  gap:6px;
  transform:translateX(-50%);
}
.blog-gallery-dots button{
  width:8px;
  height:8px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  cursor:pointer;
}
.blog-gallery-dots button.is-active{
  width:20px;
  border-radius:999px;
  background:#fff;
}

@media(max-width:760px){
  .blog-article-content{
    font-size:15px;
    line-height:1.75;
  }
  .blog-article-content h2{
    margin-top:34px!important;
    font-size:24px;
  }
  .blog-article-content h3{
    margin-top:26px!important;
    font-size:20px;
  }
  .blog-article-content .blog-split{
    grid-template-columns:1fr;
    gap:16px;
    margin:26px 0;
  }
  .blog-article-content .blog-split-image-right .blog-split-copy{
    order:2;
  }
  .blog-article-content .blog-split-image-right .blog-split-media{
    order:1;
  }
  .blog-article-content .blog-template-image-placeholder{
    min-height:210px;
  }
  .blog-gallery-prev,
  .blog-gallery-next{
    width:38px;
    height:38px;
  }
}


/* Empty captions stay editor-only */
.blog-article-content figcaption:empty{
  display:none!important;
}


/* Frontend admin bar navigation */
.site-adminbar-menu{
  position:relative;
  height:36px;
}
.site-adminbar-menu summary{
  height:36px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 10px;
  list-style:none;
  color:#d8dee9;
  font:500 12px/1 "Poppins",sans-serif;
  white-space:nowrap;
  cursor:pointer;
  user-select:none;
}
.site-adminbar-menu summary::-webkit-details-marker{display:none}
.site-adminbar-menu summary::marker{display:none;content:""}
.site-adminbar-menu summary:hover,
.site-adminbar-menu[open] summary{
  background:#2a3038;
  color:#fff;
}
.site-adminbar-menu-caret{
  margin-left:2px;
  font-size:9px!important;
  transition:transform .15s ease;
}
.site-adminbar-menu[open] .site-adminbar-menu-caret{
  transform:rotate(180deg);
}
.site-adminbar-menu-panel{
  position:absolute;
  top:36px;
  left:0;
  width:210px;
  padding:6px;
  border:1px solid rgba(255,255,255,.08);
  border-top:0;
  border-radius:0 0 6px 6px;
  background:#252a31;
  box-shadow:0 14px 32px rgba(0,0,0,.22);
}
.site-adminbar-menu-panel a{
  width:100%;
  height:38px!important;
  padding:0 10px!important;
  border-radius:4px;
  color:#d8dee9!important;
}
.site-adminbar-menu-panel a:hover{
  background:#323943!important;
  color:#fff!important;
}
.site-adminbar-menu-panel a i{
  width:17px;
  text-align:center;
}
.site-adminbar-edit{
  border-left:1px solid rgba(255,255,255,.08);
}
.site-adminbar-edit i{
  color:#b8c1cf;
}

@media(max-width:980px){
  .site-adminbar-menu{
    width:42px;
  }
  .site-adminbar-menu summary{
    width:42px;
    justify-content:center;
    padding:0;
  }
  .site-adminbar-menu summary span,
  .site-adminbar-menu-caret{
    display:none!important;
  }
  .site-adminbar-menu-panel{
    top:36px;
  }
  .site-adminbar-menu-panel a{
    width:100%!important;
    justify-content:flex-start!important;
    padding:0 10px!important;
  }
  .site-adminbar-menu-panel a span{
    display:inline!important;
  }
}

@media(max-width:620px){
  .site-adminbar-menu{
    height:42px;
    width:46px;
  }
  .site-adminbar-menu summary{
    width:46px;
    height:42px;
  }
  .site-adminbar-menu-panel{
    top:42px;
  }
  .site-adminbar a,
  .site-adminbar button,
  .site-adminbar-menu summary{
    min-width:44px;
  }
  .site-adminbar i,
  .site-adminbar-menu summary>i:first-child{
    font-size:16px!important;
  }
  .site-adminbar-brand i{
    font-size:15px!important;
  }
  .site-adminbar-menu-panel a i{
    font-size:14px!important;
  }
}


/* Admin bar mobile icon sizing */
@media(max-width:620px){
  .site-adminbar a>i,
  .site-adminbar button>i,
  .site-adminbar-menu summary>i:first-child{
    font-size:18px!important;
  }
  .site-adminbar-brand i{
    font-size:17px!important;
  }
  .site-adminbar-menu-panel a i{
    font-size:16px!important;
  }
  .site-adminbar a,
  .site-adminbar button,
  .site-adminbar-menu summary{
    min-width:46px!important;
  }
}


/* Admin bar dropdown: mobile must not clip the panel */
@media(max-width:620px){
  .site-adminbar{
    overflow:visible!important;
  }
  .site-adminbar-inner{
    width:100%!important;
    min-width:0!important;
  }
  .site-adminbar-left,
  .site-adminbar-right{
    overflow:visible!important;
  }
  .site-adminbar-menu{
    position:relative!important;
    overflow:visible!important;
  }
  .site-adminbar-menu-panel{
    position:absolute!important;
    top:42px!important;
    left:0!important;
    z-index:5100!important;
    width:210px!important;
    max-height:calc(100vh - 54px);
    overflow-y:auto!important;
  }
}


/* Admin bar: quick links, notifications and performance */
.site-adminbar-quick{
  border-left:1px solid rgba(255,255,255,.08);
}
.site-adminbar-notifications summary,
.site-adminbar-performance summary{
  border-left:1px solid rgba(255,255,255,.08);
}
.site-adminbar-count{
  min-width:18px;
  height:18px;
  padding:0 5px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:#4056d6;
  color:#fff;
  font:700 10px/1 "Poppins",sans-serif;
}
.site-adminbar-count.danger{
  background:#d92d20;
}
.site-adminbar-panel-title{
  padding:8px 10px 9px;
  color:#98a2b3;
  font-size:10px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.site-adminbar-notice-panel{
  width:310px;
}
.site-adminbar-notice-panel>a{
  min-height:48px!important;
  height:auto!important;
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr) auto;
  align-items:center;
  gap:9px!important;
  padding:7px 9px!important;
}
.site-adminbar-notice-panel>a>i{
  width:22px!important;
  color:#aeb7c5;
  font-size:13px!important;
}
.site-adminbar-panel-copy{
  min-width:0;
  display:grid!important;
  gap:3px;
}
.site-adminbar-panel-copy strong{
  color:#f4f6f8;
  font-size:12px;
  font-weight:600;
  line-height:1.25;
}
.site-adminbar-panel-copy small{
  color:#98a2b3;
  font-size:10px;
  font-weight:400;
  line-height:1.25;
}
.site-adminbar-performance-label{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.site-adminbar-performance-label b{
  color:#fff;
  font-size:11px;
  font-weight:600;
}
.site-adminbar-performance-label em{
  color:#98a2b3;
  font-size:10px;
  font-style:normal;
  font-weight:500;
}
.site-adminbar-performance-panel{
  width:255px;
  padding:6px!important;
}
.site-adminbar-metric-row{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:#c9d0da;
  font-size:11px;
}
.site-adminbar-metric-row strong{
  color:#fff;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
}
.site-adminbar-panel-footer-link{
  margin-top:5px;
  border-top:1px solid rgba(255,255,255,.06);
  color:#cfd6df!important;
  font-weight:600!important;
}
.site-adminbar-panel-footer-link i{
  color:#98a2b3;
}

@media(max-width:980px){
  .site-adminbar-notifications summary,
  .site-adminbar-performance summary{
    position:relative;
  }
  .site-adminbar-notifications summary>.site-adminbar-count{
    position:absolute;
    top:3px;
    right:1px;
    min-width:16px;
    height:16px;
    padding:0 4px;
    font-size:9px;
  }
  .site-adminbar-notice-panel a span,
  .site-adminbar-performance-panel a span{
    display:grid!important;
  }
  .site-adminbar-performance-panel .site-adminbar-metric-row span{
    display:inline!important;
  }
}

@media(max-width:620px){
  .site-adminbar-menu-panel{
    position:fixed!important;
    top:42px!important;
    left:4px!important;
    right:4px!important;
    width:auto!important;
    max-width:none!important;
    max-height:calc(100vh - 50px)!important;
    overflow-y:auto!important;
    z-index:5200!important;
  }
  .site-adminbar-notice-panel>a{
    min-height:52px!important;
  }
  .site-adminbar-notice-panel>a>i{
    font-size:16px!important;
  }
  .site-adminbar-panel-copy strong{
    font-size:13px;
  }
  .site-adminbar-panel-copy small{
    font-size:11px;
  }
  .site-adminbar-count{
    min-width:20px;
    height:20px;
    font-size:10px;
  }
}


/* Favori kitaplar: geniş masaüstünde 6 sütun */
@media(min-width:1200px){
  .account-book-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:14px;
  }
}


/* Takip edilen yazarlar: kart görünümü */
.followed-author-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:14px!important;
}
.followed-author-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:0!important;
  min-width:0;
  padding:0!important;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
}
.followed-author-photo{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  flex:none!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden;
  border-radius:0!important;
  background:#f5f7fb!important;
}
.followed-author-photo img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.followed-author-photo span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:var(--primary);
  font-size:28px;
  font-weight:700;
}
.followed-author-copy{
  min-width:0;
  padding:12px 12px 10px;
  text-align:center;
}
.followed-author-copy h3{
  margin:0;
  min-height:38px;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  font-size:13px;
  line-height:1.45;
}
.followed-author-copy p{
  margin:4px 0 0!important;
  color:var(--muted);
  font-size:11px!important;
}
.followed-author-card .account-follow-btn{
  width:calc(100% - 24px);
  min-height:38px;
  margin:0 12px 12px!important;
  padding:8px 10px;
  font-size:12px;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.followed-author-card .account-follow-btn:hover{
  border-color:#fecdd3;
  background:#fff1f2;
  color:#be123c;
}
.followed-author-card .account-follow-btn:hover .author-follow-label-desktop,
.followed-author-card .account-follow-btn:hover .author-follow-label-mobile{
  display:none!important;
}
.followed-author-card .account-follow-btn:hover::after{
  content:"Takipten Çık";
  font-weight:600;
}
.followed-author-card .account-follow-btn:hover i{
  color:#be123c;
}

@media(max-width:1199px) and (min-width:821px){
  .followed-author-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:820px){
  .followed-author-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .followed-author-copy{
    padding:10px 8px 8px;
  }
  .followed-author-card .account-follow-btn{
    width:calc(100% - 16px);
    margin:0 8px 8px!important;
    min-height:36px;
    padding:7px 8px;
  }
}


/* Ödül siparişleri: çoklu siparişlere uygun kart düzeni */
.account-reward-orders{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
}
.account-reward-order{
  min-width:0;
}
.account-order-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:14px 15px!important;
  border-bottom:1px solid var(--line)!important;
  background:#fafbfc!important;
}
.account-order-no{
  min-width:0;
}
.account-order-no small,
.account-order-book small,
.account-order-foot small{
  display:block;
  margin:0 0 3px;
  color:#98a2b3;
  font-size:9px;
  font-weight:600;
  line-height:1.3;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.account-order-no strong{
  color:var(--text);
  font-size:13px;
  line-height:1.35;
}
.account-order-no span{
  display:block;
  margin-top:3px!important;
  color:var(--muted)!important;
  font-size:10px!important;
}
.account-order-book{
  min-height:74px;
  padding:14px 15px;
}
.account-order-book strong{
  display:block;
  margin-top:4px;
  color:var(--text);
  font-size:14px;
  line-height:1.45;
}
.account-order-foot{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:12px 15px 14px;
  border-top:1px solid #f0f2f5;
  background:#fff;
}
.account-order-foot strong{
  display:block;
  margin-top:3px;
  color:var(--text);
  font-size:12px;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.account-order-tracking{
  text-align:right;
}
.account-reward-order .order-status{
  margin-top:1px;
}

@media(max-width:1050px){
  .account-reward-orders{
    grid-template-columns:1fr;
  }
}
@media(max-width:600px){
  .account-reward-orders{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .account-order-head{
    padding:12px!important;
  }
  .account-order-book{
    min-height:0;
    padding:12px;
  }
  .account-order-foot{
    grid-template-columns:1fr;
    gap:9px;
    padding:11px 12px 12px;
  }
  .account-order-tracking{
    text-align:left;
  }
}


/* Ödül siparişi kitap görseli */
.account-order-book{
  display:flex!important;
  align-items:center;
  gap:12px;
  min-height:0!important;
}
.account-order-cover{
  width:46px;
  height:66px;
  flex:0 0 46px;
}
.account-order-cover img{
  display:block;
}
.account-order-cover span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#98a2b3;
  font-size:16px;
}
.account-order-book-copy{
  min-width:0;
}
.account-order-book-copy strong{
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
@media(max-width:600px){
  .account-order-cover{
    width:42px;
    height:60px;
    flex-basis:42px;
  }
}


/* Ödül siparişleri: kompakt yatay kart */
.account-reward-orders{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
.account-reward-order{
  padding:0!important;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
}
.account-order-main{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:14px;
  align-items:center;
  padding:14px;
}
.account-order-cover{
  width:72px!important;
  height:102px!important;
  flex:0 0 72px!important;
  border:1px solid var(--line);
  border-radius:4px;
  overflow:hidden;
  background:#f5f7fa;
}
.account-order-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.account-order-content{
  min-width:0;
}
.account-order-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.account-order-no small{
  display:block;
  margin-bottom:2px;
  color:#98a2b3;
  font-size:9px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.account-order-no strong{
  display:block;
  font-size:12px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.account-order-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  margin:10px 0 9px;
  color:var(--text);
  font-size:14px;
  font-weight:700;
  line-height:1.4;
}
.account-order-title:hover{
  color:var(--primary);
}
.account-order-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
}
.account-order-meta span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:10px;
  line-height:1.3;
}
.account-order-meta i{
  color:#98a2b3;
  font-size:10px;
}
.account-reward-order .order-status{
  flex:0 0 auto;
  margin:0;
  padding:5px 7px;
  font-size:10px;
}

@media(max-width:1050px){
  .account-reward-orders{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:600px){
  .account-order-main{
    grid-template-columns:58px minmax(0,1fr);
    gap:10px;
    padding:11px;
  }
  .account-order-cover{
    width:58px!important;
    height:82px!important;
    flex-basis:58px!important;
  }
  .account-order-title{
    margin:7px 0;
    font-size:13px;
  }
  .account-order-meta{
    gap:6px 10px;
  }
}


/* Fiyat alarmları: kompakt kart görünümü */
.account-alert-list{
  display:grid!important;
  grid-template-columns:1fr;
  gap:14px!important;
}
.account-alert-row{
  min-width:0;
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:stretch!important;
  padding:12px!important;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
}
.account-alert-row.passive{
  opacity:.62;
}
.account-alert-cover{
  width:64px;
  height:92px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:4px;
  background:#f5f7fa;
}
.account-alert-cover img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.account-alert-cover span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#98a2b3;
  font-size:18px;
}
.account-alert-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.account-alert-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.account-alert-topline>div{
  min-width:0;
}
.account-alert-topline strong{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  font-size:13px;
  line-height:1.4;
}
.account-alert-topline p{
  margin:4px 0 0!important;
  color:var(--muted);
  font-size:10px!important;
}
.account-alert-state{
  flex:0 0 auto;
  padding:4px 7px;
  border-radius:999px;
  font-size:9px;
  font-weight:700;
}
.account-alert-state.active{
  background:#ecfdf3;
  color:#047857;
}
.account-alert-state.passive{
  background:#f2f4f7;
  color:#667085;
}
.account-alert-bottom{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #f0f2f5;
}
.account-alert-target small{
  display:block;
  margin-bottom:2px;
  color:#98a2b3;
  font-size:9px;
  font-weight:600;
  text-transform:uppercase;
}
.account-alert-target strong{
  font-size:14px;
}
.account-alert-row .account-row-actions{
  display:flex;
  align-items:center;
  gap:6px;
}
.account-alert-row .account-row-actions .btn{
  min-height:34px;
  padding:7px 10px;
  font-size:11px;
}
.account-alert-row .account-icon-action{
  width:34px;
  height:34px;
}
@media(max-width:1050px){
  .account-alert-list{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:600px){
  .account-alert-row{
    grid-template-columns:54px minmax(0,1fr)!important;
    gap:10px!important;
    padding:10px!important;
  }
  .account-alert-cover{
    width:54px;
    height:78px;
  }
  .account-alert-bottom{
    align-items:center;
  }
}


/* Bildirimler sayfası */
.notification-demo-note{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid #dbe4ff;
  border-radius:var(--ui-radius);
  background:#f7f9ff;
  color:#52627a;
  font-size:11px;
}
.notification-demo-note i{
  color:var(--primary);
}
.account-notification-list{
  gap:10px!important;
}
.account-notification{
  grid-template-columns:42px minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  padding:13px 14px!important;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
}
.account-notification.unread{
  background:#fafbff!important;
  border-color:#d8def8!important;
}
.notification-type-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f2f4f7;
  color:#667085;
  font-size:14px;
}
.notification-type-icon.price_alert{background:#eef2ff;color:#4056d6}
.notification-type-icon.stock_alert{background:#eefbf4;color:#11875d}
.notification-type-icon.reward_order{background:#fff7ed;color:#c26a12}
.notification-type-icon.contribution{background:#ecfdf3;color:#087a55}
.notification-type-icon.review{background:#f5f3ff;color:#6d4cc7}
.notification-type-icon.points{background:#fff9e8;color:#b7791f}
.notification-copy{
  min-width:0;
}
.notification-copy strong{
  display:block;
  color:var(--text);
  font-size:13px;
  line-height:1.35;
}
.notification-copy a:hover strong{
  color:var(--primary);
}
.notification-copy p{
  margin:4px 0!important;
  color:#667085!important;
  font-size:11px!important;
  line-height:1.5!important;
}
.notification-copy small{
  color:#98a2b3!important;
  font-size:10px!important;
}
.notification-actions{
  align-self:center;
}
@media(max-width:600px){
  .notification-demo-note{
    font-size:10px;
  }
  .account-notification{
    grid-template-columns:36px minmax(0,1fr) auto!important;
    gap:9px!important;
    padding:11px!important;
  }
  .notification-type-icon{
    width:36px;
    height:36px;
    font-size:12px;
  }
}


/* Mobil kullanıcı menüsü */
.mobile-user-menu,
.mobile-user-login{
  display:none;
}

@media(max-width:820px){
  .mobile-user-menu{
    position:relative;
    display:block;
    flex:0 0 auto;
    margin-left:auto;
  }
  .mobile-user-menu summary{
    position:relative;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    padding:0;
    list-style:none;
    border:0;
    border-radius:var(--ui-radius);
    background:transparent;
    color:var(--text);
    cursor:pointer;
  }
  .mobile-user-menu summary::-webkit-details-marker{display:none}
  .mobile-user-menu summary::marker{display:none;content:""}
  .mobile-user-menu summary>i{
    font-size:22px;
  }
  .mobile-user-menu summary>b{
    position:absolute;
    top:2px;
    right:1px;
    min-width:17px;
    height:17px;
    display:grid;
    place-items:center;
    padding:0 4px;
    border:2px solid #fff;
    border-radius:999px;
    background:#e11d48;
    color:#fff;
    font-size:9px;
    font-weight:700;
    line-height:1;
  }
  .mobile-user-menu[open] summary{
    background:#f3f5f8;
    color:var(--primary);
  }
  .mobile-user-dropdown{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    z-index:150;
    width:220px;
    padding:6px;
    border:1px solid var(--line);
    border-radius:var(--ui-radius);
    background:#fff;
    box-shadow:0 14px 35px rgba(15,23,42,.16);
  }
  .mobile-user-dropdown a{
    min-height:42px;
    display:grid;
    grid-template-columns:24px minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    padding:8px 9px;
    border-radius:4px;
    color:#344054;
    font-size:13px;
    font-weight:500;
  }
  .mobile-user-dropdown a:hover{
    background:#f8fafc;
    color:var(--primary);
  }
  .mobile-user-dropdown a>i{
    width:20px;
    text-align:center;
    color:#98a2b3;
    font-size:14px;
  }
  .mobile-user-dropdown a>b{
    min-width:19px;
    height:19px;
    display:grid;
    place-items:center;
    padding:0 5px;
    border-radius:999px;
    background:var(--primary);
    color:#fff;
    font-size:9px;
    line-height:1;
  }
  .mobile-user-dropdown .mobile-user-logout{
    margin-top:4px;
    border-top:1px solid var(--line);
    border-radius:0 0 4px 4px;
    color:#c43232;
  }
  .mobile-user-dropdown .mobile-user-logout>i{
    color:#c43232;
  }
  .mobile-user-login{
    width:44px;
    height:44px;
    flex:0 0 44px;
    display:grid;
    place-items:center;
    margin-left:auto;
    color:var(--text);
    font-size:22px;
  }
  .mobile-menu-button{
    margin-left:2px!important;
  }
}


/* Mobil header: logo + kullanıcı + hamburger aynı satır */
@media(max-width:820px){
  .header-grid{
    display:flex!important;
    align-items:center!important;
    min-height:64px!important;
    gap:4px!important;
  }
  .header-grid>.brand{
    flex:0 1 auto;
    min-width:0;
    margin-right:auto;
  }
  .header-grid>.global-search,
  .header-grid>.header-actions{
    display:none!important;
  }
  .header-grid>.mobile-user-menu,
  .header-grid>.mobile-user-login,
  .header-grid>.mobile-menu-button{
    flex:0 0 44px;
    margin:0!important;
  }
  .header-grid>.mobile-menu-button{
    width:44px!important;
    height:44px!important;
    font-size:22px!important;
  }
}


/* Notifications v2 */
.notification-demo-note{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  margin-bottom:14px!important;
  padding:12px 14px!important;
  border:1px solid #dbe4ff!important;
  background:#f7f9ff!important;
  color:#52627a!important;
}
.notification-demo-note>i{
  margin-top:2px;
  color:var(--primary)!important;
}
.notification-demo-note strong{
  display:block;
  margin-bottom:2px;
  color:#344054;
  font-size:12px;
}
.notification-demo-note span{
  display:block;
  font-size:11px;
  line-height:1.5;
}
.notification-card{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  padding:15px 16px 15px 18px;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.02);
}
.notification-card.has-book{
  grid-template-columns:68px minmax(0,1fr);
}
.notification-card.unread{
  border-color:#cfd8ff;
  background:#fcfdff;
}
.notification-card-accent{
  position:absolute;
  background:#d0d5dd;
}
.notification-card-accent.price_alert{background:#4056d6}
.notification-card-accent.stock_alert{background:#10936b}
.notification-card-accent.reward_order{background:#d97706}
.notification-card-accent.contribution{background:#0f9f6e}
.notification-card-accent.review{background:#7c5ce0}
.notification-card-accent.points{background:#c58a12}

.notification-main-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  align-self:start;
  border-radius:50%;
  background:#f2f4f7;
  color:#667085;
  font-size:16px;
}
.notification-main-icon.price_alert{background:#eef2ff;color:#4056d6}
.notification-main-icon.stock_alert{background:#ecfdf3;color:#0f8f64}
.notification-main-icon.reward_order{background:#fff7ed;color:#c96a09}
.notification-main-icon.contribution{background:#ecfdf3;color:#0f8f64}
.notification-main-icon.review{background:#f4f0ff;color:#7155c6}
.notification-main-icon.points{background:#fff8e6;color:#b7791f}

.notification-book-cover{
  width:68px;
  height:96px;
  display:block;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:5px;
  background:#f5f7fa;
}
.notification-book-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.notification-book-cover span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#98a2b3;
  font-size:18px;
}
.notification-card-top{
  gap:16px;
}
.notification-card-heading{
  min-width:0;
}
.notification-type-label{
  display:block;
  margin-bottom:3px;
  color:#98a2b3;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.notification-card h2{
  margin:0;
  color:#101828;
  font-size:15px;
  line-height:1.4;
  font-weight:700;
}
.notification-card h2:hover{
  color:var(--primary);
}
.notification-card time{
  flex:0 0 auto;
  margin-top:1px;
  color:#98a2b3;
  font-size:10px;
  white-space:nowrap;
}
.notification-book-title{
  display:inline-block;
  margin-top:7px;
  color:#344054;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
}
.notification-book-title:hover{
  color:var(--primary);
}
.notification-card p{
  margin:7px 0 0!important;
  font-size:13px!important;
  line-height:1.6!important;
}
.notification-price-strip{
  display:flex;
  gap:12px;
  margin-top:11px;
  padding:10px 12px;
  border:1px solid #edf0f5;
  border-radius:5px;
  background:#fafbfc;
}
.notification-price-strip>div{
  min-width:90px;
}
.notification-price-strip span{
  display:block;
  margin-bottom:2px;
  color:#98a2b3;
  font-size:9px;
  font-weight:600;
  text-transform:uppercase;
}
.notification-price-strip strong{
  color:#101828;
  font-size:14px;
}
.notification-price-strip .old-price{
  color:#667085;
}
.notification-price-strip .new-price{
  color:#087a55;
  font-size:16px;
}
.notification-price-strip>i{
  color:#98a2b3;
  font-size:11px;
}
.notification-price-strip .target-price{
  margin-left:auto;
  padding-left:14px;
  border-left:1px solid #e4e7ec;
}
.notification-price-strip .target-price strong{
  color:#4056d6;
}
.notification-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:11px;
}
.notification-open-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--primary);
  font-size:11px;
  font-weight:700;
}
.notification-open-link i{
  font-size:10px;
}
.notification-actions{
  display:flex;
  align-items:center;
  gap:5px;
  margin-left:auto;
}
.notification-actions form{
  margin:0;
}
.notification-actions button{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  color:#667085;
  cursor:pointer;
}
.notification-actions button:hover{
  background:#f8fafc;
  color:var(--primary);
}

@media(max-width:700px){
  .notification-card,
  .notification-card.has-book{
    grid-template-columns:52px minmax(0,1fr);
    gap:11px;
    padding:12px 12px 12px 14px;
  }
  .notification-book-cover{
    width:52px;
    height:74px;
  }
  .notification-main-icon{
    width:40px;
    height:40px;
    font-size:14px;
  }
  .notification-card-top{
    display:block;
  }
  .notification-card time{
    display:block;
    margin-top:5px;
  }
  .notification-card h2{
    font-size:14px;
  }
  .notification-card p,
  .notification-book-title{
    font-size:12px!important;
  }
  .notification-price-strip{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    gap:8px;
    padding:9px;
  }
  .notification-price-strip>div{
    min-width:0;
  }
  .notification-price-strip .target-price{
    grid-column:1/-1;
    margin-left:0;
    padding:8px 0 0;
    border-left:0;
    border-top:1px solid #e4e7ec;
  }
  .notification-card-footer{
    margin-top:9px;
  }
}


/* Notifications v3: full-card interaction + side metrics */
.notification-feed{
  display:grid;
  gap:12px;
}
.notification-card{
  position:relative;
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:15px 16px 15px 18px!important;
  overflow:hidden;
  border:1px solid #e5e9f0!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 2px 8px rgba(16,24,40,.035);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease;
}
.notification-card.has-book{
  grid-template-columns:68px minmax(0,1fr) auto!important;
}
.notification-card.is-clickable{
  cursor:pointer;
}
.notification-card.is-clickable:hover{
  transform:translateY(-1px);
  border-color:#cfd7e8!important;
  box-shadow:0 8px 22px rgba(16,24,40,.07);
  background:#fdfdff!important;
}
.notification-card-link{
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:inherit;
}
.notification-card-accent,
.notification-book-cover,
.notification-main-icon,
.notification-card-body,
.notification-card-side{
  position:relative;
  z-index:2;
  pointer-events:none;
}
.notification-actions{
  position:relative;
  z-index:4;
  margin-left:2px;
}
.notification-actions form,
.notification-actions button{
  position:relative;
  z-index:5;
}
.notification-card-accent{
  position:absolute!important;
  top:0;
  bottom:0;
  left:0;
  width:3px;
}
.notification-card-body{
  min-width:0;
}
.notification-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.notification-card-heading h2{
  margin:0!important;
  color:#101828;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:700!important;
}
.notification-card time{
  color:#98a2b3!important;
  font-size:10px!important;
}
.notification-book-title{
  margin-top:6px!important;
  color:#344054!important;
  font-size:13px!important;
  font-weight:700!important;
}
.notification-card p{
  margin:6px 0 0!important;
  color:#667085!important;
  font-size:12px!important;
  line-height:1.55!important;
}
.notification-price-strip{
  display:flex!important;
  align-items:center;
  gap:18px!important;
  margin-top:10px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.notification-price-strip>div{
  min-width:auto!important;
}
.notification-price-strip span,
.notification-card-side>span{
  display:block;
  margin-bottom:2px;
  color:#98a2b3;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.notification-price-strip strong{
  font-size:13px!important;
}
.notification-price-strip .old-price{
  color:#667085!important;
  text-decoration:line-through;
}
.notification-card-side{
  min-width:104px;
  padding-left:18px;
  border-left:1px solid #eef1f5;
  text-align:right;
}
.notification-card-side.price-side{
  min-width:132px;
}
.notification-card-side.price-side strong{
  display:block;
  color:#087a55;
  font-size:24px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.5px;
}
.notification-card-side.price-side small{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:5px;
  margin-top:5px;
  color:#0f8f64;
  font-size:9px;
  font-weight:600;
}
.notification-card-side.points-side strong{
  display:block;
  font-size:25px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.6px;
}
.notification-card-side.points-side span{
  margin-top:4px;
  margin-bottom:0;
  text-transform:none;
  letter-spacing:0;
  font-size:10px;
}
.notification-card-side.points-side.positive strong{
  color:#087a55;
}
.notification-card-side.points-side.negative strong{
  color:#c43232;
}
.notification-card-side.arrow-side{
  min-width:34px;
  padding-left:12px;
  border-left:0;
  font-size:12px;
}
.notification-card.is-clickable:hover .arrow-side{
  color:var(--primary);
}
.notification-actions button{
  width:31px!important;
  height:31px!important;
  border-radius:5px!important;
  background:#fff!important;
}
.notification-actions button:hover{
  border-color:#fecaca!important;
  background:#fff5f5!important;
  color:#c43232!important;
}
.review-list article[id]{
  scroll-margin-top:110px;
}
.review-list article[id]:target{
  border-color:#9da9ef;
  box-shadow:0 0 0 3px rgba(64,86,214,.08);
}

@media(max-width:700px){
  .notification-card,
  .notification-card.has-book{
    grid-template-columns:48px minmax(0,1fr) auto!important;
    gap:10px!important;
    padding:12px 11px 12px 14px!important;
  }
  .notification-book-cover{
    width:48px!important;
    height:68px!important;
  }
  .notification-main-icon{
    width:40px!important;
    height:40px!important;
  }
  .notification-card-top{
    display:block!important;
  }
  .notification-card time{
    display:block;
    margin-top:4px;
  }
  .notification-card-side{
    min-width:66px;
    padding-left:9px;
  }
  .notification-card-side.price-side{
    min-width:92px;
  }
  .notification-card-side.price-side strong{
    font-size:18px;
  }
  .notification-card-side.price-side small{
    display:none;
  }
  .notification-card-side.points-side strong{
    font-size:20px;
  }
  .notification-price-strip{
    gap:10px!important;
  }
  .notification-price-strip strong{
    font-size:11px!important;
  }
  .notification-actions{
    position:absolute;
    right:8px;
    bottom:8px;
  }
  .notification-card:not(.is-clickable) .notification-actions{
    position:relative;
    right:auto;
    bottom:auto;
  }
}


/* Bildirim kartının tamamı gerçek link */
.notification-card-wrap{
  position:relative;
}
.notification-card-wrap>.notification-card{
  width:100%;
}
.notification-card-wrap>a.notification-card{
  color:inherit;
  text-decoration:none;
}
.notification-card-wrap>a.notification-card:hover{
  color:inherit;
}
.notification-card-wrap>.notification-actions{
  position:absolute;
  right:10px;
  bottom:10px;
  z-index:5;
}
.notification-card-link{
  display:none!important;
}


/* Bildirim tarihi: sağ üst, daha okunaklı */
.notification-card{
  align-items:start!important;
}
.notification-card-top{
  position:relative;
  min-height:24px;
  padding-right:118px;
}
.notification-card time{
  position:absolute;
  top:0;
  right:0;
  margin:0!important;
  color:#667085!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1.3!important;
}
@media(max-width:700px){
  .notification-card-top{
    padding-right:0;
  }
  .notification-card time{
    position:static;
    margin-top:5px!important;
    color:#667085!important;
    font-size:11px!important;
    font-weight:600!important;
  }
}


/* Account overview redesign */
.account-overview{
  min-width:0;
}
.account-overview-hero{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:8px;
  background:linear-gradient(135deg,#fff 0%,#fafbff 100%);
}
.account-overview-avatar{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:24px;
  font-weight:800;
}
.account-overview-welcome>span{
  display:block;
  margin-bottom:3px;
  color:#98a2b3;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.account-overview-welcome h1{
  margin:0!important;
  font-size:25px!important;
  line-height:1.2;
  letter-spacing:-.45px;
}
.account-overview-welcome p{
  margin:5px 0 0!important;
  color:#667085;
  font-size:13px;
  line-height:1.5;
}
.account-overview-edit{
  min-height:40px;
  white-space:nowrap;
}

.account-overview-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:24px 0 10px;
}
.account-overview-section-head h2{
  margin:0;
  font-size:16px;
  line-height:1.3;
}
.account-overview-section-head p{
  margin:3px 0 0;
  color:#98a2b3;
  font-size:11px;
}
.account-details-head{
  margin-top:22px;
}

.account-overview-stats{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}


.account-stat-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f3f5fb;
  color:var(--primary);
  font-size:15px;
}


.account-stat-arrow{
  color:#c1c7d0;
  font-size:10px;
  justify-self:end;
}


.account-overview-summary{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  padding:0!important;
  overflow:hidden;
  border-radius:8px!important;
}
.account-summary-item{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:74px;
  padding:14px 16px!important;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.account-summary-item:nth-child(2n){
  border-right:0;
}
.account-summary-item:nth-last-child(-n+2){
  border-bottom:0;
}
.account-summary-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#f5f7fa;
  color:#667085;
  font-size:13px;
}
.account-summary-item small{
  display:block;
  margin-bottom:3px;
  color:#98a2b3;
  font-size:9px;
  font-weight:600;
}
.account-summary-item strong{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#101828;
  font-size:13px;
  line-height:1.4;
}

@media(max-width:1100px){
  .account-overview-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  .account-overview-hero{
    grid-template-columns:52px minmax(0,1fr);
    gap:12px;
    padding:14px;
  }
  .account-overview-avatar{
    width:52px;
    height:52px;
    border-radius:11px;
    font-size:20px;
  }
  .account-overview-welcome h1{
    font-size:21px!important;
  }
  .account-overview-welcome p{
    font-size:12px;
  }
  .account-overview-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }

  .account-stat-icon{
    width:34px;
    height:34px;
  }
  .account-stat-arrow{
    display:none;
  }


  .account-overview-summary{
    grid-template-columns:1fr!important;
  }
  .account-summary-item{
    border-right:0!important;
    border-bottom:1px solid var(--line)!important;
  }
  .account-summary-item:last-child{
    border-bottom:0!important;
  }
}


/* Account overview v2: flatter, cleaner, 5px radius */
.account-overview-hero,
.account-stat-card,
.account-overview-summary,
.account-summary-item,
.account-overview-avatar,
.account-stat-icon,
.account-summary-icon,
.account-overview-edit{
  border-radius:5px!important;
}

.account-overview-hero{
  grid-template-columns:56px minmax(0,1fr) auto!important;
  gap:14px!important;
  padding:16px 18px!important;
  border:1px solid #e4e7ec!important;
  background:#fff!important;
  box-shadow:none!important;
}
.account-overview-avatar{
  width:56px!important;
  height:56px!important;
  background:#eef2ff!important;
  color:#4056d6!important;
  font-size:20px!important;
}
.account-overview-welcome>span{
  margin-bottom:4px!important;
  color:#98a2b3!important;
  font-size:9px!important;
  letter-spacing:.08em!important;
}
.account-overview-welcome h1{
  font-size:24px!important;
  letter-spacing:-.55px!important;
}
.account-overview-welcome p{
  margin-top:4px!important;
  max-width:680px;
  color:#667085!important;
  font-size:12px!important;
}
.account-overview-edit{
  min-height:38px!important;
  padding:8px 11px!important;
  border:1px solid #e4e7ec!important;
  background:#fff!important;
  box-shadow:none!important;
}
.account-overview-edit:hover{
  border-color:#cfd5df!important;
  background:#f8fafc!important;
}

.account-overview-section-head{
  margin:22px 0 9px!important;
}
.account-overview-section-head h2{
  font-size:15px!important;
  letter-spacing:-.15px;
}
.account-overview-section-head p{
  margin-top:2px!important;
  font-size:10px!important;
}

.account-overview-stats{
  gap:8px!important;
}


.account-stat-icon{
  width:34px!important;
  height:34px!important;
  background:#f7f8fb!important;
  color:#667085!important;
  font-size:13px!important;
}


.account-stat-arrow{
  color:#c3c8d0!important;
  font-size:9px!important;
}

.account-overview-summary{
  border:1px solid #e4e7ec!important;
  background:#fff!important;
  box-shadow:none!important;
}
.account-summary-item{
  min-height:68px!important;
  grid-template-columns:32px minmax(0,1fr)!important;
  gap:10px!important;
  padding:12px 14px!important;
  background:#fff!important;
}
.account-summary-icon{
  width:32px!important;
  height:32px!important;
  background:#f7f8fb!important;
  color:#667085!important;
  font-size:12px!important;
}
.account-summary-item small{
  color:#98a2b3!important;
  font-size:9px!important;
}
.account-summary-item strong{
  font-size:12px!important;
}

@media(max-width:700px){
  .account-overview-hero{
    grid-template-columns:48px minmax(0,1fr)!important;
    padding:13px!important;
  }
  .account-overview-avatar{
    width:48px!important;
    height:48px!important;
    font-size:18px!important;
  }
  .account-overview-welcome h1{
    font-size:20px!important;
  }
  .account-overview-edit{
    grid-column:1/-1;
    width:100%;
  }

}


/* Account dashboard v3 */
.account-dashboard{
  display:grid;
  gap:28px;
}
.account-dashboard *{
  box-sizing:border-box;
}
.account-dashboard-hero{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  padding:22px 24px;
  border:1px solid #e4e7ec;
  border-radius:5px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.035);
}
.account-dashboard-avatar{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#4056d6;
  color:#fff;
  font-size:28px;
  font-weight:800;
}
.account-dashboard-kicker{
  display:block;
  margin-bottom:5px;
  color:#667085;
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.account-dashboard-intro h1{
  margin:0!important;
  color:#101828;
  font-size:30px!important;
  line-height:1.15;
  letter-spacing:-.7px;
}
.account-dashboard-intro p{
  margin:7px 0 0!important;
  color:#667085;
  font-size:14px!important;
  line-height:1.55;
}
.account-dashboard-edit{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 14px;
  border:1px solid #d0d5dd;
  border-radius:5px;
  background:#fff;
  color:#344054;
  font-size:14px;
  font-weight:600;
  transition:.15s ease;
}
.account-dashboard-edit:hover{
  border-color:#4056d6;
  color:#4056d6;
  background:#f8f9ff;
}

.account-dashboard-section{
  display:grid;
  gap:12px;
}
.account-dashboard-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}
.account-dashboard-section-head>div>span{
  display:block;
  margin-bottom:3px;
  color:#98a2b3;
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.account-dashboard-section-head h2{
  margin:0;
  color:#101828;
  font-size:20px;
  line-height:1.25;
}
.account-dashboard-section-head>a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#4056d6;
  font-size:14px;
  font-weight:600;
}

.account-dashboard-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.account-dashboard-stat{
  position:relative;
  min-width:0;
  min-height:150px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:18px;
  border:1px solid #e4e7ec;
  border-radius:5px;
  background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.account-dashboard-stat:hover{
  transform:translateY(-2px);
  border-color:#c7d0f5;
  box-shadow:0 10px 24px rgba(64,86,214,.08);
}
.account-dashboard-stat-icon{
  width:42px;
  height:42px;
  border-radius:5px;
  background:#f1f3ff;
  color:#4056d6;
  font-size:16px;
}
.account-dashboard-stat-copy{
  margin-top:18px;
}
.account-dashboard-stat-copy strong{
  display:block;
  color:#101828;
  font-size:28px;
  line-height:1;
  letter-spacing:-.7px;
}
.account-dashboard-stat-copy span{
  display:block;
  margin-top:7px;
  color:#344054;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}
.account-dashboard-stat-copy small{
  display:block;
  margin-top:4px;
  color:#98a2b3;
  font-size:14px;
  line-height:1.4;
}
.account-dashboard-stat-arrow{
  position:absolute;
  top:18px;
  right:18px;
  color:#b8c0cc;
  font-size:14px;
  transition:.15s ease;
}
.account-dashboard-stat:hover .account-dashboard-stat-arrow{
  color:#4056d6;
  transform:translateX(2px);
}

.account-dashboard-profile{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border:1px solid #e4e7ec;
  border-radius:5px;
  overflow:hidden;
  background:#fff;
}
.account-dashboard-profile-item{
  min-width:0;
  min-height:98px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:18px 20px;
  border-right:1px solid #e4e7ec;
  border-bottom:1px solid #e4e7ec;
}
.account-dashboard-profile-item:nth-child(2n){
  border-right:0;
}
.account-dashboard-profile-item:nth-last-child(-n+2){
  border-bottom:0;
}
.account-dashboard-profile-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#f8f9fb;
  color:#667085;
  font-size:16px;
}
.account-dashboard-profile-item div>span{
  display:block;
  margin-bottom:5px;
  color:#667085;
  font-size:14px;
  font-weight:500;
}
.account-dashboard-profile-item strong{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#101828;
  font-size:15px;
  line-height:1.4;
}

@media(max-width:1150px){
  .account-dashboard-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:700px){
  .account-dashboard{
    gap:22px;
  }
  .account-dashboard-hero{
    grid-template-columns:56px minmax(0,1fr);
    gap:14px;
    padding:16px;
  }
  .account-dashboard-avatar{
    width:56px;
    height:56px;
    font-size:22px;
  }
  .account-dashboard-intro h1{
    font-size:24px!important;
  }
  .account-dashboard-intro p{
    font-size:14px!important;
  }
  .account-dashboard-edit{
    grid-column:1/-1;
    width:100%;
    justify-content:center;
  }
  .account-dashboard-stats{
    grid-template-columns:1fr;
  }
  .account-dashboard-stat{
    min-height:124px;
  }
  .account-dashboard-profile{
    grid-template-columns:1fr;
  }
  .account-dashboard-profile-item{
    border-right:0!important;
    border-bottom:1px solid #e4e7ec!important;
  }
  .account-dashboard-profile-item:last-child{
    border-bottom:0!important;
  }
}


/* Account dashboard responsive card refinements */
.account-dashboard-stat{
  min-height:118px!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 18px!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  gap:10px 12px!important;
}
.account-dashboard-stat-icon{
  grid-column:1;
  grid-row:1;
  width:44px!important;
  height:44px!important;
}
.account-dashboard-stat-copy{
  grid-column:2;
  grid-row:1 / span 2;
  margin:0!important;
  min-width:0;
}
.account-dashboard-stat-copy strong{
  display:inline-block!important;
  margin:0 8px 0 0!important;
  vertical-align:middle;
  font-size:26px!important;
}
.account-dashboard-stat-copy span{
  display:inline!important;
  vertical-align:middle;
  margin:0!important;
  font-size:14px!important;
}
.account-dashboard-stat-copy small{
  display:block!important;
  margin-top:6px!important;
  font-size:14px!important;
}
.account-dashboard-stat-arrow{
  position:static!important;
  grid-column:3;
  grid-row:1;
  align-self:center;
  justify-self:end;
}

@media(max-width:1150px){
  .account-dashboard-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:700px){
  .account-dashboard-stat{
    min-height:92px!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    gap:8px!important;
    padding:11px!important;
  }
  .account-dashboard-stat-icon{
    width:34px!important;
    height:34px!important;
    font-size:13px!important;
  }
  .account-dashboard-stat-copy{
    grid-column:2;
    grid-row:1;
  }
  .account-dashboard-stat-copy strong{
    font-size:20px!important;
    margin-right:5px!important;
  }
  .account-dashboard-stat-copy span{
    font-size:12px!important;
    line-height:1.25!important;
  }
  .account-dashboard-stat-copy small{
    display:none!important;
  }
  .account-dashboard-stat-arrow{
    display:none!important;
  }
}


/* Account dashboard stats v4 */
.account-dashboard-stats{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
.account-dashboard-stat{
  min-height:116px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:12px!important;
  padding:16px!important;
  border:1px solid #e4e7ec!important;
  border-radius:5px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.account-dashboard-stat:hover{
  transform:none!important;
  border-color:#cfd5df!important;
  background:#fafbfc!important;
  box-shadow:none!important;
}
.account-dashboard-stat-top{
  display:flex;
  align-items:center;
  gap:12px;
}
.account-dashboard-stat-top strong{
  color:#101828;
  font-size:28px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.5px;
}
.account-dashboard-stat-icon{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:5px!important;
  background:#f1f3ff!important;
  color:#4056d6!important;
  font-size:16px!important;
}
.account-dashboard-stat-label{
  display:block;
  color:#344054;
  font-size:14px!important;
  line-height:1.35;
  font-weight:700;
}

@media(max-width:1100px){
  .account-dashboard-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:700px){
  .account-dashboard-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .account-dashboard-stat{
    min-height:88px!important;
    gap:8px!important;
    padding:11px!important;
  }
  .account-dashboard-stat-top{
    gap:8px;
  }
  .account-dashboard-stat-top strong{
    font-size:21px!important;
  }
  .account-dashboard-stat-icon{
    width:34px!important;
    height:34px!important;
    flex-basis:34px!important;
    font-size:13px!important;
  }
  .account-dashboard-stat-label{
    font-size:14px!important;
    line-height:1.25;
  }
}

@media(max-width:430px){
  .account-dashboard-stats{
    grid-template-columns:1fr!important;
  }
}


/* Notification preferences redesign */
.notification-settings-page{
  display:grid;
  gap:18px;
}
.notification-settings-form{
  display:grid;
  gap:14px;
}
.notification-settings-group{
  overflow:hidden;
  border:1px solid #e4e7ec;
  border-radius:5px;
  background:#fff;
}
.notification-settings-group-head{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:center;
  gap:13px;
  padding:16px 18px;
  border-bottom:1px solid #eef1f5;
  background:#fbfcfd;
}
.notification-settings-group-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#eef2ff;
  color:#4056d6;
  font-size:16px;
}
.notification-settings-group-icon.stock{
  background:#ecfdf3;
  color:#0f8f64;
}
.notification-settings-group-icon.general{
  background:#fff7ed;
  color:#c96a09;
}
.notification-settings-group-head h2{
  margin:0;
  color:#101828;
  font-size:17px;
  line-height:1.3;
}
.notification-settings-group-head p{
  margin:4px 0 0;
  color:#667085;
  font-size:14px;
  line-height:1.45;
}
.notification-settings-options{
  display:grid;
}
.notification-setting-row{
  position:relative;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:78px;
  padding:14px 18px;
  border-bottom:1px solid #eef1f5;
  cursor:pointer;
  transition:background .15s ease;
}
.notification-setting-row:last-child{
  border-bottom:0;
}
.notification-setting-row:hover{
  background:#fafbfc;
}
.notification-setting-channel{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#f5f7fa;
  color:#667085;
  font-size:14px;
}
.notification-setting-copy{
  min-width:0;
}
.notification-setting-copy strong{
  display:block;
  color:#101828;
  font-size:14px;
  line-height:1.35;
}
.notification-setting-copy small{
  display:block;
  margin-top:4px;
  color:#667085;
  font-size:14px;
  line-height:1.45;
}
.notification-toggle-input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.notification-toggle{
  position:relative;
  width:44px;
  height:24px;
  flex:0 0 44px;
  border-radius:999px;
  background:#d0d5dd;
  transition:background .18s ease,box-shadow .18s ease;
}
.notification-toggle::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(16,24,40,.18);
  transition:transform .18s ease;
}
.notification-toggle-input:checked + .notification-toggle{
  background:#4056d6;
}
.notification-toggle-input:checked + .notification-toggle::after{
  transform:translateX(20px);
}
.notification-toggle-input:focus-visible + .notification-toggle{
  box-shadow:0 0 0 3px rgba(64,86,214,.16);
}
.notification-settings-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid #e4e7ec;
  border-radius:5px;
  background:#fff;
}
.notification-settings-note{
  display:flex;
  align-items:flex-start;
  gap:9px;
  color:#667085;
  font-size:14px;
  line-height:1.45;
}
.notification-settings-note i{
  margin-top:2px;
  color:#98a2b3;
}
.notification-settings-save{
  min-height:42px;
  flex:0 0 auto;
  border-radius:5px!important;
  font-size:14px!important;
}

@media(max-width:700px){
  .notification-settings-group-head{
    grid-template-columns:38px minmax(0,1fr);
    gap:10px;
    padding:13px;
  }
  .notification-settings-group-icon{
    width:38px;
    height:38px;
    font-size:14px;
  }
  .notification-settings-group-head h2{
    font-size:15px;
  }
  .notification-setting-row{
    grid-template-columns:32px minmax(0,1fr) auto;
    gap:10px;
    min-height:72px;
    padding:12px 13px;
  }
  .notification-setting-channel{
    width:32px;
    height:32px;
    font-size:13px;
  }
  .notification-setting-copy strong,
  .notification-setting-copy small,
  .notification-settings-group-head p,
  .notification-settings-note{
    font-size:14px!important;
  }
  .notification-settings-actions{
    align-items:stretch;
    flex-direction:column;
    padding:13px;
  }
  .notification-settings-save{
    width:100%;
  }
}


/* Account info redesign */
.account-info-page{
  display:grid;
  gap:18px;
}
.account-info-form{
  display:grid;
  gap:14px;
}
.account-info-card{
  overflow:hidden;
  border:1px solid #e4e7ec;
  border-radius:5px;
  background:#fff;
}
.account-info-card-head{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:center;
  padding:16px 18px;
  border-bottom:1px solid #eef1f5;
  background:#fbfcfd;
}
.account-info-card-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#eef2ff;
  font-size:16px;
}
.account-info-card-icon.delivery{
  background:#ecfdf3;
  color:#0f8f64;
}
.account-info-card-head h2{
  margin:0;
  color:#101828;
  font-size:17px;
  line-height:1.3;
}
.account-info-card-head p{
  margin:4px 0 0;
  color:#667085;
  line-height:1.45;
}
.account-info-fields{
  display:grid;
  gap:16px;
  padding:18px;
}
.account-info-fields-two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.account-info-field{
  min-width:0;
  display:grid;
  font-size:14px;
  font-weight:600;
}
.account-info-field>span{
  font-size:14px;
  line-height:1.3;
}
.account-info-field input,
.account-info-field textarea{
  width:100%;
  border:1px solid #d0d5dd;
  border-radius:5px;
  background:#fff;
  color:#101828;
  font:500 14px/1.4 "Poppins",sans-serif;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.account-info-field input{
  height:46px;
  padding:0 12px;
}
.account-info-field textarea{
  min-height:112px;
  padding:11px 12px;
  resize:vertical;
}
.account-info-field input:hover,
.account-info-field textarea:hover{
  border-color:#b8c0cc;
}
.account-info-field input:focus,
.account-info-field textarea:focus{
  border-color:#4056d6;
  box-shadow:0 0 0 3px rgba(64,86,214,.1);
}
.account-info-field small{
  display:flex;
  align-items:flex-start;
  gap:6px;
  font-size:14px;
  font-weight:400;
  line-height:1.4;
}
.account-info-field small i{
  margin-top:2px;
  color:#98a2b3;
  font-size:12px;
}
.account-info-field.full{
  grid-column:1/-1;
}
.account-info-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid #e4e7ec;
  border-radius:5px;
  background:#fff;
}
.account-info-actions-note{
  display:flex;
  align-items:flex-start;
  gap:9px;
  color:#667085;
  font-size:14px;
  line-height:1.45;
}
.account-info-actions-note i{
  margin-top:2px;
  color:#98a2b3;
}
.account-info-save{
  min-height:42px;
  flex:0 0 auto;
  border-radius:5px!important;
  font-size:14px!important;
}

@media(max-width:800px){
  .account-info-fields-two{
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  .account-info-card-head{
    grid-template-columns:38px minmax(0,1fr);
    gap:10px;
    padding:13px;
  }
  .account-info-card-icon{
    width:38px;
    height:38px;
    font-size:14px;
  }
  .account-info-card-head h2{
    font-size:15px;
  }
  .account-info-card-head p,
  .account-info-field,
  .account-info-field>span,
  .account-info-field input,
  .account-info-field textarea,
  .account-info-field small,
  .account-info-actions-note{
    font-size:14px!important;
  }
  .account-info-fields{
    gap:14px;
    padding:13px;
  }
  .account-info-actions{
    align-items:stretch;
    flex-direction:column;
    padding:13px;
  }
  .account-info-save{
    width:100%;
  }
}


/* Flash mesajı sonrası hesap sayfalarında gereksiz dikey boşluğu azalt */
.site-flashes{
  margin:0;
  padding:12px 0 0;
}
.site-flashes .alert{
  margin:0!important;
}
body:has(.site-flashes) .account-layout{
  padding-top:18px!important;
}
@media(max-width:820px){
  .site-flashes{
    padding-top:8px;
  }
  body:has(.site-flashes) .account-layout{
    padding-top:10px!important;
  }
}


/* Account information page */
.account-info-page{gap:22px}
.account-info-page .account-page-head{margin-bottom:0}
.account-info-summary{display:flex;align-items:center;gap:14px;padding:17px 20px;border:1px solid #e2e7f0;border-radius:10px;background:linear-gradient(110deg,#fff 0%,#f7f9ff 100%);box-shadow:0 5px 18px rgba(15,23,42,.035)}
.account-info-summary-avatar{display:grid;flex:0 0 auto;place-items:center;width:48px;height:48px;border-radius:50%;background:#eaf0ff;color:#4056d6;font-size:19px}
.account-info-summary-user{display:grid;min-width:0;gap:2px}
.account-info-summary-user strong{overflow:hidden;color:#101828;font-size:15px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.account-info-summary-user span{overflow:hidden;color:#667085;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.account-info-summary-meta{display:flex;gap:26px;margin:0 0 0 auto;padding:0}
.account-info-summary-meta div{display:grid;gap:2px;min-width:118px}
.account-info-summary-meta dt{color:#98a2b3;font-size:12px;font-weight:600}
.account-info-summary-meta dd{margin:0;color:#344054;font-size:14px;font-weight:650}
.account-info-security-link{min-height:38px;margin-left:2px;border-radius:7px!important;white-space:nowrap}
.account-info-form{gap:18px}
.account-info-card{border-color:#e2e7f0;border-radius:10px;box-shadow:0 5px 18px rgba(15,23,42,.035)}
.account-info-card-head{grid-template-columns:48px minmax(0,1fr);gap:13px;padding:20px 22px;border-bottom-color:#edf0f5;background:#fff}
.account-info-card-icon{width:48px;height:48px;border-radius:50%;background:#eaf0ff;color:#4056d6;font-size:18px}
.account-info-card-icon.delivery{background:#e9f9f1;color:#16835e}
.account-info-card-head h2{font-size:18px;letter-spacing:-.3px}
.account-info-card-head p{font-size:14px}
.account-info-fields{gap:18px;padding:22px}
.account-info-field{gap:7px;color:#344054;font-size:13px}
.account-info-field>span{font-size:13px;font-weight:700}
.account-info-field input,.account-info-field textarea{border-color:#d9e0ea;border-radius:7px;background:#fff;color:#101828;font-size:14px}
.account-info-field input{height:48px;padding:0 13px}
.account-info-field textarea{min-height:118px;padding:12px 13px}
.account-info-field input:hover,.account-info-field textarea:hover{border-color:#aebbd0}
.account-info-field input:focus,.account-info-field textarea:focus{border-color:#5268dd;box-shadow:0 0 0 4px rgba(64,86,214,.1)}
.account-info-field small{color:#667085;font-size:12px;line-height:1.45}
.account-info-actions{gap:18px;padding:16px 18px;border-color:#dce4ff;border-radius:10px;background:#f5f7ff}
.account-info-actions-note{max-width:590px;color:#52617a;font-size:13px}
.account-info-actions-note i{color:#5268dd}
.account-info-save{min-height:46px;padding-inline:19px}
@media(max-width:800px){.account-info-summary{flex-wrap:wrap}.account-info-summary-meta{width:100%;margin:3px 0 0;padding-top:13px;border-top:1px solid #e5eaf3}.account-info-summary-meta div{flex:1;min-width:0}.account-info-security-link{margin-left:0}.account-info-fields-two{grid-template-columns:1fr}}
@media(max-width:700px){.account-info-page{gap:18px}.account-info-summary{gap:11px;padding:14px}.account-info-summary-avatar{width:42px;height:42px;font-size:16px}.account-info-summary-user strong,.account-info-summary-user span{font-size:14px}.account-info-summary-meta{gap:14px}.account-info-summary-meta dt{font-size:11px}.account-info-summary-meta dd{font-size:13px}.account-info-security-link{width:100%}.account-info-card-head{grid-template-columns:42px minmax(0,1fr);gap:11px;padding:16px}.account-info-card-icon{width:42px;height:42px;font-size:16px}.account-info-card-head h2{font-size:16px}.account-info-card-head p{font-size:13px!important}.account-info-fields{gap:15px;padding:16px}.account-info-field>span,.account-info-field input,.account-info-field textarea{font-size:14px!important}.account-info-field small{font-size:12px!important}.account-info-actions{gap:13px;padding:14px}.account-info-actions-note{font-size:12px!important}}


/* Sipariş bildiriminden ilgili siparişe doğrudan odaklan */
.account-reward-order{
  scroll-margin-top:120px;
}
.account-reward-order:target{
  border-color:#9da9ef!important;
  box-shadow:0 0 0 3px rgba(64,86,214,.08)!important;
}


/* Kitap detay hızlı aksiyonlar: Favori + Fiyat + Stok + Paylaş */
.account-subsection-head{
  margin:24px 0 10px!important;
}
.account-subsection-head h2{
  margin:0!important;
  font-size:20px!important;
}
.account-subsection-head p{
  margin:4px 0 0!important;
  font-size:14px!important;
  color:#667085!important;
}


/* Blog detail floating table of contents */
.blog-detail-grid{
  grid-template-columns:minmax(0,1fr) 260px!important;
}
.blog-toc-float{
  position:fixed;
  z-index:1150;
  top:42vh;
  right:0;
  left:auto;
  display:flex;
  align-items:flex-start;
  pointer-events:none;
}
.blog-toc-float[data-side="left"]{
  left:0;
  right:auto;
}
.blog-toc-float-toggle{
  width:48px;
  height:48px;
  padding:0;
  border:1px solid #d9e0ea;
  border-right:0;
  border-radius:14px 0 0 14px;
  background:rgba(255,255,255,.96);
  color:#344054;
  box-shadow:0 10px 28px rgba(16,24,40,.14);
  display:grid;
  place-items:center;
  font-size:17px;
  cursor:grab;
  touch-action:none;
  pointer-events:auto;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.blog-toc-float[data-side="left"] .blog-toc-float-toggle{
  border-right:1px solid #d9e0ea;
  border-left:0;
  border-radius:0 14px 14px 0;
}
.blog-toc-float-toggle:hover,
.blog-toc-float.is-open .blog-toc-float-toggle{
  background:#fff;
  color:var(--primary);
  box-shadow:0 14px 34px rgba(16,24,40,.18);
}
.blog-toc-float.is-dragging .blog-toc-float-toggle{
  cursor:grabbing;
  transform:scale(1.04);
}
.blog-toc-float-panel{
  position:absolute!important;
  width:min(330px,calc(100vw - 76px));
  max-height:min(520px,calc(100vh - 32px))!important;
  overflow:auto;
  margin:0!important;
  border:1px solid #e2e7ef;
  border-radius:12px;
  background:#fff;
  box-shadow:0 20px 55px rgba(16,24,40,.18)!important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(8px) scale(.98);
  transform-origin:right top;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}
.blog-toc-float[data-side="right"] .blog-toc-float-panel{
  right:58px;
  left:auto;
}
.blog-toc-float[data-side="left"] .blog-toc-float-panel{
  left:58px;
  right:auto;
  transform:translateX(-8px) scale(.98);
  transform-origin:left top;
}
.blog-toc-float[data-vertical="top"] .blog-toc-float-panel{
  top:0;
  bottom:auto;
}
.blog-toc-float[data-vertical="bottom"] .blog-toc-float-panel{
  top:auto;
  bottom:0;
  transform-origin:right bottom;
}
.blog-toc-float[data-side="left"][data-vertical="bottom"] .blog-toc-float-panel{
  transform-origin:left bottom;
}
.blog-toc-float.is-open .blog-toc-float-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(0) scale(1);
}
.blog-toc-float .blog-side-card-head{
  position:sticky;
  top:0;
  z-index:2;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 10px 0 14px;
  background:#fafbfc;
  border-bottom:1px solid #e6eaf0;
}
.blog-toc-float-close{
  width:30px;
  height:30px;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#667085;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.blog-toc-float-close:hover{
  background:#eef2f6;
  color:#101828;
}
.blog-toc-float .blog-side-links a{
  min-height:42px;
}
@media(max-width:1180px){
  .blog-detail-grid{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:820px){
  .blog-toc-float-toggle{
    width:44px;
    height:44px;
    border-radius:12px 0 0 12px;
    font-size:16px;
  }
  .blog-toc-float[data-side="left"] .blog-toc-float-toggle{
    border-radius:0 12px 12px 0;
  }
  .blog-toc-float[data-side="right"] .blog-toc-float-panel{
    right:52px;
  }
  .blog-toc-float[data-side="left"] .blog-toc-float-panel{
    left:52px;
  }
}


/* Blog TOC: desktop keeps the original sidebar, floating control is mobile-only */
.blog-toc-float{
  display:none!important;
  right:auto!important;
}
.blog-detail-grid{
  grid-template-columns:250px minmax(0,1fr) 260px!important;
}
@media(max-width:1180px){
  .blog-detail-grid{
    grid-template-columns:220px minmax(0,1fr)!important;
  }
  .blog-detail-right{
    display:none!important;
  }
}
@media(max-width:820px){
  .blog-detail-grid{
    grid-template-columns:1fr!important;
  }
  .blog-detail-left{
    display:none!important;
  }
  .blog-detail-right{
    display:grid!important;
  }
  .blog-toc-float{
    display:flex!important;
    left:0;
    right:auto!important;
    transition:left .22s cubic-bezier(.2,.8,.2,1),top .18s ease;
    will-change:left,top;
  }
  .blog-toc-float.is-dragging{
    transition:none!important;
  }
  .blog-toc-float.is-docking{
    transition:left .22s cubic-bezier(.2,.8,.2,1),top .18s ease!important;
  }
}


/* Prevent mobile TOC from flashing at its default position before saved position is restored */
@media(max-width:820px){
  .blog-toc-float{
    visibility:hidden;
  }
  .blog-toc-float.is-ready{
    visibility:visible;
  }
}


/* Notifications: centered points/date column + dedicated far-right action arrow */
.notification-card.is-clickable{
  grid-template-columns:54px minmax(0,1fr) auto 42px!important;
  padding-right:0!important;
}
.notification-card.has-book.is-clickable{
  grid-template-columns:68px minmax(0,1fr) auto 42px!important;
}
.notification-card-side.points-side{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  min-width:122px;
}
.notification-card-side.points-side time{
  display:block;
  margin:0 0 7px!important;
  white-space:nowrap;
  color:#667085!important;
  font-size:10px!important;
  font-weight:600;
  line-height:1.2;
}
.notification-card-side.arrow-side{
  grid-column:4;
  align-self:stretch;
  width:42px;
  min-width:42px;
  margin:-15px -1px -15px 0;
  padding:0!important;
  border-left:1px solid #eef1f5;
  background:#f8fafc;
  display:grid;
  place-items:center;
  color:#98a2b3;
  font-size:13px;
  transition:background .16s ease,color .16s ease,border-color .16s ease;
}
.notification-card.is-clickable:hover .arrow-side{
  color:#fff;
}
.notification-card.notification-type-price_alert.is-clickable:hover .arrow-side{
  background:#4056d6;
  border-color:#4056d6;
}
.notification-card.notification-type-stock_alert.is-clickable:hover .arrow-side{
  background:#10936b;
  border-color:#10936b;
}
.notification-card.notification-type-reward_order.is-clickable:hover .arrow-side{
  background:#d97706;
  border-color:#d97706;
}
.notification-card.notification-type-contribution.is-clickable:hover .arrow-side{
  background:#0f9f6e;
  border-color:#0f9f6e;
}
.notification-card.notification-type-review.is-clickable:hover .arrow-side{
  background:#7c5ce0;
  border-color:#7c5ce0;
}
.notification-card.notification-type-points.is-clickable:hover .arrow-side{
  background:#c58a12;
  border-color:#c58a12;
}
@media(max-width:700px){
  .notification-card.is-clickable,
  .notification-card.has-book.is-clickable{
    grid-template-columns:48px minmax(0,1fr) auto 34px!important;
    padding-right:0!important;
  }
  .notification-card-side.points-side{
    min-width:92px;
  }
  .notification-card-side.points-side time{
    font-size:9px!important;
  }
  .notification-card-side.arrow-side{
    width:34px;
    min-width:34px;
    margin:-12px -1px -12px 0;
  }
}


/* Notification side columns: consistent date placement and softer arrow hover */
.notification-card-side.price-side{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
}
.notification-card-side.price-side time{
  display:block;
  margin:0 0 6px!important;
  white-space:nowrap;
  color:#667085!important;
  font-size:10px!important;
  font-weight:600;
  line-height:1.2;
}
.notification-card-side.price-side>span{
  margin-bottom:2px;
}
.notification-card-side.points-side span{
  margin-top:1px!important;
  line-height:1.05;
}
.notification-card-side.points-side strong{
  line-height:.95!important;
}
.notification-card-side.arrow-side{
  transition:background-color .24s ease,color .24s ease,border-color .24s ease!important;
}


/* Notification side tweaks */
.notification-card.is-clickable{
  grid-template-columns:54px minmax(0,1fr) auto 32px!important;
}
.notification-card.has-book.is-clickable{
  grid-template-columns:68px minmax(0,1fr) auto 32px!important;
}
.notification-card-side.arrow-side{
  width:32px;
  min-width:32px;
  font-size:10px;
}
.notification-card-side.points-side strong{
  margin-top:5px;
}
@media(max-width:700px){
  .notification-card.is-clickable,
  .notification-card.has-book.is-clickable{
    grid-template-columns:48px minmax(0,1fr) auto 28px!important;
  }
  .notification-card-side.arrow-side{
    width:28px;
    min-width:28px;
    font-size:9px;
  }
}



/* Account notifications count */
.account-nav-count{
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#eef1ff;
  color:var(--primary);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  line-height:1;
  font-weight:700;
}
.account-nav a.active .account-nav-count{
  background:#fff;
  color:var(--primary);
}
/* Security page refresh */
.security-page{
  max-width:none;
}
.security-overview{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
  padding:16px 18px;
  border:1px solid #e5e9f0;
  border-radius:8px;
  background:#fff;
}
.security-overview-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#eef1ff;
  color:var(--primary);
  font-size:16px;
}
.security-overview-copy span,
.security-overview-copy small{
  display:block;
}
.security-overview-copy span{
  color:#98a2b3;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.security-overview-copy strong{
  display:block;
  margin-top:2px;
  color:#101828;
  font-size:14px;
}
.security-overview-copy small{
  margin-top:4px;
  color:#667085;
  font-size:11px;
}
.security-form{
  max-width:none!important;
  gap:16px!important;
}
.security-form-head{
  padding-bottom:14px;
  border-bottom:1px solid #eef1f5;
}
.security-form-head h2{
  margin:0;
  color:#101828;
  font-size:17px;
}
.security-form-head p{
  margin:4px 0 0;
  color:#667085;
  font-size:12px;
}
.security-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.security-field{
  display:grid;
  gap:6px;
}
.security-field label{
  color:#344054;
  font-size:12px;
  font-weight:600;
}
.security-password-input{
  position:relative;
}
.security-password-input input{
  padding-right:44px!important;
}
.security-password-toggle{
  position:absolute;
  top:50%;
  right:7px;
  width:30px;
  height:30px;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#98a2b3;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
  cursor:pointer;
}
.security-password-toggle:hover{
  background:#f2f4f7;
  color:#475467;
}
.security-hint{
  display:flex;
  align-items:center;
  gap:7px;
  color:#667085;
  font-size:11px;
}
.security-hint i{
  color:#98a2b3;
}
.security-form .account-form-actions{
  margin:0 -18px -18px;
  padding:14px 18px;
  border-top:1px solid #eef1f5;
  background:#fafbfc;
}
.security-form .account-form-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

/* Account logout redesign */
.account-nav .account-logout{
  min-height:44px;
  padding:9px 10px!important;
  color:#b42318;
}
.account-logout-icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:7px;
  display:grid;
  place-items:center;
  background:#fff1f0;
  color:#d92d20;
}
.account-nav .account-logout>.account-logout-icon i{
  width:auto;
  color:inherit;
}
.account-logout-arrow{
  margin-left:auto;
  width:auto!important;
  color:#cbd5e1!important;
  font-size:10px;
  transition:transform .16s ease,color .16s ease;
}
.account-nav .account-logout:hover{
  background:#fff7f6;
  color:#b42318;
}
.account-nav .account-logout:hover .account-logout-arrow{
  color:#d92d20!important;
  transform:translateX(2px);
}
@media(max-width:700px){
  .security-form-grid{
    grid-template-columns:1fr;
  }
  .security-overview{
    padding:14px;
  }
}


/* Account sidebar arrows + cleaner logout */
.account-nav a{
  position:relative;
}
.account-nav a::after{
  content:"\203A";
  margin-left:auto;
  color:#b8c1cf;
  font-size:16px;
  line-height:1;
  opacity:0;
  transform:translateX(-3px);
  transition:opacity .16s ease,transform .16s ease,color .16s ease;
}
.account-nav a:hover::after{
  opacity:1;
  transform:translateX(0);
  color:#667085;
}
.account-nav a.active:hover::after{
  color:#fff;
}
.account-nav-count{
  margin-left:auto;
}
.account-nav a:has(.account-nav-count)::after{
  margin-left:4px;
}

/* Replace previous logout treatment */
.account-nav .account-logout{
  min-height:42px;
  margin-top:8px;
  padding:11px!important;
  border-top:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
  color:#b42318!important;
}
.account-nav .account-logout>i:first-child{
  width:18px!important;
  color:#d92d20!important;
  text-align:center;
}
.account-nav .account-logout:hover{
  background:#fff6f5!important;
  color:#b42318!important;
}
.account-nav .account-logout:hover::after{
  color:#d92d20;
}
.account-logout-icon,
.account-logout-arrow{
  display:none!important;
}


/* Shared member alert component: price and stock alerts use one markup and scale. */
.member-section{min-width:0}
.member-alerts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.member-alert{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;min-width:0;padding:14px;border:1px solid #e0e5ec;border-radius:5px;background:#fff}
.member-alert--paused{opacity:.7}
.member-alert__cover{width:72px;height:106px;overflow:hidden;border-radius:4px;background:#f2f4f7;display:grid;place-items:center;color:#98a2b3}
.member-alert__cover img{width:100%;height:100%;object-fit:cover}
.member-alert__body{min-width:0;display:flex;flex-direction:column}
.member-alert__header,.member-alert__footer,.member-alert__actions,.member-alert__metrics{display:flex;align-items:center}
.member-alert__header{justify-content:space-between;gap:10px}
.member-alert__header a{min-width:0;color:#101828;font-size:14px;font-weight:700;line-height:1.4}
.member-alert__header strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.member-alert__state{flex:0 0 auto;padding:4px 7px;border-radius:4px;background:#ecfdf3;color:#067647;font-size:14px;line-height:1;font-weight:600}
.member-alert__state--paused{background:#f2f4f7;color:#667085}
.member-alert__footer{justify-content:space-between;gap:12px;margin-top:auto;padding-top:12px}
.member-alert__metric{display:grid;gap:3px;min-width:0}
.member-alert__metric small{color:#667085;font-size:14px;line-height:1.2}
.member-alert__metric strong{color:#101828;font-size:14px;line-height:1.25;white-space:nowrap}
.member-alert__metrics{min-width:0;gap:16px}
.member-alert__metrics .member-alert__metric+.member-alert__metric{padding-left:16px;border-left:1px solid #eef1f5}
.member-alert__actions{flex:0 0 auto;gap:6px}
.member-alert__actions form{margin:0}
.member-alert__actions .btn,.member-alert__delete{min-height:34px;font-size:14px}
.member-alert__delete{width:34px;padding:0;border:1px solid #e0e5ec;border-radius:4px;background:#fff;color:#667085;display:grid;place-items:center;cursor:pointer}
.member-alert__delete:hover{border-color:#fecdca;background:#fff6f5;color:#b42318}
.member-empty{grid-column:1/-1;width:100%;max-width:none;box-sizing:border-box;min-height:190px;padding:30px 18px;border:1px solid #e0e5ec;border-radius:5px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;box-shadow:none}
.member-empty i{margin-bottom:5px;color:#9aa8c0;font-size:26px}
.member-empty strong,.member-empty span{font-size:14px;line-height:1.5}
.member-empty strong{color:#111827;font-weight:700}
.member-empty span{color:#667085}
.member-create-alert{display:flex;align-items:flex-end;gap:12px;margin:0 0 14px;padding:14px;border:1px solid #e0e5ec;border-radius:5px;background:#fff}
.member-create-alert label{flex:1;display:grid;gap:6px;color:#344054;font-size:14px;font-weight:600}
.member-create-alert input{min-height:38px;border:1px solid #d0d5dd;border-radius:4px;padding:0 10px;font:inherit}
.member-create-alert .btn{min-height:38px;font-size:14px}
@media(max-width:1050px){.member-alerts{grid-template-columns:1fr}}
@media(max-width:600px){.member-alert{grid-template-columns:58px minmax(0,1fr);gap:11px;padding:11px}.member-alert__cover{width:58px;height:86px}.member-alert__footer{gap:8px;padding-top:8px}.member-alert__metrics{gap:10px}.member-alert__metrics .member-alert__metric+.member-alert__metric{padding-left:10px}.member-alert__actions .btn{padding:6px 8px}.member-empty{min-height:165px;padding:24px 14px}.member-create-alert{align-items:stretch;flex-direction:column}.member-create-alert .btn{width:100%}}


/* Guest mobile account menu */
@media(max-width:820px){
  .mobile-user-auth-dropdown{
    width:190px;
  }
  .mobile-user-auth-dropdown a{
    grid-template-columns:24px minmax(0,1fr);
  }
  .mobile-user-auth-dropdown a+a{
    border-top:1px solid #eef1f5;
  }
}


/* Blog breadcrumb: prevent long current titles from being cut on mobile */


/* Blog breadcrumb mobile: keep one-line layout, let only current title shrink */


/* Unified breadcrumbs */

@media(max-width:820px){

  /* Previous page-specific breadcrumb rules should not override the unified mobile layout. */
}


/* Breadcrumb home label: desktop text, mobile icon only */


/* Blog hero top spacing */
.blog-index .blog-hero{
  padding-top:0!important;
}
@media(max-width:720px){
  .blog-index .blog-hero{
    padding-top:0!important;
  }
}


/* Unified breadcrumb - final */

/* Footer refresh */
.site-footer{
  padding:42px 0 18px!important;
  background:#0f1726!important;
  color:#cbd5e1;
}
.footer-service-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-bottom:34px;
  overflow:hidden;
  border:1px solid #273247;
  border-radius:5px;
  background:#131d30;
}
.footer-service-row>div{
  min-width:0;
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 20px;
  border-right:1px solid #273247;
}
.footer-service-row>div:last-child{border-right:0}
.footer-service-row i{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#1c2942;
  color:#9bb0ff;
  font-size:16px;
}
.footer-service-row strong,
.footer-service-row small{display:block}
.footer-service-row strong{
  color:#fff;
  font-size:14px;
}
.footer-service-row small{
  margin-top:3px;
  color:#94a3b8;
  font-size:13px;
  line-height:1.45;
}

.footer-main{
  display:grid;
  grid-template-columns:minmax(280px,1.15fr) minmax(0,2fr);
  gap:70px;
  align-items:start;
}
.footer-about{
  max-width:460px;
}
.brand-footer{
  display:inline-flex;
  margin-bottom:14px;
}
.footer-about p{
  margin:0;
  color:#9aa8bc;
  font-size:14px;
  line-height:1.7;
}
.footer-mini-note{
  display:flex;
  gap:9px;
  margin-top:18px;
  padding:12px 13px;
  border:1px solid #273247;
  border-radius:5px;
  background:#131d30;
  color:#94a3b8;
  font-size:13px;
  line-height:1.55;
}
.footer-mini-note i{
  margin-top:3px;
  color:#91a4ff;
}

.footer-desktop-nav{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:48px;
}
.footer-desktop-nav .footer-nav-title{
  margin:0 0 14px;
  color:#fff;
  font-size:14px;
}
.footer-desktop-nav a{
  display:block;
  width:max-content;
  max-width:100%;
  margin:9px 0;
  color:#9aa8bc;
  font-size:14px;
  transition:color .16s ease,transform .16s ease;
}
.footer-desktop-nav a:hover{
  color:#fff;
  transform:translateX(2px);
}
.footer-mobile-nav{display:none}

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:34px!important;
  padding-top:17px!important;
  border-top:1px solid #273247!important;
  color:#7f8da3!important;
  font-size:13px!important;
}
.footer-bottom>div{
  display:flex;
  gap:18px;
}
.footer-bottom a{
  color:#8f9db2;
}
.footer-bottom a:hover{color:#fff}

@media(max-width:820px){
  .site-footer{
    padding:26px 0 16px!important;
  }
  .footer-service-row{
    grid-template-columns:1fr;
    margin-bottom:24px;
  }
  .footer-service-row>div{
    min-height:66px;
    padding:13px 14px;
    border-right:0;
    border-bottom:1px solid #273247;
  }
  .footer-service-row>div:last-child{border-bottom:0}
  .footer-service-row i{
    width:36px;
    height:36px;
    flex-basis:36px;
    font-size:15px;
  }

  .footer-main{
    display:block;
  }
  .footer-about{
    max-width:none;
  }
  .brand-footer{
    margin-bottom:10px;
  }
  .footer-about p{
    font-size:13px;
  }
  .footer-mini-note{
    margin-top:14px;
    padding:10px 11px;
    font-size:12px;
  }

  .footer-desktop-nav{display:none}
  .footer-mobile-nav{
    display:grid;
    margin-top:22px;
    border-top:1px solid #273247;
  }
  .footer-mobile-nav details{
    border-bottom:1px solid #273247;
  }
  .footer-mobile-nav summary{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    list-style:none;
    color:#fff;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
  }
  .footer-mobile-nav summary::-webkit-details-marker{display:none}
  .footer-mobile-nav summary::marker{display:none;content:""}
  .footer-mobile-nav summary i{
    color:#7f8da3;
    font-size:10px;
    transition:transform .18s ease;
  }
  .footer-mobile-nav details[open] summary i{
    transform:rotate(180deg);
  }
  .footer-mobile-nav details>div{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 16px;
    padding:0 0 12px;
  }
  .footer-mobile-nav a{
    padding:8px 0;
    color:#9aa8bc;
    font-size:13px;
  }

  .footer-bottom{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
    margin-top:20px!important;
    padding-top:14px!important;
  }
  .footer-bottom>div{
    width:100%;
    gap:14px;
    flex-wrap:wrap;
  }
}

@media(max-width:430px){
  .footer-mobile-nav details>div{
    grid-template-columns:1fr;
  }
}


/* ===== Home v2 ===== */
.home-page-v2{background:#fff}
.home-hero-v2{
  padding:72px 0 56px;
  background:
    radial-gradient(circle at 18% 18%,rgba(64,86,214,.08),transparent 28%),
    linear-gradient(180deg,#f8fafc 0,#fff 100%);
  border-bottom:1px solid #edf1f5;
}
.home-hero-v2 .home-hero-grid{align-items:center}
.home-hero-v2 .home-hero-copy{max-width:720px}
.home-hero-v2 .home-kicker{
  margin-bottom:18px;
  padding:6px 9px;
  border:1px solid #dde3ec;
  border-radius:5px;
  background:#fff;
  box-shadow:none;
  font-size:12px;
  letter-spacing:.02em;
}
.home-hero-v2 h1{
  margin:0;
  max-width:760px;
  font-size:54px;
  line-height:1.05;
  letter-spacing:-2.2px;
}
.home-hero-v2 h1 span{color:var(--primary)}
.home-hero-v2 p{
  max-width:650px;
  margin:18px 0 24px;
  color:#667085;
  line-height:1.75;
}
.home-search-v2{
  max-width:700px;
  height:58px;
  border:1px solid #d7dee8;
  border-radius:5px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.home-search-v2 button{border-radius:0 5px 5px 0}
.home-hero-proof{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin-top:18px;
  color:#667085;
  font-size:12px;
}
.home-hero-proof span{display:inline-flex;align-items:center;gap:6px}
.home-hero-proof i{color:#0f9f6e;font-size:11px}

.home-trustbar{
  border-bottom:1px solid #edf1f5;
  background:#fff;
}
.home-trustbar-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.home-trustbar-grid>div{
  padding:20px 22px;
  border-right:1px solid #edf1f5;
}
.home-trustbar-grid>div:last-child{border-right:0}
.home-trustbar-grid strong,
.home-trustbar-grid span{display:block}
.home-trustbar-grid strong{
  color:#101828;
  font-size:20px;
  letter-spacing:-.4px;
}
.home-trustbar-grid span{
  margin-top:2px;
  color:#98a2b3;
  font-size:12px;
}

.home-section{padding:66px 0}
.home-section-soft{
  background:#f7f9fc;
  border-top:1px solid #eef1f5;
  border-bottom:1px solid #eef1f5;
}
.home-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:24px;
}
.home-section-head.centered{
  justify-content:center;
  text-align:center;
}
.home-section-head.centered>div{max-width:720px}
.home-section-kicker{
  display:block;
  margin-bottom:6px;
  color:var(--primary);
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
}
.home-section-head h2{
  margin:0;
  color:#101828;
  font-size:30px;
  line-height:1.18;
  letter-spacing:-.9px;
}
.home-section-head p{
  margin:7px 0 0;
  color:#667085;
  font-size:14px;
  line-height:1.65;
}
.home-section-head>a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#475467;
  font-size:13px;
  font-weight:600;
}
.home-section-head>a:hover{color:var(--primary)}




.home-category-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#eef2ff;
  color:var(--primary);
}
.home-category-copy{min-width:0}
.home-category-copy strong,
.home-category-copy small{display:block}
.home-category-copy strong{
  overflow:hidden;
  color:#101828;
  font-size:14px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.home-category-copy small{
  margin-top:3px;
  color:#98a2b3;
  font-size:11px;
}


.home-deals-layout{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(280px,.65fr);
  gap:20px;
}
.home-deal-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.home-deal-card{
  overflow:hidden;
  border:1px solid #e5e9f0;
  border-radius:5px;
  background:#fff;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.home-deal-card:hover{
  transform:translateY(-3px);
  border-color:#cfd6e2;
  box-shadow:0 12px 30px rgba(15,23,42,.07);
}
.home-deal-cover{
  position:relative;
  height:220px;
  padding:14px;
  background:#f4f6f9;
}
.home-deal-cover>img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.home-deal-cover>b{
  position:absolute;
  left:10px;
  bottom:10px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 7px;
  border-radius:5px;
  background:#ecfdf3;
  color:#067647;
  font-size:10px;
}
.home-deal-copy{padding:13px}
.home-deal-copy h3{
  display:-webkit-box;
  min-height:38px;
  margin:0;
  overflow:hidden;
  color:#101828;
  font-size:14px;
  line-height:1.35;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.home-deal-copy p{
  margin:4px 0 12px;
  overflow:hidden;
  color:#98a2b3;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.home-deal-copy>div{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}
.home-deal-copy strong{font-size:15px}
.home-deal-copy span{color:#98a2b3;font-size:10px}

.home-cheapest-card{
  height:max-content;
  padding:18px;
  border:1px solid #e5e9f0;
  border-radius:5px;
  background:#fff;
}
.home-cheapest-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding-bottom:14px;
  border-bottom:1px solid #eef1f5;
}
.home-cheapest-head>span{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#fff7ed;
  color:#ea7500;
}
.home-cheapest-head strong,
.home-cheapest-head small{display:block}
.home-cheapest-head strong{font-size:14px}
.home-cheapest-head small{margin-top:2px;color:#98a2b3;font-size:10px}
.home-cheapest-card ol{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:cheap;
}
.home-cheapest-card li{
  counter-increment:cheap;
  border-bottom:1px solid #f0f2f5;
}
.home-cheapest-card li:last-child{border-bottom:0}
.home-cheapest-card li a{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:58px;
  padding:10px 0 10px 28px;
}
.home-cheapest-card li a::before{
  content:counter(cheap);
  position:absolute;
  left:0;
  color:#98a2b3;
  font-size:11px;
  font-weight:700;
}
.home-cheapest-card li span{min-width:0}
.home-cheapest-card li strong,
.home-cheapest-card li small{display:block}
.home-cheapest-card li strong{
  overflow:hidden;
  color:#344054;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.home-cheapest-card li small{
  margin-top:2px;
  color:#98a2b3;
  font-size:10px;
}
.home-cheapest-card li b{
  flex:0 0 auto;
  color:#101828;
  font-size:12px;
}

.home-shelf-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
}
.home-shelf-card{
  min-width:0;
  padding:10px;
  border:1px solid #e5e9f0;
  border-radius:5px;
  background:#fff;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.home-shelf-card:hover{
  transform:translateY(-3px);
  border-color:#cfd6e2;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
}
.home-shelf-cover{
  aspect-ratio:2 / 3;
  height:auto;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:4px;
  background:#f4f6f9;
}
.home-shelf-cover img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.home-shelf-copy{padding:10px 2px 2px}
.home-shelf-copy h3{
  display:-webkit-box;
  min-height:38px;
  margin:0;
  overflow:hidden;
  color:#101828;
  font-size:13px;
  line-height:1.4;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.home-shelf-copy p{
  margin:4px 0 10px;
  overflow:hidden;
  color:#98a2b3;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.home-shelf-copy>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.home-shelf-copy strong{font-size:13px}
.home-shelf-copy span{color:#98a2b3;font-size:9px}

.home-how-grid-v2{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.home-how-grid-v2 article{
  position:relative;
  min-height:210px;
  padding:22px;
  border:1px solid #e5e9f0;
  border-radius:5px;
  background:#fff;
}
.home-how-grid-v2 article>b{
  position:absolute;
  top:16px;
  right:16px;
  color:#e4e7ec;
  font-size:24px;
  font-weight:800;
}
.home-how-grid-v2 article>i{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  margin-bottom:26px;
  border-radius:5px;
  background:#eef2ff;
  color:var(--primary);
}
.home-how-grid-v2 h3{margin:0;font-size:15px}
.home-how-grid-v2 p{margin:7px 0 0;color:#667085;font-size:12px;line-height:1.65}

.home-cta-strip{
  padding:0 0 66px;
  background:#fff;
}
.home-cta-strip-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:30px 32px;
  border:1px solid #dfe5ee;
  border-radius:5px;
  background:linear-gradient(135deg,#f8faff,#f3f6ff);
}
.home-cta-strip h2{margin:0;font-size:24px;letter-spacing:-.6px}
.home-cta-strip p{max-width:720px;margin:7px 0 0;color:#667085;font-size:13px}
.home-cta-actions{display:flex;gap:8px;flex:0 0 auto}

/* ===== Book detail v2 ===== */
.book-detail-v2{
  padding-bottom:70px;
  background:#f7f9fc;
}
.book-detail-v2>.container{position:relative}
.book-detail-mobile-home{display:none}
.book-price-label{
  display:block;
  color:#667085;
  font-size:11px;
}

.book-section-card{
  margin-top:16px;
  padding:22px;
  border:1px solid #e3e8ef;
  border-radius:5px;
  background:#fff;
}
.book-section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}
.book-section-heading>div>span{
  display:block;
  margin-bottom:4px;
  color:var(--primary);
  font-size:9px;
  font-weight:800;
  letter-spacing:.09em;
}
.book-section-heading h2,
.book-section-heading .book-card-title{
  display:block;
  margin:0;
  color:#101828;
  font-size:20px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.4px;
}
.book-section-heading p{
  margin:4px 0 0;
  color:#98a2b3;
  font-size:11px;
}
.book-description-text{
  color:#475467;
  font-size:13px;
  line-height:1.8;
}
.book-contribution-links{margin-top:16px}

.book-detail-v2 .edition-cards{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.book-detail-v2 .edition-card{
  min-width:0;
  grid-template-columns:48px minmax(0,1fr);
  padding:10px;
  box-shadow:none;
}
.book-detail-v2 .edition-cover-mini{
  width:48px;
  height:68px;
}
.book-detail-v2 .edition-card strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.book-detail-v2 .edition-card span,
.book-detail-v2 .edition-card small{font-size:10px}

.book-offers-heading{margin-bottom:12px}
.book-offers-best{text-align:right}
.book-offers-best small,
.book-offers-best strong{display:block}
.book-offers-best small{color:#98a2b3;font-size:9px}
.book-offers-best strong{margin-top:2px;}
.book-offer-list{display:grid;gap:8px}
.book-offer-row{
  display:grid;
  grid-template-columns:minmax(180px,1.2fr) 110px minmax(260px,1fr) 130px;
  padding:12px 14px;
  border:1px solid #e8ecf1;
  border-radius:5px;
  background:#fff;
}
.book-offer-row.is-best{
  border-color:#b7e4cf;
  background:#fbfffd;
}
.book-offer-store-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#f2f4f7;
  color:#667085;
}
.book-offer-store strong,
.book-offer-store small{display:block}
.book-offer-store strong{
  font-size:12px;
}
.book-offer-store small{
  margin-top:3px;
  color:#98a2b3;
  font-size:9px;
}
.book-offer-store small i{color:#079455}
.book-offer-stock span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  font-weight:600;
}
.book-offer-stock .in-stock{color:#079455}
.book-offer-stock .out-stock{color:#d92d20}






.book-offer-action .btn{font-size:10px;padding:9px 8px}
.book-offer-empty{
  padding:30px;
  border:1px dashed #d7dde6;
  border-radius:5px;
  text-align:center;
  color:#98a2b3;
  font-size:12px;
}

.book-lower-grid-v2{
  display:grid;
  grid-template-columns:1.2fr .9fr .9fr;
  gap:16px;
}
.book-lower-grid-v2 .book-section-card{min-height:250px}
.book-stock-action{margin-top:8px}
.review-score-v2{
  display:flex;
  align-items:center;
  gap:14px;
  margin:18px 0;
}
.review-score-v2>strong{
  font-size:44px;
  letter-spacing:-2px;
}
.review-score-v2 span{color:#98a2b3;font-size:10px}
.rating-buttons.compact{display:flex;flex-wrap:nowrap}
.rating-buttons.compact .btn{
  min-width:0;
  flex:1;
  padding:7px 4px;
  font-size:10px;
}
.review-list-v2{display:grid;gap:8px}
.review-list-v2 article{
  padding:13px 14px;
  border:1px solid #edf0f4;
  border-radius:5px;
  background:#fbfcfd;
}
.review-list-v2 article>div{
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.review-list-v2 article strong{font-size:12px}
.review-list-v2 article span{color:#f59e0b;font-size:10px}
.review-list-v2 article p{
  margin:7px 0 0;
  color:#667085;
  font-size:12px;
}
.book-review-form{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #eef1f5;
}
.book-review-empty{
  padding:20px;
  border:1px dashed #d7dde6;
  border-radius:5px;
  color:#98a2b3;
  font-size:12px;
}
.book-login-note{color:#667085;font-size:12px}

/* Scroll reveal */
[data-reveal]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s ease,transform .55s cubic-bezier(.22,.61,.36,1);
}
[data-reveal].is-revealed{
  opacity:1;
  transform:none;
}
@media(prefers-reduced-motion:reduce){
  [data-reveal]{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
}

/* Home + book responsive */
@media(max-width:1100px){

  .home-shelf-grid{grid-template-columns:repeat(3,1fr)}
  .home-deals-layout{grid-template-columns:1fr}
  .book-offer-row{grid-template-columns:minmax(180px,1fr) 100px minmax(230px,1fr)}
  .book-offer-action{grid-column:1/-1}
  .book-offer-action .btn{width:auto}
  .book-lower-grid-v2{grid-template-columns:1fr 1fr}
  .book-lower-grid-v2>.book-section-card:first-child{grid-column:1/-1}
}
@media(max-width:820px){
  .home-hero-v2{padding:38px 0 34px}
  .home-hero-v2 h1{font-size:38px;letter-spacing:-1.4px}
  .home-hero-v2 p{font-size:14px}
  .home-hero-showcase{display:none}
  .home-hero-grid{grid-template-columns:1fr!important}
  .home-search-v2{height:52px}
  .home-hero-proof{gap:8px 14px}
  .home-trustbar-grid{grid-template-columns:1fr 1fr}
  .home-trustbar-grid>div:nth-child(2){border-right:0}
  .home-trustbar-grid>div:nth-child(-n+2){border-bottom:1px solid #edf1f5}
  .home-section{padding:44px 0}
  .home-section-head{align-items:flex-start;flex-direction:column;gap:12px}
  .home-section-head h2{font-size:24px}
  .home-section-head>a{align-self:flex-start}

  .home-deal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-shelf-grid{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding-bottom:5px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
  }
  .home-shelf-grid::-webkit-scrollbar{display:none}
  .home-shelf-card{
    flex:0 0 42vw;
    scroll-snap-align:start;
  }
  .home-shelf-cover{
  aspect-ratio:2 / 3;height:auto}
  .home-how-grid-v2{grid-template-columns:1fr 1fr}
  .home-cta-strip{padding-bottom:44px}
  .home-cta-strip-inner{align-items:flex-start;flex-direction:column;padding:22px}
  .home-cta-actions{width:100%;flex-wrap:wrap}
  .home-cta-actions .btn{flex:1}

  .book-detail-v2{padding-bottom:44px}
  .book-detail-v2>.container{width:min(100% - 20px,var(--container))}
  .book-detail-mobile-home{display:block;margin-bottom:8px}
  .book-detail-mobile-home a{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#667085;
    font-size:11px;
    font-weight:600;
  }
  .book-section-heading h2,
  .book-section-heading .book-card-title{font-size:18px}
  .book-detail-v2 .edition-cards{
    display:flex;
    gap:8px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .book-detail-v2 .edition-cards::-webkit-scrollbar{display:none}
  .book-detail-v2 .edition-card{flex:0 0 72%}
  .book-offer-row{
    grid-template-columns:1fr auto;
    gap:10px;
  }
  .book-offer-stock{justify-self:end}

  .book-offer-action{grid-column:1/-1}
  .book-offer-action .btn{width:100%}
  .book-lower-grid-v2>.book-section-card:first-child{grid-column:auto}
}
@media(max-width:520px){

  .home-deal-grid{grid-template-columns:1fr 1fr;gap:8px}
  .home-deal-cover{height:180px}
  .home-deal-copy{padding:10px}
  .home-deal-copy>div{align-items:flex-start;flex-direction:column;gap:3px}
  .home-shelf-card{flex-basis:46vw}
  .home-shelf-cover{
  aspect-ratio:2 / 3;height:auto}
  .home-how-grid-v2{grid-template-columns:1fr}
  .home-how-grid-v2 article{min-height:0}
  .home-trustbar-grid>div{padding:15px}

}

/* Admin home settings cleanup */
.home-settings-layout .admin-card{border-radius:5px}
.home-settings-grid input,
.home-settings-grid textarea,
.hero-token-select,
.hero-search-results{border-radius:5px!important}


/* Book cover lightbox */
.book-cover-lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(15,23,42,.78);
  backdrop-filter:blur(5px);
}
.book-cover-lightbox img{
  max-width:min(520px,90vw);
  max-height:88vh;
  object-fit:contain;
  border-radius:5px;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}
.book-cover-lightbox button{
  position:fixed;
  top:18px;
  right:18px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:5px;
  background:rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
}


/* Book detail mobile repair */
@media(max-width:820px){
  .book-detail-v2{
    font-size:14px;
  }

  .book-detail-mobile-home{
    display:none!important;
  }

  .book-section-card{
    padding:16px;
  }

  .book-section-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
    margin-bottom:14px;
  }

  .book-section-heading h2,
  .book-section-heading .book-card-title{
    font-size:20px!important;
  }

  .book-description-text{
    line-height:1.75;
  }

  .book-detail-v2 .edition-card{
    flex:0 0 82%;
  }

  .book-offer-row{
    grid-template-columns:minmax(0,1fr);
    gap:10px;
    padding:14px;
  }

  .book-offer-stock,
  .book-offer-prices,
  .book-offer-action{
    grid-column:auto;
    justify-self:stretch;
  }









  .book-offer-action .btn{
    min-height:42px;
  }

  .book-lower-grid-v2{
    grid-template-columns:1fr;
  }

  .book-lower-grid-v2 .book-section-card{
    min-height:0;
  }

  .review-score-v2{
    margin:14px 0;
  }

  .rating-buttons.compact{
    flex-wrap:wrap;
  }

  .rating-buttons.compact .btn{
    min-width:42px;
    min-height:40px;
    flex:1 1 15%;
  }
}


/* Book detail hero structure fix */


/* Book detail mobile: stack cleanly and preserve cover ratio */
@media(max-width:820px){

  .book-detail-v2,
  .book-detail-v2 *{
    font-size:min(inherit, inherit);
  }
}


/* Book detail top area aligned to reference */


/* Book detail layout refinement: compact desktop center, mobile 40/60 top */


/* Book detail mobile: 30/70 top split + single-row actions */


/* Final mobile book top refinements */
.mobile-only-label{display:none}

@media(max-width:820px){
  h1{
    font-size:26px!important;
    line-height:1.2!important;
    letter-spacing:-.5px!important;
  }

  .desktop-only-label{display:none!important}
  .mobile-only-label{display:inline!important}
}

@media(max-width:520px){
  h1{
    font-size:24px!important;
  }
}


/* Book detail mobile compact layout - reference match */


/* Book mobile structure correction: cover/title side-by-side, details full width below */


/* ===== Book top v3: isolated final layout ===== */
.kf-book-top{
  display:grid;
  grid-template-columns:240px minmax(0,1fr) 300px;
  gap:28px;
  align-items:start;
  padding:24px;
  border:1px solid #e3e8ef;
  border-radius:5px;
  background:#fff;
  box-shadow:0 8px 28px rgba(15,23,42,.04);
}

.kf-book-cover,
.kf-book-main,
.kf-book-price{min-width:0}

.kf-book-cover-frame{
  overflow:hidden;
  border-radius:5px;
  background:#f4f6f9;
}

.kf-book-cover-frame img{
  display:block;
  width:100%;
  height:auto;
  cursor:zoom-in;
}

.kf-book-cover-fallback{
  aspect-ratio:2/3;
  display:flex;
  align-items:flex-end;
  padding:18px;
  background:linear-gradient(145deg,#172033,#34445f);
  color:#fff;
  font-size:22px;
  font-weight:700;
  line-height:1.15;
}

.kf-book-main{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.kf-book-summary h1{
  margin:0;
  color:#101828;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-1.1px;
}

.kf-book-author{
  display:inline-block;
  margin-top:8px;
  color:#f97316;
  font-size:15px;
  font-weight:700;
}

.kf-book-author:hover{color:#ea580c}

.kf-book-rating{
  width:max-content;
  max-width:100%;
  display:flex;
  align-items:center;
  margin-top:13px;
  overflow:hidden;
  border:1px solid #e3e8ef;
  border-radius:var(--ui-radius);
  background:#fff;
}

.kf-book-rating>span{
  min-height:40px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 14px;
  border-left:1px solid #e3e8ef;
  color:#667085;
  font-size:14px;
  white-space:nowrap;
}

.kf-book-rating>span:first-child{
  border-left:0;
  color:#101828;
  font-weight:700;
}

.kf-book-rating i{
  color:#f79009;
  font-size:16px;
}

.kf-rating-mobile{display:none}

.kf-book-facts{
  margin:0;
  padding:0;
}

.kf-book-facts>div{
  display:grid;
  grid-template-columns:minmax(170px,40%) minmax(0,60%);
  min-height:36px;
  border-bottom:1px solid #eef1f5;
}

.kf-book-facts>div:last-child{border-bottom:0}

.kf-book-facts dt,
.kf-book-facts dd{
  min-width:0;
  display:flex;
  align-items:center;
  margin:0;
  font-size:14px;
}

.kf-book-facts dt{
  gap:10px;
  color:#667085;
  font-weight:500;
}

.kf-book-facts dt i{
  width:18px;
  flex:0 0 18px;
  text-align:center;
  color:#98a2b3;
}

.kf-book-facts dd{
  padding-left:20px;
  border-left:1px solid #edf0f4;
  color:#344054;
  font-weight:600;
}

.kf-book-facts dd a{
  color:#344054;
  font-weight:600;
}

.kf-book-facts dd a:hover{color:var(--primary)}

.kf-book-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,max-content));
  gap:8px;
}

.kf-book-actions button{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 10px;
  border:1px solid #e3e8ef;
  border-radius:5px;
  background:#fff;
  color:#475467;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}

.kf-book-actions button:hover{
  background:#f8fafc;
  border-color:#cfd6e2;
  color:var(--primary);
}

.kf-book-actions button.is-active{color:#d92d20}

.kf-book-price{
  padding:18px;
  border:1px solid #e3e8ef;
  border-radius:5px;
  background:#fbfcfe;
}

.kf-book-price>span{
  display:block;
  color:#667085;
  font-size:13px;
}

.kf-book-price>strong{
  display:block;
  margin-top:6px;
  color:#101828;
  font-size:30px;
  letter-spacing:-.8px;
}

.kf-best-offer{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:2px 7px;
  margin:16px 0;
  padding:11px;
  border-radius:5px;
  background:#ecfdf3;
  color:#067647;
}

.kf-best-offer i{
  grid-row:1/3;
  margin-top:2px;
}

.kf-best-offer span{font-size:12px}
.kf-best-offer b{font-size:14px}

.kf-book-price>.btn{
  width:100%;
  min-height:46px;
}

.kf-price-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:13px;
  color:#98a2b3;
  font-size:12px;
}

.kf-price-meta span{
  display:flex;
  align-items:center;
  gap:5px;
}

.kf-compare-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid #e7ebf0;
  color:#475467;
  font-size:12px;
  font-weight:600;
}

.kf-compare-link:hover{color:var(--primary)}

@media(max-width:1100px){
  .kf-book-top{
    grid-template-columns:210px minmax(0,1fr);
  }

  .kf-book-price{
    grid-column:1/-1;
  }
}

@media(max-width:820px){
  .kf-book-top{
    grid-template-columns:28% 1fr;
    gap:14px 12px;
    padding:14px;
  }

  .kf-book-cover{
    grid-column:1;
    grid-row:1;
  }

  .kf-book-main{
    display:contents;
  }

  .kf-book-summary{
    grid-column:2;
    grid-row:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
  }

  .kf-book-summary h1{
    font-size:20px;
    line-height:1.16;
    letter-spacing:-.45px;
  }

  .kf-book-author{
    order:2;
    margin-top:5px;
    font-size:14px;
  }

  .kf-book-rating{
    order:3;
    width:max-content;
    max-width:100%;
    display:inline-flex;
    margin-top:8px;
  }

  .kf-book-rating>span{
    flex:0 0 auto;
    width:auto;
    min-width:0;
    min-height:40px;
    justify-content:center;
    padding:0 10px;
    font-size:14px;
  }

  .kf-rating-desktop{display:none}
  .kf-rating-mobile{display:flex}

  .kf-book-facts{
    grid-column:1/-1;
    grid-row:2;
    width:100%;
  }

  .kf-book-facts dt,
  .kf-book-facts dd{
    font-size:14px;
  }

  .kf-book-facts dd{
    padding-left:14px;
  }

  .kf-book-actions{
    grid-column:1/-1;
    grid-row:3;
    grid-template-columns:repeat(4,1fr);
    width:100%;
  }

  .kf-book-actions button{
    min-width:0;
    min-height:44px;
    padding:8px 6px;
    font-size:14px;
  }

  .kf-book-actions button span{display:none}

  .kf-book-price{
    grid-column:1/-1;
    grid-row:4;
    width:100%;
  }

  .kf-book-price>span,
  .kf-best-offer span,
  .kf-best-offer b,
  .kf-price-meta,
  .kf-compare-link{
    font-size:14px;
  }
}

@media(max-width:520px){
  .kf-book-top{
    grid-template-columns:26% 1fr;
    gap:12px;
    padding:12px;
  }

  .kf-book-summary h1{
    font-size:19px;
  }

  .kf-book-rating>span{
    padding:0 8px;
  }
}


/* ===== Breadcrumb: canonical ===== */


.breadcrumb{
  display:flex;
  align-items:center;
  min-width:0;
  gap:0;
  padding:22px 0 18px;
  overflow:visible;
  color:#667085;
  font-size:14px;
  white-space:nowrap;
}


.breadcrumb-home{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  height:28px;
  padding:0 2px;
  color:#98a2b3;
  font-weight:500;
}


.breadcrumb-home i{color:#a8b0bd;font-size:13px}


.breadcrumb-home span{display:inline}


.breadcrumb-home:hover,
.breadcrumb-home:hover i{color:var(--primary)}


.breadcrumb-desktop-items,
.breadcrumb-mobile-items{display:flex;align-items:center;min-width:0}


.breadcrumb-mobile-items{display:none}


.breadcrumb-separator{flex:0 0 auto;margin:0 8px;color:#c5ccd6;font-size:9px}


.breadcrumb-desktop-items>a,
.breadcrumb-mobile-link{color:#667085;font-weight:500}


.breadcrumb-desktop-items>a:hover,
.breadcrumb-mobile-link:hover{color:var(--primary)}


.breadcrumb-current{min-width:0;color:#344054;font-weight:600}


@media(max-width:820px){
  .breadcrumb{width:100%;padding:16px 0 14px;font-size:14px}
  .breadcrumb-home{width:22px;height:26px;flex:0 0 22px;padding:0;justify-content:center}
  .breadcrumb-home span{display:none}
  .breadcrumb-home i{font-size:14px}
  .breadcrumb-desktop-items{display:none}
  .breadcrumb-mobile-items{display:flex;flex:1 1 auto;min-width:0}
  .breadcrumb-mobile-link{flex:0 0 auto;max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .breadcrumb-mobile-items>.breadcrumb-current{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .breadcrumb-separator{margin:0 7px;font-size:9px}
  .breadcrumb-overflow{position:relative;flex:0 0 auto}
  .breadcrumb-overflow>summary{width:28px;height:26px;display:grid;place-items:center;list-style:none;border:0;border-radius:var(--ui-radius);background:transparent;color:#667085;cursor:pointer}
  .breadcrumb-overflow>summary::-webkit-details-marker{display:none}
  .breadcrumb-overflow>summary::marker{display:none;content:""}
  .breadcrumb-overflow[open]>summary{background:#f2f4f7;color:var(--primary)}
  .breadcrumb-overflow-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:140;width:max-content;min-width:180px;max-width:min(300px,80vw);padding:6px;border:1px solid #e4e7ec;border-radius:var(--ui-radius);background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.14)}
  .breadcrumb-overflow-menu>a,
  .breadcrumb-overflow-menu>span{display:block;overflow:hidden;padding:8px 10px;border-radius:var(--ui-radius);color:#475467;font-size:14px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
  .breadcrumb-overflow-menu>a:hover{background:#f8fafc;color:var(--primary)}
}


/* Book action dropdown + alert/login modals */
.book-share-wrap{
  position:relative;
  min-width:0;
}
.kf-book-actions .book-share-wrap>.author-share-toggle{
  width:100%;
  min-height:38px;
}
.book-share-wrap .author-share-menu{
  right:0;
  left:auto;
  z-index:160;
}
.kf-book-actions .book-share-wrap .author-share-menu a,
.kf-book-actions .book-share-wrap .author-share-menu button{
  min-height:0;
  justify-content:flex-start;
  padding:9px 10px;
  border:0;
  background:transparent;
  font-size:13px;
  font-weight:500;
}
.kf-book-actions .book-share-wrap .author-share-menu button:hover{
  background:var(--primary-softer);
  color:var(--primary);
}
.kf-book-actions .book-share-wrap .author-share-menu span{
  display:inline;
}
.kf-book-actions .book-share-wrap .author-share-chevron{
  margin-left:auto;
}

#priceAlertModal .site-modal-dialog,
#stockAlertModal .site-modal-dialog,
#favoriteLoginModal .site-modal-dialog{
  position:absolute;
  top:50%;
  left:50%;
  width:min(430px,calc(100% - 32px));
  max-height:calc(100vh - 32px);
  margin:0;
  padding:24px;
  overflow-y:auto;
  transform:translate(-50%,-50%);
}
#priceAlertModal .site-modal-dialog .book-dialog-title,
#stockAlertModal .site-modal-dialog .book-dialog-title,
#favoriteLoginModal .site-modal-dialog .book-auth-title{
  display:block;
  margin:14px 0 6px;
  font-size:22px;
  font-weight:700;
  line-height:1.25;
}
#priceAlertModal .site-modal-dialog>p,
#stockAlertModal .site-modal-dialog>p,
#favoriteLoginModal .site-modal-dialog>p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.book-modal-login{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}
.book-modal-login>span{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.book-modal-register{
  color:var(--primary);
  font-size:13px;
  font-weight:600;
}
.book-modal-register:hover{
  color:var(--primary-dark);
}

@media(max-width:820px){
  .kf-book-actions .book-share-wrap>.author-share-toggle{
    min-height:44px;
  }
  .book-share-wrap .author-share-menu{
    width:200px;
  }
  #priceAlertModal .site-modal-dialog,
  #stockAlertModal .site-modal-dialog,
  #favoriteLoginModal .site-modal-dialog{
    width:calc(100% - 24px);
    padding:22px;
  }
}


/* ===== Book modals v2 ===== */
.site-modal{
  display:block;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease;
}
.site-modal.open{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}
.site-modal .site-modal-backdrop{
  opacity:0;
  transition:opacity .24s ease;
}
.site-modal.open .site-modal-backdrop{
  opacity:1;
}
.site-modal .site-modal-dialog{
  opacity:0;
  transform:translate(-50%,-46%) scale(.965);
  transition:transform .26s cubic-bezier(.2,.8,.2,1),opacity .22s ease;
}
.site-modal.open .site-modal-dialog{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}

/* Favorite login modal */
#favoriteLoginModal .book-auth-dialog{
  width:min(780px,calc(100% - 32px));
  max-height:calc(100vh - 32px);
  padding:0;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(240px,38%) minmax(0,62%);
  background:#fff;
}
.book-auth-side{
  min-height:460px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:32px;
  background:linear-gradient(145deg,#3347b9 0%,#465bd9 100%);
  color:#fff;
}
.book-auth-side-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:var(--ui-radius);
  background:rgba(255,255,255,.08);
  font-size:20px;
}
.book-auth-side small{
  display:block;
  margin-bottom:10px;
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:700;
  letter-spacing:.8px;
}
.book-auth-side .book-auth-promo-title{
  display:block;
  margin:0 0 10px;
  font-size:27px;
  font-weight:700;
  line-height:1.12;
  letter-spacing:-.6px;
}
.book-auth-side p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:14px;
  line-height:1.6;
}
.book-auth-benefits{
  display:grid;
  gap:10px;
}
.book-auth-benefits span{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
}
.book-auth-benefits i{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:var(--ui-radius);
  background:rgba(255,255,255,.1);
}
.book-auth-form{
  padding:38px 42px 32px;
}
.book-auth-mobile-icon{
  display:none;
  width:44px;
  height:44px;
  place-items:center;
  margin-bottom:18px;
  border-radius:var(--ui-radius);
  background:#eef3ff;
  color:var(--primary);
  font-size:18px;
}
#favoriteLoginModal .book-auth-form .book-auth-title{
  display:block;
  margin:0 0 6px;
  font-size:28px;
  font-weight:700;
  line-height:1.1;
}
#favoriteLoginModal .book-auth-form>p{
  margin:0 0 22px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}
.book-login-form{
  display:grid;
  gap:16px;
}
.book-login-form>label{
  display:grid;
  gap:7px;
  color:var(--text);
  font-size:13px;
  font-weight:600;
}
.book-login-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.book-login-label-row b{
  font:inherit;
}
.book-login-label-row a{
  color:var(--primary);
  font-size:12px;
  font-weight:500;
}
.book-login-input{
  height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  border:1px solid #d9e0ea;
  border-radius:var(--ui-radius);
  background:#fff;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.book-login-input:focus-within{
  border-color:#9cadff;
  box-shadow:0 0 0 3px rgba(67,86,210,.1);
}
.book-login-input>i{
  flex:0 0 auto;
  color:#98a2b3;
}
.book-login-input input{
  min-width:0;
  flex:1 1 auto;
  height:100%;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
}
.book-login-password-toggle{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:0 0 32px;
  border:0;
  background:transparent;
  color:#98a2b3;
  cursor:pointer;
}
.book-login-submit{
  width:100%;
  min-height:46px;
  margin-top:2px;
}
.book-auth-register{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.book-auth-register strong,
.book-auth-register span{
  display:block;
}
.book-auth-register strong{
  color:var(--text);
  font-size:13px;
}
.book-auth-register span{
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
}

/* Alert modals */
#priceAlertModal .book-alert-dialog,
#stockAlertModal .book-alert-dialog{
  width:min(470px,calc(100% - 32px));
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,rgba(67,86,210,.24),rgba(67,86,210,0)) border-box;
  border:1px solid transparent;
  box-shadow:0 28px 80px rgba(15,23,42,.22);
}
.book-alert-dialog .modal-icon{
  width:48px;
  height:48px;
  margin-bottom:16px;
  background:#eef3ff;
  color:var(--primary);
}
.book-alert-stock .modal-icon{
  background:#eef8ff;
  color:#2563eb;
}
.book-alert-dialog h2{
  margin:0 0 7px!important;
  font-size:24px!important;
  letter-spacing:-.3px;
}
.book-alert-dialog>p{
  margin-bottom:20px!important;
  line-height:1.55!important;
}
.book-alert-dialog .stack-form{
  gap:14px;
}
.book-alert-dialog .stack-form>label{
  display:grid;
  gap:7px;
  color:var(--text);
  font-size:13px;
  font-weight:600;
}
.book-alert-dialog select,
.book-alert-dialog input[type="text"],
.book-alert-dialog input[name="target_price"]{
  min-height:44px;
  border:1px solid #d9e0ea;
  border-radius:var(--ui-radius);
  background:#fff;
}
.book-alert-dialog .modal-check{
  padding:11px 12px;
  border:1px solid #e8ecf2;
  border-radius:var(--ui-radius);
  background:#f8fafc;
  font-weight:500;
}
.book-alert-dialog .book-modal-login{
  gap:10px;
  padding-top:2px;
}
.book-alert-dialog .book-modal-login .btn{
  min-width:112px;
}

@media(max-width:700px){
  #favoriteLoginModal .book-auth-dialog{
    grid-template-columns:1fr;
    width:calc(100% - 24px);
    max-width:460px;
  }
  .book-auth-side{
    display:none;
  }
  .book-auth-form{
    padding:28px 22px 24px;
  }
  .book-auth-mobile-icon{
    display:grid;
  }
  #favoriteLoginModal .book-auth-form .book-auth-title{
    font-size:24px;
  }
  .book-auth-register{
    align-items:flex-start;
  }
  #priceAlertModal .book-alert-dialog,
  #stockAlertModal .book-alert-dialog{
    width:calc(100% - 24px);
    padding:24px 20px;
  }
}


#favoriteLoginModal .book-auth-dialog,
#favoriteLoginModal .site-modal-dialog{
  border:0;
  outline:0;
}


/* Price alert modal - refined */
#priceAlertModal .book-alert-dialog{
  width:min(520px,calc(100% - 32px));
  padding:28px;
  border:0;
  background:#fff;
}

.book-alert-head{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding-right:44px;
}

.book-alert-head .modal-icon{
  flex:0 0 48px;
  margin:0;
}

.book-alert-head>div{
  min-width:0;
}

.book-alert-head small{
  display:block;
  margin-bottom:4px;
  color:var(--primary);
  font-size:11px;
  font-weight:800;
  letter-spacing:.8px;
}

#priceAlertModal .book-alert-head .book-dialog-title{
  margin:0 0 5px!important;
}

#priceAlertModal .book-alert-head p{
  margin:0!important;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.book-alert-current{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:22px 0 20px;
  padding:13px 14px;
  border:1px solid #e7ebf2;
  border-radius:var(--ui-radius);
  background:#f8fafc;
}

.book-alert-current span{
  display:flex;
  align-items:center;
  gap:8px;
  color:#667085;
  font-size:13px;
}

.book-alert-current span i{
  color:var(--primary);
}

.book-alert-current strong{
  color:#101828;
  font-size:20px;
  letter-spacing:-.3px;
}

.book-alert-form{
  display:grid;
  gap:16px;
}

.book-alert-form>label:not(.book-alert-check){
  display:grid;
  gap:7px;
}

.book-alert-form>label>span:first-child{
  color:#344054;
  font-size:13px;
  font-weight:700;
}

.book-alert-control{
  position:relative;
  min-height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  border:1px solid #d9e0ea;
  border-radius:var(--ui-radius);
  background:#fff;
  transition:border-color .16s ease,box-shadow .16s ease;
}

.book-alert-control:focus-within{
  border-color:#9cadff;
  box-shadow:0 0 0 3px rgba(67,86,210,.1);
}

.book-alert-control>i:first-child{
  flex:0 0 18px;
  width:18px;
  color:#98a2b3;
  text-align:center;
}

.book-alert-control select,
.book-alert-control input{
  min-width:0;
  flex:1 1 auto;
  height:44px;
  padding:0;
  border:0!important;
  outline:0;
  background:transparent!important;
  box-shadow:none!important;
  color:#101828;
  font:inherit;
}

.book-alert-control select{
  appearance:none;
  padding-right:24px;
  cursor:pointer;
}

.book-alert-select-arrow{
  position:absolute;
  right:12px;
  color:#98a2b3;
  font-size:11px;
  pointer-events:none;
}

.book-alert-help{
  color:#98a2b3;
  font-size:12px;
  line-height:1.45;
}

.book-alert-check{
  display:grid!important;
  grid-template-columns:20px 26px minmax(0,1fr);
  align-items:center!important;
  gap:10px!important;
  padding:12px;
  border:1px solid #e7ebf2;
  border-radius:var(--ui-radius);
  background:#f8fafc;
  cursor:pointer;
}

.book-alert-check input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.book-alert-check-ui{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border:1px solid #cfd7e3;
  border-radius:4px;
  background:#fff;
  color:transparent;
  font-size:10px;
  transition:.16s ease;
}

.book-alert-check input:checked + .book-alert-check-ui{
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
}

.book-alert-check>span:last-child{
  display:grid;
  gap:2px;
}

.book-alert-check strong{
  color:#344054;
  font-size:13px;
}

.book-alert-check small{
  color:#667085;
  font-size:12px;
  line-height:1.4;
}

.book-alert-submit{
  width:100%;
  min-height:46px;
  margin-top:2px;
}

@media(max-width:560px){
  #priceAlertModal .book-alert-dialog{
    width:calc(100% - 20px);
    padding:22px 18px;
  }

  .book-alert-head{
    gap:12px;
    padding-right:36px;
  }

  .book-alert-head .modal-icon{
    flex-basis:44px;
    width:44px;
    height:44px;
  }

  .book-alert-current{
    margin:18px 0;
  }

  .book-alert-current strong{
    font-size:18px;
  }
}


/* Book modal backdrop + guest login correction */
#favoriteLoginModal .site-modal-backdrop,
#priceAlertModal .site-modal-backdrop{
  background:rgba(0,0,0,.58);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  opacity:0;
  transition:opacity .28s ease;
}

#favoriteLoginModal.open .site-modal-backdrop,
#priceAlertModal.open .site-modal-backdrop{
  opacity:1;
}

#favoriteLoginModal,
#priceAlertModal{
  transition:opacity .24s ease,visibility .24s ease;
}

#favoriteLoginModal .site-modal-dialog,
#priceAlertModal .site-modal-dialog{
  transition:
    transform .28s cubic-bezier(.22,.8,.24,1),
    opacity .22s ease;
}

.book-alert-guest{
  display:grid;
  gap:14px;
  margin-top:20px;
  padding:16px;
  border:1px solid #e7ebf2;
  border-radius:var(--ui-radius);
  background:#f8fafc;
}

.book-alert-guest-copy{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:start;
  gap:12px;
}

.book-alert-guest-copy>div{
  min-width:0;
}

.book-alert-guest-copy strong{
  display:block;
  margin:1px 0 4px;
  color:#101828;
  font-size:14px;
  line-height:1.35;
}

.book-alert-guest-copy p{
  margin:0;
  color:#667085;
  font-size:13px;
  line-height:1.5;
}

.book-alert-guest-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.book-alert-guest-actions .btn{
  width:100%;
  min-height:42px;
}

@media(max-width:520px){
  .book-alert-guest{
    padding:14px;
  }

  .book-alert-guest-copy{
    grid-template-columns:40px minmax(0,1fr);
    gap:10px;
  }

  .book-alert-guest-icon{
    width:40px;
    height:40px;
  }

  .book-alert-guest-actions{
    grid-template-columns:1fr 1fr;
  }
}


.book-alert-guest-copy{
  align-items:center;
}

.book-alert-guest-icon{
  align-self:center;
}


/* Stock alert modal - match price alert */
#stockAlertModal .site-modal-backdrop{
  background:rgba(0,0,0,.58);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  opacity:0;
  transition:opacity .28s ease;
}
#stockAlertModal.open .site-modal-backdrop{
  opacity:1;
}
#stockAlertModal{
  transition:opacity .24s ease,visibility .24s ease;
}
#stockAlertModal .site-modal-dialog{
  transition:transform .28s cubic-bezier(.22,.8,.24,1),opacity .22s ease;
}
#stockAlertModal .book-alert-dialog{
  width:min(520px,calc(100% - 32px));
  padding:28px;
  border:0;
  background:#fff;
}
#stockAlertModal .book-alert-head .book-dialog-title{
  margin:0 0 5px!important;
}
#stockAlertModal .book-alert-head p{
  margin:0!important;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.book-stock-alert-form{
  margin-top:22px;
}
.book-stock-info{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid #e7ebf2;
  border-radius:var(--ui-radius);
  background:#f8fafc;
}
.book-stock-info>i{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:var(--ui-radius);
  background:#eef3ff;
  color:var(--primary);
}
.book-stock-info strong,
.book-stock-info span{
  display:block;
}
.book-stock-info strong{
  margin-bottom:3px;
  color:#101828;
  font-size:13px;
}
.book-stock-info span{
  color:#667085;
  font-size:12px;
  line-height:1.45;
}
@media(max-width:560px){
  #stockAlertModal .book-alert-dialog{
    width:calc(100% - 20px);
    padding:22px 18px;
  }
}


/* Offer comparison refresh */
.book-offers-heading{
  align-items:flex-start;
}
.book-offers-heading-actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:auto;
}
.book-shipping-toggle{
  min-height:40px;
  padding:9px 13px;
  font-size:14px;
  white-space:nowrap;
}
.book-shipping-toggle.is-active{
  border-color:var(--primary);
  background:var(--primary-softer);
  color:var(--primary);
}
.book-offers-card .book-section-heading>div>span{
  font-size:12px;
}
.book-offers-card .book-section-heading p{
  font-size:14px;
}
.book-offers-best small{
  font-size:12px;
}
.book-offers-best strong{
  font-size:22px;
}
.book-offer-row{
  grid-template-columns:minmax(220px,1.4fr) 120px minmax(320px,1fr) 130px;
  gap:16px;
  align-items:center;
}
.book-offer-store strong,
.book-offer-store small,
.book-offer-stock span,
.book-offer-prices small,
.book-offer-prices b,
.book-offer-prices strong,
.book-offer-action .btn{
  font-size:14px;
}







@media(max-width:900px){
  .book-offers-heading{
    gap:16px;
  }
  .book-offers-heading-actions{
    width:100%;
    justify-content:space-between;
    margin-left:0;
  }
  .book-offer-row{
    grid-template-columns:minmax(0,1fr);
  }
  .book-offer-stock,
  .book-offer-prices,
  .book-offer-action{
    width:100%;
  }


}


/* Offer comparison v3 */
.book-offers-card{
  scroll-margin-top:90px;
}
.book-offers-card,
.book-offers-card *{
  font-size:14px;
}
.book-offers-card .book-section-heading>div>span,
.book-offers-card .book-section-heading p,
.book-offers-card .book-offers-best small{
  font-size:14px;
}
.book-offers-card .book-section-heading h2{
  font-size:24px;
}
.book-offers-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.book-shipping-switch{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  padding:0;
  border:0;
  background:transparent;
  color:#344054;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.book-switch-track{
  position:relative;
  width:44px;
  height:24px;
  flex:0 0 44px;
  border-radius:999px;
  background:#d0d5dd;
  transition:background .2s ease;
}
.book-switch-knob{
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(16,24,40,.22);
  transition:transform .2s ease;
}
.book-shipping-switch.is-active .book-switch-track{
  background:var(--primary);
}
.book-shipping-switch.is-active .book-switch-knob{
  transform:translateX(20px);
}
.book-shipping-switch:focus-visible{
  outline:2px solid rgba(67,86,210,.35);
  outline-offset:4px;
  border-radius:var(--ui-radius);
}

.book-offer-table-head,
.book-offer-row{
  display:grid;
  grid-template-columns:
    minmax(180px,1.25fr)
    minmax(130px,.8fr)
    minmax(95px,.6fr)
    minmax(95px,.65fr)
    minmax(95px,.65fr)
    minmax(105px,.7fr)
    130px;
  align-items:center;
  column-gap:16px;
}
.book-offer-table-head{
  padding:0 14px 8px;
  color:#667085;
  font-size:14px;
  font-weight:600;
}
.book-offer-table-head>span{
  min-width:0;
}
.book-offer-row{
  min-height:64px;
  padding:10px 14px;
}
.book-offer-row.is-best{
  border-color:#a7e8c1;
  background:#effcf4;
}
.book-offer-store{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.book-offer-store strong{
  min-width:0;
  overflow:hidden;
  color:#101828;
  font-size:14px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.book-offer-updated{
  color:#667085;
  font-size:14px;
  white-space:nowrap;
}
.book-offer-stock span{
  font-size:14px;
  white-space:nowrap;
}
.book-offer-price{
  color:#344054;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
}
.book-offer-total{
  color:#101828;
  font-weight:800;
}
.book-offer-action .btn{
  width:100%;
  min-height:40px;
  font-size:14px;
}

/* Combined price mode */
.book-offers-card.is-shipping-total .offer-head-product,
.book-offers-card.is-shipping-total .offer-head-shipping,
.book-offers-card.is-shipping-total .book-offer-product,
.book-offers-card.is-shipping-total .book-offer-shipping{
  display:none;
}
.book-offers-card.is-shipping-total .offer-head-total::before{
  content:"Kargo Dahil ";
}
.book-offers-card.is-shipping-total .book-offer-table-head,
.book-offers-card.is-shipping-total .book-offer-row{
  grid-template-columns:
    minmax(180px,1.45fr)
    minmax(130px,.9fr)
    minmax(95px,.7fr)
    minmax(120px,.8fr)
    130px;
}
.book-offers-card.is-shipping-total .offer-head-total{
  grid-column:4;
}
.book-offers-card.is-shipping-total .book-offer-total{
  grid-column:4;
}
.book-offers-card.is-shipping-total .book-offer-action{
  grid-column:5;
}

/* Retire old per-row price grouping if present */


@media(max-width:980px){
  .book-offer-table-head{
    display:none;
  }
  .book-offer-row,
  .book-offers-card.is-shipping-total .book-offer-row{
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px 16px;
    padding:14px;
  }
  .book-offer-store{
    grid-column:1;
    grid-row:1;
  }
  .book-offer-stock{
    grid-column:2;
    grid-row:1;
  }
  .book-offer-updated{
    grid-column:1/-1;
    grid-row:2;
  }
  .book-offer-product,
  .book-offer-shipping,
  .book-offer-total{
    grid-column:auto;
    grid-row:3;
  }
  .book-offer-action{
    grid-column:1/-1;
    grid-row:4;
  }
  .book-offer-action .btn{
    width:100%;
  }
  .book-offers-card.is-shipping-total .book-offer-total{
    grid-column:1/-1;
    grid-row:3;
  }
  .book-offers-card.is-shipping-total .book-offer-action{
    grid-column:1/-1;
    grid-row:4;
  }
}

@media(max-width:700px){
  .book-offers-heading{
    align-items:flex-start;
    flex-direction:column;
  }
  .book-shipping-switch{
    width:100%;
    justify-content:space-between;
  }
}


.kf-book-actions .book-share-wrap>.author-share-toggle{
  justify-content:center;
}

.kf-book-actions .book-share-wrap>.author-share-toggle .author-share-chevron{
  position:absolute;
  right:12px;
  margin-left:0;
}


.kf-book-actions button.is-active{
  border-color:#b42318;
  background:#b42318;
  color:#fff;
}

.kf-book-actions button.is-active:hover{
  border-color:#912018;
  background:#912018;
  color:#fff;
}

.kf-book-actions button.is-active i{
  color:#fff;
}


/* Breadcrumb mobile: show categories until space runs out */
@media(max-width:820px){
  .breadcrumb-mobile-items{
    overflow:hidden;
  }

  .breadcrumb-mobile-segment,
  .breadcrumb-mobile-overflow-segment,
  .breadcrumb-mobile-current-segment{
    display:flex;
    align-items:center;
    min-width:0;
    flex:0 0 auto;
  }

  .breadcrumb-mobile-overflow-segment{
    display:none;
  }

  .breadcrumb-mobile-current-segment{
    flex:1 1 auto;
  }

  .breadcrumb-mobile-current-segment .breadcrumb-current{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .breadcrumb-mobile-segment .breadcrumb-mobile-link{
    max-width:150px;
  }
}




/* ===== Reusable book comparison row v2 ===== */
.book-compare-row{
  position:relative;
  display:grid;
  grid-template-columns:minmax(290px,330px) minmax(0,1fr) 36px;
  min-height:148px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.book-compare-row:hover{
  border-color:#d0d7e2;
  background:#f8faff;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}
.book-compare-row:focus-visible{
  outline:2px solid rgba(64,86,214,.28);
  outline-offset:2px;
}
.book-compare-summary{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  align-items:center;
  gap:16px;
  min-width:0;
  padding:12px 16px;
}
.book-compare-copy{
  min-width:0;
  padding:0;
}
.book-compare-title{
  color:var(--text);
  font-size:15px;
  line-height:1.35;
  font-weight:700;
}
.book-compare-author,
.book-compare-tags,
.book-compare-rating,
.book-compare-rating strong,
.book-compare-rating span{
  font-size:14px;
}
.book-compare-offers{
  display:grid;
  grid-template-columns:repeat(5,minmax(110px,1fr));
  min-width:0;
  overflow:hidden;
}
.book-compare-offer{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 10px;
  border-left:1px solid var(--line);
  text-align:center;
}
.book-compare-store{
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
}
.book-compare-store img{
  display:block;
  max-width:98px;
  max-height:28px;
  object-fit:contain;
}
.book-compare-store-icon-fallback{
  display:none;
  width:32px;
  height:32px;
  place-items:center;
  border-radius:var(--ui-radius);
  background:#f2f4f7;
  color:#98a2b3;
  font-size:14px;
}
.book-compare-store-icon-fallback.is-visible,
.book-compare-store.logo-error .book-compare-store-icon-fallback{
  display:grid;
}
.book-compare-store.logo-error img{
  display:none;
}
.book-compare-price{
  color:var(--text);
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}
.book-compare-no-offer{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  min-height:100%;
  padding:18px 22px;
  color:#667085;
  font-size:14px;
}
.book-compare-chevron{
  display:grid;
  place-items:center;
  color:#98a2b3;
  font-size:14px;
  transition:color .18s ease,transform .18s ease;
}
.book-compare-row:hover .book-compare-chevron{
  color:var(--primary);
  transform:translateX(2px);
}

/* Gradually reduce visible store prices as space gets tighter */
@media(min-width:1380px){
  .book-compare-offer:nth-child(n+6){display:none}
}
@media(min-width:1180px) and (max-width:1379px){
  .book-compare-offers{grid-template-columns:repeat(4,minmax(110px,1fr))}
  .book-compare-offer:nth-child(n+5){display:none}
}
@media(min-width:980px) and (max-width:1179px){
  .book-compare-row{grid-template-columns:minmax(250px,290px) minmax(0,1fr) 34px}
  .book-compare-offers{grid-template-columns:repeat(3,minmax(105px,1fr))}
  .book-compare-offer:nth-child(n+4){display:none}
}
@media(min-width:760px) and (max-width:979px){
  .book-compare-row{grid-template-columns:minmax(235px,270px) minmax(0,1fr) 34px}
  .book-compare-offers{grid-template-columns:repeat(2,minmax(110px,1fr))}
  .book-compare-offer:nth-child(n+3){display:none}
}
@media(max-width:759px){
  .book-compare-row{
    grid-template-columns:minmax(0,1fr) 34px;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
  }
  .book-compare-chevron{
    grid-column:2;
    grid-row:1;
  }
  .book-compare-offers{
    grid-column:1/-1;
    grid-row:2;
    grid-template-columns:repeat(2,minmax(0,1fr));
    border-top:1px solid var(--line);
  }
  .book-compare-offer{
    border-left:1px solid var(--line);
    padding:12px 10px;
  }
  .book-compare-offer:first-child{border-left:0}
  .book-compare-offer:nth-child(n+3){display:none}
  .book-compare-no-offer{
    min-height:58px;
  }
}
@media(max-width:520px){
  .book-compare-summary{
    grid-template-columns:74px minmax(0,1fr);
    gap:12px;
    padding:10px 12px;
  }
  .book-compare-cover{
    width:74px;
    height:108px;
  }
  .book-compare-title{font-size:14px}
  .book-compare-author,
  .book-compare-tags,
  .book-compare-rating,
  .book-compare-rating strong,
  .book-compare-rating span{
    font-size:14px;
  }
  .book-compare-store img{
    max-width:84px;
    max-height:24px;
  }
}


/* Mobile comparison row fix */
@media(max-width:759px){
  .book-compare-row{
    width:100%;
    grid-template-columns:minmax(0,1fr) 38px;
    min-height:0;
    overflow:hidden;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
    min-width:0;
    align-items:center;
    padding:12px;
  }
  .book-compare-chevron{
    grid-column:2;
    grid-row:1;
    align-self:stretch;
    width:38px;
  }
  .book-compare-offers{
    grid-column:1/-1;
    grid-row:2;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    width:100%;
    min-width:0;
    overflow:hidden;
    border-top:1px solid var(--line);
  }
  .book-compare-offers .book-compare-offer{
    width:auto;
    min-width:0;
    min-height:72px;
    padding:10px 8px;
    gap:7px;
    border-left:1px solid var(--line);
    background:transparent;
  }
  .book-compare-offers .book-compare-offer:first-child{
    border-left:0;
  }
  .book-compare-offers .book-compare-offer:nth-child(n+3){
    display:none!important;
  }
  .book-compare-store{
    min-height:28px;
  }
  .book-compare-store img{
    width:auto;
    max-width:82%;
    max-height:24px;
  }
  .book-compare-store-icon-fallback{
    width:30px;
    height:30px;
  }
  .book-compare-price{
    max-width:100%;
    overflow:hidden;
    font-size:14px;
    line-height:1.2;
    text-overflow:ellipsis;
  }
  .book-compare-no-offer{
    grid-column:1/-1;
    min-height:62px;
    padding:14px;
  }
}


/* Comparison cards: final responsive layout */
@media(min-width:980px){
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
  }
  .book-compare-offers{
    grid-column:2;
    grid-row:1;
  }
  .book-compare-chevron{
    grid-column:3;
    grid-row:1;
  }
}

@media(min-width:900px) and (max-width:1179px){
  .book-compare-row{
    grid-template-columns:minmax(250px,290px) minmax(0,1fr) 34px;
  }
  .book-compare-offers{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
  }
  .book-compare-offers .book-compare-offer:nth-child(n+4){
    display:none!important;
  }
}

@media(min-width:760px) and (max-width:899px){
  .book-compare-row{
    grid-template-columns:minmax(0,1fr) 38px;
    min-height:0;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
    padding:12px 14px;
  }
  .book-compare-chevron{
    grid-column:2;
    grid-row:1;
    align-self:stretch;
  }
  .book-compare-offers{
    grid-column:1/-1;
    grid-row:2;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    width:100%;
    overflow:hidden;
    border-top:1px solid var(--line);
  }
  .book-compare-offers .book-compare-offer{
    display:flex!important;
    min-width:0;
    min-height:76px;
    padding:10px 8px;
  }
  .book-compare-offers .book-compare-offer:nth-child(n+4){
    display:none!important;
  }
}

@media(min-width:560px) and (max-width:759px){
  .book-compare-row{
    grid-template-columns:minmax(0,1fr) 38px;
    min-height:0;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
  }
  .book-compare-chevron{
    grid-column:2;
    grid-row:1;
    align-self:stretch;
  }
  .book-compare-offers{
    grid-column:1/-1;
    grid-row:2;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    width:100%;
    overflow:hidden;
    border-top:1px solid var(--line);
  }
  .book-compare-offers .book-compare-offer{
    display:flex!important;
    min-width:0;
  }
  .book-compare-offers .book-compare-offer:nth-child(n+4){
    display:none!important;
  }
}

@media(max-width:559px){
  .book-compare-row{
    grid-template-columns:minmax(0,1fr) 38px;
    min-height:0;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
    min-width:0;
  }
  .book-compare-chevron{
    grid-column:2;
    grid-row:1;
    align-self:stretch;
  }
  .book-compare-offers{
    grid-column:1/-1;
    grid-row:2;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    width:100%;
    overflow:hidden;
    border-top:1px solid var(--line);
  }
  .book-compare-offers .book-compare-offer{
    display:flex!important;
    min-width:0;
  }
  .book-compare-offers .book-compare-offer:nth-child(n+3){
    display:none!important;
  }
}

@media(max-width:390px){
  .book-compare-summary{
    grid-template-columns:68px minmax(0,1fr);
    gap:10px;
    padding:10px;
  }
  .book-compare-cover{
    width:68px;
    height:100px;
  }
  .book-compare-offers{
    grid-template-columns:1fr 1fr;
  }
  .book-compare-store img{
    max-width:72px;
  }
}


/* Comparison row: fixed left book pane, shrinking store pane */
.book-compare-row{
  grid-template-columns:310px minmax(0,1fr) 36px;
}

@media(min-width:1380px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
  }
  .book-compare-offers{
    grid-template-columns:repeat(5,minmax(110px,1fr));
  }
  .book-compare-offers .book-compare-offer:nth-child(n+6){
    display:none!important;
  }
}

@media(min-width:1180px) and (max-width:1379px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
  }
  .book-compare-offers{
    grid-template-columns:repeat(4,minmax(110px,1fr));
  }
  .book-compare-offers .book-compare-offer:nth-child(n+5){
    display:none!important;
  }
}

@media(min-width:980px) and (max-width:1179px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
  }
  .book-compare-offers{
    grid-template-columns:repeat(3,minmax(105px,1fr));
  }
  .book-compare-offers .book-compare-offer:nth-child(n+4){
    display:none!important;
  }
}

@media(min-width:760px) and (max-width:979px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
    min-height:148px;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
  }
  .book-compare-offers{
    grid-column:2;
    grid-row:1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    width:auto;
    overflow:hidden;
    border-top:0;
  }
  .book-compare-chevron{
    grid-column:3;
    grid-row:1;
    align-self:stretch;
  }
  .book-compare-offers .book-compare-offer{
    min-width:0;
    border-left:1px solid var(--line);
  }
  .book-compare-offers .book-compare-offer:nth-child(n+3){
    display:none!important;
  }
}

@media(min-width:560px) and (max-width:759px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
    min-height:148px;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
  }
  .book-compare-offers{
    grid-column:2;
    grid-row:1;
    display:grid;
    grid-template-columns:1fr;
    grid-auto-flow:row;
    grid-auto-columns:auto;
    width:auto;
    overflow:hidden;
    border-top:0;
  }
  .book-compare-chevron{
    grid-column:3;
    grid-row:1;
    align-self:stretch;
  }
  .book-compare-offers .book-compare-offer{
    min-width:0;
    border-left:1px solid var(--line);
  }
  .book-compare-offers .book-compare-offer:nth-child(n+2){
    display:none!important;
  }
}

@media(max-width:559px){
  .book-compare-row{
    grid-template-columns:minmax(0,1fr) 38px;
    min-height:0;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
  }
  .book-compare-chevron{
    grid-column:2;
    grid-row:1;
  }
  .book-compare-offers{
    grid-column:1/-1;
    grid-row:2;
    grid-template-columns:repeat(2,minmax(0,1fr));
    border-top:1px solid var(--line);
  }
  .book-compare-offers .book-compare-offer:nth-child(n+3){
    display:none!important;
  }
}


/* Mobile store carousel + title hover */
.book-compare-title{
  transition:color .18s ease;
}
.book-compare-row:hover .book-compare-title{
  color:var(--primary);
}

@media(max-width:559px){
  .book-compare-offers{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:calc((100% - 2px)/3);
    grid-template-columns:none;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }

  .book-compare-offers .book-compare-offer{
    display:flex!important;
    min-width:0;
    scroll-snap-align:start;
    border-left:1px solid var(--line);
  }

  .book-compare-offers .book-compare-offer:first-child{
    border-left:0;
  }

  .book-compare-offers .book-compare-offer:nth-child(n){
    display:flex!important;
  }

  .book-compare-store img{
    max-width:72px;
    max-height:22px;
  }

  .book-compare-price{
    font-size:14px;
  }
}


/* Comparison row breakpoint correction */
.book-compare-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:normal;
}

@media(min-width:760px) and (max-width:939px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
  }

  .book-compare-offers{
    grid-column:2;
    grid-row:1;
    display:grid;
    grid-template-columns:1fr;
    grid-auto-flow:row;
    grid-auto-columns:auto;
    width:auto;
    overflow:hidden;
    border-top:0;
  }

  .book-compare-offers .book-compare-offer{
    min-width:0;
    border-left:1px solid var(--line);
  }

  .book-compare-offers .book-compare-offer:nth-child(n+2){
    display:none!important;
  }

  .book-compare-chevron{
    grid-column:3;
    grid-row:1;
  }
}


/* Comparison row: account for sidebar collapsing at 820px */
@media(min-width:821px) and (max-width:939px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
  }
  .book-compare-offers{
    grid-column:2;
    grid-row:1;
    grid-template-columns:1fr;
    grid-auto-flow:row;
    grid-auto-columns:auto;
    overflow:hidden;
    border-top:0;
  }
  .book-compare-offers .book-compare-offer:nth-child(n+2){
    display:none!important;
  }
}

@media(min-width:760px) and (max-width:820px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
  }
  .book-compare-offers{
    grid-column:2;
    grid-row:1;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    overflow:hidden;
    border-top:0;
  }
  .book-compare-chevron{
    grid-column:3;
    grid-row:1;
  }
  .book-compare-offers .book-compare-offer{
    display:flex!important;
    min-width:0;
  }
  .book-compare-offers .book-compare-offer:nth-child(n+4){
    display:none!important;
  }
}

@media(min-width:640px) and (max-width:759px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
  }
  .book-compare-offers{
    grid-column:2;
    grid-row:1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    overflow:hidden;
    border-top:0;
  }
  .book-compare-chevron{
    grid-column:3;
    grid-row:1;
  }
  .book-compare-offers .book-compare-offer{
    display:flex!important;
    min-width:0;
  }
  .book-compare-offers .book-compare-offer:nth-child(n+3){
    display:none!important;
  }
}

@media(min-width:560px) and (max-width:639px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
  }
  .book-compare-summary{
    grid-column:1;
    grid-row:1;
  }
  .book-compare-offers{
    grid-column:2;
    grid-row:1;
    grid-template-columns:1fr;
    border-top:0;
  }
  .book-compare-chevron{
    grid-column:3;
    grid-row:1;
  }
  .book-compare-offers .book-compare-offer:nth-child(n+2){
    display:none!important;
  }
}


/* Comparison rows: respond to actual result-area width, not only viewport */
@media(min-width:560px){
  .category-result-list,
  .search-result-cards{
    container-type:inline-size;
    container-name:book-results;
  }

  @container book-results (max-width:760px){
    .book-compare-row{
      grid-template-columns:310px minmax(0,1fr) 36px;
    }

    .book-compare-summary{
      grid-column:1;
      grid-row:1;
    }

    .book-compare-offers{
      grid-column:2;
      grid-row:1;
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      grid-auto-flow:row;
      grid-auto-columns:auto;
      width:auto;
      overflow:hidden;
      border-top:0;
    }

    .book-compare-chevron{
      grid-column:3;
      grid-row:1;
      align-self:stretch;
    }

    .book-compare-offers .book-compare-offer{
      display:flex!important;
      min-width:0;
      border-left:1px solid var(--line);
    }

    .book-compare-offers .book-compare-offer:nth-child(n+3){
      display:none!important;
    }
  }

  @container book-results (max-width:590px){
    .book-compare-offers{
      grid-template-columns:1fr;
    }

    .book-compare-offers .book-compare-offer:nth-child(n+2){
      display:none!important;
    }
  }
}


/* Comparison row: stabilize tablet / narrow-desktop layout */
@media(min-width:560px) and (max-width:820px){
  .book-compare-row{
    grid-template-columns:310px minmax(0,1fr) 36px;
  }

  .book-compare-summary{
    grid-column:1;
    grid-row:1;
  }

  .book-compare-offers{
    grid-column:2;
    grid-row:1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    width:100%;
    min-width:0;
    overflow:hidden;
    border-top:0;
  }

  .book-compare-chevron{
    grid-column:3;
    grid-row:1;
    align-self:stretch;
  }

  .book-compare-offers .book-compare-offer{
    display:flex!important;
    min-width:0;
    width:auto;
    border-left:1px solid var(--line);
  }

  .book-compare-offers .book-compare-offer:nth-child(1),
  .book-compare-offers .book-compare-offer:nth-child(2){
    display:flex!important;
  }

  .book-compare-offers .book-compare-offer:nth-child(n+3){
    display:none!important;
  }
}

@media(min-width:560px) and (max-width:680px){
  .book-compare-row{
    grid-template-columns:290px minmax(0,1fr) 34px;
  }

  .book-compare-summary{
    grid-template-columns:82px minmax(0,1fr);
    gap:13px;
    padding:11px 13px;
  }

  .book-compare-cover{
    width:82px;
    height:116px;
  }
}


/* Narrow tablet: show one store price only */
@media(min-width:560px) and (max-width:680px){
  .book-compare-offers{
    grid-template-columns:1fr;
  }

  .book-compare-offers .book-compare-offer:nth-child(1){
    display:flex!important;
  }

  .book-compare-offers .book-compare-offer:nth-child(n+2){
    display:none!important;
  }
}


/* ===== Site motion system ===== */
:root{
  --motion-fast:160ms;
  --motion-base:240ms;
  --motion-slow:320ms;
  --motion-ease:cubic-bezier(.2,.75,.25,1);
}

.motion-item{
  opacity:0;
  transform:translateY(10px);
  transition:
    opacity var(--motion-base) var(--motion-ease),
    transform var(--motion-base) var(--motion-ease);
  transition-delay:var(--motion-delay,0ms);
  will-change:opacity,transform;
}
.motion-item.motion-visible{
  opacity:1;
  transform:none;
}
.motion-item.motion-pop{
  transform:translateY(6px) scale(.985);
}
.motion-item.motion-pop.motion-visible{
  transform:none;
}

.book-compare-row,
.category-result-row,
.search-result-card,
.account-card,
.author-book-card,
.blog-card,
.home-book-card,
.home-category-card,
.reward-card{
  transition:
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.book-compare-row:hover,
.category-result-row:hover,
.search-result-card:hover,
.account-card:hover,
.author-book-card:hover,
.blog-card:hover,
.home-book-card:hover,
.home-category-card:hover,
.reward-card:hover{
  transform:translateY(-1px);
}

/* Native details/dropdowns: animate the revealed panel without fighting native height */
details[open] > summary + *,
.breadcrumb-overflow[open] .breadcrumb-overflow-menu,
.account-user-menu[open] > :not(summary),
.site-adminbar details[open] > :not(summary){
  animation:kfPanelIn var(--motion-fast) var(--motion-ease) both;
}
@keyframes kfPanelIn{
  from{opacity:0;transform:translateY(-5px) scale(.99)}
  to{opacity:1;transform:none}
}

.search-suggest.open,
.author-share-menu.is-open,
.share-menu.is-open{
  animation:kfPopoverIn var(--motion-fast) var(--motion-ease) both;
}
@keyframes kfPopoverIn{
  from{opacity:0;transform:translateY(-6px) scale(.985)}
  to{opacity:1;transform:none}
}

/* Drawer/backdrop transitions */
.mobile-menu-backdrop,
.category-filter-backdrop{
  transition:opacity var(--motion-base) ease,visibility var(--motion-base) ease;
}
.mobile-panel,
.category-sidebar{
  transition:transform var(--motion-base) var(--motion-ease),box-shadow var(--motion-base) ease;
}

/* Feedback / transient UI */
.site-toast{
  transition:opacity var(--motion-fast) ease,transform var(--motion-fast) var(--motion-ease);
}
.site-toast:not(.show){
  opacity:0;
  transform:translateY(8px);
}
.site-toast.show{
  opacity:1;
  transform:none;
}

.cookie-banner{
  transition:opacity var(--motion-base) ease,transform var(--motion-base) var(--motion-ease),visibility var(--motion-base) ease;
}
.cookie-banner:not(.show){
  opacity:0;
  transform:translateY(12px);
}
.cookie-banner.show{
  opacity:1;
  transform:none;
}

.modal-message.success,
.modal-message.error{
  animation:kfStatusIn var(--motion-fast) var(--motion-ease) both;
}
@keyframes kfStatusIn{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:none}
}

/* Interactive controls should feel responsive, not jumpy */
.btn,
button,
select,
input,
textarea,
.filter-row,
.author-share-toggle,
.category-mobile-filter-btn,
.book-shipping-switch{
  transition:
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}
.btn:active,
button:active{
  transform:translateY(1px);
}

/* AJAX result reveal works for every reusable book row too */
.category-result-list.is-revealing .book-compare-row,
.search-result-cards.is-revealing .book-compare-row{
  opacity:0;
  transform:translateY(8px);
  animation:kfResultIn 280ms var(--motion-ease) forwards;
}
@keyframes kfResultIn{
  to{opacity:1;transform:none}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,
  *::before,
  *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
  .motion-item{
    opacity:1!important;
    transform:none!important;
  }
}


/* ===== Home hero search redesign ===== */
.home-hero-v2{
  padding:64px 0 52px;
  background:
    radial-gradient(circle at 14% 16%,rgba(64,86,214,.11),transparent 26%),
    linear-gradient(180deg,#f8faff 0,#fff 86%);
}
.home-hero-v2 .home-hero-copy{
  max-width:730px;
}
.home-hero-v2 .home-kicker{
  margin-bottom:16px;
  padding:7px 10px;
  border-color:#d9e0ea;
  background:rgba(255,255,255,.9);
  font-size:13px;
}
.home-hero-v2 h1{
  max-width:720px;
  font-size:52px;
  line-height:1.03;
  letter-spacing:-2px;
}
.home-hero-v2 p{
  max-width:680px;
  margin:16px 0 20px;
  font-size:16px;
  line-height:1.7;
}

.home-search-panel{
  max-width:710px;
  padding:14px;
  border:1px solid #e0e6ef;
  border-radius:var(--ui-radius);
  background:rgba(255,255,255,.94);
  box-shadow:0 16px 38px rgba(15,23,42,.07);
}
.home-search-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}
.home-search-panel-head>span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#101828;
  font-size:14px;
  font-weight:700;
}
.home-search-panel-head>span i{
  color:var(--primary);
}
.home-search-panel-head small{
  color:#98a2b3;
  font-size:13px;
}
.home-search-v2{
  max-width:none;
  height:56px;
  border-color:#cfd8e6;
  box-shadow:none;
}
.home-search-v2:focus-within{
  border-color:#9cadff;
  box-shadow:0 0 0 3px rgba(67,86,210,.08);
}
.home-search-v2 input{
  font-size:14px;
}
.home-search-v2 button{
  min-width:92px;
  font-size:14px;
  font-weight:700;
}
.home-popular-rotator{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  margin-top:10px;
  padding:8px 10px;
  border:1px solid #edf0f5;
  border-radius:var(--ui-radius);
  background:#f8fafc;
  overflow:hidden;
}
.home-popular-label{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#667085;
  font-size:13px;
  font-weight:600;
}
.home-popular-label i{
  color:#f59e0b;
}
.home-popular-current{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#344054;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
}
.home-popular-current span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.home-popular-current i{
  font-size:11px;
  color:#98a2b3;
}
.home-popular-current.is-changing{
  animation:homePopularSwap .34s var(--motion-ease) both;
}
@keyframes homePopularSwap{
  0%{opacity:1;transform:translateY(0)}
  48%{opacity:0;transform:translateY(-6px)}
  52%{opacity:0;transform:translateY(6px)}
  100%{opacity:1;transform:translateY(0)}
}
.home-hero-proof{
  margin-top:14px;
  gap:8px 16px;
  font-size:13px;
}

/* Search typo / fuzzy suggestions */
.suggest-correction-head{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px 8px;
  border-bottom:1px solid #eef1f5;
  color:#667085;
  font-size:12px;
  font-weight:700;
}
.suggest-correction-head i{
  color:var(--primary);
}
.suggest-item.is-suggested{
  background:#fbfcff;
}
.suggest-item.is-suggested:hover{
  background:#f3f6ff;
}

.search-no-result{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding:18px;
  border:1px solid #e4e7ec;
  border-radius:var(--ui-radius);
  background:#fff;
}
.search-no-result-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:var(--ui-radius);
  background:#eef3ff;
  color:var(--primary);
}
.search-no-result h2{
  margin:0 0 5px;
  font-size:18px;
  line-height:1.35;
}
.search-no-result p{
  margin:0;
  color:#667085;
  font-size:14px;
  line-height:1.55;
}
.search-did-you-mean{
  margin-top:12px;
  padding:16px;
  border:1px solid #dce3ef;
  border-radius:var(--ui-radius);
  background:#f9fbff;
}
.search-dym-label{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:10px;
  color:#344054;
  font-size:14px;
  font-weight:700;
}
.search-dym-label i{
  color:var(--primary);
}
.search-dym-list{
  display:grid;
  gap:8px;
}
.search-dym-list>a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border:1px solid #e5eaf2;
  border-radius:var(--ui-radius);
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:background-color .16s ease,border-color .16s ease,transform .16s ease;
}
.search-dym-list>a:hover{
  border-color:#cfd8e6;
  background:#f8faff;
  transform:translateX(2px);
}
.search-dym-list strong,
.search-dym-list small{
  display:block;
}
.search-dym-list strong{
  color:#101828;
  font-size:14px;
}
.search-dym-list small{
  margin-top:2px;
  color:#98a2b3;
  font-size:12px;
}
.search-dym-list>a>i{
  color:#98a2b3;
  font-size:12px;
}

@media(max-width:820px){
  .home-hero-v2{
    padding:42px 0 38px;
  }
  .home-hero-v2 h1{
    font-size:40px;
    letter-spacing:-1.4px;
  }
}
@media(max-width:560px){
  .home-hero-v2 h1{
    font-size:34px!important;
    line-height:1.08!important;
  }
  .home-search-panel{
    width:100%;
    max-width:100%;
    padding:11px;
  }
  .home-search-panel-head{
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
  }
  .home-search-v2{
    width:100%;
    min-width:0;
    height:52px;
  }
  .home-search-v2 input{min-width:0}
  .home-search-v2 button{
    flex:0 0 78px;
    padding:0 10px;
    min-width:78px;
  }
  .home-popular-rotator{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
  .home-popular-current{
    width:100%;
  }
}


.home-search-panel{
  position:relative;
}
.home-search-suggest{
  position:absolute;
  left:14px;
  right:14px;
  top:calc(100% - 58px);
  z-index:20;
  display:none;
  overflow:hidden;
  border:1px solid #dce3ee;
  border-radius:var(--ui-radius);
  background:#fff;
  box-shadow:0 16px 36px rgba(15,23,42,.12);
}
.home-search-suggest.open{
  display:block;
  animation:kfPopoverIn var(--motion-fast) var(--motion-ease) both;
}
.home-search-suggest .suggest-correction-head{
  background:#f8faff;
}
.home-search-suggest .suggest-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-top:1px solid #eef1f5;
  color:inherit;
  text-decoration:none;
}
.home-search-suggest .suggest-item:first-of-type{
  border-top:0;
}
.home-search-suggest .suggest-item:hover{
  background:#f8faff;
}
.home-search-suggest .suggest-item>span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#101828;
  font-size:14px;
  font-weight:600;
}
.home-search-suggest .suggest-item>small{
  flex:0 0 auto;
  color:#98a2b3;
  font-size:12px;
}
@media(max-width:560px){
  .home-search-suggest{
    left:11px;
    right:11px;
    top:calc(100% - 66px);
  }
}


.home-search-suggest{
  top:104px;
}
@media(max-width:560px){
  .home-search-suggest{
    top:118px;
  }
}


/* Search correction: Google-like single correction line */
.search-correction-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:12px;
  padding:0 2px;
  font-size:14px;
}
.search-correction-line span{
  color:#667085;
}
.search-correction-line a{
  color:var(--primary);
  font-weight:700;
  text-decoration:none;
}
.search-correction-line a:hover{
  text-decoration:underline;
}

.search-similar-results{
  margin-top:12px;
  padding:16px;
  border:1px solid #e4e7ec;
  border-radius:var(--ui-radius);
  background:#fff;
}
.search-similar-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.search-similar-head strong{
  color:#101828;
  font-size:15px;
}
.search-similar-head span{
  color:#98a2b3;
  font-size:12px;
}


/* ===== Search page refresh ===== */


.search-layout{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:22px;
  align-items:start;
}
.search-filter-card{
  position:sticky;
  top:132px;
  height:max-content;
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.search-filter-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:15px 16px;
  border-bottom:1px solid var(--line);
  background:#fbfcfe;
}
.search-filter-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:0 0 34px;
  border-radius:var(--ui-radius);
  background:var(--primary-soft);
  color:var(--primary);
}
.search-filter-head strong,
.search-filter-head small{
  display:block;
}
.search-filter-head strong{
  color:#101828;
  font-size:14px;
}
.search-filter-head small{
  margin-top:2px;
  color:#98a2b3;
  font-size:12px;
}
.search-filter-form{
  display:block;
}
.search-filter-query{
  padding:14px 16px 2px;
}
.search-filter-query>label{
  display:block;
  margin-bottom:7px;
  color:#344054;
  font-size:14px;
  font-weight:700;
}
.search-filter-query>div{
  position:relative;
}
.search-filter-query i{
  position:absolute;
  left:11px;
  top:50%;
  transform:translateY(-50%);
  color:#98a2b3;
  font-size:13px;
}
.search-filter-query input{
  width:100%;
  height:40px;
  padding:0 10px 0 34px;
  border:1px solid var(--line-strong);
  border-radius:var(--ui-radius);
  background:#fff;
  color:#101828;
  font-size:14px;
  outline:0;
}
.search-filter-query input:focus{
  border-color:#9cadff;
  box-shadow:0 0 0 3px rgba(67,86,210,.08);
}
.search-filter-block{
  padding:14px 16px;
  border-top:1px solid var(--line);
}
.search-filter-block h4{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 9px;
  color:#344054;
  font-size:14px;
}
.search-filter-block h4 i{
  width:16px;
  color:#98a2b3;
  text-align:center;
  font-size:12px;
}
.search-filter-block .select,
.search-price-inputs input{
  width:100%;
  min-height:40px;
  font-size:14px;
}
.search-price-inputs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.search-filter-card .search-filter-button{
  width:calc(100% - 32px);
  margin:0 16px 12px;
}
.search-filter-card .search-filter-button + .search-filter-button{
  margin-top:-4px;
}

/* Matched author sits above book results */
.search-author-match{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  margin-bottom:14px;
  padding:14px 16px;
  border:1px solid #dce3ee;
  border-radius:var(--ui-radius);
  background:linear-gradient(135deg,#fff 0%,#f7f9ff 100%);
  color:inherit;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(15,23,42,.035);
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.search-author-match:hover{
  border-color:#c7d2fe;
  background:#f8faff;
  box-shadow:0 8px 22px rgba(64,86,214,.07);
  transform:translateY(-1px);
}
.search-author-match-photo{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:50%;
  background:#eef2ff;
  color:var(--primary);
  font-size:22px;
}
.search-author-match-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.search-author-match-copy{
  min-width:0;
}
.search-author-match-copy small,
.search-author-match-copy strong,
.search-author-match-copy>span{
  display:block;
}
.search-author-match-copy small{
  margin-bottom:3px;
  color:var(--primary);
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.search-author-match-copy strong{
  color:#101828;
  font-size:18px;
  line-height:1.25;
}
.search-author-match-copy>span{
  margin-top:4px;
  color:#667085;
  font-size:13px;
}
.search-author-match-action{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#475467;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.search-author-match-action i{
  color:#98a2b3;
  font-size:11px;
  transition:transform .18s ease,color .18s ease;
}
.search-author-match:hover .search-author-match-action i{
  color:var(--primary);
  transform:translateX(2px);
}

/* Results header */
.search-results-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:18px;
  margin-bottom:12px;
  padding:0 2px;
}
.search-results-head h1{
  margin:0;
  color:#101828;
  font-size:28px;
  line-height:1.15;
  letter-spacing:-1px;
}
.search-results-head p{
  margin:6px 0 0;
  color:#667085;
  font-size:14px;
}
.search-results-head>.select{
  min-width:158px;
  height:42px;
  background:#fff;
}
.search-results-head .search-correction-line{
  margin:7px 0 0;
  padding:0;
  font-size:13px;
}
.search-results-main{
  min-width:0;
}
.search-result-cards{
  gap:10px;
}

@media(max-width:980px){
  .search-layout{
    grid-template-columns:220px minmax(0,1fr);
    gap:16px;
  }
  .search-author-match{
    grid-template-columns:56px minmax(0,1fr);
  }
  .search-author-match-photo{
    width:56px;
    height:56px;
  }
  .search-author-match-action{
    grid-column:2;
    justify-self:start;
  }
}
@media(max-width:820px){
  .search-layout{
    grid-template-columns:1fr;
  }
  .search-filter-card{
    display:none;
  }
  .search-results-head{
    grid-template-columns:1fr auto;
  }
  .search-results-head h1{
    font-size:24px;
  }
}
@media(max-width:560px){
  .search-page .breadcrumb{
    margin-bottom:14px;
  }
  .search-author-match{
    grid-template-columns:52px minmax(0,1fr);
    gap:11px;
    padding:12px;
  }
  .search-author-match-photo{
    width:52px;
    height:52px;
  }
  .search-author-match-copy strong{
    font-size:16px;
  }
  .search-author-match-action{
    display:none;
  }
  .search-results-head{
    grid-template-columns:1fr;
    gap:10px;
  }
  .search-results-head>.select{
    width:100%;
  }
}


/* Unified category/collection/publisher filter sidebar */
.category-sidebar{
  width:100%;
  border:1px solid #dfe4ec;
  border-radius:var(--ui-radius);
  background:#fff;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
}
.category-filter-summary[hidden]{
  display:none!important;
}
.category-filter-section{
  padding:15px 17px;
  border-bottom:1px solid #e5e9ef;
}
.category-filter-section:last-of-type{
  border-bottom:0;
}
.filter-section-title{
  margin:0 0 11px;
  color:#111827;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}
.filter-scroll-list{
  max-height:250px;
  padding-right:4px;
}
.filter-row{
  min-height:28px;
  margin:8px 0!important;
  gap:10px;
  color:#374151!important;
  font-size:14px;
}
.filter-label-main{
  gap:10px!important;
}
.filter-label-main>span:not(.filter-stars){
  color:#374151!important;
  font-size:14px;
}
.filter-count{
  color:#94a3b8!important;
  font-size:14px!important;
  font-weight:400;
}
.filter-label-main input[type="checkbox"]{
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-color:#cbd5e1;
  border-radius:5px;
}
.category-price-inputs{
  gap:10px;
}
.category-price-inputs input{
  height:42px;
  padding-left:10px;
  font-size:14px;
}
.category-price-inputs label>span{
  right:10px;
  font-size:14px;
}
.price-slider{
  margin:2px 2px 12px;
}
.category-subcategory-list{
  max-height:250px;
}
.category-subcategory-list>a{
  min-height:27px;
  margin:6px 0;
  color:#374151!important;
  font-size:14px;
}
.category-subcategory-list>a span{
  color:#94a3b8;
  font-size:14px;
}
.rating-filter-row{
  min-height:28px;
}
.category-clear{
  width:calc(100% - 34px);
  margin:14px 17px 16px;
}


/* Book compare prices: align available offers to the right */
@media(min-width:560px){
  .book-compare-offers{
    display:flex!important;
    justify-content:flex-end;
    align-items:stretch;
    min-width:0;
  }

  .book-compare-offers .book-compare-offer{
    flex:0 0 152px;
    width:152px;
    min-width:0;
  }
}

@media(min-width:1180px) and (max-width:1379px){
  .book-compare-offers .book-compare-offer{
    flex-basis:138px;
    width:138px;
  }
}

@media(min-width:980px) and (max-width:1179px){
  .book-compare-offers .book-compare-offer{
    flex-basis:124px;
    width:124px;
  }
}

@media(min-width:821px) and (max-width:979px){
  .book-compare-offers .book-compare-offer{
    flex-basis:118px;
    width:118px;
  }
}

@media(min-width:681px) and (max-width:820px){
  .book-compare-offers .book-compare-offer{
    flex-basis:116px;
    width:116px;
  }
}

@media(min-width:560px) and (max-width:680px){
  .book-compare-offers .book-compare-offer{
    flex-basis:112px;
    width:112px;
  }
}


/* Search filters aligned with category filters */
.search-filter-card{
  padding:0;
  overflow:hidden;
  border:1px solid #dfe4ec;
  border-radius:var(--ui-radius);
  background:#fff;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
}
.search-filter-card .category-filter-section{
  padding:15px 17px;
  border-top:0;
  border-bottom:1px solid #e5e9ef;
}
.search-filter-card .category-filter-section:last-of-type{
  border-bottom:0;
}
.search-filter-card .filter-scroll-list{
  max-height:250px;
}
.search-filter-card .filter-row{
  min-height:28px;
  margin:8px 0!important;
}


.search-filter-card .search-filter-button{
  width:calc(100% - 34px);
  margin:14px 17px 0;
}
.search-filter-card .search-filter-button:last-child{
  margin-bottom:16px;
}
.search-results-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.search-results-actions .select{
  min-width:158px;
  height:42px;
}
.search-author-match{
  margin:0 0 12px;
}




/* Search mobile header + shared filter drawer alignment */
@media(max-width:820px){
  .search-results-head{
    display:block;
    margin-bottom:12px;
  }

  .search-results-head>div:first-child{
    min-width:0;
  }

  .search-results-head h1{
    max-width:none;
    margin:0;
    font-size:22px!important;
    line-height:1.22!important;
    letter-spacing:-.5px;
  }

  .search-results-head p{
    margin-top:5px;
  }

  .search-results-actions{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:10px;
    width:100%;
    margin-top:12px;
  }

  .search-results-actions .category-mobile-filter-btn{
    height:42px;
    white-space:nowrap;
  }

  .search-results-actions .select{
    width:100%;
    min-width:0;
    height:42px;
  }

  .search-author-match{
    margin-top:0;
  }
}

@media(max-width:520px){
  .search-results-head h1{
    font-size:21px!important;
  }
}

/* Mobile drawer: keep the full menu reachable above mobile browser controls. */
@media(max-width:820px){
  .mobile-panel{
    height:100dvh!important;
    min-height:100dvh;
    max-height:100dvh!important;
    padding-bottom:calc(18px + env(safe-area-inset-bottom))!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }

  .mobile-category-main-panel{
    max-height:calc(100dvh - 210px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
}

@media(max-width:820px){
  body.has-adminbar .mobile-panel{
    height:calc(100dvh - 36px)!important;
    min-height:calc(100dvh - 36px)!important;
    max-height:calc(100dvh - 36px)!important;
  }
}
@media(max-width:620px){
  body.has-adminbar .mobile-panel{
    height:calc(100dvh - 42px)!important;
    min-height:calc(100dvh - 42px)!important;
    max-height:calc(100dvh - 42px)!important;
  }
}

/* Restore category disclosure; the drawer itself owns scrolling. */
@media(max-width:820px){
  .mobile-category-main-panel{
    max-height:none!important;
    overflow:visible!important;
  }

  .mobile-search{
    min-width:0!important;
  }
  .mobile-search input{
    min-width:0!important;
    flex:1 1 auto!important;
  }
  .mobile-search button{
    flex:0 0 44px!important;
    width:44px!important;
    min-width:44px!important;
  }
}

/* Mobile categories open over the menu links instead of pushing them below the fold. */
@media(max-width:820px){
  .mobile-panel>.mobile-category-menu{
    position:relative;
    overflow:visible!important;
    z-index:6;
  }

  .mobile-category-menu.open>.mobile-category-main-panel{
    position:absolute!important;
    top:calc(100% + 8px);
    right:0;
    left:0;
    display:block!important;
    max-height:min(52dvh,calc(100dvh - 220px))!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    border:1px solid var(--line);
    border-radius:var(--ui-radius);
    background:#fff;
    box-shadow:0 14px 32px rgba(15,23,42,.16);
    z-index:12;
  }
}

/* Unified neutral book-cover placeholders and fully visible covers */
.home-cover-fallback,.kf-book-cover-fallback{display:flex!important;align-items:center!important;justify-content:center!important;background:#edf1f7!important;background-image:none!important;color:#9aa8ba!important;text-align:center!important;padding:10px!important;font-weight:400!important}
.home-cover-fallback i,.kf-book-cover-fallback i{font-size:clamp(24px,4vw,42px);color:#9aa8ba!important}
.home-cover-fallback.t1,.home-cover-fallback.t2,.home-cover-fallback.t3,.home-cover-fallback.t4,.home-cover-fallback.t5{background:#edf1f7!important;color:#9aa8ba!important}
.book-compare-cover img,.kf-book-cover img,.home-deal-cover img{object-fit:contain!important}

/* Price history demo: visible only with ?fiyat-demo=1 */
.book-price-history-demo{margin-top:16px;border:1px solid #e0e6ef;border-radius:5px;padding:16px;background:#fff}
.book-price-history-demo svg{display:block;width:100%;max-height:260px;margin:8px auto 6px;overflow:visible}
.book-history-demo-label{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:13px;font-weight:700;color:#28365c}
.book-history-demo-label i{color:#495bd5}
.book-history-demo-label small{display:block;flex-basis:100%;font-size:12px;font-weight:400;color:#8390a4}
.book-history-demo-prices{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid #ecf0f6;padding-top:14px}
.book-history-demo-prices span{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#8591a5}
.book-history-demo-prices strong{font-size:14px;color:#1c2840}

/* Header guest actions and right-side informational navigation */
.header-actions>a.header-register{display:inline-flex;justify-content:center;align-items:center;min-height:36px;padding:0 15px;background:var(--primary);color:#fff;border-radius:var(--ui-radius);font-weight:600}
.header-actions>a.header-register:hover{background:var(--primary-dark);color:#fff}
.nav-row>a.nav-right-start{margin-left:auto}
@media(min-width:821px) and (max-width:1100px){.header-actions>a.header-register small{display:inline;font-size:14px}.header-actions{gap:12px}.header-actions:has(>.header-action-icon){gap:4px}}


/* Guest registration hover and compact mobile account shortcuts */
.header-actions>a.header-register{gap:8px;transition:background-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease}
.header-actions>a.header-register:hover{transform:translateY(-1px);box-shadow:0 3px 10px rgba(0,0,0,.10)}
.header-actions>a.header-register:active{transform:translateY(0)}
.header-actions>a.header-register i{font-size:14px}
.mobile-guest-actions{display:none}
@media(max-width:820px){.mobile-guest-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.mobile-guest-actions a{display:grid;place-items:center;width:38px;height:38px;border-radius:var(--ui-radius);color:var(--primary);background:var(--primary-soft);font-size:17px;transition:background-color .2s,color .2s}.mobile-guest-actions a:hover{background:var(--primary);color:#fff}}


/* Signed-in desktop header account dropdown */
.header-account-menu{position:relative;flex:none}
.header-account-menu>summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;padding:8px 10px;border-radius:var(--ui-radius);color:#253247;white-space:nowrap;transition:background .2s,color .2s}
.header-account-menu>summary::-webkit-details-marker{display:none}
.header-account-menu>summary:hover,.header-account-menu[open]>summary{background:var(--primary-soft);color:var(--primary)}
.header-account-menu>summary>i:first-child{font-size:19px}
.header-account-menu>summary small{font-size:14px;font-weight:600;max-width:115px;overflow:hidden;text-overflow:ellipsis}
.header-account-chevron{font-size:11px;transition:transform .2s}
.header-account-menu[open] .header-account-chevron{transform:rotate(180deg)}
.header-account-dropdown{position:absolute;top:calc(100% + 8px);right:0;width:230px;z-index:100;background:#fff;border:1px solid var(--line);border-radius:var(--ui-radius);box-shadow:0 12px 35px rgba(15,23,42,.13);padding:7px}
.header-account-name{padding:10px 11px;border-bottom:1px solid var(--line);margin-bottom:5px}
.header-account-name strong,.header-account-name span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-account-name strong{font-size:14px}.header-account-name span{font-size:14px;color:var(--muted)}
.header-account-dropdown>a{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:var(--ui-radius);font-size:14px;color:#354155}
.header-account-dropdown>a:hover{background:var(--primary-soft);color:var(--primary)}
.header-account-dropdown>a i{width:17px;text-align:center}
.header-account-dropdown>a.header-account-logout{border-top:1px solid var(--line);border-radius:0;margin-top:5px;color:#b42335}
@media(max-width:1100px){.header-account-menu>summary small{display:none}}


/* Account overview: understated editorial layout */
.account-dashboard .account-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 28px;border:1px solid #e7eaf0;border-radius:5px;background:#fff;box-shadow:none}
.account-dashboard .account-dashboard-intro{min-width:0}
.account-dashboard .account-dashboard-kicker{font-size:14px;font-weight:600;color:#667085;text-transform:none;letter-spacing:0}
.account-dashboard .account-dashboard-intro h1{font-size:29px;line-height:1.3;letter-spacing:-.7px;margin:5px 0 7px}
.account-dashboard .account-dashboard-intro p{margin:0;color:#667085;font-size:14px}
.account-dashboard .account-dashboard-edit{flex-shrink:0;display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #e0e4ec;background:#fff;border-radius:5px;transition:background .2s,border-color .2s}
.account-dashboard .account-dashboard-edit:hover{background:#f8f9fc;border-color:#c9d2df}
.account-dashboard .account-dashboard-section{margin-top:26px}
.account-dashboard .account-dashboard-stat{min-height:105px!important;align-items:flex-start!important;padding:17px!important;gap:9px!important}
.account-dashboard .account-dashboard-stat-top strong{font-size:26px}
.account-dashboard .account-dashboard-stat-icon{width:36px!important;height:36px!important;flex-basis:36px!important;background:#f4f6fc!important;font-size:15px!important}
.account-dashboard .account-dashboard-stat-label{font-weight:600!important;color:#475467}
.account-dashboard .account-dashboard-profile{border-radius:5px;overflow:hidden}
@media(max-width:700px){.account-dashboard .account-dashboard-hero{align-items:flex-start;flex-direction:column;padding:20px;gap:17px}.account-dashboard .account-dashboard-intro h1{font-size:25px}.account-dashboard .account-dashboard-edit{width:100%;justify-content:center}.account-dashboard .account-dashboard-stat{min-height:95px!important}}


.favorites-page .favorite-page-count{color:#8892a3}

/* Header v3: clean, flat actions; every corner follows the design token */
@media (min-width:821px){
  .site-header .header-grid>.header-actions{gap:8px}
  .site-header .header-actions>a.header-login,.site-header .header-actions>a.header-register{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:40px;padding:0 15px;border-radius:var(--radius);font-weight:600;text-decoration:none;white-space:nowrap;box-shadow:none;transform:none;transition:background-color .18s ease,color .18s ease,border-color .18s ease}
  .site-header .header-actions>a.header-login{background:#f3f5f9;border:1px solid transparent;color:#334155}
  .site-header .header-actions>a.header-login:hover{background:#e9eef8;color:var(--primary)}
  .site-header .header-actions>a.header-register{background:var(--primary);border:1px solid var(--primary);color:#fff}
  .site-header .header-actions>a.header-register:hover{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff;box-shadow:none;transform:none}
  .site-header .header-actions>a.header-login i,.site-header .header-actions>a.header-register i{order:0;width:auto;height:auto;background:none;border:0;border-radius:0;font-size:15px;color:inherit}
  .site-header .header-actions>a.header-login small,.site-header .header-actions>a.header-register small{display:inline;font-size:13px;line-height:1.2;font-weight:600}
  .site-header .header-actions>a.header-login:focus-visible,.site-header .header-actions>a.header-register:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
  .site-header .header-nav{background:#fff;border-top:1px solid #eff1f5;border-bottom:1px solid #eff1f5}
  .site-header .nav-row{height:44px;gap:25px}
  .site-header .nav-row>a.nav-right-start{margin-left:auto}
  .site-header .nav-row>a.nav-right-start,.site-header .nav-row>a.nav-right-start~a{display:inline-flex;align-items:center;min-height:34px;padding:0 9px;border-radius:var(--radius);color:#566276;font-size:13px;font-weight:500;letter-spacing:0;transition:color .18s ease,background-color .18s ease}
  .site-header .nav-row>a.nav-right-start:hover,.site-header .nav-row>a.nav-right-start~a:hover{color:var(--primary);background:#f3f5fa}
  .site-header .nav-row>a.nav-right-start.nav-active,.site-header .nav-row>a.nav-right-start~a.nav-active{color:var(--primary)}
}
@media (min-width:821px) and (max-width:1100px){
  .site-header .header-grid>.header-actions{gap:6px}
  .site-header .header-actions>a.header-login,.site-header .header-actions>a.header-register{padding:0 11px;height:38px;gap:7px}
}
@media (prefers-reduced-motion:reduce){
  .site-header .header-actions>a.header-login,.site-header .header-actions>a.header-register,.site-header .nav-row>a.nav-right-start,.site-header .nav-row>a.nav-right-start~a{transition:none}
}

/* Book details: quiet secondary actions and one clearly emphasized list action */
.kf-book-actions{
 display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;
 padding-top:15px;margin-top:14px;border-top:1px solid #edf0f5;
}
.kf-book-actions>button,
.kf-book-actions .book-share-wrap>.author-share-toggle{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-height:40px;padding:8px 10px;
 border:1px solid transparent;border-radius:var(--radius);
 background:transparent;color:#56647a;font-size:13px;font-weight:600;
 box-shadow:none;white-space:nowrap;
}
.kf-book-actions>button:hover,
.kf-book-actions .book-share-wrap>.author-share-toggle:hover{
 color:var(--primary);border-color:#e5eaf4;background:#f7f9fc;
}
.kf-book-actions>button.is-active{border-color:#fee2e2;background:#fff1f2;color:#b42318}
.kf-book-actions>button.is-active:hover{border-color:#fecaca;background:#ffe4e6;color:#9f1d1d}
.kf-book-actions>button.is-active i{color:inherit}
.kf-book-actions .book-share-wrap{position:relative;order:3}
.kf-book-actions .book-share-wrap>.author-share-toggle .author-share-chevron{position:static;margin-left:3px}
.kf-book-actions .kf-book-comparison-form,
.kf-book-actions .kf-book-comparison-link{order:4;margin:0 0 0 auto}
.kf-book-actions .kf-book-comparison-form button,
.kf-book-actions .kf-book-comparison-link{
 display:inline-flex;justify-content:center;align-items:center;gap:9px;
 min-height:41px;padding:9px 16px;
 border:1px solid var(--primary);border-radius:var(--radius);
 background:var(--primary);color:#fff;font-size:13px;font-weight:700;
 text-decoration:none;box-shadow:none;white-space:nowrap;cursor:pointer;
}
.kf-book-actions .kf-book-comparison-form button:hover,
.kf-book-actions .kf-book-comparison-link:hover{
 background:var(--primary-dark,var(--primary));border-color:var(--primary-dark,var(--primary));color:#fff;
}
@media(max-width:860px){
 .kf-book-actions{gap:5px}
 .kf-book-actions>button,.kf-book-actions .book-share-wrap>.author-share-toggle{padding:8px}
 .kf-book-actions .kf-book-comparison-form,.kf-book-actions .kf-book-comparison-link{margin-left:auto}
}
@media(max-width:620px){
 .kf-book-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 .kf-book-actions>button,.kf-book-actions .book-share-wrap>.author-share-toggle{width:100%;min-width:0;height:42px;padding:8px 5px}
 .kf-book-actions>button span,.kf-book-actions .book-share-wrap>.author-share-toggle span{display:none}
 .kf-book-actions .book-share-wrap{order:0}
 .kf-book-actions .kf-book-comparison-form,.kf-book-actions .kf-book-comparison-link{grid-column:1/-1;order:4;width:100%;margin:0}
 .kf-book-actions .kf-book-comparison-form button,.kf-book-actions .kf-book-comparison-link{width:100%}
 .kf-book-actions .kf-book-comparison-form button span,.kf-book-actions .kf-book-comparison-link span{display:inline}
}

/* Book action dock: compact utilities + distinct collection tile */
.kf-book-actions.kf-action-dock{
 display:grid;grid-template-columns:repeat(4,minmax(65px,1fr)) minmax(178px,1.45fr);
 align-items:stretch;gap:0;margin-top:20px;padding:8px;
 border:1px solid #e4eaf3;border-radius:var(--radius);
 background:#f6f8fc;
}
.kf-action-dock>button,
.kf-action-dock .book-share-wrap>.author-share-toggle{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:7px;width:100%;min-height:75px;height:100%;padding:10px 7px;
 background:transparent;border:0;border-radius:var(--radius);
 box-shadow:none;color:#607087;font-size:11px;font-weight:650;line-height:1.25;
 white-space:normal;text-align:center;
}
.kf-action-dock>button i,
.kf-action-dock .book-share-wrap>.author-share-toggle>i:first-child{
 display:grid;place-items:center;width:28px;height:28px;
 font-size:19px;color:#3b4c68;
}
.kf-action-dock>button:hover,
.kf-action-dock .book-share-wrap>.author-share-toggle:hover{
 background:#fff;color:#284cc5;border:0;box-shadow:0 2px 8px rgba(40,65,115,.07);
}
.kf-action-dock>button.is-active,
.kf-action-dock>button.is-active:hover{background:#fff0f2;color:#b42342;border:0;box-shadow:none}
.kf-action-dock>button.is-active i{color:inherit}
.kf-action-dock .book-share-wrap{order:0;min-width:0;position:relative}
.kf-action-dock .book-share-wrap>.author-share-toggle .author-share-chevron{display:none}
.kf-action-dock .book-share-wrap .author-share-menu{z-index:40}
.kf-action-dock .kf-book-comparison-form,
.kf-action-dock .kf-book-comparison-link{
 order:0;margin:0 0 0 7px;min-width:0;align-self:stretch;
}
.kf-action-dock .kf-book-comparison-form button,
.kf-action-dock .kf-book-comparison-link{
 display:flex;flex-direction:row;justify-content:center;align-items:center;
 gap:11px;height:100%;min-height:75px;width:100%;
 padding:12px;border-radius:var(--radius);
 border:1px solid #d3ddff;background:#e9efff;
 color:#284bc2;font-size:13px;font-weight:750;box-shadow:none;
 text-decoration:none;white-space:normal;text-align:center;
}
.kf-action-dock .kf-book-comparison-form button i,
.kf-action-dock .kf-book-comparison-link i{font-size:18px}
.kf-action-dock .kf-book-comparison-form button:hover,
.kf-action-dock .kf-book-comparison-link:hover{
 border-color:#afc1fc;background:#dfe8ff;color:#173da9;box-shadow:none;
}
@media(max-width:700px){
 .kf-book-actions.kf-action-dock{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:7px}
 .kf-action-dock>button,.kf-action-dock .book-share-wrap>.author-share-toggle{min-height:67px;padding:9px 3px;gap:5px}
 .kf-action-dock>button span,.kf-action-dock .book-share-wrap>.author-share-toggle span{display:block;font-size:10px}
 .kf-action-dock .kf-book-comparison-form,.kf-action-dock .kf-book-comparison-link{grid-column:1/-1;margin:2px 0 0}
 .kf-action-dock .kf-book-comparison-form button,.kf-action-dock .kf-book-comparison-link{min-height:49px;height:49px}
 .kf-action-dock .kf-book-comparison-form button span,.kf-action-dock .kf-book-comparison-link span{display:inline}
}

/* Place the action dock beneath the book cover, filling unused left-column space. */
@media(min-width:821px){
 .kf-book-cover .kf-book-actions.kf-action-dock{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;margin-top:16px;padding:7px;
 }
 .kf-book-cover .kf-action-dock>button,
 .kf-book-cover .kf-action-dock .book-share-wrap>.author-share-toggle{
  min-height:61px;padding:7px 4px;gap:5px;
 }
 .kf-book-cover .kf-action-dock .kf-book-comparison-form,
 .kf-book-cover .kf-action-dock .kf-book-comparison-link{
  grid-column:1/-1;margin:4px 0 0;width:100%;
 }
 .kf-book-cover .kf-action-dock .kf-book-comparison-form button,
 .kf-book-cover .kf-action-dock .kf-book-comparison-link{min-height:47px;height:47px}
}
/* On small screens, retain cover/title side by side and place actions after book facts. */
@media(max-width:820px){
 .kf-book-top .kf-book-cover{display:contents}
 .kf-book-top .kf-book-cover-frame{grid-column:1;grid-row:1;min-width:0}
 .kf-book-top .kf-book-actions.kf-action-dock{
  grid-column:1/-1;grid-row:3;width:100%;margin-top:0;
 }
 .kf-book-top .kf-book-price{grid-row:4}
}

/* Correct placement of the cover action panel: 2x2 actions + full-width list */
@media(min-width:821px){
 .kf-book-cover>.kf-action-dock.kf-book-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,62px) 48px;
  gap:5px;padding:7px;margin-top:12px;
 }
 .kf-book-cover>.kf-action-dock>button:nth-of-type(1){grid-column:1;grid-row:1}
 .kf-book-cover>.kf-action-dock>button:nth-of-type(2){grid-column:2;grid-row:1}
 .kf-book-cover>.kf-action-dock>button:nth-of-type(3){grid-column:1;grid-row:2}
 .kf-book-cover>.kf-action-dock .book-share-wrap{grid-column:2;grid-row:2;order:0;margin:0}
 .kf-book-cover>.kf-action-dock .kf-book-comparison-form,
 .kf-book-cover>.kf-action-dock .kf-book-comparison-link{
  grid-column:1/-1;grid-row:3;order:0;margin:0;width:100%;min-width:0;
 }
 .kf-book-cover>.kf-action-dock>button,
 .kf-book-cover>.kf-action-dock .book-share-wrap>.author-share-toggle{
  min-height:0;height:100%;padding:6px 3px;
 }
 .kf-book-cover>.kf-action-dock .kf-book-comparison-form button,
 .kf-book-cover>.kf-action-dock .kf-book-comparison-link{height:48px;min-height:48px}
}

/* Full-width book action rail — replaces the vertical cover dock */
.book-detail-v2 .kf-book-top>.kf-action-dock.kf-book-actions{
 grid-column:1/-1;grid-row:2;
 display:flex;align-items:center;flex-wrap:wrap;gap:8px;
 width:100%;margin:0;padding:13px 0 0;
 border:0;border-top:1px solid #e9edf4;border-radius:0;
 background:transparent;
}
.book-detail-v2 .kf-book-top>.kf-action-dock>button,
.book-detail-v2 .kf-book-top>.kf-action-dock .book-share-wrap>.author-share-toggle{
 display:inline-flex;flex-direction:row;align-items:center;justify-content:center;
 width:auto;min-height:42px;height:42px;gap:9px;padding:9px 13px;
 border:1px solid #e6ebf3;border-radius:var(--radius);
 background:#fff;color:#53627b;font-size:13px;font-weight:600;white-space:nowrap;
}
.book-detail-v2 .kf-book-top>.kf-action-dock>button i,
.book-detail-v2 .kf-book-top>.kf-action-dock .book-share-wrap>.author-share-toggle>i:first-child{
 display:inline-block;width:auto;height:auto;font-size:16px;color:inherit;
}
.book-detail-v2 .kf-book-top>.kf-action-dock>button:hover,
.book-detail-v2 .kf-book-top>.kf-action-dock .book-share-wrap>.author-share-toggle:hover{
 color:var(--primary);border-color:#cdd9f4;background:#f8faff;box-shadow:none;
}
.book-detail-v2 .kf-book-top>.kf-action-dock>button.is-active{
 color:#b42342;background:#fff1f2;border-color:#fecdd3;
}
.book-detail-v2 .kf-book-top>.kf-action-dock .book-share-wrap{order:0;margin:0}
.book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-form,
.book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-link{
 order:0;grid-column:auto;grid-row:auto;margin:0 0 0 auto;width:auto;min-width:0;
}
.book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-form button,
.book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-link{
 display:inline-flex;flex-direction:row;align-items:center;gap:9px;
 width:auto;min-height:42px;height:42px;padding:9px 19px;
 border:1px solid var(--primary);border-radius:var(--radius);
 background:var(--primary);color:#fff;font-size:13px;font-weight:700;
}
.book-detail-v2 .kf-book-top>.kf-action-dock .book-share-wrap>.author-share-toggle .author-share-chevron{display:none}
@media(max-width:820px){
 .book-detail-v2 .kf-book-top>.kf-action-dock.kf-book-actions{
  grid-column:1/-1;grid-row:4;display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding-top:12px;
 }
 .book-detail-v2 .kf-book-top .kf-book-price{grid-row:3}
 .book-detail-v2 .kf-book-top>.kf-action-dock>button,
 .book-detail-v2 .kf-book-top>.kf-action-dock .book-share-wrap>.author-share-toggle{
  width:100%;min-width:0;padding:8px 4px;justify-content:center;
 }
 .book-detail-v2 .kf-book-top>.kf-action-dock>button span,
 .book-detail-v2 .kf-book-top>.kf-action-dock .book-share-wrap>.author-share-toggle span{display:none}
 .book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-form,
 .book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-link{
  grid-column:1/-1;grid-row:auto;margin:0;width:100%;
 }
 .book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-form button,
 .book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-link{width:100%;min-height:44px}
 .book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-form button span,
 .book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-link span{display:inline}
}

/* Mobile book actions: 2-2-1 layout */
@media(max-width:820px){
.book-detail-v2 .kf-book-top>.kf-action-dock.kf-book-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:44px 44px 46px;gap:8px}
.book-detail-v2 .kf-book-top>.kf-action-dock>button:nth-of-type(1){grid-column:1;grid-row:1}
.book-detail-v2 .kf-book-top>.kf-action-dock>button:nth-of-type(2){grid-column:2;grid-row:1}
.book-detail-v2 .kf-book-top>.kf-action-dock>button:nth-of-type(3){grid-column:1;grid-row:2}
.book-detail-v2 .kf-book-top>.kf-action-dock .book-share-wrap{grid-column:2;grid-row:2;order:0;width:100%;min-width:0}
.book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-form,.book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-link{grid-column:1/-1;grid-row:3;order:0;width:100%;margin:0}
.book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-form button,.book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-link{height:46px;min-height:46px}
}

/* Mobile action labels visible beneath the icons */
@media(max-width:820px){
 .book-detail-v2 .kf-book-top>.kf-action-dock>button,
 .book-detail-v2 .kf-book-top>.kf-action-dock .book-share-wrap>.author-share-toggle{height:60px;min-height:60px;flex-direction:column;gap:5px;padding:6px 4px}
 .book-detail-v2 .kf-book-top>.kf-action-dock>button span,
 .book-detail-v2 .kf-book-top>.kf-action-dock .book-share-wrap>.author-share-toggle span{display:inline;font-size:11px;line-height:1.2;text-align:center}
 .book-detail-v2 .kf-book-top>.kf-action-dock.kf-book-actions{grid-template-rows:60px 60px 46px}
 .book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-form button,
 .book-detail-v2 .kf-book-top>.kf-action-dock .kf-book-comparison-link{flex-direction:row;height:46px;min-height:46px}
}

/* Book detail: refreshed, readable best-price card */
.book-detail-v2 .kf-book-price.kf-price-card-modern{
 padding:18px;border:1px solid #e0e7f1;box-shadow:none;min-width:0;
}
.kf-price-card-modern .kf-price-card-head{flex-direction:column;gap:8px}
.kf-price-card-modern .kf-price-card-head>span{font-size:14px;line-height:1.4;font-weight:600;color:#53647c}
.kf-price-card-modern .kf-price-card-head>strong{font-size:31px;line-height:1.15;letter-spacing:-.5px;color:#101f39;font-weight:800}
.kf-price-card-modern .kf-best-offer-modern{
 display:block;margin:17px 0 14px;padding:14px;
 border:1px solid #cdebdc;
 background:#f0faf4;color:#09693c;
}
.kf-price-card-modern .kf-best-offer-status{
 display:flex;align-items:center;gap:7px;margin-bottom:12px;
 font-size:13px;font-weight:700;line-height:1.3;color:#127647;
}
.kf-price-card-modern .kf-best-offer-status i{font-size:15px;margin:0;grid-row:auto}
.kf-price-card-modern .kf-best-offer-store{display:flex;align-items:center;gap:11px;min-width:0}
.kf-price-card-modern .kf-best-offer-logo{
 display:flex;align-items:center;justify-content:center;overflow:hidden;
 flex:0 0 52px;width:52px;height:52px;
 border:1px solid #d8e7de;color:#18754b;
}
.kf-price-card-modern .kf-best-offer-logo img{
 display:block;max-width:100%;max-height:100%;padding:5px;
}
.kf-price-card-modern .kf-best-offer-logo i{font-size:21px;margin:0}
.kf-price-card-modern .kf-best-offer-store strong{
 display:block;min-width:0;overflow-wrap:anywhere;font-size:17px;line-height:1.35;
 color:#133d29;font-weight:750;
}
.kf-price-card-modern>.kf-price-visit{
 display:flex;align-items:center;justify-content:center;gap:9px;
 width:100%;min-height:48px;padding:10px 13px;border-radius:var(--radius);
 font-size:15px;font-weight:750;box-shadow:none;filter:none;transform:none;
}
.kf-price-card-modern>.kf-price-visit:hover{box-shadow:none;filter:none;transform:none}
.kf-price-card-modern .kf-price-meta{
 display:grid;grid-template-columns:1fr 1fr;gap:8px;color:#475b75;
 font-size:12px;
}
.kf-price-card-modern .kf-price-meta span{
 display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;
 text-align:center;padding:10px 6px;border:1px solid #e5ebf4;
 border-radius:var(--radius);background:#f7f9fc;line-height:1.35;font-weight:600;
}
.kf-price-card-modern .kf-compare-link{
 margin-top:15px;padding:14px 2px 0;border-top:1px solid #e7ebf2;
 font-size:14px;font-weight:700;color:#273d60;
}
.kf-price-card-modern .kf-compare-link:hover{color:#273d60;filter:none;transform:none}
.kf-price-card-modern .kf-price-empty{font-size:13px;line-height:1.5;color:#63748c}
@media(max-width:420px){
 .book-detail-v2 .kf-book-price.kf-price-card-modern{padding:15px}
 .kf-price-card-modern .kf-price-card-head>strong{font-size:27px}
}

/* Price card: plain purchase CTA and compact shipping qualification */
.kf-price-card-modern .kf-price-card-head{gap:3px}
.kf-price-card-modern .kf-price-shipping-note{
 display:inline-flex;align-items:baseline;gap:3px;margin-top:3px;
 color:#64748b;font-size:14px;font-weight:600;line-height:1.3;
}
.kf-price-card-modern .kf-price-shipping-note small{
 font-size:11px;font-weight:500;line-height:1.3;
}
.book-detail-v2 .kf-price-card-modern>a.kf-price-visit.btn.btn-primary{
 display:flex;align-items:center;justify-content:center;gap:9px;
 width:100%;min-height:47px;padding:11px 16px;
 background:var(--primary);background-image:none;
 border:1px solid var(--primary);
 color:#fff;font-size:14px;font-weight:700;line-height:1.4;
 box-shadow:none;filter:none;transform:none;
 transition:background-color .15s ease,border-color .15s ease;
}
.book-detail-v2 .kf-price-card-modern>a.kf-price-visit.btn.btn-primary:hover,
.book-detail-v2 .kf-price-card-modern>a.kf-price-visit.btn.btn-primary:focus-visible{
 background:#3549bb;background-image:none;border-color:#3549bb;
 color:#fff;box-shadow:none;filter:none;transform:none;
}
.book-detail-v2 .kf-price-card-modern>a.kf-price-visit.btn.btn-primary:focus-visible{
 outline:2px solid #9cacf5;outline-offset:2px;
}

/* Book detail purchase card and actions — refined styling */
.book-detail-v2 .kf-book-price.kf-price-card-modern{padding:20px;border:1px solid #e0e6f0;border-radius:var(--radius)}
.kf-price-card-modern .kf-price-card-head{display:flex;flex-direction:row;align-items:baseline;flex-wrap:wrap;column-gap:8px;row-gap:2px;margin-bottom:17px}
.kf-price-card-modern .kf-price-card-head>strong{font-size:30px;letter-spacing:-.7px;color:#14233e}
.kf-price-card-modern .kf-price-shipping-note{margin:0;font-size:17px;color:#526681;font-weight:650}
.kf-price-card-modern .kf-price-shipping-note small{font-size:12px;font-weight:550}
.kf-price-card-modern .kf-best-offer-modern{padding:12px 14px;margin:0 0 15px;background:#f5faf7;border:1px solid #dcece3;border-radius:var(--radius)}
.kf-price-card-modern .kf-best-offer-status{font-size:12px;margin-bottom:10px;color:#137b4d}
.kf-price-card-modern .kf-best-offer-logo{width:43px;height:43px;flex-basis:43px;border-radius:var(--radius)}
.kf-price-card-modern .kf-best-offer-store strong{font-size:16px}
.book-detail-v2 .kf-price-card-modern>a.kf-price-visit.btn.btn-primary{
 height:48px;min-height:48px;background:#4055d6!important;background-image:none!important;
 border:1px solid #4055d6!important;border-radius:var(--radius);color:#fff!important;
 box-shadow:none!important;transform:none!important;filter:none!important;
 transition:background-color .18s ease,border-color .18s ease!important;
}
.book-detail-v2 .kf-price-card-modern>a.kf-price-visit.btn.btn-primary:hover{background:#3246bc!important;border-color:#3246bc!important;box-shadow:none!important;transform:none!important;filter:none!important}
.kf-price-card-modern .kf-price-meta{margin-top:13px;gap:9px}
.kf-price-card-modern .kf-price-meta span{background:#fff;border:0;padding:5px 2px;color:#65748d;font-size:12px;justify-content:flex-start}
.kf-price-card-modern .kf-price-meta span:last-child{justify-content:flex-end;text-align:right}
.kf-price-card-modern .kf-compare-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:47px;padding:12px 2px 0;margin-top:11px;color:#233b64;font-size:13px;font-weight:750;text-decoration:none}
.kf-price-card-modern .kf-compare-link:hover{color:#4055d6;background:transparent;box-shadow:none}
.kf-price-card-modern .kf-compare-arrow{position:relative;display:block;width:20px;height:20px;overflow:hidden;flex:0 0 20px}
.kf-price-card-modern .kf-compare-arrow i{position:absolute;left:3px;top:2px;font-size:15px;transition:transform .3s cubic-bezier(.2,.75,.25,1);transform:translateY(0)}
.kf-price-card-modern .kf-compare-arrow i+ i{transform:translateY(-26px)}
.kf-price-card-modern .kf-compare-link:hover .kf-compare-arrow i:first-child,
.kf-price-card-modern .kf-compare-link:focus-visible .kf-compare-arrow i:first-child{transform:translateY(26px)}
.kf-price-card-modern .kf-compare-link:hover .kf-compare-arrow i+ i,
.kf-price-card-modern .kf-compare-link:focus-visible .kf-compare-arrow i+ i{transform:translateY(0)}
.book-detail-v2 .kf-book-actions>button,
.book-detail-v2 .kf-book-actions .book-share-wrap>.author-share-toggle,
.book-detail-v2 .kf-book-actions .kf-book-comparison-form button,
.book-detail-v2 .kf-book-actions .kf-book-comparison-link{
 border-radius:var(--radius);box-shadow:none!important;filter:none!important;transform:none!important;
 transition:background-color .16s ease,border-color .16s ease,color .16s ease!important;
}
.book-detail-v2 .kf-book-actions>button:hover,
.book-detail-v2 .kf-book-actions .book-share-wrap>.author-share-toggle:hover{background:#f4f7fc;border-color:#dce4f1;box-shadow:none!important;transform:none!important}
.book-detail-v2 .kf-book-actions .kf-book-comparison-form button,
.book-detail-v2 .kf-book-actions .kf-book-comparison-link{background:#4055d6;color:#fff;border:1px solid #4055d6}
.book-detail-v2 .kf-book-actions .kf-book-comparison-form button:hover,
.book-detail-v2 .kf-book-actions .kf-book-comparison-link:hover{background:#3246bc;color:#fff;border-color:#3246bc}
@media(prefers-reduced-motion:reduce){.kf-price-card-modern .kf-compare-arrow i{transition:none}}

/* Compact book price hierarchy: price and merchant in a single clean block */
.book-detail-v2 .kf-book-price.kf-price-card-modern{padding:17px;border-color:#e1e7f0;background:#fff}
.kf-price-card-modern .kf-price-card-head{display:block;margin:0 0 12px}
.kf-price-card-modern .kf-price-kicker{display:block;color:#66768f;font-size:12px;font-weight:600;letter-spacing:.01em;line-height:1.3;margin-bottom:5px}
.kf-price-card-modern .kf-price-amount-line{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.kf-price-card-modern .kf-price-amount-line>strong{font-size:28px;letter-spacing:-.8px;color:#102342;line-height:1.18;font-weight:800}
.kf-price-card-modern .kf-price-amount-line .kf-price-shipping-note{color:#63718a;font-weight:600;font-size:15px}
.kf-price-card-modern .kf-price-amount-line .kf-price-shipping-note small{font-size:12px}
.kf-price-card-modern .kf-best-offer-modern{display:flex;flex-direction:column;gap:8px;background:#f8fafc;border-color:#e4eaf2;padding:11px 12px;margin:0 0 12px}
.kf-price-card-modern .kf-best-offer-status{font-size:11px;line-height:1.2;color:#18835b;margin:0}
.kf-price-card-modern .kf-best-offer-store{gap:9px}
.kf-price-card-modern .kf-best-offer-logo{position:relative;flex:0 0 37px;width:37px;height:37px;background:#fff;border-color:#e0e7ee}
.kf-price-card-modern .kf-best-offer-logo img{position:absolute;inset:0;width:100%;height:100%;padding:4px;object-fit:contain;background:#fff;z-index:1}
.kf-price-card-modern .kf-best-offer-logo i{font-size:16px;color:#61718c}
.kf-price-card-modern .kf-best-offer-store strong{font-size:15px;color:#172b49}
.kf-price-card-modern .kf-price-meta{margin-top:10px}
.kf-price-card-modern .kf-compare-link{margin-top:8px}

/* Unified price/stock alert dialog - 2026 refresh */
#priceAlertModal .book-alert-dialog,
#stockAlertModal .book-alert-dialog{
 width:min(500px,calc(100vw - 32px));max-height:min(92dvh,900px);
 overflow-y:auto;padding:28px;border:1px solid #e6ebf3;
 border-radius:var(--radius);background:#fff;box-shadow:0 18px 65px rgba(15,23,42,.17);
}
#priceAlertModal .book-alert-head,
#stockAlertModal .book-alert-head{gap:13px;padding-right:32px;align-items:flex-start}
#priceAlertModal .book-alert-head .modal-icon,
#stockAlertModal .book-alert-head .modal-icon{
 display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;
 border-radius:var(--radius);background:#eff3ff;color:#4256cc;font-size:18px;
}
#stockAlertModal .book-alert-head .modal-icon{background:#edf6ff;color:#2563ae}
#priceAlertModal .book-alert-head .book-dialog-title,
#stockAlertModal .book-alert-head .book-dialog-title{display:block;margin:2px 0 5px;font-size:22px;line-height:1.2;color:#15243c}
#priceAlertModal .book-alert-head p,
#stockAlertModal .book-alert-head p{margin:0;font-size:13px;line-height:1.55;color:#64748b}
#priceAlertModal .book-alert-current{margin:20px 0;padding:13px 15px;border-color:#e7ebf3;background:#f8faff;border-radius:var(--radius)}
#priceAlertModal .book-alert-current strong{font-size:21px;white-space:nowrap}
#priceAlertModal .book-alert-form,
#stockAlertModal .book-alert-form{display:grid;gap:17px;min-width:0}
#priceAlertModal .book-alert-form>label:not(.book-alert-check),
#stockAlertModal .book-alert-form>label:not(.book-alert-check){display:flex;flex-direction:column;gap:7px;min-width:0}
#priceAlertModal .book-alert-form>label>span:first-child,
#stockAlertModal .book-alert-form>label>span:first-child{font-size:13px;font-weight:700;color:#344258}
#priceAlertModal .book-alert-control,
#stockAlertModal .book-alert-control{
 display:flex;align-items:center;gap:10px;width:100%;height:48px;
 min-height:48px;padding:0 13px;border:1px solid #d9e1ed;
 border-radius:var(--radius);background:#fff;box-shadow:none;
}
#priceAlertModal .book-alert-control:focus-within,
#stockAlertModal .book-alert-control:focus-within{border-color:#7187e8;box-shadow:0 0 0 2px rgba(64,85,214,.08)}
#priceAlertModal .book-alert-control select,
#stockAlertModal .book-alert-control select,
#priceAlertModal .book-alert-control input{
 display:block;flex:1;min-width:0;width:100%;height:46px;
 margin:0;padding:0 20px 0 0;border:0!important;
 outline:0;background:transparent!important;box-shadow:none!important;
 font:inherit;font-size:14px;line-height:1.4;color:#172b48;
}
#priceAlertModal .book-alert-control select,
#stockAlertModal .book-alert-control select{appearance:none;cursor:pointer}
#priceAlertModal .book-alert-control select option,
#stockAlertModal .book-alert-control select option{font-size:14px;color:#172b48;background:#fff}
#priceAlertModal .book-alert-select-arrow,
#stockAlertModal .book-alert-select-arrow{right:14px;font-size:12px;color:#7285a0}
#priceAlertModal .book-alert-help,
#stockAlertModal .book-alert-help{font-size:12px;line-height:1.5;color:#74849b}
#priceAlertModal .book-alert-check{
 position:relative;display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;
 align-items:center!important;column-gap:12px!important;
 width:100%;min-height:70px;margin:0;padding:14px!important;
 border:1px solid #dfe6f1;border-radius:var(--radius);background:#f8faff;
 cursor:pointer;
}
#priceAlertModal .book-alert-check>input{position:absolute;width:1px;height:1px;opacity:0}
#priceAlertModal .book-alert-check-ui{grid-column:1;grid-row:1;width:20px;height:20px}
#priceAlertModal .book-alert-check-copy{
 grid-column:2;grid-row:1;display:flex!important;flex-direction:column;
 justify-content:center;gap:4px;min-width:0;width:100%;font-size:13px;
}
#priceAlertModal .book-alert-check-copy strong{font-size:13px;line-height:1.3;color:#283b56}
#priceAlertModal .book-alert-check-copy small{display:block;font-size:12px;line-height:1.4;color:#61738c}
#priceAlertModal .book-alert-check:focus-within{border-color:#7187e8;outline:2px solid rgba(64,85,214,.15)}
#stockAlertModal .book-stock-alert-form{margin-top:23px}
#stockAlertModal .book-stock-info{
 display:flex;align-items:center;gap:12px;margin:0;
 padding:13px;border:1px solid #e4eaf3;border-radius:var(--radius);background:#f8faff;
}
#stockAlertModal .book-stock-info>i{flex:0 0 39px;width:39px;height:39px;border-radius:var(--radius)}
#stockAlertModal .book-stock-info>div{min-width:0;flex:1}
#stockAlertModal .book-stock-info strong{font-size:13px;line-height:1.4}
#stockAlertModal .book-stock-info span{font-size:12px;line-height:1.45}
#priceAlertModal .book-alert-submit,
#stockAlertModal .book-alert-submit{
 width:100%;min-height:46px;margin:3px 0 0;display:flex;
 align-items:center;justify-content:center;gap:9px;
 border-radius:var(--radius);background:#4055d6;background-image:none;
 border:1px solid #4055d6;color:#fff;font-size:14px;font-weight:700;
 box-shadow:none;filter:none;transform:none;
}
#priceAlertModal .book-alert-submit:hover,
#stockAlertModal .book-alert-submit:hover{
 background:#3348bf;border-color:#3348bf;box-shadow:none;filter:none;transform:none;
}
@media(max-width:560px){
 #priceAlertModal .book-alert-dialog,#stockAlertModal .book-alert-dialog{padding:22px 18px;width:calc(100vw - 20px)}
 #priceAlertModal .book-alert-head .book-dialog-title,#stockAlertModal .book-alert-head .book-dialog-title{font-size:20px}
}

/* Book edition select: enhanced, accessible picker */
#priceAlertModal .book-alert-control:has(.book-edition-picker),#stockAlertModal .book-alert-control:has(.book-edition-picker){overflow:visible}
.book-alert-control .book-edition-native{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important;left:32px}
.book-edition-picker{flex:1;min-width:0;position:relative;height:100%;display:flex;align-items:center}
.book-edition-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:100%;padding:0;border:0;background:transparent;text-align:left;color:#263850;font:inherit;font-size:14px;cursor:pointer}
.book-edition-trigger-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.book-edition-trigger i{color:#8291a8;font-size:11px;transition:transform .15s}
.book-edition-picker.is-open .book-edition-trigger i{transform:rotate(180deg)}
.book-edition-picker.is-single .book-edition-trigger{cursor:default;opacity:1}
.book-edition-menu{position:absolute;z-index:110;top:calc(100% + 9px);left:-37px;right:-13px;padding:5px;border:1px solid #dce4f0;border-radius:var(--radius);background:#fff;box-shadow:0 12px 28px rgba(19,36,66,.12);max-height:230px;overflow-y:auto}
.book-edition-menu[hidden]{display:none}
.book-edition-option{display:block;width:100%;padding:11px 12px;border:0;border-radius:var(--radius);background:#fff;text-align:left;color:#2d3c53;font:inherit;font-size:13px;cursor:pointer}
.book-edition-option:hover,.book-edition-option:focus-visible{background:#f0f4ff;outline:0}
.book-edition-option[aria-selected="true"]{background:#edf2ff;color:#304ac4;font-weight:700}
/* Consistent typography, spacing and interaction across book lower modules */
.book-detail-v2 .book-lower-grid-v2{grid-template-columns:1.1fr .95fr .95fr;}
.book-detail-v2 .book-lower-grid-v2 .book-section-card{min-height:265px;display:flex;flex-direction:column;padding:23px;border:1px solid #e1e7f0;border-radius:var(--radius);background:#fff}
.book-detail-v2 .book-lower-grid-v2 .book-section-heading{margin-bottom:16px}
.book-detail-v2 .book-lower-grid-v2 .book-section-heading h2,
.book-detail-v2 .book-lower-grid-v2 .book-card-title{font-size:19px;line-height:1.3;letter-spacing:-.4px;color:#16243b}
.book-detail-v2 .book-lower-grid-v2 .book-section-heading p{font-size:13px;line-height:1.55;color:#6b7a91}
.book-detail-v2 .history-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:13px;min-height:160px;padding:24px;border:1px dashed #d9e3f1;border-radius:var(--radius);background:#f8faff;text-align:center;color:#62758f;font-size:13px;line-height:1.6}
.book-detail-v2 .history-placeholder i{display:grid;place-items:center;width:50px;height:50px;font-size:22px;color:#4864d4;background:#eaf0ff;border-radius:var(--radius)}
.book-detail-v2 .book-lower-grid-v2 .wide-action{width:100%;min-height:47px;border-radius:var(--radius);font-size:13px;font-weight:700;box-shadow:none;transform:none;filter:none}
.book-detail-v2 .book-lower-grid-v2 .wide-action:hover{box-shadow:none;transform:none;filter:none}
.book-detail-v2 .book-lower-grid-v2 .btn-primary{background:#4055d6;background-image:none}
.book-detail-v2 .book-lower-grid-v2 .btn-primary:hover{background:#3347c1}
.book-detail-v2 .book-stock-action{margin-top:9px;border:1px solid #dfe5ef;background:#fff}
.book-detail-v2 .book-stock-action:hover{background:#f6f8fd}
.book-detail-v2 .review-score-v2{margin:9px 0 17px;gap:11px;align-items:center}
.book-detail-v2 .review-score-v2>strong{font-size:38px;letter-spacing:-1px;color:#172642}
.book-detail-v2 .review-score-v2 span{font-size:12px;line-height:1.5}
.book-detail-v2 .rating-buttons.compact{gap:6px;margin-top:auto}
.book-detail-v2 .rating-buttons.compact .btn{height:38px;min-width:0;flex:1;padding:7px;border:1px solid #e1e7f0;border-radius:var(--radius);font-size:13px;font-weight:700;background:#fff}
.book-detail-v2 .rating-buttons.compact .btn:hover{background:#eff3ff;border-color:#b5c6ff;color:#3048bb}
.book-detail-v2 .book-reviews-card{border-color:#e1e7f0}
.book-detail-v2 .book-review-empty{padding:22px;font-size:13px;color:#65758d;background:#f9fbff;border-color:#dfe6f2;border-radius:var(--radius)}
.book-detail-v2 .book-review-form{margin-top:19px;padding-top:19px;border-color:#e7ecf4}
.book-detail-v2 .book-review-form textarea{border-radius:var(--radius);}
.book-detail-v2 .book-review-form>.btn{min-height:45px;border-radius:var(--radius);background:#4055d6;background-image:none;box-shadow:none}
.book-detail-v2 .book-review-form>.btn:hover{background:#3347c1;box-shadow:none;transform:none}
@media(max-width:1100px){.book-detail-v2 .book-lower-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr))}.book-detail-v2 .book-lower-grid-v2>.book-section-card:first-child{grid-column:1/-1}}
@media(max-width:680px){.book-detail-v2 .book-lower-grid-v2{grid-template-columns:minmax(0,1fr)}.book-detail-v2 .book-lower-grid-v2>.book-section-card:first-child{grid-column:auto}.book-detail-v2 .book-lower-grid-v2 .book-section-card{min-height:0;padding:18px}}

/* Book detail lower sections: clean text hierarchy and balanced modules */
.book-detail-v2 .book-lower-grid-v2{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,.96fr);}
.book-detail-v2 .book-lower-grid-v2>.book-section-card{min-width:0;min-height:320px;padding:23px;border:1px solid #e1e8f2;border-radius:var(--radius);background:#fff}
.book-detail-v2 .book-lower-grid-v2 .book-section-heading{margin:0 0 18px}
.book-detail-v2 .book-lower-grid-v2 .book-section-heading h2{font-size:20px;margin:0;color:#162744}
.book-detail-v2 .book-lower-grid-v2 .history-placeholder{min-height:190px;font-size:14px;color:#657790}
.book-detail-v2 .book-section-heading>div>span{display:none}
.book-detail-v2 .book-section-heading>div>p:empty{display:none}
.book-detail-v2 .book-inline-price-alert .book-alert-form{margin:0;display:grid;gap:13px}
.book-detail-v2 .book-inline-price-alert .book-alert-form>label:not(.book-alert-check){display:grid;gap:6px;margin:0}
.book-detail-v2 .book-inline-price-alert .book-alert-form>label>span:first-child{font-size:13px;color:#344661;font-weight:700}
.book-detail-v2 .book-inline-price-alert .book-alert-control{display:flex;align-items:center;gap:9px;width:100%;height:44px;min-height:44px;border:1px solid #dbe3ef;border-radius:var(--radius);padding:0 11px;background:#fff;box-shadow:none}
.book-detail-v2 .book-inline-price-alert .book-alert-control:focus-within{border-color:#8496e8;box-shadow:0 0 0 2px rgba(64,85,214,.08)}
.book-detail-v2 .book-inline-price-alert .book-alert-control>i:first-child{color:#8494ab}
.book-detail-v2 .book-inline-price-alert .book-alert-control input,.book-detail-v2 .book-inline-price-alert .book-alert-control select{flex:1;width:100%;min-width:0;border:0!important;height:42px;padding:0;background:transparent!important;outline:0;box-shadow:none!important;font-size:14px}
.book-detail-v2 .book-inline-price-alert .book-alert-check{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;min-height:60px;padding:11px!important;margin:0;background:#f8faff;border:1px solid #e0e7f1;border-radius:var(--radius)}
.book-detail-v2 .book-inline-price-alert .book-alert-check input{position:absolute;opacity:0;width:1px;height:1px}
.book-detail-v2 .book-inline-price-alert .book-alert-check-ui{grid-column:1;width:20px;height:20px}
.book-detail-v2 .book-inline-price-alert .book-alert-check-copy{grid-column:2;display:flex!important;flex-direction:column;gap:3px;min-width:0}
.book-detail-v2 .book-inline-price-alert .book-alert-check-copy strong{color:#253d5a}
.book-detail-v2 .book-inline-price-alert .book-alert-check-copy small{font-size:12px;color:#6d7f98;line-height:1.35}
.book-detail-v2 .book-inline-price-alert .book-alert-help{display:none}
.book-detail-v2 .book-inline-price-alert .book-alert-submit{height:46px;margin:0;background:#4055d6;background-image:none;border-radius:var(--radius);box-shadow:none}
.book-detail-v2 .book-inline-price-alert .book-alert-submit:hover{background:#3247bf;box-shadow:none;filter:none;transform:none}
.book-detail-v2 .book-inline-price-alert .book-alert-guest{margin:0}
.book-rating-dashboard{display:flex;flex-direction:column;gap:13px;flex:1;min-width:0}
.book-rating-overview{display:flex;align-items:center;gap:14px}
.book-rating-overview .book-rating-average{font-size:45px;line-height:1;font-weight:800;color:#152742;letter-spacing:-1.5px}
.book-rating-overview>div{display:flex;flex-direction:column;gap:6px}
.book-rating-stars{display:flex;gap:4px;color:#f5a000;font-size:17px}
.book-rating-overview [data-rating-count]{font-size:13px;font-weight:600;color:#75849a}
.book-rating-prompt{margin:auto 0 0;font-size:13px;font-weight:700;color:#344661}
.book-rating-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.book-rating-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;height:62px;padding:7px 2px;background:#fff;border:1px solid #e0e6f0;border-radius:var(--radius);color:#9ba8bd;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
.book-rating-choices button i{font-size:18px;color:#f4ac23}
.book-rating-choices button span{font-size:12px;font-weight:700;color:#64748b}
.book-rating-choices button:hover,.book-rating-choices button:focus-visible,.book-rating-choices button.is-selected{background:#fff8e9;border-color:#f4c568;outline:0}
.book-rating-choices button:disabled{cursor:wait;opacity:.65}
.book-rating-feedback{min-height:17px;margin:0;font-size:12px;color:#4061a2;line-height:1.4}
.book-detail-v2 .book-reviews-card{padding:24px;border-radius:var(--radius)}
.book-detail-v2 .book-reviews-card .book-review-empty{padding:20px;font-size:14px}
.book-detail-v2 .book-review-form textarea{font-size:14px;min-height:120px}
@media(max-width:1150px){.book-detail-v2 .book-lower-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr))}.book-detail-v2 .book-lower-grid-v2>.book-section-card:first-child{grid-column:1/-1}}
@media(max-width:700px){.book-detail-v2 .book-lower-grid-v2{grid-template-columns:minmax(0,1fr)}.book-detail-v2 .book-lower-grid-v2>.book-section-card:first-child{grid-column:auto}.book-detail-v2 .book-lower-grid-v2>.book-section-card{min-height:0;padding:19px}.book-rating-choices button{height:55px}}

/* Compact price-alert and lower book cards */
.book-detail-v2 .book-lower-grid-v2>.book-section-card{
 min-height:0;align-self:start;
}
.book-detail-v2 .book-lower-grid-v2 .book-section-heading{margin-bottom:12px}
.book-detail-v2 .history-placeholder{flex:none;min-height:155px;padding:18px}
.book-detail-v2 .book-rating-dashboard{flex:none}
.book-detail-v2 .book-rating-prompt{margin:4px 0 0}
.book-detail-v2 .book-inline-price-alert .book-alert-form{gap:11px}
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row{
 display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);min-width:0;
}
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row>label:first-child{
 display:flex;flex-direction:column;gap:6px;min-width:0;
}
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row .book-alert-check{
 display:flex!important;flex-direction:row;align-items:center!important;
 gap:9px!important;height:44px;min-height:44px;
 margin:0;padding:8px 10px!important;
}
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row .book-alert-check-copy{
 display:block!important;flex:1;min-width:0;
}
.book-detail-v2 .book-inline-price-alert .book-alert-check-copy strong{
 font-size:12px;line-height:1.25;
}
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row .book-alert-check-ui{
 flex:0 0 20px;
}
.book-detail-v2 .book-inline-price-alert .modal-message:empty{display:none}
.book-detail-v2 .book-inline-price-alert .book-alert-submit{height:43px;min-height:43px}
.book-detail-v2 .book-alert-saved[hidden]{display:none!important}
.book-detail-v2 .book-alert-saved{
 display:flex;align-items:flex-start;gap:12px;padding:15px;
 border:1px solid #bde4ce;background:#f0faf4;
 border-radius:var(--radius);color:#176b40;
}
.book-detail-v2 .book-alert-saved-icon{
 display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;
 background:#d9f5e4;border-radius:var(--radius);font-size:15px;
}
.book-detail-v2 .book-alert-saved strong{display:block;font-size:14px;line-height:1.35}
.book-detail-v2 .book-alert-saved p{margin:5px 0 8px;color:#50735f;font-size:12px;line-height:1.5}
.book-detail-v2 .book-alert-saved a{font-size:12px;font-weight:700;color:#167445;text-decoration:none}
.book-detail-v2 .book-alert-saved a:hover{text-decoration:underline}
.book-detail-v2 .book-inline-price-alert #priceAlertForm[hidden]{display:none!important}
@media(max-width:700px){
 .book-detail-v2 .book-inline-price-alert .book-alert-inline-row{grid-template-columns:minmax(0,1fr) minmax(0,.85fr)}
}

/* Book detail compact two-quarter dashboard */
.book-detail-v2 .book-lower-grid-v2{
 grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);
 gap:14px;align-items:stretch;
}
.book-detail-v2 .book-lower-grid-v2>.book-section-card{
 overflow:auto;align-self:stretch;padding:19px;
}
.book-detail-v2 .book-lower-grid-v2 .history-placeholder{min-height:195px}
.book-detail-v2 .book-inline-price-alert .book-alert-saved{
 flex:1;align-items:flex-start;padding:14px;gap:11px;min-height:0;
}
.book-detail-v2 .book-alert-saved-actions{align-items:center;gap:13px;}
.book-detail-v2 .book-alert-saved-actions button{
 border:1px solid #b8dccb;background:#fff;color:#146c46;
 border-radius:var(--radius);font-weight:700;
 padding:7px 10px;cursor:pointer;
}
.book-detail-v2 .book-alert-saved-actions button:hover{background:#e5f5ec}
.book-detail-v2 .book-rating-dashboard{gap:9px}
.book-detail-v2 .book-rating-prompt{margin-top:9px}
.book-detail-v2 .book-rating-choices{gap:4px}
.book-detail-v2 .book-rating-choices button{height:52px}
.book-detail-v2 .book-rating-choices button i{font-size:17px}
.book-detail-v2 .book-rating-overview .book-rating-average{font-size:40px}
@media(max-width:1180px){
 .book-detail-v2 .book-lower-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr))}
 .book-detail-v2 .book-lower-grid-v2>.book-section-card:first-child{grid-column:1/-1}
}
@media(max-width:700px){
 .book-detail-v2 .book-lower-grid-v2{grid-template-columns:minmax(0,1fr)}
 .book-detail-v2 .book-lower-grid-v2>.book-section-card:first-child{grid-column:auto}
 .book-detail-v2 .book-lower-grid-v2>.book-section-card{height:auto;min-height:0;max-height:none;overflow:visible}
}

/* Book comparison dashboard: balanced centered content and readable typography */
.book-detail-v2 .book-lower-grid-v2>.book-section-card{
  height:315px;min-height:315px;max-height:315px;
  display:flex;flex-direction:column;overflow:hidden;padding:21px;
}
.book-detail-v2 .book-lower-grid-v2 .book-section-heading{
  flex:0 0 auto;margin:0 0 12px;
}
.book-detail-v2 .book-lower-grid-v2 .book-section-heading h2{
  font-size:21px;line-height:1.3;letter-spacing:-.3px;
}
.book-detail-v2 .book-lower-grid-v2 .history-placeholder{
  flex:1;min-height:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:13px;
  padding:20px;text-align:center;font-size:15px;line-height:1.55;
}
.book-detail-v2 .book-inline-price-alert #priceAlertForm:not([hidden]){
  display:flex;flex-direction:column;justify-content:center;
  flex:1;min-height:0;gap:12px;
}
.book-detail-v2 .book-inline-price-alert .book-alert-form>label>span:first-child{
  font-size:14px;
}
.book-detail-v2 .book-inline-price-alert .book-alert-control input,
.book-detail-v2 .book-inline-price-alert .book-alert-control select,
.book-detail-v2 .book-inline-price-alert .book-edition-trigger{
  font-size:14px;
}
.book-detail-v2 .book-inline-price-alert .book-alert-check-copy strong{font-size:13px}
.book-detail-v2 .book-inline-price-alert .book-alert-submit{font-size:14px}
.book-detail-v2 .book-inline-price-alert .book-alert-saved:not([hidden]){
  flex:1;
  gap:13px;min-height:0;
}
.book-detail-v2 .book-alert-saved>div{min-width:0}
.book-detail-v2 .book-alert-saved strong{font-size:16px}
.book-detail-v2 .book-alert-saved p{font-size:14px;margin:7px 0 12px}
.book-detail-v2 .book-alert-saved-actions button,
.book-detail-v2 .book-alert-saved-actions a{font-size:13px}
.book-detail-v2 .book-rating-dashboard{
  display:flex;flex-direction:column;flex:1;min-height:0;gap:14px;
}
.book-detail-v2 .book-rating-overview{gap:14px}
.book-detail-v2 .book-rating-overview .book-rating-average{font-size:46px}
.book-detail-v2 .book-rating-stars{font-size:20px}
.book-detail-v2 .book-rating-overview [data-rating-count]{font-size:14px}
.book-detail-v2 .book-rating-prompt{font-size:14px;text-align:center;
}
.book-detail-v2 .book-rating-choices{width:100%;gap:7px}
.book-detail-v2 .book-rating-choices button{height:56px}
.book-detail-v2 .book-rating-choices button i{font-size:19px}
.book-detail-v2 .book-rating-choices button span{font-size:13px}
.book-detail-v2 .book-rating-feedback{font-size:13px;}
@media(max-width:700px){
 .book-detail-v2 .book-lower-grid-v2>.book-section-card{
  height:auto;min-height:250px;max-height:none;overflow:visible;
 }
 .book-detail-v2 .book-lower-grid-v2 .history-placeholder{min-height:175px}
 .book-detail-v2 .book-rating-dashboard{min-height:195px}
 .book-detail-v2 .book-inline-price-alert #priceAlertForm:not([hidden]){flex:initial}
 .book-detail-v2 .book-inline-price-alert .book-alert-saved:not([hidden]){min-height:145px}
}

/* Fiyat geçmişi boş durumunu hesap sayfalarındaki gibi ortala */
.book-detail-v2 .book-lower-grid-v2>.book-section-card:first-child .history-placeholder{
 flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
 min-height:0;width:100%;padding:20px 16px;margin:0;
 border:0;background:transparent;box-shadow:none;
 text-align:center;gap:10px;
}
.book-detail-v2 .book-lower-grid-v2>.book-section-card:first-child .history-placeholder i{
 display:block;width:auto;height:auto;padding:0;border:0;border-radius:0;
 background:transparent;color:#98a9c7;font-size:27px;line-height:1.2;
}
.book-detail-v2 .book-lower-grid-v2>.book-section-card:first-child .history-placeholder span{
 display:block;max-width:370px;font-size:14px;line-height:1.6;color:#64748b;text-align:center;
}

/* Active price alarm: centered vertical confirmation */
.book-detail-v2 .book-inline-price-alert .book-alert-saved:not([hidden]){
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 text-align:center;gap:11px;padding:18px;
}
.book-detail-v2 .book-inline-price-alert .book-alert-saved-icon{
 flex:0 0 42px;width:42px;height:42px;
 display:grid;place-items:center;margin:0 auto;
}
.book-detail-v2 .book-inline-price-alert .book-alert-saved>div{
 display:flex;flex-direction:column;align-items:center;gap:7px;width:100%;
}
.book-detail-v2 .book-inline-price-alert .book-alert-saved p{margin:0}
.book-detail-v2 .book-inline-price-alert .book-alert-saved-actions{justify-content:center;margin-top:5px}

/* Compact star-rating control */
.book-detail-v2 .book-rating-dashboard{justify-content:center;align-items:center;gap:13px;text-align:center}
.book-detail-v2 .book-rating-overview{gap:12px;justify-content:center}
.book-detail-v2 .book-rating-overview .book-rating-average{font-size:43px;line-height:1;font-weight:800}
.book-detail-v2 .book-rating-overview [data-rating-count]{font-size:13px}
.book-detail-v2 .book-rating-stars{gap:3px;font-size:17px}
.book-detail-v2 .book-rating-prompt{font-size:13px;color:#60718b;font-weight:600;margin:0}
.book-detail-v2 .book-rating-choices{display:flex;justify-content:center;gap:5px;width:auto;max-width:100%}
.book-detail-v2 .book-rating-choices button{
 display:grid;place-items:center;flex:0 0 42px;width:42px;height:43px;min-width:0;
 padding:0;border:1px solid transparent;border-radius:var(--radius);
 background:transparent;color:#b8c3d3;cursor:pointer;
 transition:background-color .15s,border-color .15s,color .15s;
}
.book-detail-v2 .book-rating-choices button i{font-size:25px;color:#f1ae37;transition:transform .15s}
.book-detail-v2 .book-rating-choices button:hover,
.book-detail-v2 .book-rating-choices button:focus-visible{background:#fff5e4;border-color:#f4d28b;outline:0}
.book-detail-v2 .book-rating-choices button:hover i{transform:scale(1.08)}
.book-detail-v2 .book-rating-choices button.is-selected{background:#fff4df;border-color:#eab75b}
.book-detail-v2 .book-rating-feedback{max-width:270px;min-height:0;margin:0;font-size:12px;line-height:1.45;color:#65768e;text-align:center}
.book-detail-v2 .book-rating-feedback:empty{display:none}
@media(max-width:420px){.book-detail-v2 .book-rating-choices button{flex-basis:39px;width:39px;height:41px}}

/* Price alert confirmation: target amount is the primary focal point */
.book-detail-v2 .book-inline-price-alert #priceAlertSavedDetails{display:flex;flex-direction:column;align-items:center;gap:5px;margin:10px 0 15px}
.book-detail-v2 .book-inline-price-alert .book-alert-target-price{display:block;color:#126a42;font-size:30px;font-weight:800;line-height:1.12;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
.book-detail-v2 .book-inline-price-alert .book-alert-target-caption{display:block;font-size:13px;font-weight:500;color:#587567;line-height:1.4}

/* Hedef fiyat daha dar; kargo dahil tek satır */
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row{grid-template-columns:minmax(0,0.8fr) max-content;align-items:end}
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row .book-alert-check{width:auto;min-width:123px;padding:8px 11px!important;justify-content:center}
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row .book-alert-check-copy{flex:0 0 auto;white-space:nowrap}
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row .book-alert-check-copy strong{white-space:nowrap;font-size:12px}
@media(max-width:420px){.book-detail-v2 .book-inline-price-alert .book-alert-inline-row{grid-template-columns:minmax(0,1fr) max-content;gap:7px}.book-detail-v2 .book-inline-price-alert .book-alert-inline-row .book-alert-check{min-width:112px;padding:8px!important}}

/* Hedef fiyat ve kargo seçeneği eşit genişlikte */
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.book-detail-v2 .book-inline-price-alert .book-alert-inline-row .book-alert-check{width:100%;min-width:0;white-space:nowrap}
@media(max-width:420px){.book-detail-v2 .book-inline-price-alert .book-alert-inline-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.book-detail-v2 .book-inline-price-alert .book-alert-inline-row .book-alert-check{width:100%;min-width:0}}
.book-detail-v2 .book-alert-saved-actions .book-alert-cancel{border:1px solid #f0c6cc;background:#fff;color:#b4233b}
.book-detail-v2 .book-alert-saved-actions .book-alert-cancel:hover{background:#fff1f2;border-color:#e9a5b2}
.book-detail-v2 .book-alert-saved-actions button:disabled{opacity:.6;cursor:wait}
.book-detail-v2 .book-alert-cancel-message{margin:6px 0 0;font-size:12px;color:#a33147;text-align:center}
.book-detail-v2 .book-alert-cancel-message[hidden]{display:none}

/* Fiyat alarmı işlem butonları: dengeli ve sade */
.book-detail-v2 .book-alert-saved-actions{display:flex;justify-content:center;flex-wrap:wrap}
.book-detail-v2 .book-alert-saved-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:600;padding:8px 10px;box-shadow:none;transition:background-color .15s,border-color .15s}
.book-detail-v2 .book-alert-saved-actions button i{font-size:12px}
.book-detail-v2 .book-alert-saved-actions .book-alert-cancel{background:transparent;border:1px solid #dfe5ec;color:#69788d}
.book-detail-v2 .book-alert-saved-actions .book-alert-cancel:hover{background:#f5f7fa;border-color:#d0d9e4;color:#43536b;box-shadow:none}

/* Fiyat alarmı işlem butonları her zaman yan yana */
.book-detail-v2 .book-alert-saved-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;flex-wrap:nowrap}
.book-detail-v2 .book-alert-saved-actions button{width:100%;min-width:0;white-space:nowrap;padding:8px 5px;font-size:11px;gap:5px}
.book-detail-v2 .book-alert-saved-actions button i{font-size:11px;flex-shrink:0}

/* Fiyat alarmı: düzenle ve iptal butonları aynı görsel tipte */
.book-detail-v2 .book-alert-saved-actions button,
.book-detail-v2 .book-alert-saved-actions .book-alert-cancel{
 display:inline-flex;align-items:center;justify-content:center;gap:6px;
 min-height:35px;width:100%;padding:8px 5px;
 border:1px solid #b8dccb;border-radius:var(--radius);
 background:#fff;color:#146c46;font-size:11px;font-weight:600;
 box-shadow:none;filter:none;transform:none;
}
.book-detail-v2 .book-alert-saved-actions button:hover,
.book-detail-v2 .book-alert-saved-actions .book-alert-cancel:hover{
 background:#e5f5ec;border-color:#a7d4bb;color:#146c46;
 box-shadow:none;filter:none;transform:none;
}

/* Yıldızla puanlama: imlece kadar altın, sonrası gri */
.book-detail-v2 .book-rating-choices button.is-preview-lit i{color:#f5a21b!important;opacity:1}
.book-detail-v2 .book-rating-choices button.is-preview-dim i{color:#b7c1d1!important;opacity:1}
.book-detail-v2 .book-rating-choices button.is-preview-dim:not(.is-selected){background:transparent}

/* Okur yorumları: güncel tekil tasarım */
.book-reviews-card{padding:22px 24px!important}
.book-reviews-card .book-reviews-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.book-reviews-card .book-reviews-heading h2{margin:0}
.book-review-compose-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 15px;border:1px solid #d8e1f0;border-radius:7px;background:#fff;color:#304fc5;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background-color .15s,border-color .15s}
.book-review-compose-toggle:hover{background:#f1f4ff;border-color:#bdcaff;box-shadow:none;transform:none}
.book-reviews-card .book-review-empty{padding:17px 18px!important;min-height:0!important;text-align:left;border:1px dashed #dce4f0;border-radius:7px;color:#73839d;background:#f8faff;font-size:13px}
.book-reviews-card .book-review-compose[hidden]{display:none!important}
.book-reviews-card .book-review-compose{margin-top:16px;padding:18px;border:1px solid #e1e8f2;border-radius:8px;background:#f9fbfe}
.book-reviews-card .book-review-compose textarea{min-height:110px;max-height:260px;resize:vertical;background:#fff}
.book-reviews-card .book-review-compose .btn{display:inline-flex;width:auto;min-width:160px;margin-top:12px;padding:11px 20px;float:none}
@media(max-width:600px){.book-reviews-card{padding:17px!important}.book-reviews-card .book-reviews-heading{gap:9px}.book-review-compose-toggle{padding:8px 11px;font-size:12px}.book-reviews-card .book-review-compose{padding:13px}.book-reviews-card .book-review-compose .btn{width:100%}}
/* Kitap puanına tıklandığında adres değiştirmeden değerlendirmeye kaydır */
.kf-book-rating[role=button]{cursor:pointer;width:max-content;max-width:100%}
.kf-book-rating[role=button]:focus-visible{outline:2px solid #5269df;outline-offset:4px;border-radius:5px}
.kf-book-rating[role=button]:hover{border-color:#aebfec}
.book-reviews-card .review-list .book-review-item{padding:19px 20px;border:1px solid #e0e6ef;border-radius:10px;background:#fff;box-shadow:none}
.book-reviews-card .book-review-meta{min-width:0}
.book-reviews-card .book-review-avatar{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;border-radius:12px;background:#eef2ff;color:#4058bc;font-size:19px}
.book-reviews-card .book-review-identity{display:flex;min-width:0;flex-direction:column;gap:4px}
.book-reviews-card .book-review-identity strong{color:#172947;font-size:15px;line-height:1.35;font-weight:750}
.book-reviews-card .book-review-identity time{color:#7786a0;font-size:12px;line-height:1.4}
.book-reviews-card .book-review-text{margin:15px 0 0!important;color:#36465e;font-size:15px!important;line-height:1.8!important;overflow-wrap:anywhere;white-space:normal}
@media(max-width:600px){.book-reviews-card .review-list .book-review-item{padding:15px}.book-reviews-card .book-review-avatar{width:38px;height:38px;flex-basis:38px}.book-reviews-card .book-review-status{font-size:11px}.book-reviews-card .book-review-text{font-size:14px!important;line-height:1.7!important}}
.book-review-moderation-menu summary{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:8px 12px;border:1px solid #dce4ef;border-radius:7px;background:#fff;color:#475b79;font-size:12px;font-weight:700;cursor:pointer;list-style:none}
.book-review-moderation-menu summary::-webkit-details-marker{display:none}
.book-review-moderation-menu[open] summary{border-color:#a8b9e8;background:#f5f7ff}
.book-review-moderation-options{position:absolute;left:0;top:calc(100% + 5px);z-index:12;width:225px;padding:6px;border:1px solid #dee5ef;border-radius:9px;background:white;box-shadow:0 12px 30px rgba(20,38,72,.12)}
.book-review-moderation-options button{display:flex;gap:10px;align-items:center;width:100%;padding:10px 11px;border:0;border-radius:6px;background:transparent;color:#2d3d59;text-align:left;font-size:13px;cursor:pointer}
.book-review-moderation-options button:hover{background:#f2f5fb}
.book-review-moderation-options .is-danger{color:#b73b4c}
.book-reviews-card .book-review-meta{position:relative}
.book-reviews-card .book-review-identity{flex:1}
.book-reviews-card .book-review-moderation{margin:0!important;padding:0!important;display:contents}
.book-reviews-card .book-review-moderation-menu{margin-left:auto;order:10;flex:0 0 auto}
.book-reviews-card .book-review-moderation-menu summary{display:grid!important;place-items:center;width:34px;height:34px;min-height:34px;padding:0!important;font-size:14px;border-radius:8px;color:#667792;background:#f7f9fd;border:1px solid #e3e9f3}
.book-reviews-card .book-review-moderation-menu summary .fa-chevron-down{display:none}
.book-reviews-card .book-review-moderation-menu summary::after{display:none}
.book-reviews-card .book-review-moderation-feedback:empty{display:none}
.book-reviews-card .book-review-item{overflow:visible!important}
.book-reviews-card .book-review-status{order:9}
.book-reviews-card .book-review-moderation-menu{position:relative!important}
.book-reviews-card .book-review-moderation-menu .book-review-moderation-options{position:absolute!important;top:calc(100% + 6px)!important;bottom:auto!important;right:0!important;left:auto!important;z-index:999!important;width:220px!important;max-width:min(220px,calc(100vw - 24px))!important;max-height:300px;overflow:auto}
.book-reviews-card .book-review-moderation-menu.opens-up .book-review-moderation-options{top:auto!important;bottom:calc(100% + 6px)!important}
.book-reviews-card .book-review-status{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap}
.book-reviews-card .book-review-meta>.book-review-moderation-menu{margin-left:4px!important}
@media(max-width:600px){.book-reviews-card .book-review-status-label{display:none!important}.book-reviews-card .book-review-status{padding:7px 9px!important}.book-reviews-card .book-review-moderation-menu .book-review-moderation-options{max-height:60vh}}
.book-reviews-card .review-list .book-review-item.review-spam{background:#fff;border:1px solid #dfe6f0}
.book-reviews-card .book-review-status{min-height:27px;padding:5px 9px!important;background:#f2f5fa!important;color:#64748e!important;border:1px solid #e7ebf3;font-size:11px!important;font-weight:650}
.book-reviews-card .book-review-reply-form [role=status]:not(:empty){display:inline-flex;align-items:center;padding:8px 11px;margin-top:8px;border:1px solid #dfe6f0;border-radius:7px;background:#f6f8fc;color:#465977;font-size:12px;line-height:1.5}
.book-reviews-card .book-review-moderation-feedback:empty,.book-reviews-card .book-review-reply-form [role=status]:empty{display:none}
.book-reviews-card .book-review-status[data-status=approved]{background:transparent!important;border-color:transparent!important;color:#64748b!important}
.book-reviews-card .book-review-status[data-status=pending]{background:#fff4dc!important;border-color:#f7dba4!important;color:#b46c0e!important}
.book-reviews-card .book-review-status[data-status=rejected]{background:#fff0f0!important;border-color:#f4caca!important;color:#c13d45!important}
.book-reviews-card .book-review-status[data-status=spam]{background:#f3efff!important;border-color:#ded1fd!important;color:#7451b8!important}
.book-reviews-card .book-review-moderation-feedback:empty{display:none!important}

/* Yönetici yanıtları: yorum kartlarıyla aynı tipografi ve yüzey */
.book-reviews-card .book-review-replies{margin:16px 0 0 54px;gap:10px}
.book-reviews-card .book-review-reply{padding:16px 18px!important;background:#f8faff!important;border:1px solid #e0e6f0!important;border-left:3px solid #9badf0!important;}
.book-reviews-card .book-review-reply strong{font-size:15px!important;font-weight:750;line-height:1.45;color:#233655}
.book-reviews-card .book-review-reply time{margin-top:4px;font-size:12px!important;color:#7787a2}
.book-reviews-card .book-review-reply p{margin:12px 0 0!important;font-size:15px!important;line-height:1.8!important;color:#35465e;overflow-wrap:anywhere}
.book-reviews-card .book-review-edit-form{margin:12px 0;padding:15px;background:#f8faff;border:1px solid #dfe6f0;border-radius:9px;display:grid;gap:10px}
.book-reviews-card .book-review-edit-form[hidden]{display:none!important}
.book-reviews-card .book-review-edit-form textarea{width:100%;min-height:100px;padding:12px;border:1px solid #d8e1ef;border-radius:7px;font:inherit;font-size:14px;line-height:1.6}
.book-reviews-card .book-review-edit-form>div{gap:9px;flex-wrap:wrap}
.book-reviews-card .book-review-edit-form button{border:1px solid #d8e1ef;border-radius:7px;padding:9px 14px;background:white;color:#405577;font-size:13px;font-weight:700;cursor:pointer}
.book-reviews-card .book-review-edit-form button[type=submit]{background:#4256cf;border-color:#4256cf;color:white}
.book-reviews-card .book-review-edit-form [role=status]:empty{display:none}
@media(max-width:600px){.book-reviews-card .book-review-replies{margin-left:0}.book-reviews-card .book-review-reply{padding:14px!important}.book-reviews-card .book-review-reply p{font-size:14px!important}}

.book-reviews-card .book-review-reply-form{margin:12px 0 0 54px;display:grid;gap:9px}
.book-reviews-card .book-review-reply-form[hidden]{display:none!important}
.book-reviews-card .book-review-reply-form textarea{width:100%;min-height:90px;padding:12px;border:1px solid #dbe4ef;border-radius:7px;font-size:14px}
.book-reviews-card .book-review-reply-form button{justify-self:start;background:#4058d9;color:#fff;border:0;border-radius:7px;padding:9px 15px;font-weight:700;cursor:pointer}
.book-reviews-card .book-review-meta{display:flex;align-items:center;gap:12px}
.book-reviews-card .book-review-item{overflow:visible}
@media(max-width:600px){.book-reviews-card .book-review-reply-form{margin-left:0}}

/* Okur yorumları: review-list durum temaları */
.book-reviews-card .review-list{display:grid;gap:12px}
.book-reviews-card .review-list>.book-review-item{padding:19px 20px;border:1px solid #dfe6f0;border-radius:10px;background:#fff;box-shadow:none}
.book-reviews-card .review-list>.book-review-item.review-approved{background:#fff;border-color:#dfe6f0}
.book-reviews-card .review-list>.book-review-item.review-pending{background:#fff8ec;border-color:#f4d9a6}
.book-reviews-card .review-list>.book-review-item.review-rejected{background:#fff2f2;border-color:#f3c9cc}
.book-reviews-card .review-list>.book-review-item.review-spam{background:#f6f2ff;border-color:#ddcff5}
.book-reviews-card .review-list>.book-review-item .book-review-meta{display:flex;justify-content:initial;align-items:center;gap:12px}
.book-reviews-card .review-list>.book-review-item .book-review-identity{display:flex;flex:1;flex-direction:column;gap:4px}
.book-reviews-card .review-list>.book-review-item .book-review-identity strong{font-size:15px}
.book-reviews-card .review-list>.book-review-item .book-review-status{font-size:11px;color:inherit}
.book-reviews-card .review-list>.book-review-item .book-review-text{font-size:15px;line-height:1.8;color:#36465e}
@media(max-width:600px){.book-reviews-card .review-list>.book-review-item{padding:15px}.book-reviews-card .review-list>.book-review-item .book-review-text{font-size:14px}}

/* Yönetici yanıtı: normal yorum yapısı, ayırt edici görünüm */
.book-reviews-card .book-review-reply{width:100%;max-width:none;padding:17px 19px!important;background:#f2f5ff!important;border:1px solid #d8e1ff!important;border-left:3px solid #5873dd!important;border-radius:9px!important}
.book-reviews-card .book-review-reply-head{display:flex;align-items:center;gap:12px}
.book-reviews-card .book-review-reply-head .book-review-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:11px;background:#e1e9ff;color:#425cc5}
.book-reviews-card .book-review-reply-identity{display:flex;flex-direction:column;gap:4px;min-width:0}
.book-reviews-card .book-review-reply-identity strong{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:15px!important;line-height:1.4}
.book-reviews-card .book-review-admin-badge{display:inline-block;padding:3px 7px;border-radius:5px;background:#dfe7ff;color:#3855b6;font-size:11px;font-weight:700;line-height:1.4}
.book-reviews-card .book-review-reply-identity time{font-size:12px;line-height:1.5;margin:0;color:#75849d}
.book-reviews-card .book-review-reply>p{margin:14px 0 0!important;font-size:15px!important;line-height:1.8!important;color:#34445f;white-space:pre-wrap}
.book-reviews-card .book-review-moderation-options button[hidden]{display:none!important}
@media(max-width:600px){.book-reviews-card .book-review-reply{padding:14px!important}.book-reviews-card .book-review-reply-head .book-review-avatar{width:38px;height:38px;flex-basis:38px}.book-reviews-card .book-review-reply>p{font-size:14px!important}}

/* Yönetici yanıtı düzenleme ve silme */
.book-reviews-card .book-review-reply-head .book-review-reply-identity{flex:1}
.book-reviews-card .book-review-reply-actions{margin-left:auto;display:flex;align-items:center;gap:6px}
.book-reviews-card .book-review-reply-actions button{display:grid;place-items:center;width:32px;height:32px;background:#fff;border:1px solid #d6def2;border-radius:7px;color:#526484;cursor:pointer}
.book-reviews-card .book-review-reply-actions button:hover{background:#e6ecff;border-color:#bdc9f5}
.book-reviews-card .book-review-reply-actions button[data-reply-control=delete]:hover{color:#bd394c;background:#fff0f1;border-color:#edc4cc}
.book-reviews-card .book-review-reply-edit{display:grid;gap:9px;margin-top:12px}
.book-reviews-card .book-review-reply-edit[hidden]{display:none!important}
.book-reviews-card .book-review-reply-edit textarea{width:100%;min-height:94px;border:1px solid #d4def0;border-radius:7px;padding:12px;font-size:14px;line-height:1.65;background:#fff}
.book-reviews-card .book-review-reply-edit>div{display:flex;gap:8px;flex-wrap:wrap}
.book-reviews-card .book-review-reply-edit button{border:1px solid #d2dcf0;border-radius:7px;background:#fff;color:#344b79;padding:8px 13px;font-size:13px;font-weight:700;cursor:pointer}
.book-reviews-card .book-review-reply-edit button[type=submit]{background:#4256ce;border-color:#4256ce;color:white}
.book-reviews-card .book-review-reply-error{font-size:12px;color:#bd394c}

/* Yerinde yorum duzenleme: yeni metin kutusu olusturulmaz */
.book-reviews-card .book-review-text.is-editing{display:block;min-height:80px;padding:12px 14px;border:1px solid #9bade7;border-radius:8px;background:#fff;outline:2px solid #e5ebff;outline-offset:0;white-space:pre-wrap;cursor:text}
.book-reviews-card .book-review-edit-form{margin:9px 0 0;padding:0;border:0;background:transparent}
.book-reviews-card .book-review-edit-form textarea{display:none!important}
.book-reviews-card .book-review-edit-form>div{display:flex;gap:8px;justify-content:flex-start}

/* Üst menü bildirim sayacı: tam daire ve ortalanmış rakam */
.header-actions>.header-action-icon.notification-link>b{position:absolute;top:-5px;right:-5px;left:auto;display:flex;align-items:center;justify-content:center;width:20px;height:20px;min-width:20px;min-height:20px;padding:0;border:2px solid #fff;background:var(--primary);color:#fff;font-size:10px;font-weight:700;line-height:1;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums;box-sizing:border-box}

/* Kitap detayı: yalnızca onaylı yorumlar üzerinden AJAX sayfalama */
#bookReviewPagedContent.is-loading{opacity:.55;pointer-events:none;transition:opacity .15s ease}
.book-review-pagination{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:20px;flex-wrap:wrap}
.book-review-pagination a{display:grid;place-items:center;min-width:37px;height:37px;padding:0 10px;border:1px solid #e0e5ef;background:#fff;border-radius:7px;font-weight:650;font-size:13px;color:#475569}
.book-review-pagination a:hover{border-color:#aab7dc;color:#4256cf;background:#f6f8ff}
.book-review-pagination a.is-active{background:#4256cf;color:#fff;border-color:#4256cf}

/* Desktop account notification: match mobile pink badge */
.header-account-menu>summary .header-account-avatar{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;width:22px;height:22px}
.header-account-menu>summary .header-account-avatar>i{font-size:19px}
.header-account-menu>summary .header-account-avatar>b{position:absolute;top:-8px;right:-9px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 3px;border:2px solid #fff;border-radius:50%;background:#e11d48;color:#fff;font-size:9px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}

/* Masaustu bildirim rozeti: kirmizi renk zil ikonunda */
.header-actions>.header-action-icon.notification-link>b{background:#e11d48!important;border-radius:50%!important}

/* Bildirimler: yorum sonucu ayrımı ve sağ eylem hizası */
.notification-page .notification-card-wrap{position:relative}
.notification-page .notification-card-wrap .notification-card{padding-right:58px}
.notification-page .notification-card-wrap>.notification-actions{position:absolute;right:14px;top:50%;bottom:auto;transform:translateY(-50%);z-index:6}
.notification-page .notification-card-wrap>.notification-actions button{width:34px;height:34px;display:grid;place-items:center;border:1px solid #e1e6ef;border-radius:9px;background:#fff;color:#8995aa;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.notification-page .notification-card-wrap>.notification-actions button:hover{background:#fff1f2;color:#be3446;border-color:#f5c9d0}
.notification-page .notification-card-wrap .arrow-side{display:none!important}
.notification-page .notification-card-wrap .notification-card-top{padding-right:130px}
.notification-page .notification-card-wrap .notification-card-top>time{right:0}
.notification-page .notification-card.notification-review-approved{background:#fbfefd;border:1px solid #d6e9df}
.notification-page .notification-card.notification-review-approved .notification-card-accent{background:#22a06b!important}
.notification-page .notification-card.notification-review-approved .notification-main-icon{color:#168052!important;background:#e8f8ef!important}
.notification-page .notification-card.notification-review-approved .notification-main-icon i::before{content:"\f058"}
.notification-page .notification-card.notification-review-rejected{background:#fffdfb;border:1px solid #f0dfd5}
.notification-page .notification-card.notification-review-rejected .notification-card-accent{background:#dc8052!important}
.notification-page .notification-card.notification-review-rejected .notification-main-icon{color:#c0683b!important;background:#fff1e8!important}
.notification-page .notification-card.notification-review-rejected .notification-main-icon i::before{content:"\f057"}
.notification-page .notification-card.notification-review-other .notification-card-accent{background:#7c6be1!important}
@media(max-width:700px){.notification-page .notification-card-wrap .notification-card{padding-right:53px}.notification-page .notification-card-wrap>.notification-actions{right:10px}.notification-page .notification-card-wrap .notification-card-top{padding-right:0}}

/* Theme overrides for header / special-day branding */
.theme-announcement-bar{width:100%;padding:9px 20px;background:var(--theme-announcement-bg,#25376b);color:var(--theme-announcement-text,#fff);text-align:center;font-size:13px;font-weight:650;line-height:1.5}
.theme-brand-picture{display:flex;align-items:center;justify-content:center;max-width:165px;flex:0 1 auto}
.theme-brand-image{display:block;max-height:56px;width:auto;max-width:165px;object-fit:contain}
@media(max-width:820px){.theme-brand-image{max-height:40px;max-width:115px}}

/* Theme-controlled seasonal footer branding */
.theme-footer-logo{max-width:190px;max-height:65px;width:auto;height:auto;object-fit:contain}
