/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
	--accent-1: #ff9408;
	--accent-2: #ff6f00;
	--accent-gradient: linear-gradient(135deg, #ff9408, #ff6f00);
	--accent-gradient-h: linear-gradient(90deg, #ff9408, #ff6f00);
	--accent-glow: 0 0 20px rgba(255, 148, 8, 0.15);

	--bg-primary: #f5f6fa;
	--bg-secondary: #ffffff;
	--bg-tertiary: #f0f1f5;
	--bg-card: #ffffff;
	--bg-hover: #f8f4ef;
	--bg-input: #f9fafb;

	--border-color: #e5e7eb;
	--border-light: #d1d5db;

	--text-primary: #1a1a2e;
	--text-secondary: #4b5563;
	--text-muted: #9ca3af;
	--text-link: #e86800;

	--success: #059669;
	--error: #dc2626;
	--warning: #d97706;
	--info: #2563eb;

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
	--shadow-accent: 0 4px 14px rgba(255, 111, 0, 0.25);

	--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

	--sidebar-width: 260px;
	--header-height: 64px;
	--container-max: 1320px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--font-family);
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
}

br.clear {
	clear: both;
	visibility: hidden;
	line-height: 0;
}

a {
	color: var(--text-link);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--accent-2);
}

img {
	max-width: 100%;
}

/* ============================================
   Container & Layout
   ============================================ */
body > #container { height: auto; }

div#container {
	width: 100%;
	/* max-width: var(--container-max); */
	background: var(--bg-primary);
	margin: 0 auto;
	position: relative;
	min-height: 100vh;
	overflow-x: clip;
}

div#contents {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 24px 24px;
	text-align: left;
}

/* ============================================
   Header
   ============================================ */
div#header {
	height: var(--header-height);
	margin-bottom: 0;
	position: relative;
	background: var(--bg-secondary);
	border-bottom: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	display: flex;
	align-items: center;
	z-index: 10;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	padding: 0 max(28px, calc((100vw - var(--container-max)) / 2 + 28px));
}

div#header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--accent-gradient-h);
	opacity: 0.9;
}

div#header_in {
	color: var(--text-secondary);
	position: absolute;
	top: 50%;
	right: max(24px, calc((100vw - var(--container-max)) / 2 + 24px));
	transform: translateY(-50%);
}

div#home {
	width: auto;
	height: auto;
	position: relative;
	bottom: auto;
	left: auto;
}

div#home a {
	display: flex;
	align-items: center;
	width: auto;
	height: auto;
	text-decoration: none;
}

div#home a span {
	display: inline !important;
}

img.lp-logo,
img.header-logo {
	height: 36px;
	width: auto;
	display: block;
	object-fit: contain;
}

div#header_bottom {
	display: none;
}

/* Header Navigation */
div#header_in ul {
	background: transparent;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

div#header_in ul li {
	float: none;
	margin-left: 0;
	color: var(--text-muted);
}

div#header_in ul li a {
	color: var(--text-secondary);
	text-decoration: none;
	padding: 7px 16px;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	font-weight: 500;
	transition: var(--transition);
	display: inline-block;
	border: 1px solid transparent;
}

div#header_in ul li a:hover {
	color: var(--accent-2);
	background: rgba(255, 148, 8, 0.07);
	border-color: rgba(255, 148, 8, 0.15);
}

/* ============================================
   Sidebar
   ============================================ */
div#side_bar {
	width: var(--sidebar-width);
	float: left;
	min-height: calc(100vh - var(--header-height));
	background: var(--bg-secondary);
	border-right: 1px solid var(--border-color);
	padding: 20px 0;
	box-shadow: 1px 0 4px rgba(0, 0, 0, 0.03);
}

div#inc_side_body {
	width: calc(100% - var(--sidebar-width));
	float: right;
	padding: 24px;
}

/* Sidebar Menu */
div.side_menu ul {
	list-style: none;
	padding: 0 12px 10px;
}

div.side_menu li.title1,
div.side_menu li.title2,
div.side_menu li.title3,
div.side_menu li.title4,
div.side_menu li.title5,
div.side_menu li.title6 {
	background: none !important;
	height: auto;
	line-height: 1.4;
	font-weight: 600;
	font-size: 0.7rem;
	color: var(--text-muted);
	padding: 20px 16px 8px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	border: none;
}

div.side_menu li.title1 {
	padding-top: 8px;
}

div.side_menu li {
	line-height: 1.4;
	height: auto;
	margin-bottom: 2px;
}

div.side_menu ul li a {
	background: none !important;
	display: flex;
	align-items: center;
	height: auto;
	padding: 9px 16px;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 450;
	border-radius: var(--radius-sm);
	transition: var(--transition);
	border-left: 3px solid transparent;
}

div.side_menu ul li a:hover {
	background: rgba(255, 148, 8, 0.06) !important;
	color: var(--accent-2);
	border-left-color: var(--accent-1);
}

/* ============================================
   Topics / Page Title Bar
   ============================================ */
div.topics {
	background: var(--accent-gradient) !important;
	height: auto;
	line-height: 1.4;
	text-align: left;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 24px;
	padding: 16px 24px;
	border-radius: var(--radius-md);
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.5px;
}

div.topics span {
	color: #fff;
	font-weight: 700;
}

/* ============================================
   Login Table
   ============================================ */
table.login_table {
	width: 100%;
	max-width: 500px;
	margin: 24px auto;
	border: none;
	border-collapse: separate;
	border-spacing: 0 16px;
}

table.login_table th {
	width: 140px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-secondary);
	text-align: right;
	padding-right: 20px;
	vertical-align: middle;
}

table.login_table td input {
	border: 1.5px solid var(--border-color);
	padding: 11px 16px;
	font-size: 0.95rem;
	width: 100%;
	max-width: 360px;
	background: #fff;
	color: var(--text-primary);
	border-radius: var(--radius-sm);
	transition: var(--transition);
	font-family: var(--font-family);
	outline: none;
}

table.login_table td input:focus {
	border-color: var(--accent-1);
	box-shadow: 0 0 0 3px rgba(255, 148, 8, 0.1);
}

/* ============================================
   List Components (topics_list, error_list, comp_list, etc.)
   ============================================ */

/* Topics List */
div.topics_list {
	margin-bottom: 20px;
	border: 1px solid var(--border-color);
	padding: 0;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	overflow: hidden;
}

div.topics_list dl {
	background: transparent;
	border: none;
	padding: 0;
}

div.topics_list dl dt {
	background: var(--bg-tertiary) !important;
	border: none;
	padding: 14px 20px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--text-primary);
	font-size: 0.95rem;
	border-bottom: 1px solid var(--border-color);
	border-left: 3px solid var(--accent-1);
}

div.topics_list dl dd {
	border-top: none;
	padding: 8px 0;
}

div.topics_list dl dd ul {
	list-style: none;
}

div.topics_list dl dd ul li {
	color: var(--text-secondary);
	height: auto;
	line-height: 1.6;
	background: none !important;
	padding: 10px 20px;
	border-bottom: 1px solid var(--border-color);
	transition: var(--transition);
}

div.topics_list dl dd ul li:last-child {
	border-bottom: none;
}

div.topics_list dl dd ul li:hover {
	background: var(--bg-hover) !important;
}

div.topics_list dl dd ul li a {
	text-decoration: none;
	color: var(--text-link);
	font-weight: 500;
}

div.topics_list dl dd ul li a:hover {
	color: var(--accent-2);
}

div.topics_list dl dd ul li span {
	color: var(--accent-1);
	font-size: 1rem;
	padding: 0 6px;
	margin: 0 4px;
}

div.topics_list dl dd ul li span a {
	font-size: 1rem;
}

/* Error List */
div.error_list {
	margin-bottom: 20px;
	border: 1px solid rgba(220, 38, 38, 0.2);
	padding: 0;
	background: #fef2f2;
	border-radius: var(--radius-md);
	overflow: hidden;
}

div.error_list dl {
	background: transparent;
	border: none;
	padding: 0;
}

div.error_list dl dt {
	background: #fee2e2 !important;
	height: auto;
	line-height: 1.6;
	padding: 14px 20px;
	font-weight: 600;
	color: var(--error);
	letter-spacing: 0.3px;
	border-bottom: 1px solid rgba(220, 38, 38, 0.15);
}

div.error_list dl dd {
	border-top: none;
	padding: 8px 0;
}

div.error_list dl dd p {
	line-height: 1.6;
	height: auto;
	padding: 8px 20px;
	font-size: 0.95rem;
	color: var(--error);
}

div.error_list dl dd ul {
	list-style: none;
}

div.error_list dl dd ul li {
	color: #b91c1c;
	height: auto;
	line-height: 1.6;
	background: none !important;
	padding: 8px 20px;
}

div.error_list dl dd ul li a {
	text-decoration: none;
	color: var(--text-link);
}

div.error_list dl dd ul li a:hover {
	text-decoration: underline;
}

/* Complete/Success List */
div.comp_list {
	margin-bottom: 20px;
	border: 1px solid rgba(5, 150, 105, 0.2);
	padding: 0;
	background: #ecfdf5;
	border-radius: var(--radius-md);
	overflow: hidden;
}

div.comp_list dl {
	background: transparent;
	border: none;
	padding: 0;
}

div.comp_list dl dt {
	background: #d1fae5 !important;
	height: auto;
	line-height: 1.6;
	padding: 14px 20px;
	font-weight: 600;
	color: var(--success);
	letter-spacing: 0.3px;
	border-bottom: 1px solid rgba(5, 150, 105, 0.15);
}

div.comp_list dl dd {
	padding: 12px 0;
}

div.comp_list dl dd p {
	line-height: 1.6;
	height: auto;
	font-size: 0.95rem;
	padding: 4px 20px;
	color: var(--text-secondary);
}

div.comp_list dl dd ul {
	list-style: none;
}

div.comp_list dl dd ul li {
	color: #047857;
	height: auto;
	line-height: 1.6;
	background: none !important;
	padding: 8px 20px;
}

div.comp_list dl dd ul li a {
	text-decoration: none;
	color: var(--text-link);
}

div.comp_list dl dd ul li a:hover {
	text-decoration: underline;
}

/* Login List */
div.login_list {
	margin-bottom: 20px;
	border: 1px solid var(--border-color);
	padding: 0;
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

div.login_list dl {
	background: transparent;
	border: none;
	padding: 0;
}

div.login_list dl dt {
	background: var(--bg-tertiary) !important;
	height: auto;
	line-height: 1.6;
	padding: 16px 24px;
	font-weight: 600;
	color: var(--text-primary);
	letter-spacing: 0.3px;
	border-bottom: 1px solid var(--border-color);
	border-left: 4px solid var(--accent-1);
}

div.login_list dl dd {
	padding: 16px 24px;
}

div.login_list dl dd p {
	line-height: 1.6;
	height: auto;
	font-size: 0.95rem;
	padding: 4px 0;
	color: var(--text-secondary);
}

div.login_list dl dd ul {
	list-style: none;
}

div.login_list dl dd ul li {
	color: var(--text-secondary);
	height: auto;
	line-height: 1.6;
	background: none !important;
	padding: 8px 0;
}

div.login_list dl dd ul li a {
	text-decoration: none;
	color: var(--text-link);
}

div.login_list dl dd ul li a:hover {
	text-decoration: underline;
	color: var(--accent-2);
}

/* Orange List */
div.orange_list {
	margin-bottom: 20px;
	border: 1px solid rgba(255, 148, 8, 0.2);
	padding: 0;
	background: #fff7ed;
	border-radius: var(--radius-md);
	overflow: hidden;
}

div.orange_list dl {
	background: transparent;
	border: none;
	padding: 0;
}

div.orange_list dl dt {
	background: #ffedd5 !important;
	height: auto;
	line-height: 1.6;
	padding: 14px 20px;
	font-weight: 600;
	color: var(--accent-2);
	letter-spacing: 0.3px;
	border-bottom: 1px solid rgba(255, 148, 8, 0.15);
}

div.orange_list dl dd {
	padding: 12px 0;
}

div.orange_list dl dd p {
	line-height: 1.6;
	padding: 4px 20px;
	color: var(--text-secondary);
}

div.orange_list dl dd ul {
	list-style: none;
}

div.orange_list dl dd ul li {
	height: auto;
	line-height: 1.6;
	background: none !important;
	padding: 10px 20px;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-secondary);
}

div.orange_list dl dd ul li:last-child {
	border-bottom: none;
}

div.orange_list dl dd ul li a {
	text-decoration: none;
	color: var(--text-link);
}

div.orange_list dl dd ul li a:hover {
	text-decoration: underline;
}

/* Blue List */
div.blue_list {
	margin-bottom: 20px;
	border: 1px solid var(--border-color);
	padding: 0;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	overflow: hidden;
}

div.blue_list dl {
	background: transparent;
	border: none;
	padding: 0;
}

div.blue_list dl dt {
	background: var(--bg-tertiary) !important;
	height: auto;
	line-height: 1.6;
	padding: 14px 20px;
	font-weight: 600;
	color: var(--info);
	letter-spacing: 0.3px;
	border-bottom: 1px solid var(--border-color);
}

div.blue_list dl dt a {
	text-decoration: none;
	color: var(--info);
}

div.blue_list dl dt a:hover {
	text-decoration: underline;
}

div.blue_list dl dd,
div.orange_list dl dd,
div.topics_list dl dd {
	padding: 16px 20px;
	border-top: none;
	background: transparent;
	font-size: 0.88rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

div.blue_list dl dd p,
div.orange_list dl dd p,
div.topics_list dl dd p {
	padding: 4px 0;
	color: var(--text-secondary);
}

div.blue_list dl dd ul,
div.orange_list dl dd ul,
div.topics_list dl dd ul {
	list-style: none;
	margin: -16px -20px 16px;
}

div.blue_list dl dd ul li,
div.orange_list dl dd ul li,
div.topics_list dl dd ul li {
	height: auto;
	line-height: 1.6;
	background: none !important;
	padding: 10px 20px;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-secondary);
	transition: var(--transition);
}

div.blue_list dl dd ul li:hover,
div.orange_list dl dd ul li:hover,
div.topics_list dl dd ul li:hover {
	background: var(--bg-hover) !important;
}

div.blue_list dl dd ul li a,
div.orange_list dl dd ul li a,
div.topics_list dl dd ul li a {
	text-decoration: none;
	color: var(--text-link);
}

div.blue_list dl dd ul li a:hover,
div.orange_list dl dd ul li a:hover,
div.topics_list dl dd ul li a:hover {
	text-decoration: underline;
}

/* --- dd direct child spacing --- */
div.blue_list dl dd > br,
div.orange_list dl dd > br,
div.topics_list dl dd > br {
	display: none;
}

div.blue_list dl dd > input[type="text"],
div.orange_list dl dd > input[type="text"],
div.topics_list dl dd > input[type="text"] {
	display: block;
	width: 100%;
	max-width: 700px;
	margin: 0 0 10px;
	padding: 10px 14px;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-sm);
	background: var(--bg-input);
	font-size: 0.88rem;
	color: var(--text-link);
}

div.blue_list dl dd > a,
div.orange_list dl dd > a,
div.topics_list dl dd > a {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	margin-top: 12px;
	margin-right: 6px;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	transition: var(--transition);
	color: var(--text-link);
	background: rgba(37, 99, 235, 0.06);
	border: 1px solid rgba(37, 99, 235, 0.12);
}

div.blue_list dl dd > a:hover,
div.orange_list dl dd > a:hover,
div.topics_list dl dd > a:hover {
	background: rgba(37, 99, 235, 0.12);
	border-color: rgba(37, 99, 235, 0.25);
	text-decoration: none;
}

div.blue_list dl dd > a[href*="delete"],
div.orange_list dl dd > a[href*="delete"],
div.topics_list dl dd > a[href*="delete"] {
	color: var(--error);
	background: rgba(220, 38, 38, 0.06);
	border-color: rgba(220, 38, 38, 0.12);
}

div.blue_list dl dd > a[href*="delete"]:hover,
div.orange_list dl dd > a[href*="delete"]:hover,
div.topics_list dl dd > a[href*="delete"]:hover {
	background: rgba(220, 38, 38, 0.1);
	border-color: rgba(220, 38, 38, 0.25);
}

/* ============================================
   Ad Detail (Info Page Hero)
   ============================================ */
.ad-detail {
	margin-bottom: 28px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-md);
}

.ad-detail__header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 28px 32px 24px;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	position: relative;
	overflow: hidden;
}

.ad-detail__header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(255, 148, 8, 0.15) 0%, transparent 70%);
	pointer-events: none;
}

.ad-detail__header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--accent-gradient-h);
}

.ad-detail__title-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	background: rgba(255, 148, 8, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ad-detail__title-icon i {
	font-size: 1.25rem;
	color: var(--accent-1);
}

.ad-detail__title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.3px;
	line-height: 1.4;
	margin: 0;
	position: relative;
}

.ad-detail__rewards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 24px 32px;
	background: var(--bg-tertiary);
	border-bottom: 1px solid var(--border-color);
}

.ad-detail__reward-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.ad-detail__reward-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--accent-gradient);
	border-radius: 4px 0 0 4px;
}

.ad-detail__reward-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(255, 148, 8, 0.3);
}

.ad-detail__reward-card--click::before {
	background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.ad-detail__reward-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(255, 148, 8, 0.12), rgba(255, 111, 0, 0.08));
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ad-detail__reward-icon i {
	font-size: 1.1rem;
	color: var(--accent-2);
}

.ad-detail__reward-card--click .ad-detail__reward-icon {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(29, 78, 216, 0.08));
}

.ad-detail__reward-card--click .ad-detail__reward-icon i {
	color: var(--info);
}

.ad-detail__reward-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ad-detail__reward-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

.ad-detail__reward-value {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--text-primary);
	letter-spacing: -0.5px;
}

.ad-detail__description {
	padding: 24px 32px 28px;
}

.ad-detail__desc-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.ad-detail__desc-header i {
	color: var(--accent-1);
	font-size: 0.9rem;
}

.ad-detail__desc-body {
	color: var(--text-secondary);
	font-size: 0.95rem;
	line-height: 1.85;
	padding: 20px 24px;
	background: linear-gradient(135deg, #fefefe, #faf9f7);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	border-left: 4px solid var(--accent-1);
}

@media (max-width: 768px) {
	.ad-detail__header {
		padding: 20px 20px 18px;
		gap: 12px;
	}

	.ad-detail__title-icon {
		width: 40px;
		height: 40px;
	}

	.ad-detail__title {
		font-size: 1.1rem;
	}

	.ad-detail__rewards {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 16px 20px;
	}

	.ad-detail__reward-card {
		padding: 16px 20px;
	}

	.ad-detail__reward-value {
		font-size: 1.15rem;
	}

	.ad-detail__description {
		padding: 18px 20px 22px;
	}

	.ad-detail__desc-body {
		padding: 16px 18px;
		font-size: 0.9rem;
	}
}

/* ============================================
   Info Sections
   ============================================ */
div.topics_info {
	background: var(--bg-tertiary) !important;
	height: auto;
	line-height: 1.6;
	padding: 12px 20px;
	border-radius: var(--radius-sm);
	border-left: 3px solid var(--info);
	margin-bottom: 16px;
}

div.topics_info span { display: none; }

div.topics_accs {
	background: var(--bg-tertiary) !important;
	height: auto;
	line-height: 1.6;
	padding: 12px 20px;
}

div.topics_accs_list {
	margin-bottom: 20px;
	border: 1px solid var(--border-color);
	padding: 0;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	overflow: hidden;
}

div.topics_accs_list dl {
	background: transparent;
	border: none;
	padding: 0;
}

div.topics_accs_list dl dt {
	background: var(--bg-tertiary) !important;
	border: none;
	padding: 14px 20px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--text-primary);
	border-bottom: 1px solid var(--border-color);
}

div.topics_accs_list dl dd {
	padding: 12px 20px;
	color: var(--text-secondary);
}

/* ============================================
   Search Components
   ============================================ */
div.search {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	padding: 0;
	margin-bottom: 20px;
	border-radius: var(--radius-md);
	overflow: hidden;
}

table.search_table {
	width: 100%;
	color: var(--text-primary);
	background: var(--bg-card);
	border-collapse: collapse;
}

table.search_table th,
table.search_table td,
table.search_table {
	border-collapse: collapse;
	border-bottom: 1px solid var(--border-color);
}

table.search_table {
	border: none;
}

table.search_table th {
	width: 22%;
	line-height: 1.6;
	padding: 14px 20px;
	background: var(--bg-tertiary);
	letter-spacing: 0.5px;
	font-weight: 500;
	font-size: 0.85rem;
	color: var(--text-secondary);
	text-align: right;
	border-right: 1px solid var(--border-color);
}

table.search_table td {
	padding: 10px 16px;
	line-height: 1.6;
	color: var(--text-primary);
}

/* Search Access Table */
div.search_accs {
	background: var(--bg-card) !important;
	border: 1px solid var(--border-color);
	padding: 0;
	margin-bottom: 20px;
	border-radius: var(--radius-md);
	overflow: hidden;
}

table.search_accs_table {
	width: 100%;
	background: var(--bg-card);
	border-collapse: collapse;
}

table.search_accs_table th {
	height: auto;
	line-height: 1.6;
	padding: 12px 16px;
	background: var(--bg-tertiary) !important;
	text-indent: 0;
	font-weight: 600;
	font-size: 0.8rem;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
}

table.search_accs_table,
table.search_accs_table th {
	border-collapse: collapse;
	border: none;
}

table.search_accs_table td {
	height: auto;
	line-height: 1.6;
	text-align: center;
	border: none;
	border-bottom: 1px solid var(--border-color);
	padding: 12px 12px;
	color: var(--text-secondary);
	font-size: 0.9rem;
}

table.search_accs_table td a {
	color: var(--text-link);
	text-decoration: none;
	font-weight: 500;
}

table.search_accs_table td a:hover {
	text-decoration: underline;
	color: var(--accent-2);
}

table.search_accs_table tr:hover {
	background: var(--bg-hover);
}

/* Search Access Table 2 */
table.search_accs_table2 {
	width: 100%;
	background: var(--bg-card);
	border-collapse: collapse;
}

table.search_accs_table2 th {
	width: auto;
	height: auto;
	line-height: 1.6;
	padding: 12px 16px;
	background: var(--bg-tertiary) !important;
	text-indent: 0;
	font-weight: 600;
	font-size: 0.8rem;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
}

table.search_accs_table2 th.form_type {
	width: auto;
	height: auto;
	line-height: 1.6;
	padding: 12px 16px;
	background: var(--bg-tertiary) !important;
	text-indent: 0;
	font-weight: 600;
}

table.search_accs_table2,
table.search_accs_table2 th {
	border-collapse: collapse;
	border: none;
}

table.search_accs_table2 td {
	height: auto;
	line-height: 1.6;
	text-align: center;
	border: none;
	border-bottom: 1px solid var(--border-color);
	padding: 12px 12px;
	color: var(--text-secondary);
}

table.search_accs_table2 td a {
	color: var(--text-link);
	text-decoration: none;
}

table.search_accs_table2 td a:hover {
	text-decoration: underline;
	color: var(--accent-2);
}

table.search_accs_table2 tr:hover {
	background: var(--bg-hover) !important;
}

/* Search List */
div.search_list {
	background: var(--bg-card) !important;
	padding: 16px 20px;
	margin-bottom: 16px;
	color: var(--text-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
}

div.search_list dl dt {
	background: none !important;
	height: auto;
	line-height: 1.6;
	padding: 0 0 8px 0;
	font-size: 0.9rem;
	color: var(--text-muted);
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 12px;
}

div.search_list dl dt span {
	float: right;
	margin-right: 0;
	color: var(--text-muted);
}

div.search_list dl dt a {
	text-decoration: none;
	font-size: 1rem;
	color: var(--text-link);
	font-weight: 600;
}

div.search_list dl dt a:hover {
	text-decoration: underline;
}

div.search_list dl dd {
	padding-top: 0;
}

table.search_list_table {
	width: 100%;
	background: var(--bg-card);
	border-collapse: collapse;
}

table.search_list_table th {
	width: 20%;
	padding: 12px 16px;
	text-indent: 0;
	vertical-align: top;
	font-weight: 500;
	color: var(--text-muted);
	text-align: right;
	font-size: 0.85rem;
}

table.search_list_table,
table.search_list_table th,
table.search_list_table td {
	border-collapse: collapse;
	border: none;
	border-bottom: 1px solid var(--border-color);
}

table.search_list_table td {
	padding: 12px 16px;
	color: var(--text-primary);
}

table.search_list_table th span {
	color: var(--error);
}

/* ============================================
   Content Containers
   ============================================ */
div.cc {
	background: var(--bg-card);
	margin-bottom: 16px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	overflow: hidden;
}

div.cc dl {
	background: none !important;
	padding-bottom: 0;
}

div.cc dt {
	background: var(--bg-tertiary) !important;
	height: auto;
	padding: 14px 20px;
	border-bottom: 1px solid var(--border-color);
	font-weight: 600;
	color: var(--text-primary);
}

div.cc dt span { display: none; }

div.cc dd {
	background: none !important;
	padding: 16px 20px;
}

div.cs {
	background: var(--bg-card);
	margin-bottom: 20px;
	padding: 20px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
}

/* ============================================
   Buttons
   ============================================ */
div.input_single {
	width: auto;
	height: auto;
	margin: 20px auto;
	text-align: center;
}

div.input_box {
	width: auto;
	max-width: 340px;
	height: auto;
	margin: 16px auto;
	display: flex;
	gap: 10px;
	justify-content: center;
}

div.input_box_f {
	width: auto;
	max-width: 340px;
	height: auto;
	margin: 16px auto;
	display: flex;
	gap: 10px;
	justify-content: center;
}

input.input_base {
	border: none;
	width: auto;
	min-width: 160px;
	height: auto;
	line-height: 1;
	padding: 12px 28px;
	margin: 0 !important;
	background: var(--accent-gradient) !important;
	color: #fff !important;
	font-family: var(--font-family);
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: var(--transition);
	letter-spacing: 0.3px;
}

input.input_base:hover {
	border: none;
	width: auto;
	min-width: 160px;
	height: auto;
	line-height: 1;
	padding: 12px 28px;
	margin: 0 !important;
	background: var(--accent-gradient) !important;
	color: #fff !important;
	opacity: 0.9;
	box-shadow: var(--shadow-accent);
	transform: translateY(-1px);
}

a.input_base {
	width: auto;
	min-width: 160px;
	height: auto;
	line-height: 1;
	padding: 12px 28px;
	margin: 0 auto 10px auto;
	background: var(--accent-gradient) !important;
	color: #fff !important;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	font-family: var(--font-family);
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: var(--transition);
}

a.input_base_f {
	width: auto;
	min-width: 160px;
	height: auto;
	line-height: 1;
	padding: 12px 28px;
	background: var(--accent-gradient) !important;
	color: #fff !important;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	font-family: var(--font-family);
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: var(--radius-md);
	float: left;
	margin-right: 10px;
	cursor: pointer;
	transition: var(--transition);
}

a.input_base_f:hover,
a.input_base:hover {
	background: var(--accent-gradient) !important;
	opacity: 0.9;
	box-shadow: var(--shadow-accent);
	transform: translateY(-1px);
}

/* ============================================
   Pagination
   ============================================ */
div.pager_info p {
	height: auto;
	color: var(--text-secondary);
	margin-bottom: 8px;
}

div.pager_info p span {
	height: auto;
	line-height: 1.6;
	padding: 0 8px;
	font-weight: 600;
	color: var(--accent-1);
}

div.pager {
	padding: 16px 0 24px;
}

p.pagination {
	height: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

p.pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	float: none;
	width: 36px;
	height: 36px;
	line-height: 36px;
	text-align: center;
	margin-right: 0;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	font-size: 0.85rem;
	transition: var(--transition);
}

p.pagination span.previous,
p.pagination span.next {
	width: auto;
	min-width: 100px;
	height: 36px;
	line-height: 36px;
	background: var(--bg-tertiary);
	border-radius: var(--radius-sm);
	padding: 0 16px;
}

p.pagination span.previous a,
p.pagination span.next a {
	text-decoration: none;
	display: block;
	width: 100%;
	height: 100%;
	color: var(--text-secondary);
	font-weight: 500;
}

p.pagination span.active {
	background: var(--accent-gradient);
	color: #fff;
	font-weight: 700;
	border-color: transparent;
}

p.pagination span a {
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--text-secondary);
}

p.pagination span a:hover {
	background: var(--accent-gradient);
	color: #fff;
	font-weight: 700;
	border-radius: var(--radius-sm);
}

/* ============================================
   Form Controls
   ============================================ */
input {
	margin-right: 4px;
	padding: 8px 12px;
	font-family: var(--font-family);
	font-size: 0.9rem;
	color: var(--text-primary);
	background: #fff;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-sm);
	transition: var(--transition);
	outline: none;
}

input:focus {
	border-color: var(--accent-1);
	box-shadow: 0 0 0 3px rgba(255, 148, 8, 0.1);
}

input[type="checkbox"],
input[type="radio"] {
	width: auto;
	padding: 0;
	accent-color: var(--accent-1);
}

input[type="submit"],
input[type="button"] {
	cursor: pointer;
}

select {
	padding: 8px 12px;
	font-family: var(--font-family);
	font-size: 0.9rem;
	color: var(--text-primary);
	background: #fff;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-sm);
	transition: var(--transition);
	outline: none;
}

select:focus {
	border-color: var(--accent-1);
	box-shadow: 0 0 0 3px rgba(255, 148, 8, 0.1);
}

option {
	padding: 4px 8px;
	background: #fff;
	color: var(--text-primary);
}

textarea.url {
	width: 100%;
	max-width: 600px;
	height: auto;
	min-height: 44px;
	line-height: 1.6;
	text-indent: 0;
	padding: 10px 14px;
	border: 1.5px solid var(--border-color);
	color: var(--text-link);
	background: #fff;
	border-radius: var(--radius-sm);
	font-family: var(--font-family);
	font-size: 0.9rem;
	resize: vertical;
}

textarea.url:focus {
	border-color: var(--accent-1);
	box-shadow: 0 0 0 3px rgba(255, 148, 8, 0.1);
}

textarea.info_url {
	width: 100%;
	max-width: 600px;
	height: auto;
	min-height: 36px;
	border: 1.5px solid var(--border-color);
	color: var(--text-link);
	padding: 10px 14px;
	background: #fff;
	border-radius: var(--radius-sm);
	font-family: var(--font-family);
	font-size: 0.9rem;
}

textarea.textarea {
	width: 100%;
	min-height: 80px;
	color: var(--text-primary);
	padding: 10px 14px;
	background: #fff;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-family: var(--font-family);
	font-size: 0.9rem;
	resize: vertical;
}

textarea.textarea:focus,
textarea.info_url:focus {
	border-color: var(--accent-1);
	box-shadow: 0 0 0 3px rgba(255, 148, 8, 0.1);
}

/* ============================================
   Utility Classes
   ============================================ */
.fee { background: #fef2f2 !important; }
.ffe { background: #fffbeb !important; }
.efe { background: #ecfdf5 !important; }
.eff { background: #eff6ff !important; }
.red { color: var(--error) !important; }
.bold { font-weight: 700; font-size: 1rem; }
span.num { font-size: 1rem; color: var(--text-primary); font-weight: 600; }
span.num a { font-size: 1rem; }

.t_right { text-align: right !important; }
.t_left { text-align: left !important; }
p.right { text-align: right; margin-right: 8px; }
.center { text-align: center !important; }
.mb5 { margin-bottom: 6px !important; }
.mb10 { margin-bottom: 12px !important; }
.i_right input { text-align: right; }
.p10 { padding: 12px; }

span.info {
	display: block;
	color: var(--success);
	margin-top: 6px;
	font-size: 0.75rem;
	letter-spacing: 0.5px;
}

div.in_clip {
	margin: 12px 12px 8px 0;
	padding: 12px 16px;
	background: var(--bg-tertiary);
	color: var(--text-secondary);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
}

div.list_in {
	padding: 16px;
}

div.list_in div.code_area {
	margin-bottom: 12px;
	background: var(--bg-input);
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	font-family: 'Courier New', monospace;
}

div.list_in p {
	line-height: 1.6;
	color: var(--text-secondary);
}

/* ============================================
   Common Table (Black)
   ============================================ */
div.common_black {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	padding: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
}

table.common_table_black {
	width: 100%;
	color: var(--text-primary);
	background: var(--bg-card);
	border-collapse: collapse;
}

table.common_table_black th,
table.common_table_black td,
table.common_table_black {
	border-collapse: collapse;
	border: none;
	border-bottom: 1px solid var(--border-color);
}

table.common_table_black th {
	line-height: 1.6;
	padding: 12px 16px;
	background: var(--bg-tertiary);
	font-weight: 500;
	color: var(--text-secondary);
	text-align: right;
	font-size: 0.85rem;
}

table.common_table_black th.common_info {
	background: var(--accent-gradient);
	color: #fff;
}

table.common_table_black td {
	padding: 12px 16px;
	background: transparent;
	color: var(--text-primary);
}

/* ============================================
   Pay Table
   ============================================ */
div.pay_list {
	background: var(--bg-card) !important;
	border: 1px solid var(--border-color);
	padding: 0;
	margin-bottom: 20px;
	border-radius: var(--radius-md);
	overflow: hidden;
}

table.pay_table {
	width: 100%;
	border-collapse: collapse;
}

table.pay_table th,
table.pay_table td,
table.pay_table {
	border-collapse: collapse;
	border: none;
	border-bottom: 1px solid var(--border-color);
	vertical-align: top;
}

table.pay_table th {
	line-height: 1.6;
	padding: 12px 16px;
	background: var(--bg-tertiary);
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 0.85rem;
}

table.pay_table th a {
	color: var(--accent-1);
}

table.pay_table th.regist {
	text-align: center;
	background: var(--bg-hover);
	color: var(--text-primary);
}

table.pay_table th.common_info {
	background: var(--bg-tertiary);
	color: var(--text-muted);
}

table.pay_table td {
	line-height: 1.6;
	padding: 12px 16px;
	background: transparent;
	color: var(--text-secondary);
}

table.pay_table td label {
	color: var(--success);
}

table.pay_table td input {
	color: var(--accent-1);
}

table.pay_table td input.normal {
	color: var(--text-primary);
}

table.pay_table td a {
	color: var(--text-link);
	text-decoration: none;
}

table.pay_table td a:hover {
	text-decoration: underline;
}

table.pay_table td div.pay_info {
	background: var(--bg-tertiary);
	border-bottom: 1px solid var(--border-color);
	color: var(--text-muted);
	font-size: 0.75rem;
	letter-spacing: 0.5px;
	margin: 0 0 8px 0;
	text-align: center;
	padding: 6px;
	border-radius: var(--radius-sm);
}

/* ============================================
   Adwares Table
   ============================================ */
div.as {
	background: var(--bg-card);
	padding: 16px;
	border: 1px solid var(--border-color);
	margin-bottom: 20px;
	border-radius: var(--radius-md);
}

div.adwares_list {
	border: 1px solid var(--border-color);
	padding: 16px;
	background: var(--bg-secondary);
	margin-top: 8px;
	border-radius: var(--radius-md);
}

table.adwares_list_table {
	width: 100%;
	color: var(--text-primary);
	background: transparent;
	border-collapse: collapse;
}

table.adwares_list_table th,
table.adwares_list_table td,
table.adwares_list_table {
	border-collapse: collapse;
	border: none;
	border-bottom: 1px solid var(--border-color);
	padding: 10px 14px;
	vertical-align: top;
}

table.adwares_list_table th {
	text-align: right;
	color: var(--text-muted);
	font-weight: 500;
	font-size: 0.85rem;
}

table.adwares_list_table th.list_head {
	text-align: right;
	color: var(--text-primary);
	padding: 10px 14px;
	background: var(--bg-tertiary);
	font-weight: 600;
}

table.adwares_list_table td {
	color: var(--text-primary);
}

div.ad_image {
	width: 100%;
	max-width: 585px;
	overflow: hidden;
	border-radius: var(--radius-sm);
}

/* ============================================
   Calendar
   ============================================ */
div.calendar {
	padding: 16px;
}

div.calendar a {
	color: var(--text-link);
}

div.calendar a:hover {
	text-decoration: none;
	color: var(--accent-2);
}

div.calendar_go {
	background: var(--bg-tertiary);
	line-height: 1.6;
	text-align: center;
	font-size: 1rem;
	margin: 0 0 16px 0;
	padding: 12px;
	border-radius: var(--radius-md);
	font-weight: 600;
	color: var(--text-primary);
}

div.calendar_back {
	background: var(--bg-tertiary);
	line-height: 1.6;
	text-align: center;
	padding: 10px;
	border-radius: var(--radius-md);
}

table.calendar {
	width: 100%;
	margin: 0 0 16px 0;
	table-layout: fixed;
	border-collapse: collapse;
}

table.calendar,
table.calendar th,
table.calendar td {
	border-collapse: collapse;
	border: 1px solid var(--border-color);
}

table.calendar th {
	background: var(--bg-tertiary) !important;
	color: var(--text-secondary);
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border-color);
	font-weight: 600;
	font-size: 0.85rem;
}

table.calendar td {
	background: var(--bg-card) !important;
	line-height: 1.5;
	text-align: right;
	padding: 12px 10px 10px;
	color: var(--text-secondary);
}

table.calendar th.calendar_day {
	font-size: 0.75rem;
	color: var(--text-muted);
}

table.calendar td.tier_cnt {
	padding: 8px;
	line-height: 1.4;
	font-size: 0.85rem;
	color: var(--text-muted);
}

table.calendar td div.tier_cnt {
	border-bottom: 1px dashed var(--border-light);
	margin: 0 0 4px 0;
	padding: 0 0 4px 0;
}

table.calendar td.tier_cnt span {
	color: var(--text-primary);
	margin: 0 3px 0 0;
	font-weight: 600;
}

table.calendar th.day {
	background: var(--bg-tertiary) !important;
	color: var(--text-primary);
}

table.calendar th.day_sat {
	color: var(--info);
	background: var(--bg-tertiary) !important;
}

table.calendar th.day_sun {
	color: var(--error);
	background: var(--bg-tertiary) !important;
}

/* ============================================
   Super User
   ============================================ */
div#super_user {
	position: absolute;
	left: 16px;
	top: 80px;
	z-index: 100;
}

div#super_user ul {
	list-style: none;
}

div#super_user ul li a {
	display: block;
	height: auto;
	width: auto;
	padding: 8px 16px;
	background: var(--bg-card);
	color: var(--accent-1);
	line-height: 1.6;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	margin-bottom: 4px;
	font-size: 0.85rem;
	font-weight: 500;
	transition: var(--transition);
}

div#super_user ul li a:hover {
	background: var(--bg-hover);
	text-decoration: none;
	border-color: var(--accent-1);
}

/* ============================================
   Validation Errors (inline)
   ============================================ */
tr.validate td div.error_list {
	background: none;
	border: 0;
	margin-bottom: 0;
	padding: 0;
}

tr.validate td {
	background: #fef2f2 !important;
}

tr.validate td div.error_list dl dd {
	border-top: none;
	padding: 0;
}

tr.validate td div.error_list dl dd ul li {
	background: none;
	color: var(--error);
	padding: 0 0 0 8px;
	margin: 6px 0 0 0;
	border-left: 3px solid var(--error);
	height: auto;
	line-height: 1.4;
	font-size: 0.8rem;
}

tr.validate td div.error_list dl {
	background: none;
	border: 0;
	padding: 0;
}

/* ============================================
   Footer
   ============================================ */
div#footer {
	height: auto;
	line-height: 1.6;
	background: #fff !important;
	border-top: 1px solid var(--border-color);
	position: relative;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	padding: 0 max(0px, calc((100vw - var(--container-max)) / 2));
}

div#footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--accent-gradient-h);
	opacity: 0.8;
}

div#footer_body {
	text-align: center;
	padding: 20px 24px;
}

div#footer_body p {
	color: var(--text-muted);
	font-size: 0.8rem;
	letter-spacing: 0.3px;
}

/* ============================================
   Textbox
   ============================================ */
div.textbox {
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 16px;
	background: var(--bg-card);
}

/* ============================================
   Scrollbar (Webkit)
   ============================================ */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: #c4c4c4;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #a0a0a0;
}

/* ============================================
   Selection
   ============================================ */
::selection {
	background: rgba(255, 148, 8, 0.2);
	color: #1a1a2e;
}

/* ============================================
   Additional Table Styles
   ============================================ */
table {
	border-collapse: collapse;
}

table[cellspacing] {
	border-collapse: separate;
}

td, th {
	font-family: var(--font-family);
	color: var(--text-primary);
}

/* Generic form styling */
form {
	margin: 0;
}

/* Image related */
img {
	border: none;
}

/* Align helpers for old templates */
div[align="center"] {
	text-align: center;
}

/* Font Awesome icon spacing in sidebar */
div.side_menu ul li a i {
	width: 20px;
	text-align: center;
	margin-right: 8px;
	font-size: 0.85em;
	opacity: 0.7;
}

div.side_menu ul li a:hover i {
	opacity: 1;
	color: var(--accent-1);
}

/* Header icon spacing */
div#header_in ul li a i {
	margin-right: 6px;
	font-size: 0.85em;
}

/* ============================================
   Hamburger Button
   ============================================ */
#hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	width: 40px;
	height: 40px;
	padding: 8px;
	margin-left: 8px;
	border-radius: var(--radius-sm);
	position: relative;
	z-index: 1001;
	flex-shrink: 0;
	transition: var(--transition);
	order: 10;
}

#hamburger:hover {
	background: rgba(255, 148, 8, 0.07);
}

#hamburger span {
	display: block;
	width: 22px;
	height: 2.5px;
	background: var(--text-primary);
	border-radius: 2px;
	margin: 0 auto;
	transition: all 0.35s cubic-bezier(0.77, 0, 0.18, 1);
	transform-origin: center;
}

#hamburger span:nth-child(1) {
	margin-bottom: 5px;
}

#hamburger span:nth-child(3) {
	margin-top: 5px;
}

body.nav-open #hamburger span:nth-child(1) {
	transform: translateY(7.5px) rotate(45deg);
	background: var(--accent-1);
}

body.nav-open #hamburger span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

body.nav-open #hamburger span:nth-child(3) {
	transform: translateY(-7.5px) rotate(-45deg);
	background: var(--accent-1);
}

/* ============================================
   Sidebar Overlay (Mobile)
   ============================================ */
#sidebar_overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 99;
	opacity: 0;
	transition: opacity 0.3s ease;
	cursor: pointer;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
	from { transform: translateX(-100%); }
	to { transform: translateX(0); }
}

div#inc_side_body {
	animation: fadeIn 0.3s ease-out;
}

/* ============================================
   Special highlight for accent gradient text
   ============================================ */
.gradient-text {
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Focus ring for accessibility */
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--accent-1);
	outline-offset: 2px;
}

/* ============================================
   Search Panel (Modern Search Page)
   ============================================ */
.search-panel {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 28px;
	box-shadow: var(--shadow-md);
	transition: box-shadow 0.3s ease;
}

.search-panel:hover {
	box-shadow: var(--shadow-lg);
}

.search-panel__header {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	padding: 28px 32px 24px;
	position: relative;
	overflow: hidden;
}

.search-panel__header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(255, 148, 8, 0.15) 0%, transparent 70%);
	border-radius: 50%;
}

.search-panel__header::after {
	content: '';
	position: absolute;
	bottom: -60%;
	left: -10%;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(255, 111, 0, 0.1) 0%, transparent 70%);
	border-radius: 50%;
}

.search-panel__icon {
	width: 48px;
	height: 48px;
	background: var(--accent-gradient);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.2rem;
	margin-bottom: 14px;
	box-shadow: 0 4px 15px rgba(255, 148, 8, 0.3);
	position: relative;
	z-index: 1;
}

.search-panel__title {
	color: #fff;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
	position: relative;
	z-index: 1;
}

.search-panel__subtitle {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
	font-weight: 400;
	position: relative;
	z-index: 1;
}

.search-panel__body {
	padding: 28px 32px 32px;
}

.search-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}

.search-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.search-field__label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.search-field__label i {
	color: var(--accent-1);
	font-size: 0.8rem;
}

.search-field__input input[type="text"] {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	background: var(--bg-input);
	transition: all 0.25s ease;
	color: var(--text-primary);
}

.search-field__input input[type="text"]:focus {
	border-color: var(--accent-1);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(255, 148, 8, 0.08);
}

.search-category {
	margin-bottom: 28px;
}

.search-category__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.search-category__grid label {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: var(--bg-tertiary);
	border: 1.5px solid var(--border-color);
	border-radius: 100px;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--text-secondary);
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.search-category__grid label:hover {
	border-color: var(--accent-1);
	background: rgba(255, 148, 8, 0.06);
	color: var(--accent-2);
}

.search-category__grid label input[type="checkbox"] {
	display: none;
}

.search-category__grid label input[type="checkbox"]:checked + span,
.search-category__grid label:has(input[type="checkbox"]:checked) {
	color: #fff;
}

.search-category__grid label:has(input[type="checkbox"]:checked) {
	background: var(--accent-gradient);
	border-color: var(--accent-2);
	color: #fff;
	box-shadow: 0 2px 8px rgba(255, 148, 8, 0.25);
}

.search-panel__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	padding-top: 8px;
}

.search-btn {
	padding: 13px 36px;
	border: none;
	border-radius: var(--radius-md);
	font-family: var(--font-family);
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	letter-spacing: 0.5px;
}

.search-btn--primary {
	background: linear-gradient(135deg, #1a1a2e, #16213e);
	color: #fff;
	box-shadow: 0 4px 15px rgba(26, 26, 46, 0.25);
}

.search-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(26, 26, 46, 0.35);
}

.search-btn--secondary {
	background: transparent;
	color: var(--text-secondary);
	border: 2px solid var(--border-color);
}

.search-btn--secondary:hover {
	border-color: var(--text-secondary);
	background: var(--bg-tertiary);
	transform: translateY(-1px);
}

/* ============================================
   Search Results Header
   ============================================ */
.search-results-header {
	margin-bottom: 16px;
}

.search-results-header .pager_info p {
	font-size: 0.9rem;
	color: var(--text-secondary);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 4px;
}

.search-results-header .pager_info p span {
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 700;
	font-size: 1.1rem;
}

/* ============================================
   Search Results Grid
   ============================================ */
.search-results-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 24px;
}

/* ============================================
   Ad Card (Search Result Item)
   ============================================ */
.ad-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-sm);
}

.ad-card:hover {
	box-shadow: var(--shadow-lg);
	border-color: rgba(255, 148, 8, 0.3);
	transform: translateY(-3px);
}

.ad-card__header {
	padding: 24px 28px 16px;
	border-bottom: 1px solid var(--border-color);
	background: linear-gradient(135deg, rgba(26, 26, 46, 0.02), rgba(15, 52, 96, 0.03));
}

.ad-card__title-row {
	margin-bottom: 12px;
}

.ad-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text-primary);
	text-decoration: none;
	transition: var(--transition);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ad-card__title::before {
	content: '';
	width: 4px;
	height: 20px;
	background: var(--accent-gradient);
	border-radius: 2px;
	flex-shrink: 0;
}

.ad-card__title:hover {
	color: var(--accent-2);
}

.ad-card__id {
	font-size: 0.75rem;
	color: var(--text-muted);
	font-weight: 500;
	background: var(--bg-tertiary);
	padding: 3px 10px;
	border-radius: 100px;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.ad-card__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.ad-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ad-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.ad-card__badge--category {
	background: linear-gradient(135deg, rgba(255, 148, 8, 0.1), rgba(255, 111, 0, 0.08));
	color: var(--accent-2);
	border: 1px solid rgba(255, 148, 8, 0.2);
}

.ad-card__body {
	padding: 20px 28px;
}

.ad-card__description {
	color: var(--text-secondary);
	font-size: 0.92rem;
	line-height: 1.7;
}

.ad-card__banner {
	margin-top: 16px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	max-width: 100%;
}

.ad-card__banner img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
}

.ad-card__footer {
	padding: 16px 28px 20px;
	background: var(--bg-tertiary);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ad-card__stats {
	display: flex;
	gap: 24px;
}

.ad-card__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ad-card__stat-label {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.ad-card__stat-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text-primary);
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.ad-card__action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	background: linear-gradient(135deg, #1a1a2e, #16213e);
	color: #fff;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
}

.ad-card__action:hover {
	transform: translateX(3px);
	box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
	color: #fff;
}

.ad-card__action i {
	font-size: 0.75rem;
	transition: transform 0.2s ease;
}

.ad-card__action:hover i {
	transform: translateX(3px);
}

/* ============================================
   Search Empty State
   ============================================ */
.search-empty {
	text-align: center;
	padding: 60px 32px;
	background: var(--bg-card);
	border: 1px dashed var(--border-color);
	border-radius: var(--radius-lg);
	margin-top: 20px;
}

.search-empty__icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 20px;
	background: var(--bg-tertiary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: var(--text-muted);
}

.search-empty__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.search-empty__message {
	color: var(--text-muted);
	font-size: 0.92rem;
}

/* ============================================
   Responsive: Tablet
   ============================================ */
@media (max-width: 1300px) {
	div#container {
		max-width: 100%;
	}
}

@media (max-width: 1024px) {
	:root {
		--sidebar-width: 220px;
	}
}

/* ============================================
   Responsive: Mobile (<= 768px)
   ============================================ */
@media (max-width: 768px) {

	/* Show hamburger */
	#hamburger {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	/* Show overlay when nav open */
	#sidebar_overlay {
		display: block;
		pointer-events: none;
	}

	body.nav-open #sidebar_overlay {
		opacity: 1;
		pointer-events: auto;
	}

	/* Sidebar: off-canvas slide-in */
	div#side_bar {
		position: fixed;
		top: 0;
		left: 0;
		width: 280px;
		height: 100vh;
		height: 100dvh;
		float: none;
		z-index: 100;
		background: var(--bg-secondary);
		border-right: 1px solid var(--border-color);
		box-shadow: 4px 0 25px rgba(0, 0, 0, 0.1);
		padding: 0;
		overflow-y: auto;
		overflow-x: hidden;
		transform: translateX(-100%);
		transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
		-webkit-overflow-scrolling: touch;
	}

	body.nav-open div#side_bar {
		transform: translateX(0);
	}

	/* Sidebar inner spacing for mobile */
	div#side_bar .side_menu {
		padding-top: 80px;
	}

	div.side_menu ul {
		padding: 0 14px 20px;
	}

	div.side_menu li.title1,
	div.side_menu li.title2,
	div.side_menu li.title3,
	div.side_menu li.title4,
	div.side_menu li.title5,
	div.side_menu li.title6 {
		padding: 22px 16px 8px;
		font-size: 0.68rem;
	}

	div.side_menu li.title1 {
		padding-top: 10px;
	}

	div.side_menu ul li a {
		padding: 11px 16px;
		font-size: 0.92rem;
		border-radius: var(--radius-sm);
	}

	/* Main content fills width */
	div#inc_side_body {
		width: 100%;
		float: none;
		padding: 16px;
	}

	/* Header mobile adjustments */
	div#header {
		padding: 0 12px;
		width: 100%;
		margin-left: 0;
		height: 56px;
		position: sticky;
		top: 0;
		z-index: 101;
	}

	div#header_in {
		right: 12px;
	}

	div#header_in ul li a {
		padding: 6px 10px;
		font-size: 0.8rem;
	}

	div#header_in ul {
		gap: 4px;
	}

	div#header_in ul li a i {
		margin-right: 4px;
	}

	div#home a {
		font-size: 1.1rem;
	}

	/* Content spacing */
	div#contents {
		padding: 0 0 16px;
	}

	/* Topics bar */
	div.topics {
		border-radius: 0;
		margin-bottom: 16px;
		padding: 14px 16px;
		font-size: 1rem;
	}

	/* =============================================
	   Form Tables -> Single Column on Mobile
	   ============================================= */

	/* search_list_table: main form layout (th=label, td=input) */
	div.search_list {
		padding: 12px;
		margin-bottom: 16px;
		border-radius: var(--radius-sm);
	}

	div.search_list dl dt {
		padding: 0 0 10px;
		margin-bottom: 10px;
		font-size: 0.85rem;
	}

	table.search_list_table,
	table.search_list_table tbody,
	table.search_list_table tr,
	table.search_list_table th,
	table.search_list_table td {
		display: block;
		width: 100% !important;
		border: none;
	}

	table.search_list_table tr {
		margin-bottom: 16px;
		padding-bottom: 16px;
		border-bottom: 1px solid var(--border-color);
	}

	table.search_list_table tr:last-child {
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: none;
	}

	table.search_list_table th {
		text-align: left;
		padding: 0 0 6px;
		font-weight: 600;
		font-size: 0.85rem;
		color: var(--text-primary);
		text-indent: 0;
	}

	table.search_list_table th span {
		color: var(--error);
	}

	table.search_list_table td {
		padding: 0;
	}

	/* search_table: search/filter forms */
	div.search {
		overflow-x: visible;
		border-radius: var(--radius-sm);
	}

	table.search_table,
	table.search_table tbody,
	table.search_table tr,
	table.search_table th,
	table.search_table td {
		display: block;
		width: 100% !important;
		border: none;
	}

	table.search_table {
		min-width: 0;
	}

	table.search_table tr {
		margin-bottom: 12px;
		padding-bottom: 12px;
		border-bottom: 1px solid var(--border-color);
	}

	table.search_table tr:last-child {
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: none;
	}

	table.search_table th {
		text-align: left;
		padding: 0 0 4px;
		width: 100%;
		background: transparent;
		font-size: 0.82rem;
		font-weight: 600;
		border-right: none;
	}

	table.search_table td {
		padding: 4px 0;
	}

	/* login_table */
	table.login_table {
		max-width: 100%;
		border-spacing: 0 12px;
	}

	table.login_table tr {
		display: block;
		margin-bottom: 12px;
	}

	table.login_table th {
		display: block;
		width: 100%;
		text-align: left;
		padding: 0 0 4px;
		font-size: 0.85rem;
	}

	table.login_table td {
		display: block;
		width: 100%;
	}

	table.login_table td input {
		max-width: 100%;
		width: 100%;
	}

	/* common_table_black: dashboard/data table */
	div.common_black {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	table.common_table_black {
		min-width: 500px;
	}

	/* adwares_list_table: ad detail form */
	table.adwares_list_table,
	table.adwares_list_table tbody,
	table.adwares_list_table tr,
	table.adwares_list_table th,
	table.adwares_list_table td {
		display: block;
		width: 100% !important;
		border: none;
	}

	table.adwares_list_table tr {
		margin-bottom: 10px;
		padding-bottom: 10px;
		border-bottom: 1px solid var(--border-color);
	}

	table.adwares_list_table tr:last-child {
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: none;
	}

	table.adwares_list_table th {
		text-align: left;
		padding: 0 0 4px;
		font-weight: 600;
		font-size: 0.82rem;
		color: var(--text-muted);
	}

	table.adwares_list_table th.list_head {
		text-align: left;
		font-size: 0.9rem;
		color: var(--text-primary);
		padding: 8px 0;
	}

	table.adwares_list_table td {
		padding: 0;
	}

	div.ad_image {
		max-width: 100%;
	}

	div.as {
		padding: 12px;
	}

	div.adwares_list {
		padding: 12px;
	}

	/* pay_table & search_accs tables: data lists -> horizontal scroll */
	div.search_accs,
	div.pay_list {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-radius: var(--radius-sm);
	}

	table.search_accs_table,
	table.search_accs_table2,
	table.pay_table {
		min-width: 560px;
	}

	/* =============================================
	   All form inputs: fit within screen
	   ============================================= */
	input[type="text"],
	input[type="password"],
	input[type="email"],
	input[type="number"],
	input[type="url"],
	input[type="tel"],
	select,
	textarea {
		max-width: 100% !important;
		box-sizing: border-box;
	}

	textarea.url,
	textarea.info_url,
	textarea.textarea {
		width: 100%;
		max-width: 100% !important;
	}

	/* in_clip helper */
	div.in_clip {
		margin: 8px 0 4px;
		padding: 10px 12px;
		font-size: 0.85rem;
	}

	span.info {
		font-size: 0.72rem;
		line-height: 1.5;
	}

	/* code_area */
	div.list_in div.code_area {
		padding: 10px;
		overflow-x: auto;
	}

	div.list_in {
		padding: 12px;
	}

	/* topics_list, blue_list, orange_list, etc. */
	div.topics_list dl dt,
	div.blue_list dl dt,
	div.orange_list dl dt,
	div.login_list dl dt,
	div.comp_list dl dt,
	div.error_list dl dt {
		padding: 12px 14px;
		font-size: 0.88rem;
	}

	div.topics_list dl dd ul li,
	div.blue_list dl dd ul li,
	div.orange_list dl dd ul li {
		padding: 8px 14px;
		font-size: 0.88rem;
	}

	div.blue_list dl dd,
	div.orange_list dl dd,
	div.topics_list dl dd {
		padding: 12px 14px;
	}

	div.blue_list dl dd ul,
	div.orange_list dl dd ul,
	div.topics_list dl dd ul {
		margin: -12px -14px 12px;
	}

	div.blue_list dl dd > input[type="text"],
	div.orange_list dl dd > input[type="text"],
	div.topics_list dl dd > input[type="text"] {
		font-size: 0.82rem;
	}

	/* Buttons stack on mobile */
	div.input_single {
		margin: 16px auto;
	}

	div.input_box,
	div.input_box_f {
		flex-direction: column;
		align-items: stretch;
		max-width: 100%;
		padding: 0 16px;
	}

	input.input_base,
	input.input_base:hover {
		width: 100% !important;
		min-width: 0;
		max-width: 100%;
		text-align: center;
		float: none;
		margin-right: 0;
	}

	a.input_base,
	a.input_base_f {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		text-align: center;
		float: none;
		margin-right: 0;
		margin-bottom: 8px;
	}

	/* Pagination wrap */
	p.pagination {
		justify-content: center;
	}

	p.pagination span {
		width: 32px;
		height: 32px;
		font-size: 0.8rem;
	}

	p.pagination span.previous,
	p.pagination span.next {
		min-width: 80px;
		font-size: 0.8rem;
		padding: 0 10px;
		height: 32px;
	}

	/* Calendar responsive */
	div.calendar {
		padding: 10px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	table.calendar {
		min-width: 500px;
	}

	/* Search Panel Mobile */
	.search-panel__header {
		padding: 20px 18px 18px;
	}

	.search-panel__title {
		font-size: 1.15rem;
	}

	.search-panel__body {
		padding: 20px 18px 24px;
	}

	.search-fields {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.search-category__grid {
		gap: 6px;
	}

	.search-category__grid label {
		padding: 6px 12px;
		font-size: 0.78rem;
	}

	.search-panel__actions {
		flex-direction: column;
	}

	.search-btn {
		width: 100%;
		text-align: center;
	}

	.ad-card__header {
		padding: 18px 18px 14px;
	}

	.ad-card__body {
		padding: 16px 18px;
	}

	.ad-card__footer {
		padding: 14px 18px 16px;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.ad-card__stats {
		gap: 16px;
	}

	.ad-card__action {
		text-align: center;
		justify-content: center;
	}

	.search-empty {
		padding: 40px 20px;
	}

	/* Footer */
	div#footer {
		width: 100%;
		margin-left: 0;
		padding: 0;
	}

	div#footer_body {
		padding: 16px;
	}

	/* Prevent body scroll when nav is open */
	body.nav-open {
		overflow: hidden;
	}
}

/* ============================================
   Responsive: Very Small (<= 480px)
   ============================================ */
@media (max-width: 480px) {

	div#side_bar {
		width: 260px;
	}

	/* Header: icon-only on very small screens */
	div#header_in ul li a {
		padding: 6px 8px;
		font-size: 0.78rem;
	}

	div#home a {
		font-size: 1rem;
	}

	div.topics {
		font-size: 0.88rem;
		padding: 12px 14px;
	}

	div#inc_side_body {
		padding: 10px;
	}

	/* Even tighter form spacing */
	div.search_list {
		padding: 10px;
	}

	table.search_list_table tr {
		margin-bottom: 14px;
		padding-bottom: 14px;
	}

	/* Data tables scroll at even smaller breakpoint */
	table.common_table_black {
		min-width: 420px;
	}

	table.search_accs_table,
	table.search_accs_table2,
	table.pay_table {
		min-width: 480px;
	}
}


/* ============================================
   Landing Page (LP) Styles
   ============================================ */
html {
	scroll-behavior: smooth;
}

.lp-page {
	padding: 0 !important;
	overflow-x: hidden;
}

/* --- LP Header --- */
.lp-page #header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	margin-left: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	transition: background 0.3s ease, box-shadow 0.3s ease;
	box-shadow: none;
}

.lp-page #header::after {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lp-page #header.lp-header-scrolled {
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.lp-page #header.lp-header-scrolled::after {
	opacity: 0.9;
}

.lp-page #header_in {
	position: static;
	transform: none;
	margin-left: 0;
}

/* --- LP Navigation --- */
.lp-nav {
	display: none;
}

.lp-page .lp-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.lp-page .lp-nav ul {
	display: flex;
	list-style: none;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.lp-page .lp-nav ul li a {
	display: block;
	padding: 8px 16px;
	color: var(--text-secondary);
	font-size: 0.88rem;
	font-weight: 500;
	border-radius: var(--radius-sm);
	transition: var(--transition);
	text-decoration: none;
}

.lp-page .lp-nav ul li a:hover {
	color: var(--accent-2);
	background: rgba(255, 148, 8, 0.07);
}

/* --- LP Header CTA Button --- */
.lp-header-login-btn {
	color: var(--accent) !important;
	padding: 8px 22px !important;
	border-radius: 50px !important;
	font-weight: 600 !important;
	font-size: 0.85rem !important;
	border: 1.5px solid var(--accent) !important;
	background: transparent !important;
	transition: all 0.3s ease !important;
	text-decoration: none !important;
}

.lp-header-login-btn:hover {
	background: rgba(255, 111, 0, 0.1) !important;
	color: var(--accent) !important;
	border-color: var(--accent) !important;
}

.lp-page #header .lp-header-login-btn {
	display: none !important;
}

form > #contents > #header .lp-header-cta-btn {
	display: none !important;
}

.lp-header-cta-btn {
	background: var(--accent-gradient) !important;
	color: #fff !important;
	padding: 8px 22px !important;
	border-radius: 50px !important;
	font-weight: 600 !important;
	font-size: 0.85rem !important;
	box-shadow: var(--shadow-accent);
	border: none !important;
	transition: all 0.3s ease !important;
}

.lp-header-cta-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(255, 111, 0, 0.35) !important;
	color: #fff !important;
}

.lp-header-cta-mobile {
	display: none;
	order: 9;
	margin-left: auto;
	white-space: nowrap;
	text-decoration: none;
}

/* --- LP Buttons --- */
.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	border: 2px solid transparent;
	line-height: 1.4;
}

.lp-btn-primary {
	background: var(--accent-gradient);
	color: #fff;
	box-shadow: var(--shadow-accent);
}

.lp-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255, 111, 0, 0.4);
	color: #fff;
}

.lp-btn-outline {
	background: transparent;
	color: rgba(255, 255, 255, 0.9);
	border-color: rgba(255, 255, 255, 0.3);
}

.lp-btn-outline:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.lp-btn-white {
	background: #fff;
	color: var(--accent-2);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lp-btn-white:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	color: var(--accent-1);
}

.lp-btn-lg {
	padding: 16px 36px;
	font-size: 1.05rem;
}

.lp-btn-sm {
	padding: 8px 20px;
	font-size: 0.85rem;
}

.lp-btn-block {
	width: 100%;
}

/* --- LP Accent Text --- */
.lp-accent {
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* --- Hero Section --- */
.lp-hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0f172a;
	padding: 130px 24px 80px;
	overflow: hidden;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
}

.lp-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.lp-hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1.5s ease-in-out;
}

.lp-hero-slide--active {
	opacity: 1;
}

.lp-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	pointer-events: none;
}

.lp-hero::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -15%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(255, 148, 8, 0.12) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
}

.lp-hero::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 450px;
	height: 450px;
	background: radial-gradient(circle, rgba(255, 111, 0, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
}

.lp-hero-particles {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 50%, rgba(255, 148, 8, 0.04) 1px, transparent 1px),
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		radial-gradient(circle at 50% 80%, rgba(255, 148, 8, 0.03) 1px, transparent 1px);
	background-size: 60px 60px, 80px 80px, 100px 100px;
	pointer-events: none;
}

.lp-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.lp-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 148, 8, 0.12);
	border: 1px solid rgba(255, 148, 8, 0.25);
	color: var(--accent-1);
	padding: 8px 22px;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 28px;
	letter-spacing: 0.3px;
}

.lp-hero-title {
	font-size: 3.2rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.35;
	margin-bottom: 22px;
	letter-spacing: -0.5px;
}

.lp-hero-subtitle {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.9;
	margin-bottom: 40px;
}

.lp-hero-buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* --- LP Section Common --- */
.lp-section {
	padding: 100px 24px;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	background: var(--bg-secondary);
}

.lp-section-alt {
	background: #f8fafc;
}

.lp-section-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.lp-section-header {
	text-align: center;
	margin-bottom: 60px;
}

.lp-section-label {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--accent-1);
	letter-spacing: 3px;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.lp-section-title {
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 16px;
	line-height: 1.35;
}

.lp-section-desc {
	font-size: 1.05rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.8;
}

/* --- Features Grid --- */
.lp-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.lp-feature-card {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 40px 32px;
	text-align: center;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lp-feature-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(255, 148, 8, 0.2);
}

.lp-feature-icon {
	width: 72px;
	height: 72px;
	background: var(--accent-gradient);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
	font-size: 1.6rem;
	color: #fff;
	box-shadow: var(--shadow-accent);
}

.lp-feature-card h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 12px;
}

.lp-feature-card p {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.75;
}

/* --- Stats Section --- */
.lp-stats-section {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	padding: 60px 24px;
}

.lp-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	text-align: center;
}

.lp-stat-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lp-stat-icon {
	font-size: 2.2rem;
	color: #fff;
	margin-bottom: 10px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	border-radius: 50%;
	margin-left: auto;
	margin-right: auto;
}

.lp-stat-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
}

.lp-stat-label {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
}

/* --- Steps --- */
.lp-steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
}

.lp-step {
	flex: 1;
	max-width: 280px;
	text-align: center;
	padding: 0 20px;
}

.lp-step-number {
	width: 40px;
	height: 40px;
	background: var(--accent-gradient);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	margin: 0 auto 16px;
	box-shadow: var(--shadow-accent);
}

.lp-step-icon {
	width: 80px;
	height: 80px;
	background: var(--bg-secondary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 1.8rem;
	color: var(--accent-2);
	border: 2px solid var(--border-color);
	box-shadow: var(--shadow-sm);
}

.lp-step h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 10px;
}

.lp-step p {
	font-size: 0.92rem;
	color: var(--text-secondary);
	line-height: 1.75;
}

.lp-step-connector {
	display: flex;
	align-items: center;
	padding-top: 58px;
	color: var(--accent-1);
	font-size: 1.2rem;
	opacity: 0.4;
}

.lp-steps-cta {
	text-align: center;
	margin-top: 48px;
}

/* --- Advertiser Section --- */
.lp-advertiser-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.lp-advertiser-text h3 {
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 16px;
	line-height: 1.4;
}

.lp-advertiser-text > p {
	font-size: 1.05rem;
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 28px;
}

.lp-check-list {
	list-style: none;
	padding: 0;
	margin-bottom: 32px;
}

.lp-check-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	font-size: 1rem;
	color: var(--text-primary);
	font-weight: 500;
}

.lp-check-list li i {
	color: var(--success);
	font-size: 1.1rem;
}

.lp-advertiser-visual {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.lp-visual-card {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 32px 24px;
	text-align: center;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
}

.lp-visual-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: rgba(255, 148, 8, 0.2);
}

.lp-visual-icon {
	width: 56px;
	height: 56px;
	background: rgba(255, 148, 8, 0.1);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
	font-size: 1.3rem;
	color: var(--accent-2);
}

.lp-visual-card span {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--text-primary);
}

/* --- Login Section --- */
.lp-login-card {
	max-width: 440px;
	margin: 0 auto;
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 40px;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border-color);
}

.lp-login-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.lp-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lp-form-group label {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 6px;
}

.lp-form-group label i {
	color: var(--text-muted);
	font-size: 0.82rem;
}

.lp-form-group input {
	padding: 12px 16px;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	font-family: var(--font-family);
	background: var(--bg-input);
	transition: var(--transition);
	color: var(--text-primary);
}

.lp-form-group input:focus {
	outline: none;
	border-color: var(--accent-1);
	box-shadow: 0 0 0 3px rgba(255, 148, 8, 0.12);
	background: #fff;
}

.lp-form-group input::placeholder {
	color: var(--text-muted);
}

.lp-login-form .lp-btn-block {
	margin-top: 8px;
	border: none;
	font-family: var(--font-family);
	cursor: pointer;
}

.lp-login-links {
	margin-top: 20px;
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
}

.lp-login-links p {
	font-size: 0.82rem;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.lp-login-links a {
	font-size: 0.88rem;
	color: var(--text-link);
	margin: 0 8px;
}

/* --- Login Page Section --- */
.lp-login-page-section {
	min-height: calc(100vh - 80px);
	display: flex;
	align-items: center;
	padding-top: 100px !important;
}

.lp-login-register-links {
	max-width: 440px;
	margin: 32px auto 0;
	text-align: center;
}

.lp-login-register-links > p {
	font-size: 0.88rem;
	color: var(--text-muted);
	margin-bottom: 16px;
}

.lp-login-register-btns {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.lp-login-register-btns .lp-btn {
	flex: 1;
	text-align: center;
}

.lp-login-register-btns .lp-btn-outline {
	color: var(--accent) !important;
	border-color: var(--accent) !important;
	background: transparent !important;
}

.lp-login-register-btns .lp-btn-outline:hover {
	background: rgba(255, 111, 0, 0.1) !important;
	color: var(--accent) !important;
}

/* --- CTA Section --- */
.lp-cta {
	background: var(--accent-gradient);
	padding: 80px 24px;
	text-align: center;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	position: relative;
	overflow: hidden;
}

.lp-cta::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.lp-cta h2 {
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: 16px;
}

.lp-cta p {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 32px;
}

/* --- LP Footer --- */
.lp-footer {
	background: #0f172a;
	padding: 40px 24px;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
}

.lp-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
}

.lp-footer-links {
	display: flex;
	justify-content: center;
	gap: 28px;
	flex-wrap: wrap;
}

.lp-footer-links a {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.88rem;
	transition: color 0.2s;
}

.lp-footer-links a:hover {
	color: #fff;
}

/* --- LP Fade-in Animation --- */
.lp-fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.lp-fade-in.lp-visible {
	opacity: 1;
	transform: translateY(0);
}

/* --- LP Responsive: Tablet (<=1024px) --- */
@media (max-width: 1024px) {
	.lp-page .lp-nav {
		display: none;
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
		z-index: 999;
		padding: 12px 16px;
		border-top: 1px solid var(--border-color);
	}

	.lp-page .lp-nav.lp-nav-open {
		display: block;
	}

	.lp-page .lp-nav ul {
		flex-direction: column;
		gap: 2px;
	}

	.lp-page .lp-nav ul li a {
		padding: 14px 16px;
		display: block;
		border-radius: var(--radius-sm);
		font-size: 0.95rem;
	}

	.lp-page .lp-nav ul li a:hover {
		background: rgba(255, 148, 8, 0.06);
	}

	.lp-page #hamburger {
		display: flex !important;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-left: auto;
	}

	.lp-page #header_in {
		display: none;
	}

	.lp-header-cta-mobile {
		display: inline-block;
		padding: 6px 16px !important;
		font-size: 0.85rem !important;
	}

	.lp-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.lp-features-grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}

	.lp-steps {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.lp-step {
		max-width: 360px;
	}

	.lp-step-connector {
		padding-top: 0;
		transform: rotate(90deg);
	}

	.lp-advertiser-content {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* --- LP Responsive: Mobile (<=768px) --- */
@media (max-width: 768px) {
	.lp-hero {
		min-height: 75vh;
		padding: 110px 20px 60px;
	}

	.lp-hero-title {
		font-size: 2rem;
	}

	.lp-hero-subtitle {
		font-size: 0.98rem;
		line-height: 1.8;
	}

	.lp-hero-buttons {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}

	.lp-hero-buttons .lp-btn {
		width: 100%;
		max-width: 300px;
	}

	.lp-btn-lg {
		padding: 14px 28px;
		font-size: 0.95rem;
	}

	.lp-section {
		padding: 64px 20px;
	}

	.lp-section-header {
		margin-bottom: 40px;
	}

	.lp-section-title {
		font-size: 1.65rem;
	}

	.lp-section-desc {
		font-size: 0.95rem;
	}

	.lp-advertiser-text h3 {
		font-size: 1.4rem;
	}

	.lp-advertiser-visual {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.lp-visual-card {
		padding: 24px 16px;
	}

	.lp-login-card {
		padding: 28px 20px;
	}

	.lp-cta {
		padding: 60px 20px;
	}

	.lp-cta h2 {
		font-size: 1.5rem;
	}

	.lp-cta p {
		font-size: 0.98rem;
	}
}

/* --- LP Header Mobile (<=600px) --- */
@media (max-width: 600px) {
	.lp-header-cta-mobile {
		padding: 6px 14px !important;
		font-size: 0.78rem !important;
	}

	.lp-hero-badge {
		font-size: 0.78rem;
		padding: 6px 16px;
	}

	.lp-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.lp-stat-icon {
		font-size: 1.5rem;
	}

	.lp-stat-title {
		font-size: 1rem;
	}
}
