/* Oryzenx — reusable components */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 38px; padding: 0 1rem;
  border-radius: var(--radius-sm); border: 1px solid transparent; font-size: .9rem; font-weight: 600; line-height: 1;
  background: var(--surface-soft); color: var(--text); white-space: nowrap; user-select: none;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
}
.btn:active { transform: scale(.98); }
.btn:hover { color: inherit; }
.btn i { font-size: .95em; }
.btn-sm { height: 32px; padding: 0 .75rem; font-size: .84rem; border-radius: 9px; }
.btn-xs { height: 26px; padding: 0 .55rem; font-size: .76rem; border-radius: 7px; }
.btn-lg { height: 44px; padding: 0 1.25rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(var(--primary-rgb), .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-soft); }
.btn-soft { background: var(--primary-light); color: var(--primary); }
.btn-soft:hover { color: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; opacity: .92; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { color: #fff; opacity: .92; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { color: var(--primary-dark); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, .22); }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font-size: .84rem; font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 0; background: transparent;
  color: var(--text); font-size: 1.02rem; position: relative; flex: none; transition: background-color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-soft); }
.icon-btn-sm { width: 30px; height: 30px; font-size: .9rem; border-radius: 8px; }
.icon-btn-primary { background: var(--primary); color: #fff; }
.icon-btn-primary:hover { background: var(--primary-dark); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .9rem; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.card-title { font-size: 1rem; font-weight: 700; margin: 0; }
.card-link { transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast); color: inherit; display: block; }
.card-link:hover { color: inherit; border-color: rgba(var(--primary-rgb), .35); box-shadow: var(--shadow); transform: translateY(-2px); }

/* Icon box */
.ic-box {
  --c: var(--primary); width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px;
  background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); font-size: 1.05rem;
}
.ic-box-sm { width: 30px; height: 30px; border-radius: 9px; font-size: .9rem; }
.ic-box-lg { width: 46px; height: 46px; border-radius: 13px; font-size: 1.3rem; }
.ic-box .ic-img { width: 60%; height: 60%; object-fit: contain; }

/* Section heading */
.section { margin: 1.25rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
.section-title { font-size: 1.07rem; font-weight: 700; margin: 0; }
.section-sub { color: var(--text-muted); font-size: .86rem; margin: -.4rem 0 .7rem; }
.page-head { margin: .25rem 0 1rem; }
.page-head h1 { margin-bottom: .2rem; }
.page-head p { color: var(--text-muted); margin: 0; font-size: .9rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--text-muted); margin-bottom: .6rem; }

/* Grids */
.grid { display: grid; gap: .7rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 720px) {
  .md-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .lg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Badges & chips */
.badge { display: inline-flex; align-items: center; gap: .25rem; height: 21px; padding: 0 .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; background: var(--surface-soft); color: var(--text-muted); }
.badge-success { background: color-mix(in srgb, var(--success) 13%, transparent); color: var(--success); }
.badge-warning { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.badge-danger { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.badge-info { background: color-mix(in srgb, var(--info) 13%, transparent); color: var(--info); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-vip { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.badge-vip.animated { background-size: 200% 200%; animation: shine 3s ease infinite; }
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: .8rem; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 30px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: .82rem; font-weight: 500; display: inline-flex; align-items: center; gap: .35rem; }
.chip:hover { color: var(--primary); border-color: rgba(var(--primary-rgb), .4); }
.chip.active, .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Alerts */
.alert { display: flex; gap: .55rem; align-items: flex-start; padding: .65rem .8rem; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: .8rem; border: 1px solid transparent; }
.alert i { margin-top: .2rem; }
.alert-success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-danger { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-warning { background: color-mix(in srgb, var(--warning) 10%, var(--surface)); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-info { background: var(--primary-light); color: var(--primary); border-color: rgba(var(--primary-rgb), .2); }

/* Forms */
.form { display: grid; gap: .8rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field > label, .label { font-size: .82rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: .76rem; color: var(--text-muted); }
.field .error { font-size: .76rem; color: var(--danger); }
.req::after { content: " *"; color: var(--danger); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 .75rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: .93rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { height: auto; min-height: 96px; padding: .6rem .75rem; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .14); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .9rem; pointer-events: none; }
.input-icon .input { padding-left: 2.2rem; }
.input-icon .pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.input-group { display: flex; gap: .4rem; }
.input[type="color"] { padding: 3px; width: 56px; }
.input[type="file"] { padding: .45rem; height: auto; font-size: .84rem; }
@media (pointer: coarse) { .input, .select, .textarea { font-size: 16px; } }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .88rem; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--border); position: relative; transition: background var(--t-fast); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--t-fast) var(--ease); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--primary); outline-offset: 2px; }
.form-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.divider-text { display: flex; align-items: center; gap: .7rem; color: var(--text-muted); font-size: .8rem; margin: .4rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* Lists */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: .7rem; padding: .65rem .2rem; border-bottom: 1px solid var(--border); color: inherit; min-width: 0; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { color: inherit; background: var(--surface-soft); }
.list-item .meta { margin-left: auto; color: var(--text-muted); font-size: .76rem; white-space: nowrap; }
.list-item .title { font-weight: 600; font-size: .9rem; }
.list-item .sub { color: var(--text-muted); font-size: .78rem; }

/* Tabs */
.tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); margin-bottom: .9rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: .55rem .75rem; font-size: .86rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: .4rem; align-items: center; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Stats */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem .85rem; box-shadow: var(--shadow-sm); min-width: 0; }
.stat .label { color: var(--text-muted); font-size: .76rem; font-weight: 500; display: flex; align-items: center; gap: .35rem; }
.stat .value { font-size: 1.25rem; font-weight: 700; margin-top: .15rem; line-height: 1.25; }
.stat .delta { font-size: .72rem; font-weight: 600; color: var(--success); }
.stat .delta.down { color: var(--danger); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { font-size: .85rem; min-width: 560px; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); font-weight: 600; background: var(--surface-soft); }
.table th, .table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-soft); }

/* Avatar */
.avatar { --h: 220; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; object-fit: cover;
  background: linear-gradient(135deg, hsl(var(--h) 80% 55%), hsl(calc(var(--h) + 40) 80% 45%)); color: #fff; font-weight: 700; font-size: 1rem; }
.avatar-sm { width: 30px; height: 30px; font-size: .82rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }

/* Empty / skeleton */
.empty { text-align: center; padding: 2rem 1rem; color: var(--text-muted); }
.empty i { font-size: 1.8rem; opacity: .5; margin-bottom: .5rem; display: block; }
.empty-sm { text-align: center; padding: 1.2rem .8rem; color: var(--text-muted); font-size: .86rem; }
.empty-sm i { font-size: 1.3rem; margin-bottom: .3rem; display: block; opacity: .6; }
.skeleton { background: linear-gradient(90deg, var(--surface-soft), var(--border), var(--surface-soft)); background-size: 200% 100%; animation: sk 1.2s ease infinite; border-radius: 8px; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Toasts */
.toast-stack { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--header-h) + 8px); z-index: 900; display: grid; gap: .4rem; width: min(92vw, 380px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .55rem; align-items: center; padding: .65rem .8rem; border-radius: 12px; background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg); font-size: .86rem; animation: toastIn var(--t) var(--ease); }
.toast.success i { color: #4ade80; } .toast.error i { color: #f87171; } .toast.info i { color: #60a5fa; }
.toast.leaving { opacity: 0; transform: translateY(-6px); transition: all var(--t-fast); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* Modal / bottom sheet */
.modal-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, .45); z-index: 800; display: grid; place-items: end center; animation: fadeIn var(--t-fast); }
.modal { width: 100%; max-width: 440px; background: var(--surface); border-radius: 18px 18px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheetIn var(--t) var(--ease); max-height: 88vh; overflow: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.modal-head h3 { margin: 0; font-size: 1rem; }
@media (min-width: 640px) { .modal-backdrop { place-items: center; } .modal { border-radius: 18px; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } }

/* Pager */
.pager { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: 1.2rem 0; }
.pager-info { display: inline-grid; place-items: center; min-width: 64px; height: 40px; padding: 0 .9rem; border-radius: 12px; background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.pager-btn { width: 44px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.pager-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Key-value rows */
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: .45rem .8rem; font-size: .87rem; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* Copy box */
.copy-box { display: flex; align-items: center; gap: .5rem; background: var(--surface-soft); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .5rem .6rem; font-family: var(--mono); font-size: .84rem; }
.copy-box span { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Accordion (FAQ) */
.acc { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.acc + .acc { margin-top: .45rem; }
.acc summary { list-style: none; cursor: pointer; padding: .7rem .85rem; font-weight: 600; font-size: .9rem; display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; color: var(--text-muted); transition: transform var(--t-fast); }
.acc[open] summary::after { transform: rotate(180deg); }
.acc .acc-body { padding: 0 .85rem .8rem; color: var(--text-muted); font-size: .88rem; }

/* Rich content */
.prose { font-size: .96rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.2rem; margin-top: 1.2rem; } .prose h3 { font-size: 1.05rem; margin-top: 1rem; }
.prose img { border-radius: var(--radius-sm); margin: .8rem 0; }
.prose blockquote { margin: .8rem 0; padding: .6rem .9rem; border-left: 3px solid var(--primary); background: var(--primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose table td, .prose table th { border: 1px solid var(--border); padding: .4rem .6rem; }
.fx-emoji { display: inline-block; animation: fxPop 2.4s ease-in-out infinite; }
@keyframes fxPop { 0%, 80%, 100% { transform: none; } 88% { transform: scale(1.2) rotate(-6deg); } 94% { transform: scale(1.05) rotate(4deg); } }

/* Share sheet (opened from any page) */
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem .3rem; }
.share-opt { display: grid; justify-items: center; gap: .35rem; padding: .3rem 0; border: 0; background: none; color: var(--text); font-size: .74rem; font-weight: 600; }
.share-opt:hover { color: var(--text); }
.soc-dot { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; transition: transform var(--t-fast); }
.share-opt:hover .soc-dot { transform: translateY(-2px) scale(1.05); }

/* Error page */
.error-page { text-align: center; padding: 3rem 1rem; max-width: 460px; margin: 0 auto; }
.error-code { font-size: 3.4rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem; }

/* Brand social buttons (official colours + logos) */
.soc { color: #fff !important; border-color: transparent !important; background: var(--sc, var(--primary)) !important; box-shadow: 0 6px 14px -6px var(--sc, rgba(0,0,0,.3)) !important; }
.soc:hover { filter: brightness(1.08); transform: translateY(-2px); }
.soc-whatsapp { --sc: #25d366; }
.soc-email { --sc: #ea4335; }
.soc-telegram { --sc: #229ed9; }
.soc-facebook { --sc: #1877f2; }
.soc-x { --sc: #000; }
.soc-linkedin { --sc: #0a66c2; }
.soc-github { --sc: #24292f; }
.soc-youtube { --sc: #ff0000; }
.soc-messenger { --sc: #0084ff; background: linear-gradient(135deg, #00b2ff, #006aff 60%, #a033ff) !important; }
.soc-instagram { --sc: #e1306c; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important; }
[data-theme="dark"] .soc-x, [data-theme="dark"] .soc-github { --sc: #fff; color: #000 !important; }

/* Tech icons inserted into posts from the editor */
.ti { display: inline-block; font-size: 1.05em; vertical-align: -.12em; margin: 0 .08em; }
.ti-svg { width: 1.05em; height: 1.05em; background: center / contain no-repeat; }
.ti-node { color: #3c873a; } .ti-php { color: #777bb4; } .ti-react { color: #149eca; } .ti-vue { color: #41b883; } .ti-angular { color: #dd0031; }
.ti-js { color: #e8b400; } .ti-html { color: #e34f26; } .ti-css { color: #1572b6; } .ti-bootstrap { color: #7952b3; } .ti-sass { color: #cc6699; }
.ti-laravel { color: #ff2d20; } .ti-python { color: #3776ab; } .ti-java { color: #e76f00; } .ti-mysql { color: #00758f; } .ti-docker { color: #2496ed; }
.ti-git { color: #f05032; } .ti-github { color: var(--text); } .ti-npm { color: #cb3837; } .ti-aws { color: #ff9900; } .ti-cloudflare { color: #f38020; }
.ti-wordpress { color: #21759b; } .ti-figma { color: #a259ff; } .ti-android { color: #3ddc84; } .ti-apple { color: var(--text); } .ti-linux { color: #e8a200; }
.ti-google { color: #4285f4; } .ti-openai { color: #10a37f; } .ti-bitcoin { color: #f7931a; } .ti-ethereum { color: #627eea; } .ti-telegram { color: #229ed9; } .ti-whatsapp { color: #25d366; }
.ti-vite { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2341d1ff'/%3E%3Cstop offset='1' stop-color='%23bd34fe'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M30 5 16.6 28.8a.8.8 0 0 1-1.4 0L2 5a.8.8 0 0 1 .8-1.1L16 6.3l13.2-2.4A.8.8 0 0 1 30 5z' fill='url(%23a)'/%3E%3Cpath d='M22.3 1.1 12.6 3a.4.4 0 0 0-.3.3l-.6 10.1a.4.4 0 0 0 .5.4l2.7-.6a.4.4 0 0 1 .5.5l-.8 3.9a.4.4 0 0 0 .5.5l1.7-.5a.4.4 0 0 1 .5.5l-1.3 6.3c-.1.4.4.6.6.3l.2-.3 7.4-14.8a.4.4 0 0 0-.4-.6l-2.8.5a.4.4 0 0 1-.5-.5l1.8-6.3a.4.4 0 0 0-.5-.5z' fill='%23ffc517'/%3E%3C/svg%3E"); }
.ti-next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%23000'/%3E%3Cpath d='M11 10v12M11 10l11 14' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M21 10v8' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ti-ts { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='4' fill='%233178c6'/%3E%3Ctext x='17' y='25' font-family='Arial' font-weight='700' font-size='15' fill='%23fff' text-anchor='middle'%3ETS%3C/text%3E%3C/svg%3E"); }
.ti-tailwind { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%2338bdf8' d='M16 7c-4.3 0-7 2.1-8 6.4 1.6-2.1 3.5-2.9 5.6-2.4 1.2.3 2.1 1.2 3.1 2.2 1.6 1.6 3.4 3.4 7.3 3.4 4.3 0 7-2.1 8-6.4-1.6 2.1-3.5 2.9-5.6 2.4-1.2-.3-2.1-1.2-3.1-2.2C21.7 8.8 19.9 7 16 7zM8 16.6c-4.3 0-7 2.1-8 6.4 1.6-2.1 3.5-2.9 5.6-2.4 1.2.3 2.1 1.2 3.1 2.2 1.6 1.6 3.4 3.4 7.3 3.4 4.3 0 7-2.1 8-6.4-1.6 2.1-3.5 2.9-5.6 2.4-1.2-.3-2.1-1.2-3.1-2.2-1.6-1.6-3.4-3.4-7.3-3.4z'/%3E%3C/svg%3E"); }
.ti-mongo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%2347a248' d='M16.6 2.5c-.3-.6-.6-1-.7-1.4v.1c-.1.4-.4.8-.7 1.3C12.9 4.9 7.8 9 7.8 17.2c0 6.9 4.9 10.2 7 11.4l.6 2.4h1.3l.5-2.4c2.2-1.2 7-4.6 7-11.4 0-8.3-5.3-12.4-7.6-14.7z'/%3E%3Cpath fill='%23fff' d='M16 29.5V12' stroke='%23fff' stroke-width='.8' opacity='.7'/%3E%3C/svg%3E"); }
.tech-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; max-height: 60vh; overflow: auto; }
.tech-pick button { display: grid; justify-items: center; gap: .25rem; padding: .55rem .2rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 1.4rem; }
.tech-pick button:hover { border-color: var(--primary); }
.tech-pick small { font-size: .62rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Centered confirm popup */
.confirm-backdrop { position: fixed; inset: 0; z-index: 980; display: grid; place-items: center; padding: 1rem; background: rgba(2, 6, 23, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn var(--t-fast); }
.confirm-backdrop.leaving { opacity: 0; transition: opacity var(--t-fast); }
.confirm-box { width: 100%; max-width: 330px; background: var(--surface); border-radius: 22px; padding: 1.3rem 1.1rem 1rem; text-align: center; box-shadow: var(--shadow-lg); animation: popIn .22s var(--ease); }
@keyframes popIn { from { transform: scale(.9); opacity: 0; } }
.confirm-ic { width: 56px; height: 56px; margin: 0 auto .6rem; border-radius: 18px; display: grid; place-items: center; font-size: 1.35rem; color: var(--primary); background: var(--primary-light); }
.confirm-ic.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.confirm-box h3 { font-size: 1.08rem; font-weight: 800; margin: 0 0 .25rem; }
.confirm-box p { color: var(--text-muted); font-size: .88rem; margin: 0 0 1rem; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.confirm-actions .btn { height: 42px; border-radius: 12px; }

/* Promo offer popup */
body.offer-open { overflow: hidden; }
.offer-backdrop { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 18px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
.offer-backdrop.closing { animation: fadeOut .2s ease forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.offer-card { position: relative; width: min(340px, 100%); border-radius: 24px; background: var(--surface); overflow: hidden; box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .6); animation: offerIn .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes offerIn { from { opacity: 0; transform: translateY(24px) scale(.88); } }
.offer-x { position: absolute; z-index: 2; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .2); }
.offer-card-state .offer-x { color: var(--text-muted); background: var(--surface-soft); }
.offer-hero { position: relative; overflow: hidden; padding: 1.1rem 1rem 1.3rem; text-align: center; color: #fff; background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .25), transparent 45%), linear-gradient(135deg, #f97316, #ec4899 55%, var(--accent)); }
.offer-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.offer-big { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .55rem; }
.offer-big strong { font-size: 3.1rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; text-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.offer-pct { display: grid; justify-items: start; line-height: 1; }
.offer-big small { font-size: .95rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .95; margin-top: .15rem; }
.offer-gift { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(255, 255, 255, .22); animation: giftWiggle 2.2s ease-in-out infinite; }
@keyframes giftWiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg) scale(1.08); } 85% { transform: rotate(10deg) scale(1.08); } 92% { transform: rotate(-5deg); } }
.offer-dot { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .7); animation: confetti 3s linear infinite; }
.offer-dot.d1 { left: 12%; top: -10px; } .offer-dot.d2 { left: 35%; top: -10px; animation-delay: .8s; background: #fde047; }
.offer-dot.d3 { left: 70%; top: -10px; animation-delay: 1.6s; } .offer-dot.d4 { left: 88%; top: -10px; animation-delay: 2.2s; background: #a7f3d0; }
@keyframes confetti { to { transform: translateY(150px) rotate(320deg); opacity: 0; } }
.offer-body { padding: .9rem 1rem 1rem; text-align: center; }
.offer-body h3, .offer-state h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .3rem; }
.offer-body p, .offer-state p { font-size: .8rem; color: var(--text-muted); margin: 0 0 .75rem; line-height: 1.5; }
.offer-timer { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; color: #ea580c; background: color-mix(in srgb, #f97316 10%, var(--surface)); padding: .25rem .65rem; border-radius: 999px; margin-bottom: .75rem; }
.offer-timer b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.offer-claim { height: 46px; border-radius: 14px; font-size: .95rem; background: linear-gradient(135deg, #f97316, #ec4899) !important; border: 0 !important; box-shadow: 0 10px 22px -10px #ec4899; animation: claimPulse 2s ease-in-out infinite; }
@keyframes claimPulse { 50% { box-shadow: 0 10px 30px -6px rgba(236, 72, 153, .75); } }
.offer-later { margin-top: .4rem; border: 0; background: none; color: var(--text-muted); font-size: .78rem; padding: .3rem .6rem; }
.offer-rules { margin: .35rem 0 0 !important; font-size: .66rem !important; display: flex; align-items: center; justify-content: center; gap: .3rem; }
.offer-state { padding: 1.6rem 1.1rem 1.1rem; text-align: center; }
.offer-state-ic { width: 60px; height: 60px; margin: 0 auto .7rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; animation: popIn .35s var(--ease); }
.offer-state.ok .offer-state-ic { color: var(--success); background: color-mix(in srgb, var(--success) 14%, var(--surface)); }
.offer-state.warn .offer-state-ic { color: #d97706; background: color-mix(in srgb, #f59e0b 16%, var(--surface)); }
.offer-state.warn h3 { color: #b45309; }
/* Checkout: offer applied / claim strip */
.offer-applied { width: 100%; display: flex; align-items: center; gap: .5rem; margin-top: .6rem; padding: .55rem .75rem; border-radius: 14px; font-size: .8rem; font-weight: 600; color: #9a3412; background: linear-gradient(135deg, color-mix(in srgb, #f97316 13%, var(--surface)), color-mix(in srgb, #ec4899 10%, var(--surface))); border: 1px dashed color-mix(in srgb, #f97316 45%, transparent); text-align: left; }
.offer-applied span { flex: 1; }
.offer-applied strong { color: var(--success); }
.offer-cta { cursor: pointer; }
[data-theme="dark"] .offer-applied { color: #fdba74; }
.price-old { display: block; font-size: .7rem; font-weight: 500; color: var(--text-muted); text-align: right; }
