/* Wrapper */
.account_wrapper
{
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}

.loading_overlay
{
	justify-self: center;
	align-self: center;
}

.dashboard_grid
{
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 40px;
	align-items: start;
}

/* --- Left: Identity Panel --- */
.identity_panel
{
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.id_card
{
	background: var(--element-bg-primary);
	border-radius: var(--std-border-radius);
	border: var(--element-border-primary);
	box-shadow: var(--primary-shadow);
	/* border-top: 4px solid var(--primary-orange); */
	padding: 30px 20px;
	text-align: center;
	position: relative;
}

.spinning
{
	animation: spin 1s infinite linear;
}

@keyframes spin
{
	100%
	{
		transform: rotate(360deg);
	}
}

.avatar_frame
{
	position: relative;
	width: 100px;
	height: 100px;
	margin: 0 auto 15px auto;
}

.user_avatar
{
	width: 100%;
	height: 100%;
	border-radius: 50%;
	/* border: 3px solid #333; */
}

.user_name_section
{
	display: block;
	padding: 15px 15px 0px 15px;
	line-height: 15px;
}

.user_name
{
	color: white;
	font-size: 1.5rem;
	margin: 0;
}

.user_name_subtitle
{
	font-style: italic;
	color: #ccc;
}

.role_badges
{
	display: flex;
	justify-content: center;
	gap: 5px;
	flex-wrap: wrap;
	margin-bottom: 25px;
}

.badge
{
	background: #222;
	color: var(--primary-orange);
	border: 1px solid var(--primary-orange);
	padding: 2px 8px;
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: 0.8rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 3px;
}

.global_stats
{
	border-top: 1px solid #333;
	/* padding-top: 10px; */
	text-align: left;
}

.stats_title
{
	color: var(--primary-orange);
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: 1.5rem;
}

.stat_row
{
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 0.9rem;
}

.stat_row label
{
	color: #aaa;
}

.stat_row .val
{
	color: white;
	font-family: monospace;
}

.stat_row .highlight
{
	color: var(--primary-orange);
}

/* --- Right: Command Deck --- */
.control_bar
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: 1.1rem;
}

.deck_tabs
{
	display: flex;
	gap: 2px;
	margin-bottom: 20px;
}

.tab_btn
{
	background: var(--element-bg-primary);
	border: var(--element-border-primary);
	color: #aaa;
	padding: 10px 20px;
	cursor: pointer;
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: inherit;
	/* clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); */
	box-shadow: var(--primary-shadow);
	transition: all 0.2s ease;
}

.tab_btn:hover
{
	color: var(--gray-text);
	border-bottom-color: rgb(50, 50, 50);
}

.tab_btn:first-of-type
{
	border-top-left-radius: var(--std-border-radius);
}

.tab_btn:last-of-type
{
	border-top-right-radius: var(--std-border-radius);
}

.tab_btn.active
{
	background: var(--secondary-orange);
	border-bottom-color: var(--off-orange);
	color: white;
	z-index: 5;
}

.new_asset_button
{
	right: 0;
	color: var(--gray-text);
	background-color: var(--element-bg-primary);
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: inherit;

	padding: 10px 20px;
	box-shadow: var(--primary-shadow);
	border-radius: var(--std-border-radius);
	border: var(--element-border-primary);

	margin-bottom: 20px;
	transition: all 300ms ease;
}

.new_asset_button:hover
{
	color: white;
	background-color: var(--primary-orange);
	cursor: pointer;
}

/* Manage List */
.manage_grid
{
	background-color: var(--element-bg-primary);
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 10px;
	border-radius: var(--std-border-radius);
	min-height: max-content;
	box-shadow: var(--primary-shadow);
}

.manage_card
{
	background: var(--element-bg-secondary);
	display: flex;
	align-items: center;
	padding: 10px;
	border: 1px solid transparent;
	border-radius: var(--std-border-radius);
	transition: all 0.2s ease;
	box-shadow: var(--secondary-shadow);
}

.manage_card:hover
{
	border-color: var(--primary-orange);
}

.manage_thumb
{
	width: 80px;
	height: 60px;
	position: relative;
	margin-right: 20px;
	image-rendering: optimizeQuality;
}

.manage_thumb img
{
	width: 100%;
	height: 100%;
	/* aspect-ratio: 4/3; */
	object-fit: cover;
	border-radius: 5px;
}

.status_badge
{
	bottom: 0;
	right: 0;
	/* background: #aa0000; */
	color: white;
	font-size: 0.6rem;
	font-family: "Barlow", sans-serif;
	font-weight: 300;
	padding: 5px;
	/* border-radius: 8px; */
	font-size: .8rem;
}

.manage_info
{
	flex-grow: 1;
}

.manage_title
{
	color: white;
	/* margin: 0 0 50px 0; */
	font-family: "Barlow", sans-serif;
	font-weight: 300;
	font-size: 1.2rem;
	transition: all 300ms ease;
	text-decoration: none;
	width: fit-content;
}

.manage_title:hover
{
	color: var(--primary-orange);
	text-decoration: underline;
}

.manage_metrics
{
	display: flex;
	flex-direction: row;
	justify-content: left;
	align-items: baseline;
	gap: 2.5rem;
}


.manage_metrics span
{
	color: #ccc;
	font-size: .9rem;
}

.manage_actions
{
	display: flex;
	gap: 15px;
}

.action_btn
{
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--element-bg-primary);
	border: 1px solid #444;
	color: #aaa;
	text-decoration: none;
	cursor: pointer;
	border-radius: 4px;
	transition: all .2s ease;
	box-shadow: var(--secondary-shadow);
	margin: 0;
	padding: 3px;
}

.action_btn:hover
{
	background-color: var(--off-orange);
	border-color: var(--secondary-orange);
}

.action_btn.delete:hover
{
	background-color: #880000;
	border-color: red;
}

.action_btn img
{
	width: 32px;
	height: 32px;
}

.action_btn:disabled
{
	opacity: 0.6;
	cursor: not-allowed;
}

/* Commissions Tab */
.commissions_tab_content
{
	background-color: var(--element-bg-primary);
	border-radius: var(--std-border-radius);
	padding: 40px;
	box-shadow: var(--primary-shadow);
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
}

.commissions_message
{
	color: var(--text-secondary);
	font-size: 1.1rem;
	margin: 0;
}

.apply_btn
{
	background: var(--primary-orange);
	color: white;
	border: none;
	border-radius: var(--std-border-radius);
	padding: 12px 30px;
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: 1.1rem;
	cursor: pointer;
	transition: background 0.2s;
}

.apply_btn:hover
{
	background: var(--off-orange);
}

.commission_thumb_placeholder
{
	width: 60px;
	height: 60px;
	background: var(--element-bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	border-radius: 5px;
}

.commission_services
{
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin: 5px 0;
	font-style: italic;
}

.review_note_display
{
	margin-top: 10px;
	padding: 10px;
	background: var(--element-bg-primary);
	border-left: 3px solid var(--primary-orange);
	border-radius: var(--std-border-radius);
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.review_note_display strong
{
	color: var(--primary-orange);
}

/* Commission Application Dialog */
.commission_application_dialog
{
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.commission_application_dialog h1
{
	color: var(--primary-orange);
	margin: 0;
	font-size: 1.5rem;
	text-align: center;
}

.application_form_content
{
	min-height: 200px;
}

.dialog_btn_container
{
	display: flex;
	justify-content: center;
	gap: 1rem;
}

/* Commission Page Editor */
.commission_page_editor_section
{
	margin-top: 40px;
	padding-top: 40px;
	border-top: 2px solid rgba(255, 102, 0, 0.3);
}

.commission_page_editor
{
	background: rgba(24, 24, 24, 0.6);
	border: 0;
	border-radius: var(--std-border-radius);
	padding: 30px;
	box-shadow: var(--primary-shadow);
}

.portfolio_editor_content
{
	display: flex;
	flex-direction: column;
	gap: 25px;
}

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

.form_label
{
	color: var(--primary-orange);
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 5px;
}

.field_required
{
	color: #ff6b6b;
}

.form_sub_label
{
	color: var(--text-secondary);
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	font-size: 0.85rem;
	margin: 0;
}

.form_sub_label a
{
	color: var(--primary-orange);
	text-decoration: none;
	transition: color 0.2s;
}

.form_sub_label a:hover
{
	color: var(--off-orange);
	text-decoration: underline;
}

.char_count
{
	color: var(--text-secondary);
	font-size: 0.8rem;
	text-align: right;
	margin: 0;
}

.offers_list,
.work_items,
.social_links_list
{
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.offer_item_full
{
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 15px;
	background: var(--element-bg-secondary);
	border-radius: var(--std-border-radius);
	border-left: 3px solid var(--primary-orange);
}

.offer_item_row
{
	display: flex;
	gap: 10px;
	align-items: center;
}

.offer_description
{
	padding: 10px;
	background: var(--element-bg-primary);
	border: var(--element-border-primary);
	border-radius: var(--std-border-radius);
	color: var(--text-primary);
	font-family: inherit;
	resize: vertical;
}

.work_item,
.social_link_item
{
	display: flex;
	gap: 10px;
	align-items: center;
}

.offer_name,
.work_url,
.social_url
{
	flex: 1;
	padding: 10px;
	background: var(--element-bg-secondary);
	border: var(--element-border-primary);
	border-radius: var(--std-border-radius);
	color: var(--text-primary);
	font-family: inherit;
}

.work_url
{
	width: 100%;
}

.commission_page_editor textarea
{
	width: 100%;
	padding: 10px;
	background: var(--element-bg-secondary);
	border: var(--element-border-primary);
	border-radius: var(--std-border-radius);
	color: var(--text-primary);
	font-family: inherit;
	resize: vertical;
	min-height: 100px;
	box-sizing: border-box;
}

.commission_page_editor input[type="email"]
{
	width: 100%;
	padding: 10px;
	background: var(--element-bg-secondary);
	border: var(--element-border-primary);
	border-radius: var(--std-border-radius);
	color: var(--text-primary);
	font-family: inherit;
	box-sizing: border-box;
}

.offer_price
{
	width: 150px;
	padding: 10px;
	background: var(--element-bg-secondary);
	border: var(--element-border-primary);
	border-radius: var(--std-border-radius);
	color: var(--text-primary);
	font-family: inherit;
}

.social_platform
{
	width: 120px;
	padding: 10px;
	background: var(--element-bg-secondary);
	border: var(--element-border-primary);
	border-radius: var(--std-border-radius);
	color: var(--text-primary);
	font-family: inherit;
}

.remove_offer_btn,
.remove_work_btn,
.remove_social_btn
{
	width: 35px;
	height: 35px;
	background: #ff6b6b;
	color: white;
	border: none;
	border-radius: var(--std-border-radius);
	cursor: pointer;
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.remove_offer_btn:hover,
.remove_work_btn:hover,
.remove_social_btn:hover
{
	background: #fa5252;
}

.add_offer_btn,
.add_work_btn,
.add_social_btn
{
	padding: 10px 20px;
	background: var(--element-bg-secondary);
	border: 2px dashed var(--primary-orange);
	border-radius: var(--std-border-radius);
	color: var(--primary-orange);
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s;
}

.add_offer_btn:hover,
.add_work_btn:hover,
.add_social_btn:hover
{
	background: var(--primary-orange);
	color: white;
}

.publish_toggle
{
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	color: var(--text-primary);
}

.publish_toggle input[type="checkbox"]
{
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.error_text
{
	color: #ff6b6b;
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	margin: 0;
	padding: 10px;
	background: rgba(255, 107, 107, 0.1);
	border-left: 3px solid #ff6b6b;
	border-radius: var(--std-border-radius);
}

.success_text
{
	color: #51cf66;
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	margin: 0;
	padding: 10px;
	background: rgba(81, 207, 102, 0.1);
	border-left: 3px solid #51cf66;
	border-radius: var(--std-border-radius);
}

.action_bar
{
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.btn_upload
{
	padding: 15px 40px;
	background: var(--primary-orange);
	color: white;
	border: none;
	border-radius: var(--std-border-radius);
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: 1.1rem;
	cursor: pointer;
	transition: background 0.2s;
}

.btn_upload:hover:not(:disabled)
{
	background: var(--off-orange);
}

.btn_upload:disabled
{
	opacity: 0.6;
	cursor: not-allowed;
}


.section_title
{
	color: var(--primary-orange);
	font-size: 1.8rem;
	margin: 0 0 30px 0;
	font-weight: 600;
}

.work_preview_grid
{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-top: 15px;
}

.work_preview_item
{
	position: relative;
	border-radius: var(--std-border-radius);
	overflow: hidden;
	border: 2px solid var(--primary-orange);
	background: var(--element-bg-primary);
	aspect-ratio: 16/9;
}

.work_preview_img,
.work_preview_video
{
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.work_preview_video
{
	min-height: 150px;
}

.work_preview_overlay
{
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	padding: 8px;
}

.work_preview_type
{
	color: white;
	font-size: 0.8rem;
	font-weight: 600;
}

.loading_text
{
	color: var(--text-secondary);
	text-align: center;
	padding: 20px;
}

/* Admin Settings */
.admin_settings_section
{
	margin-top: 30px;
	padding-top: 30px;
	border-top: 2px solid rgba(255, 102, 0, 0.3);
}

.theme_selector,
.premium_tag_selector
{
	margin-bottom: 20px;
}

.theme_select
{
	padding: 10px 15px;
	background: rgba(40, 40, 40, 0.9);
	border: var(--element-border-primary);
	border-radius: var(--std-border-radius);
	color: var(--primary-orange);
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	font-size: 1rem;
	cursor: pointer;
	width: 200px;
}

.theme_select option
{
	background: rgba(40, 40, 40, 0.9);
	color: var(--primary-orange);
	font-family: "Roboto", sans-serif;
	font-weight: 300;
}

.theme_message
{
	margin-top: 10px;
	padding: 10px;
	border-radius: var(--std-border-radius);
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	font-size: 0.9rem;
}

.theme_message.success
{
	color: #51cf66;
	background: rgba(81, 207, 102, 0.1);
	border-left: 3px solid #51cf66;
}

.theme_message.error
{
	color: #ff6b6b;
	background: rgba(255, 107, 107, 0.1);
	border-left: 3px solid #ff6b6b;
}

/* Work Upload Section - styled like drop_zone but smaller */
.work_upload_section
{
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

.work_upload_item
{
	border: 2px dashed var(--primary-orange);
	background: var(--element-bg-primary);
}

.work_upload_label
{
	cursor: pointer;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.work_upload_button
{
	width: 100%;
	aspect-ratio: 16/9;
	border: 2px dashed var(--primary-orange);
	border-radius: var(--std-border-radius);
	background: var(--element-bg-primary);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	position: relative;
	transition: all 0.6s ease;
	overflow: hidden;
	letter-spacing: 1px;
	color: #bbb;
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: 0.75rem;
	text-align: center;
	gap: 5px;
	padding: 0;
	box-sizing: border-box;
}

.work_upload_button:hover
{
	color: white;
	border-color: var(--primary-orange);
	background: var(--secondary-orange);
	letter-spacing: 2px;
}

.work_upload_button::before
{
	content: "⭳";
	font-size: 2rem;
	display: block;
	margin-bottom: 5px;
}

.work_upload_file_limit
{
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	font-size: 0.7rem;
	color: #888;
	margin-top: 5px;
	display: block;
}

.work_upload_button:hover .work_upload_file_limit
{
	color: darkgray;
}

.work_upload_hint
{
	color: #888;
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	font-size: 0.8rem;
	margin: 0;
	text-align: center;
}

.work_upload_limit
{
	color: #888;
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	font-size: 0.85rem;
	margin: 10px 0 0 0;
	text-align: center;
	padding: 10px;
	background: rgba(255, 107, 107, 0.1);
	border-left: 3px solid #ff6b6b;
	border-radius: var(--std-border-radius);
}

.remove_work_btn_preview
{
	position: absolute;
	top: 5px;
	right: 5px;
	width: 28px;
	height: 28px;
	background: rgba(255, 107, 107, 0.9);
	color: white;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.remove_work_btn_preview:hover
{
	background: #fa5252;
	transform: scale(1.1);
}