

@font-face {
  font-family: 'payda';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/PeydaWebFaNum-Medium.woff2") format('woff2');
}

:root {
    --bg-main: #f5fafc;
    --bg-soft: #fff9f2;
    --ink: #10243d;
    --muted: #5e7084;
    --line: #d9e4ef;
    --primary: #0e7a74;
    --primary-strong: #0a5f5a;
    --accent: #ef7d22;
    --accent-soft: #fff1e5;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.85);
    --success: #1d9f6e;
    --danger: #d94841;
    --shadow-lg: 0 24px 60px rgba(16, 36, 61, 0.12);
    --shadow-md: 0 10px 24px rgba(16, 36, 61, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "payda";
    background: linear-gradient(145deg, var(--bg-main) 0%, var(--bg-soft) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
}

body::before {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(14, 122, 116, 0.18) 0%, rgba(14, 122, 116, 0) 72%);
    top: -120px;
    right: -120px;
}

body::after {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(239, 125, 34, 0.14) 0%, rgba(239, 125, 34, 0) 70%);
    bottom: -150px;
    left: -120px;
}

.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.soft-nav {
    border: 1px solid rgba(14, 122, 116, 0.12);
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}

.brand-mark {
    font-family: "payda";
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--ink);
}

.brand-dot {
    color: var(--accent);
}

.hero-panel {
    background:
        linear-gradient(120deg, rgba(14, 122, 116, 0.98), rgba(8, 90, 86, 0.95)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 36%);
    border-radius: 30px;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 125, 34, 0.45), rgba(239, 125, 34, 0));
}

.hero-title {
    font-family: "payda";
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.2;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

.elevated-card {
    background: var(--surface-soft);
    border: 1px solid rgba(16, 36, 61, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
}

.feature-card {
    height: 100%;
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(135deg, rgba(14, 122, 116, 0.12), rgba(239, 125, 34, 0.16));
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 12px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-strong) !important;
    border-color: var(--primary-strong) !important;
}

.btn-accent {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #d66411);
    border-color: transparent;
    border-radius: 12px;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
    color: #fff !important;
    background: linear-gradient(135deg, #d66411, #b95109) !important;
}

.btn-soft {
    border-radius: 12px;
    border: 1px solid rgba(14, 122, 116, 0.25);
    color: var(--primary);
    background: rgba(14, 122, 116, 0.05);
}

.btn-soft:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.text-muted-custom {
    color: var(--muted) !important;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 480px);
}

.auth-side {
    padding: 48px 56px;
    background:
        linear-gradient(150deg, rgba(16, 36, 61, 0.97), rgba(11, 84, 83, 0.92)),
        radial-gradient(circle at 40% 15%, rgba(239, 125, 34, 0.36), transparent 36%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-side::after {
    content: "";
    position: absolute;
    left: -130px;
    bottom: -130px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.auth-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 30px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.user-chip {
    border-radius: 999px;
    border: 1px solid rgba(16, 36, 61, 0.12);
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 12px;
    font-size: 0.88rem;
    color: var(--muted);
}

.stat-card {
    height: 100%;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 36, 61, 0.08);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
}

.panel-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 36, 61, 0.08);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.panel-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(16, 36, 61, 0.08);
}

.ticket-table thead th {
    color: var(--muted);
    font-weight: 600;
    border-bottom-width: 1px;
}

.ticket-table td,
.ticket-table th {
    vertical-align: middle;
}

.status-pill {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-open {
    background: rgba(29, 159, 110, 0.16);
    color: #0f7a52;
}

.status-closed {
    background: rgba(94, 112, 132, 0.16);
    color: #516273;
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-item {
    max-width: 82%;
    align-self: flex-end;
    border-radius: 16px;
    border: 1px solid rgba(16, 36, 61, 0.08);
    background: #fff;
    padding: 14px 14px 12px;
    box-shadow: var(--shadow-md);
    word-break: break-word;
    overflow-wrap: break-word;
}
.chat-item > .chat-message{
       word-break: break-word;
    overflow-wrap: break-word;
}


.chat-item.mine {
    align-self: flex-start;
    background: #f3fffc;
    border-color: rgba(14, 122, 116, 0.24);
}

.chat-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.ticket-head {
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 36, 61, 0.08);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}
.status-unseen {
    background: rgba(239, 125, 34, 0.16);
    color: #b85c0c;
}
.status-waiting {
    background: rgba(255, 193, 7, 0.16);
    color: #9e7600;
}
.status-open {
    background: rgba(29, 159, 110, 0.16);
    color: #0f7a52;
}
.status-closed {
    background: rgba(94, 112, 132, 0.16);
    color: #516273;
}

textarea.form-control,
input.form-control {
    /* border-radius: 12px; */
    border: 1px solid #cdd8e3;
}

textarea.form-control:focus,
input.form-control:focus {
    border-color: rgba(14, 122, 116, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(14, 122, 116, 0.14);
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: revealUp 0.6s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }
.reveal-delay-4 { animation-delay: 0.32s; }

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-side {
        min-height: 38vh;
        padding: 36px 24px;
    }

    .chat-item {
        max-width: 100%;
    }
    .chat-item p {
    word-break: break-word;
    overflow-wrap: break-word;
}
}
/* استایل عکس دایره‌ای کارت‌ها */
.company-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(14, 122, 116, 0.15);
    transition: transform 0.2s ease;
}

.company-avatar:hover {
    transform: scale(1.05);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 576px) {
    .company-avatar {
        width: 40px;
        height: 40px;
    }
}