/* گیاگان تیکتینگ — استایل فرانت‌اند (تم نارنجی، راست‌چین) */
.ggt-app {
	direction: rtl;
	text-align: right;
	max-width: 860px;
	margin: 0 auto;
	font-family: inherit;
	color: #2b2b2b;
	line-height: 1.9;
}
.ggt-app * { box-sizing: border-box; }
.ggt-hidden { display: none !important; }

.ggt-header {
	display: flex; justify-content: space-between; align-items: center;
	border-bottom: 3px solid #e8631a; padding-bottom: 12px; margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.ggt-header h2 { margin: 0; color: #c24e0c; font-size: 22px; }
.ggt-user-bar { display: flex; align-items: center; gap: 12px; font-size: 14px; }

.ggt-lead { font-size: 15px; color: #5a5a5a; margin-bottom: 18px; }

/* کارت‌های انتخاب */
.ggt-choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ggt-choice-cards { grid-template-columns: 1fr; } }
.ggt-card {
	border: 2px solid #f0d9c6; border-radius: 14px; padding: 24px 20px; text-align: center;
	cursor: pointer; transition: all .2s; background: #fff8f2;
}
.ggt-card:hover { border-color: #e8631a; box-shadow: 0 6px 20px rgba(232,99,26,.15); transform: translateY(-3px); }
.ggt-card-icon { font-size: 42px; margin-bottom: 10px; }
.ggt-card h3 { margin: 8px 0; color: #c24e0c; font-size: 18px; }
.ggt-card p { font-size: 13px; color: #5a5a5a; margin-bottom: 16px; min-height: 60px; }

/* دکمه‌ها */
.ggt-btn {
	display: inline-block; border: none; border-radius: 10px; padding: 11px 22px;
	font-size: 14px; font-family: inherit; font-weight: 700; cursor: pointer; transition: all .15s;
}
.ggt-btn-primary { background: #e8631a; color: #fff; }
.ggt-btn-primary:hover { background: #c24e0c; }
.ggt-btn-outline { background: #fff; color: #e8631a; border: 2px solid #e8631a; }
.ggt-btn-outline:hover { background: #fbe4d3; }
.ggt-btn:disabled { opacity: .6; cursor: not-allowed; }
.ggt-btn-text { background: none; border: none; color: #c24e0c; cursor: pointer; font-family: inherit; text-decoration: underline; font-size: 13px; }
.ggt-back { background: none; border: none; color: #c24e0c; cursor: pointer; font-family: inherit; font-size: 14px; margin-bottom: 14px; padding: 4px 0; }

/* فرم‌ها */
.ggt-field { margin-bottom: 14px; }
.ggt-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: #444; }
.ggt-field input[type=text], .ggt-field input[type=email], .ggt-field input[type=password],
.ggt-field textarea, .ggt-field select, .ggt-app input[type=text], .ggt-app input[type=email],
.ggt-app input[type=password], .ggt-app textarea, .ggt-app select {
	width: 100%; padding: 10px 12px; border: 1.5px solid #f0d9c6; border-radius: 9px;
	font-family: inherit; font-size: 14px; direction: rtl; text-align: right; background: #fff;
}
.ggt-field input:focus, .ggt-field textarea:focus, .ggt-field select:focus { outline: none; border-color: #e8631a; }
.ggt-field input[type=file] { border: 1.5px dashed #f0d9c6; padding: 8px; background: #fff8f2; }
.ggt-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ggt-row .ggt-field { flex: 1; min-width: 150px; }
.ggt-grow { flex: 2 !important; }

.ggt-login-form, .ggt-new-ticket, .ggt-view-ticket, .ggt-dashboard, .ggt-guest-success {
	background: #fff; border: 1.5px solid #f0d9c6; border-radius: 14px; padding: 22px;
}
.ggt-login-form h3, .ggt-new-ticket h3, .ggt-dashboard h3 { color: #c24e0c; margin-top: 0; }
.ggt-hint { font-size: 12px; color: #999; margin-top: 10px; }

/* پیام‌های وضعیت */
.ggt-msg-area { margin-top: 12px; font-size: 13px; padding: 0; }
.ggt-msg-area.ggt-ok { color: #2e7d32; }
.ggt-msg-area.ggt-err { color: #c62828; }

/* پنل مشتری */
.ggt-dash-actions { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.ggt-tickets-list { display: flex; flex-direction: column; gap: 10px; }
.ggt-ticket-item {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	border: 1.5px solid #f0d9c6; border-radius: 10px; padding: 14px 16px; cursor: pointer;
	transition: all .15s; background: #fff8f2;
}
.ggt-ticket-item:hover { border-color: #e8631a; background: #fbe4d3; }
.ggt-ti-meta { font-size: 12px; color: #888; margin-top: 3px; }
.ggt-ti-status { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; white-space: nowrap; }
.ggt-badge { background: #e8631a; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 100px; margin-right: 6px; }
.ggt-empty { color: #999; text-align: center; padding: 20px; }

/* وضعیت‌ها */
.ggt-status-open { background: #fff3e0; color: #e65100; }
.ggt-status-answered { background: #e8f5e9; color: #2e7d32; }
.ggt-status-closed { background: #f5f5f5; color: #757575; }

/* گفتگو */
.ggt-th-meta { font-size: 12px; color: #888; margin-bottom: 16px; }
.ggt-conversation { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ggt-msg { border-radius: 12px; padding: 12px 16px; max-width: 85%; }
.ggt-msg-user { background: #fbe4d3; align-self: flex-start; border: 1px solid #f4d0b5; }
.ggt-msg-admin { background: #e8f5e9; align-self: flex-end; border: 1px solid #c8e6c9; }
.ggt-msg-head { font-size: 12px; margin-bottom: 5px; }
.ggt-msg-head span { color: #999; margin-right: 8px; }
.ggt-msg-body { font-size: 14px; line-height: 1.8; }
.ggt-msg-file { margin-top: 8px; font-size: 13px; }
.ggt-msg-file a { color: #c24e0c; }

.ggt-reply h4 { color: #c24e0c; margin-bottom: 10px; }

/* موفقیت مهمان */
.ggt-guest-success { text-align: center; }
.ggt-success-icon { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: #e8f5e9; color: #2e7d32; font-size: 32px; margin: 0 auto 14px; }
.ggt-code { font-size: 24px; font-weight: 800; color: #c24e0c; background: #fff8f2; border: 2px dashed #e8631a; border-radius: 10px; padding: 12px; margin: 12px auto; display: inline-block; letter-spacing: 1px; direction: ltr; }

/* ===== کارت‌های آماری داشبورد ===== */
.ggt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 700px) { .ggt-stats { grid-template-columns: repeat(2, 1fr); } }
.ggt-stat { border-radius: 12px; padding: 18px 14px; text-align: center; color: #fff; }
.ggt-stat-1 { background: linear-gradient(135deg, #e8631a, #c24e0c); }
.ggt-stat-2 { background: linear-gradient(135deg, #5c9ead, #3d7a8a); }
.ggt-stat-3 { background: linear-gradient(135deg, #7e6bc4, #5f4b9e); }
.ggt-stat-4 { background: linear-gradient(135deg, #4caf78, #2e7d52); }
.ggt-stat-num { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.ggt-stat-label { font-size: 13px; opacity: 0.95; }

/* ===== منوی بخش‌ها ===== */
.ggt-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 2px solid #f0d9c6; padding-bottom: 12px; }
.ggt-nav-btn { background: #fff8f2; border: 1.5px solid #f0d9c6; border-radius: 10px; padding: 9px 16px; font-family: inherit; font-size: 13px; font-weight: 700; color: #8a5a3a; cursor: pointer; transition: all .15s; }
.ggt-nav-btn:hover { border-color: #e8631a; }
.ggt-nav-btn.active { background: #e8631a; color: #fff; border-color: #e8631a; }

/* ===== فیلتر دسته (chip) ===== */
.ggt-file-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.ggt-chip { background: #fff; border: 1.5px solid #f0d9c6; border-radius: 100px; padding: 5px 14px; font-family: inherit; font-size: 12px; color: #8a5a3a; cursor: pointer; }
.ggt-chip.active { background: #fbe4d3; border-color: #e8631a; color: #c24e0c; font-weight: 700; }

/* ===== فهرست فایل‌ها ===== */
.ggt-files-list { display: flex; flex-direction: column; gap: 10px; }
.ggt-file-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1.5px solid #f0d9c6; border-radius: 10px; padding: 14px 16px; background: #fff8f2; }
.ggt-file-info { flex: 1; }
.ggt-file-desc { font-size: 13px; color: #666; margin-top: 3px; }
.ggt-file-meta { font-size: 12px; color: #999; margin-top: 5px; }
.ggt-file-dl { white-space: nowrap; font-size: 13px; padding: 8px 16px; text-decoration: none; }
.ggt-file-nodl { font-size: 12px; color: #bbb; }

/* ===== قراردادها ===== */
.ggt-contracts-list { display: flex; flex-direction: column; gap: 12px; }
.ggt-contract-item { border: 1.5px solid #f0d9c6; border-radius: 12px; padding: 16px; background: #fff8f2; }
.ggt-contract-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ggt-contract-body { font-size: 13px; color: #555; line-height: 2; }
.ggt-contract-note { color: #888; font-style: italic; margin-top: 4px; }
.ggt-contract-item .ggt-btn { margin-top: 12px; text-decoration: none; display: inline-block; font-size: 13px; }
.ggt-status-active { background: #e8f5e9; color: #2e7d32; }
.ggt-status-expired { background: #ffebee; color: #c62828; }
.ggt-status-pending { background: #fff3e0; color: #e65100; }
.ggt-status-cancelled { background: #f5f5f5; color: #757575; }

/* ===== بنر موفقیت ثبت تیکت روی داشبورد ===== */
.ggt-dash-success { background: #e8f5e9; border: 1.5px solid #a5d6a7; color: #2e7d32; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.ggt-ds-icon { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; background: #2e7d32; color: #fff; border-radius: 50%; font-size: 13px; margin-left: 6px; }
.ggt-ds-code { color: #c24e0c; font-size: 16px; direction: ltr; display: inline-block; }

/* ===== جدول تیکت‌ها ===== */
.ggt-table-wrap { overflow-x: auto; border: 1.5px solid #f0d9c6; border-radius: 12px; }
.ggt-tickets-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.ggt-tickets-table thead th { background: #fbe4d3; color: #c24e0c; padding: 11px 10px; text-align: right; font-weight: 700; white-space: nowrap; border-bottom: 2px solid #f0d9c6; }
.ggt-tickets-table tbody td { padding: 10px; border-bottom: 1px solid #f5ede5; text-align: right; vertical-align: middle; }
.ggt-tickets-table tbody tr:hover { background: #fff8f2; }
.ggt-tickets-table tbody tr:last-child td { border-bottom: none; }
.ggt-td-code { font-family: monospace; direction: ltr; text-align: right; white-space: nowrap; color: #c24e0c; font-weight: 700; }
.ggt-td-subject { min-width: 150px; font-weight: 600; }
.ggt-td-date { white-space: nowrap; color: #666; font-size: 12px; }
.ggt-details-btn { font-size: 12px; padding: 6px 14px; white-space: nowrap; }

/* اولویت */
.ggt-prio { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ggt-prio-high { background: #ffebee; color: #c62828; }
.ggt-prio-normal { background: #e3f2fd; color: #1565c0; }
.ggt-prio-low { background: #f5f5f5; color: #757575; }
