hesabixWpTheme/assets/css/404.css

727 lines
14 KiB
CSS

/**
* صفحه ۴۰۴ — hesabix2
*/
.hx-404 {
position: relative;
min-height: calc(100svh - 4.5rem);
display: flex;
align-items: center;
padding: clamp(2rem, 5vw, 4rem) 0;
overflow: hidden;
isolation: isolate;
}
/* ——— پس‌زمینه ——— */
.hx-404__bg {
position: absolute;
inset: 0;
z-index: 0;
background: linear-gradient(155deg, #e0f2fe 0%, #f0f9ff 35%, #f8fafc 70%, #fff 100%);
}
.hx-404__grid {
position: absolute;
inset: 0;
opacity: 0.45;
background-image:
linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
background-size: 28px 28px;
mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
.hx-404__orb {
position: absolute;
border-radius: 50%;
filter: blur(60px);
pointer-events: none;
animation: hx404-float 12s ease-in-out infinite;
}
.hx-404__orb--1 {
width: min(420px, 55vw);
height: min(420px, 55vw);
top: -8%;
left: -5%;
background: rgba(14, 165, 233, 0.18);
}
.hx-404__orb--2 {
width: min(360px, 45vw);
height: min(360px, 45vw);
bottom: 5%;
right: -8%;
background: rgba(249, 115, 22, 0.12);
animation-delay: -4s;
}
.hx-404__orb--3 {
width: 200px;
height: 200px;
top: 40%;
left: 45%;
background: rgba(124, 58, 237, 0.08);
animation-delay: -7s;
}
.hx-404__particles {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
opacity: 0.7;
}
@keyframes hx404-float {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(12px, -18px) scale(1.04); }
66% { transform: translate(-8px, 10px) scale(0.98); }
}
/* ——— چیدمان ——— */
.hx-404__shell {
width: 100%;
}
.hx-404__layout {
display: grid;
gap: clamp(2rem, 4vw, 3.5rem);
align-items: center;
}
@media (min-width: 1024px) {
.hx-404__layout {
grid-template-columns: 1fr 1fr;
gap: 2.5rem;
}
}
/* ——— صحنه ——— */
.hx-404__stage {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
min-height: 320px;
padding: 1rem 0 0.5rem;
}
.hx-404__digits {
display: flex;
align-items: center;
justify-content: center;
gap: clamp(0.15rem, 1vw, 0.5rem);
margin-bottom: -1.5rem;
position: relative;
z-index: 2;
user-select: none;
}
.hx-404__digit {
font-size: clamp(5rem, 18vw, 9rem);
font-weight: 900;
line-height: 0.85;
letter-spacing: -0.04em;
background: linear-gradient(165deg, #0284c7 0%, #0ea5e9 40%, #38bdf8 70%, #f97316 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 8px 24px rgba(14, 165, 233, 0.25));
animation: hx404-digit-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hx-404__digit--4a { animation-delay: 0.05s; }
.hx-404__digit--0 {
animation-delay: 0.15s;
position: relative;
}
.hx-404__digit--0::after {
content: '';
position: absolute;
inset: 18% 22%;
border-radius: 50%;
background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 70%);
opacity: 0.5;
pointer-events: none;
}
.hx-404__digit--4b {
animation-delay: 0.25s;
}
.hx-404__digit--4b.is-glitch {
animation: hx404-glitch 0.35s steps(2) 1;
}
@keyframes hx404-digit-in {
from {
opacity: 0;
transform: translateY(24px) scale(0.92);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes hx404-glitch {
0% { transform: translate(0); filter: hue-rotate(0deg); }
25% { transform: translate(-3px, 2px); }
50% { transform: translate(3px, -2px); filter: hue-rotate(90deg); }
75% { transform: translate(-2px, -1px); }
100% { transform: translate(0); filter: hue-rotate(0deg); }
}
.hx-404__scene {
position: relative;
width: min(100%, 380px);
height: 260px;
margin: 0 auto;
}
/* ترازو */
.hx-404__scale {
position: absolute;
top: 8%;
left: 50%;
transform: translateX(-50%);
width: 200px;
z-index: 1;
transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hx-404__scale-stand {
width: 6px;
height: 72px;
margin: 0 auto;
background: linear-gradient(180deg, #94a3b8, #64748b);
border-radius: 3px;
}
.hx-404__scale-beam {
position: relative;
width: 180px;
height: 8px;
margin: -4px auto 0;
background: #475569;
border-radius: 4px;
transform-origin: center center;
transform: rotate(-14deg);
transition: transform 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.hx-404.is-balanced .hx-404__scale-beam {
transform: rotate(0deg);
}
.hx-404__scale-pan {
position: absolute;
top: 4px;
width: 64px;
text-align: center;
}
.hx-404__scale-pan--left { left: -8px; }
.hx-404__scale-pan--right { right: -8px; }
.hx-404__scale-pan::before {
content: '';
display: block;
width: 2px;
height: 28px;
background: #64748b;
margin: 0 auto 2px;
}
.hx-404__scale-pan::after {
content: '';
display: block;
width: 56px;
height: 8px;
margin: 0 auto;
background: #94a3b8;
border-radius: 0 0 50% 50% / 0 0 100% 100%;
border: 2px solid #64748b;
border-top: none;
}
.hx-404__scale-label {
display: block;
font-size: 0.65rem;
color: #64748b;
margin-top: 4px;
}
.hx-404__scale-weight {
display: block;
font-size: 1.1rem;
font-weight: 800;
color: #0ea5e9;
}
.hx-404.is-balanced .hx-404__scale-pan--right .hx-404__scale-weight {
color: #059669;
}
/* فاکتور */
.hx-404__invoice {
position: absolute;
bottom: 0;
right: 0;
width: min(200px, 52%);
background: #fff;
border-radius: 12px;
box-shadow:
0 20px 40px -12px rgba(15, 23, 42, 0.15),
0 0 0 1px rgba(14, 165, 233, 0.08);
padding: 0.75rem 0.85rem 0.65rem;
transform: rotate(6deg);
transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
animation: hx404-invoice-float 5s ease-in-out infinite;
z-index: 3;
margin: 0;
}
.hx-404__invoice:hover,
.hx-404.is-balanced .hx-404__invoice {
transform: rotate(0deg) translateY(-4px);
}
@keyframes hx404-invoice-float {
0%, 100% { transform: rotate(6deg) translateY(0); }
50% { transform: rotate(4deg) translateY(-6px); }
}
.hx-404__invoice-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px dashed #e2e8f0;
}
.hx-404__invoice-brand {
font-size: 0.7rem;
font-weight: 700;
color: #0284c7;
}
.hx-404__invoice-stamp {
font-size: 0.6rem;
font-weight: 800;
color: #dc2626;
border: 2px solid #dc2626;
padding: 0.1rem 0.35rem;
border-radius: 4px;
transform: rotate(-12deg);
opacity: 0.9;
}
.hx-404__invoice-row {
display: flex;
justify-content: space-between;
font-size: 0.65rem;
color: #64748b;
margin-bottom: 0.25rem;
gap: 0.5rem;
}
.hx-404__invoice-row strong {
color: #1e293b;
}
.hx-404__invoice-row--total {
margin-top: 0.35rem;
padding-top: 0.35rem;
border-top: 1px solid #e2e8f0;
font-weight: 600;
}
.hx-404__invoice-total {
color: #dc2626 !important;
font-size: 0.85rem;
}
.hx-404.is-balanced .hx-404__invoice-total {
color: #059669 !important;
}
.hx-404__invoice-barcode {
display: flex;
align-items: flex-end;
justify-content: center;
gap: 2px;
height: 22px;
margin-top: 0.5rem;
opacity: 0.5;
}
.hx-404__invoice-barcode span {
display: block;
width: 3px;
min-height: 6px;
background: #1e293b;
border-radius: 1px;
}
/* ماشین‌حساب */
.hx-404__calc {
position: absolute;
bottom: 12px;
left: 0;
width: 118px;
background: linear-gradient(145deg, #334155, #1e293b);
border-radius: 14px;
padding: 0.5rem;
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
z-index: 2;
}
.hx-404__calc-screen {
background: #0f172a;
color: #f97316;
font-family: ui-monospace, monospace;
font-size: 0.7rem;
font-weight: 700;
padding: 0.35rem 0.45rem;
border-radius: 6px;
margin-bottom: 0.4rem;
text-align: left;
direction: ltr;
letter-spacing: 0.05em;
animation: hx404-screen-blink 3s step-end infinite;
}
@keyframes hx404-screen-blink {
0%, 92%, 100% { opacity: 1; }
94% { opacity: 0.7; }
}
.hx-404__calc-keys {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 3px;
}
.hx-404__calc-key {
display: flex;
align-items: center;
justify-content: center;
font-size: 0.55rem;
font-weight: 600;
color: #e2e8f0;
background: #475569;
border-radius: 4px;
padding: 0.2rem 0;
min-height: 18px;
}
.hx-404__calc-key--wide {
grid-column: span 2;
}
.hx-404__calc-key:nth-child(13) {
background: #0ea5e9;
color: #fff;
}
/* دکمه تراز */
.hx-404__balance-btn {
display: inline-flex;
align-items: center;
gap: 0.4rem;
margin-top: 1rem;
padding: 0.5rem 1rem;
font-size: 0.8125rem;
font-weight: 600;
color: #0284c7;
background: rgba(255, 255, 255, 0.85);
border: 1px dashed rgba(14, 165, 233, 0.45);
border-radius: 999px;
cursor: pointer;
transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
backdrop-filter: blur(8px);
}
.hx-404__balance-btn:hover {
background: #fff;
border-color: #0ea5e9;
box-shadow: 0 4px 14px rgba(14, 165, 233, 0.2);
transform: translateY(-1px);
}
.hx-404__balance-btn:active {
transform: translateY(0);
}
.hx-404__balance-btn.is-done {
border-color: #059669;
color: #059669;
pointer-events: none;
}
.hx-404__balance-hint {
font-size: 0.7rem;
color: #94a3b8;
margin: 0.35rem 0 0;
}
.hx-404__balance-hint.is-hidden {
display: none;
}
.hx-404__balance-success {
font-size: 0.875rem;
font-weight: 600;
color: #059669;
margin: 0.5rem 0 0;
animation: hx404-digit-in 0.4s ease;
}
.hx-404__balance-success.is-hidden {
display: none;
}
/* ——— پنل محتوا ——— */
.hx-404__panel {
animation: hx404-panel-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}
@keyframes hx404-panel-in {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hx-404__badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-size: 0.8125rem;
font-weight: 600;
color: #0284c7;
background: rgba(255, 255, 255, 0.75);
border: 1px solid rgba(14, 165, 233, 0.25);
padding: 0.35rem 0.85rem;
border-radius: 999px;
margin-bottom: 1rem;
}
.hx-404__badge-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #f97316;
animation: hx404-pulse 2s ease-in-out infinite;
}
@keyframes hx404-pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.6; transform: scale(0.85); }
}
.hx-404__title {
font-size: clamp(1.75rem, 4vw, 2.25rem);
font-weight: 800;
color: #1e293b;
letter-spacing: -0.02em;
margin: 0 0 0.75rem;
line-height: 1.25;
}
.hx-404__subtitle {
font-size: clamp(1.05rem, 2.5vw, 1.2rem);
font-weight: 600;
color: #0ea5e9;
margin: 0 0 0.75rem;
min-height: 1.6em;
transition: opacity 0.35s ease;
}
.hx-404__subtitle.is-fading {
opacity: 0;
}
.hx-404__desc {
font-size: 1rem;
line-height: 1.75;
color: #64748b;
margin: 0 0 1.25rem;
max-width: 36rem;
}
.hx-404__path {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem 0.75rem;
padding: 0.65rem 0.9rem;
background: rgba(255, 255, 255, 0.7);
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
margin-bottom: 1.25rem;
font-size: 0.8125rem;
}
.hx-404__path-label {
color: #94a3b8;
font-weight: 500;
}
.hx-404__path-value {
color: #dc2626;
background: #fef2f2;
padding: 0.15rem 0.5rem;
border-radius: 0.35rem;
font-size: 0.8rem;
word-break: break-all;
}
.hx-404__actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.hx-404__btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.85rem 1.35rem;
font-size: 0.9375rem;
font-weight: 600;
border-radius: 1rem;
text-decoration: none;
transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
min-height: 52px;
}
.hx-404__btn--primary {
background: #0ea5e9;
color: #fff;
box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.hx-404__btn--primary:hover {
background: #0284c7;
box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
transform: translateY(-1px);
color: #fff;
}
.hx-404__btn--ghost {
background: rgba(255, 255, 255, 0.8);
color: #475569;
border: 2px solid #e2e8f0;
}
.hx-404__btn--ghost:hover {
border-color: #0ea5e9;
color: #0284c7;
}
.hx-404__quick {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.65rem;
margin-bottom: 1.75rem;
}
@media (min-width: 480px) {
.hx-404__quick {
grid-template-columns: repeat(4, 1fr);
}
}
.hx-404__quick-link {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.35rem;
padding: 0.85rem 0.5rem;
background: rgba(255, 255, 255, 0.75);
border: 1px solid rgba(226, 232, 240, 0.9);
border-radius: 1rem;
text-decoration: none;
color: #334155;
font-size: 0.8125rem;
font-weight: 600;
transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.hx-404__quick-link:hover {
border-color: rgba(14, 165, 233, 0.4);
box-shadow: 0 8px 20px rgba(14, 165, 233, 0.1);
transform: translateY(-2px);
color: #0284c7;
}
.hx-404__quick-icon {
font-size: 1.35rem;
line-height: 1;
}
.hx-404__search {
padding-top: 1.25rem;
border-top: 1px solid rgba(226, 232, 240, 0.9);
}
.hx-404__search-label {
font-size: 0.875rem;
color: #94a3b8;
margin: 0 0 0.75rem;
}
.hx-404 .hesabix2-search-form {
justify-content: flex-start;
max-width: none;
margin: 0;
}
.hx-404 .hesabix2-search-form input {
border-radius: 0.85rem;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.hx-404 .hesabix2-search-form button {
border-radius: 0.85rem;
}
.hx-404__search-chips {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.75rem;
}
.hx-404__chip {
font-size: 0.75rem;
font-weight: 500;
color: #64748b;
background: #f1f5f9;
border: none;
padding: 0.35rem 0.75rem;
border-radius: 999px;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.hx-404__chip:hover {
background: #e0f2fe;
color: #0284c7;
}
/* confetti */
.hx-404__confetti {
position: fixed;
width: 8px;
height: 8px;
border-radius: 2px;
pointer-events: none;
z-index: 9999;
animation: hx404-confetti-fall 1.2s ease-out forwards;
}
@keyframes hx404-confetti-fall {
to {
transform: translate(var(--tx), var(--ty)) rotate(720deg);
opacity: 0;
}
}
/* parallax stage */
.hx-404__stage.is-parallax .hx-404__scene {
transition: transform 0.12s ease-out;
will-change: transform;
}
/* reduced motion */
@media (prefers-reduced-motion: reduce) {
.hx-404__orb,
.hx-404__invoice,
.hx-404__calc-screen,
.hx-404__badge-dot,
.hx-404__digit,
.hx-404__panel {
animation: none !important;
}
.hx-404__digit--4b.is-glitch {
animation: none !important;
}
}