/* FN STW AM3RAM - Frontend Styles (Gaming / Neon / Bright text / RTL) */

.fn-stw-app {
	width: 100%;
	max-width: 1250px;
	margin: 25px auto;
	padding: 18px;
	box-sizing: border-box;
	color: #fff;
	font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
	direction: rtl;
}

.fn-stw-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	padding: 20px;
	margin-bottom: 15px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(10, 14, 30, .98), rgba(18, 10, 40, .98));
	border: 1px solid rgba(0, 229, 255, .18);
	box-shadow: 0 0 25px rgba(0, 229, 255, .08);
}

.fn-stw-title { font-size: 24px; font-weight: 900; color: #fff; }
.fn-stw-subtitle { margin-top: 6px; color: #9ba5c7; font-size: 13px; }

.fn-stw-refresh,
.fn-stw-more,
.fn-stw-filter,
.fn-stw-notification-box button,
.fn-stw-btn-outline {
	border: 0;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(135deg, #171c38, #252c55);
	border: 1px solid rgba(0, 229, 255, .2);
	border-radius: 12px;
	padding: 10px 15px;
	font-family: inherit;
	font-weight: 800;
	transition: .2s;
	text-decoration: none;
	display: inline-block;
}

.fn-stw-refresh:hover, .fn-stw-more:hover, .fn-stw-filter:hover,
.fn-stw-notification-box button:hover, .fn-stw-btn-outline:hover {
	transform: translateY(-2px);
	border-color: #00e5ff;
	box-shadow: 0 0 18px rgba(0, 229, 255, .18);
}

.fn-stw-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }

.fn-stw-search {
	flex: 1;
	min-width: 220px;
	background: #0c1022;
	border: 1px solid #252d52;
	color: #fff;
	border-radius: 12px;
	padding: 13px 16px;
	outline: none;
	font-family: inherit;
}
.fn-stw-search:focus { border-color: #00e5ff; box-shadow: 0 0 15px rgba(0, 229, 255, .1); }

.fn-stw-filters { display: flex; gap: 7px; flex-wrap: wrap; }

.fn-stw-filter.active {
	background: linear-gradient(135deg, #00a8ff, #00e5ff);
	color: #001018;
	border-color: #00e5ff;
}

.fn-stw-notification-box { margin-bottom: 15px; }
.fn-stw-notification-box button { width: 100%; }

.fn-stw-section { margin: 28px 0; }
.fn-stw-section.is-empty { display: none; }

.fn-stw-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 12px 15px;
	border-radius: 13px;
	background: linear-gradient(135deg, rgba(13, 18, 40, .95), rgba(20, 25, 50, .95));
	border: 1px solid rgba(255, 255, 255, .06);
	font-size: 18px;
	font-weight: 900;
	color: #fff;
}

.fn-stw-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.fn-stw-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(145deg, rgba(13, 17, 37, .98), rgba(20, 15, 42, .98));
	border: 1px solid rgba(120, 130, 180, .15);
	border-radius: 18px;
	padding: 16px;
	transition: .25s;
}
.fn-stw-card:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 229, 255, .45);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 20px rgba(0, 229, 255, .08);
}
.fn-stw-card.vbucks { border-color: rgba(0, 255, 170, .35); box-shadow: 0 0 20px rgba(0, 255, 170, .06); }
.fn-stw-card.fn-stw-hidden, .fn-stw-card.is-hidden { display: none !important; }
.fn-stw-normal-extra { display: none; }
.fn-stw-normal-extra.fn-stw-visible { display: block; }

.fn-stw-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fn-stw-card-icon {
	width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
	flex: none; border-radius: 12px; background: #10162c; font-size: 23px;
}
.fn-stw-card-title { flex: 1; font-size: 17px; font-weight: 900; line-height: 1.5; color: #fff; }
.fn-stw-zone { color: #8f9abe; font-size: 12px; margin-top: 3px; }

.fn-stw-vbucks-pill {
	display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
	padding: 6px 10px; border-radius: 10px; background: rgba(0, 255, 170, .1);
	color: #5dffca; border: 1px solid rgba(0, 255, 170, .22); font-weight: 900; font-size: 13px;
}

.fn-stw-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.fn-stw-meta-item { padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .05); }
.fn-stw-meta-label { display: block; color: #7f8aaa; font-size: 10px; margin-bottom: 4px; }
.fn-stw-meta-value { display: block; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.4; }
.fn-stw-power { color: #ffd166; }

.fn-stw-rewards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fn-stw-reward { padding: 5px 8px; background: #171d35; border: 1px solid rgba(255, 255, 255, .07); border-radius: 8px; color: #c7cee4; font-size: 10px; }

.fn-stw-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fn-stw-badge { padding: 5px 8px; border-radius: 8px; font-size: 10px; font-weight: 900; }
.fn-stw-badge-important { background: rgba(255, 78, 78, .12); color: #ff7c7c; border: 1px solid rgba(255, 78, 78, .2); }
.fn-stw-badge-vbucks { background: rgba(0, 255, 170, .1); color: #5dffca; border: 1px solid rgba(0, 255, 170, .2); }

.fn-stw-details-btn {
	width: 100%; margin-top: 14px; padding: 10px; border: 1px solid rgba(0, 229, 255, .16);
	background: #10172c; color: #dce8ff; border-radius: 10px; cursor: pointer; font-family: inherit; font-weight: 800;
}
.fn-stw-details-btn:hover { background: #15203c; border-color: #00e5ff; }

.fn-stw-more-wrap { text-align: center; margin-top: 22px; }
.fn-stw-more { min-width: 180px; }

.fn-stw-no-vbucks {
	width: 100%; box-sizing: border-box; padding: 28px 20px; text-align: center; border-radius: 16px;
	background: linear-gradient(135deg, rgba(18, 22, 45, .95), rgba(25, 18, 45, .95));
	border: 1px solid rgba(255, 255, 255, .07);
}
.fn-stw-no-vbucks-icon { font-size: 35px; margin-bottom: 8px; }
.fn-stw-no-vbucks-title { color: #fff; font-size: 17px; font-weight: 900; }
.fn-stw-no-vbucks-text { margin-top: 5px; color: #858eaa; font-size: 12px; }

.fn-stw-empty { text-align: center; padding: 50px 20px; border-radius: 18px; background: #0d1227; border: 1px solid rgba(255, 255, 255, .06); }
.fn-stw-empty > div { font-size: 45px; }
.fn-stw-empty p { color: #aeb6d0; }

/* مودال‌ها */
.fn-stw-modal { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 20px; }
.fn-stw-modal.active { display: flex; }
.fn-stw-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); backdrop-filter: blur(7px); }
.fn-stw-modal-box {
	position: relative; width: min(600px, 100%); max-height: 90vh; overflow: auto;
	background: #0d1227; border: 1px solid rgba(0, 229, 255, .25); border-radius: 20px;
	padding: 22px; z-index: 2; box-shadow: 0 20px 70px rgba(0, 0, 0, .5); color: #fff; direction: rtl;
}
.fn-stw-modal-close {
	position: absolute; top: 10px; left: 14px; width: 35px; height: 35px; border: 0; border-radius: 10px;
	background: #1a203a; color: #fff; font-size: 22px; cursor: pointer; z-index: 5;
}
.fn-stw-modal-title { font-size: 22px; font-weight: 900; margin-bottom: 15px; padding-left: 40px; }
.fn-stw-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fn-stw-modal-item { padding: 12px; border-radius: 12px; background: #131a32; }
.fn-stw-modal-item small { display: block; color: #7f8aaa; margin-bottom: 5px; }
.fn-stw-modal-item strong { color: #fff; }

.fn-stw-notify-box { width: min(560px, 100%); padding: 28px 24px 22px; border-color: rgba(0, 229, 255, .35); box-shadow: 0 20px 70px rgba(0, 0, 0, .5), 0 0 40px rgba(0, 229, 255, .12); }
.fn-stw-notify-title { font-size: 20px; font-weight: 900; color: #fff; text-align: center; margin-bottom: 18px; padding: 0 30px; }
.fn-stw-notify-body p { color: #c7cee4; font-size: 14px; line-height: 1.9; margin: 0 0 18px; text-align: right; }
.fn-stw-notify-body strong { color: #5dffca; }
.fn-stw-notify-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.fn-stw-notify-step { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); }
.fn-stw-notify-step-num {
	flex: none; width: 28px; height: 28px; border-radius: 50%;
	background: linear-gradient(135deg, #00a8ff, #00e5ff); color: #001018; font-weight: 900; font-size: 14px;
	display: flex; align-items: center; justify-content: center;
}
.fn-stw-notify-step-text { color: #dce8ff; font-size: 13px; line-height: 1.7; padding-top: 3px; }
.fn-stw-notify-step-text strong { color: #fff; background: rgba(0, 229, 255, .12); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

.fn-stw-notify-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 20px; }
.fn-stw-notify-enable, .fn-stw-notify-later {
	border: 0; cursor: pointer; font-family: inherit; font-weight: 900; border-radius: 12px; padding: 13px 18px; font-size: 14px; transition: .2s;
}
.fn-stw-notify-enable { color: #001018; background: linear-gradient(135deg, #00a8ff, #5dffca); border: 1px solid #00e5ff; }
.fn-stw-notify-enable:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 229, 255, .3); }
.fn-stw-notify-enable:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.fn-stw-notify-later { color: #c7cee4; background: #1a203a; border: 1px solid rgba(255, 255, 255, .08); }
.fn-stw-notify-later:hover { background: #222a45; color: #fff; }
.fn-stw-notify-status { margin-top: 12px; font-size: 13px; min-height: 18px; color: #00e5ff; text-align: center; }

.fn-stw-divider { border: none; border-top: 1px solid rgba(255, 255, 255, .08); margin: 20px 0; }
.fn-stw-sms-block { text-align: center; }
.fn-stw-sms-block p { color: #c7cee4; font-size: 13px; margin-bottom: 10px; }
.fn-stw-input {
	width: 100%; box-sizing: border-box; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 10px; padding: 10px 12px; color: #fff; margin-bottom: 10px; font-family: inherit; direction: ltr; text-align: center;
}

/* حساب کاربری ووکامرس */
.fn-stw-account-wrap { direction: rtl; }
.fn-stw-account-table { width: 100%; border-collapse: collapse; }
.fn-stw-account-table td { padding: 12px 8px; border-bottom: 1px solid rgba(0, 0, 0, .08); }

@media (max-width: 900px) {
	.fn-stw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.fn-stw-app { padding: 10px; }
	.fn-stw-header { flex-direction: column; align-items: stretch; }
	.fn-stw-title { font-size: 19px; }
	.fn-stw-grid { grid-template-columns: 1fr; }
	.fn-stw-meta { grid-template-columns: 1fr 1fr; }
	.fn-stw-modal-grid { grid-template-columns: 1fr; }
	.fn-stw-notify-actions { grid-template-columns: 1fr; }
}
