/* =====================================================================
   HostSpace.cloud  -  custom styles for VPS prototype
   Builds on top of main_styles.css (brand accent: #1befc5, dark #200e35)
   ===================================================================== */

/* --- Inner pages (checkout, login, register, dashboard) --- */
.header_solid { background: #200e35; }
body.inner_page { background: #f4f6fb; }
.inner_section { padding: 150px 0 90px; }
.page_heading { color: #200e35; font-size: 34px; font-weight: 700; margin-bottom: 8px; }
.page_sub { color: #6b6f82; font-size: 16px; margin-bottom: 34px; }

/* --- Billing term switcher on the pricing section --- */
.billing_switch {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 auto 20px;
}
.billing_switch button {
	border: 2px solid #e3e6f0;
	background: #fff;
	color: #4a4f63;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 30px;
	cursor: pointer;
	transition: all .2s ease;
}
.billing_switch button:hover { border-color: #1befc5; }
.billing_switch button.active {
	background: #1befc5;
	border-color: #1befc5;
	color: #072c26;
}
.billing_note {
	text-align: center;
	color: #8a8fa3;
	font-size: 14px;
	margin-bottom: 40px;
}
.billing_note strong { color: #16b89b; }

/* --- Pricing card tweaks --- */
.pricing_item { position: relative; }
.pricing_badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: #ff5c7a;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	padding: 5px 16px;
	border-radius: 20px;
	text-transform: uppercase;
}
.pricing_item.featured { box-shadow: 0 20px 50px rgba(27,239,197,.25); }
.package_price .per { font-size: 15px; color: #9aa0b4; }
.price_total {
	font-size: 14px;
	color: #8a8fa3;
	margin-top: 6px;
}
.price_total b { color: #200e35; }
.price_save {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #16b89b;
	background: #e5fbf5;
	padding: 3px 12px;
	border-radius: 14px;
}
.pricing_specs { list-style: none; padding: 0; margin: 10px 0 0; }

/* --- Generic card used on checkout / auth / dashboard --- */
.hs_card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(32,14,53,.08);
	padding: 32px;
}
.hs_card h3 { color: #200e35; font-size: 20px; font-weight: 700; margin-bottom: 20px; }

/* --- Forms --- */
.hs_field { margin-bottom: 18px; }
.hs_field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #4a4f63;
	margin-bottom: 7px;
}
.hs_field input,
.hs_field select {
	width: 100%;
	height: 48px;
	border: 1px solid #dfe3ee;
	border-radius: 8px;
	padding: 0 14px;
	font-size: 15px;
	color: #200e35;
	outline: none;
	transition: border-color .2s;
	background: #fff;
}
.hs_field input:focus,
.hs_field select:focus { border-color: #1befc5; }

.hs_btn {
	display: inline-block;
	width: 100%;
	border: none;
	cursor: pointer;
	background: #1befc5;
	color: #072c26;
	font-size: 16px;
	font-weight: 700;
	height: 50px;
	border-radius: 8px;
	transition: background .2s, transform .1s;
	text-align: center;
	line-height: 50px;
	text-decoration: none;
}
.hs_btn:hover { background: #15d9b2; color: #072c26; }
.hs_btn:active { transform: translateY(1px); }
.hs_btn_outline {
	background: transparent;
	border: 2px solid #1befc5;
	color: #16b89b;
	line-height: 46px;
}
.hs_btn_outline:hover { background: #e5fbf5; color: #16b89b; }

.hs_alert {
	padding: 13px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 20px;
}
.hs_alert_error  { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }
.hs_alert_ok     { background: #e5fbf5; color: #16876f; border: 1px solid #b9f0e2; }
.hs_alert_info   { background: #eef3ff; color: #2c4a8a; border: 1px solid #cfddff; }

.auth_wrap { max-width: 460px; margin: 0 auto; }
.auth_switch { text-align: center; margin-top: 18px; color: #6b6f82; font-size: 14px; }
.auth_switch a { color: #16b89b; font-weight: 600; }

/* --- Checkout --- */
.summary_row {
	display: flex;
	justify-content: space-between;
	padding: 11px 0;
	border-bottom: 1px solid #eef0f6;
	font-size: 15px;
	color: #4a4f63;
}
.summary_row:last-child { border-bottom: none; }
.summary_row.total {
	font-size: 20px;
	font-weight: 700;
	color: #200e35;
	border-top: 2px solid #200e35;
	margin-top: 8px;
	padding-top: 16px;
}
.summary_row .save_tag { color: #16b89b; font-weight: 600; }
.term_grid { display: flex; flex-wrap: wrap; gap: 10px; }
.term_grid label {
	flex: 1 1 30%;
	border: 2px solid #e3e6f0;
	border-radius: 8px;
	padding: 12px;
	text-align: center;
	cursor: pointer;
	font-weight: 600;
	color: #4a4f63;
	transition: all .15s;
	margin: 0;
}
.term_grid label small { display: block; font-weight: 500; color: #9aa0b4; font-size: 12px; }
.term_grid input { display: none; }
.term_grid input:checked + span { color: #072c26; }
.term_grid label.sel { border-color: #1befc5; background: #e9fdf8; }

/* --- Dashboard --- */
.dash_stat {
	background: #fff;
	border-radius: 12px;
	padding: 22px;
	box-shadow: 0 10px 40px rgba(32,14,53,.07);
}
.dash_stat .num { font-size: 30px; font-weight: 700; color: #200e35; }
.dash_stat .lbl { color: #8a8fa3; font-size: 14px; }
.svc_table { width: 100%; background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: 0 10px 40px rgba(32,14,53,.07); border-collapse: collapse; }
.svc_table th {
	background: #200e35; color: #fff; text-align: left; padding: 14px 16px; font-size: 13px;
	text-transform: uppercase; letter-spacing: .4px;
}
.svc_table td { padding: 14px 16px; border-bottom: 1px solid #f0f1f7; font-size: 14px; color: #4a4f63; }
.svc_table tr:last-child td { border-bottom: none; }
.status_pill { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: capitalize; }
.status_active { background: #e5fbf5; color: #16876f; }
.status_provisioning { background: #fff4e0; color: #b7791f; }
.status_pending { background: #eef3ff; color: #2c4a8a; }
.status_suspended, .status_terminated, .status_cancelled { background: #fdecec; color: #c0392b; }
.empty_state { text-align: center; padding: 50px 20px; color: #8a8fa3; }

/* --- Checkout stepper --- */
.steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0 auto 36px;
	flex-wrap: wrap;
}
.steps .step {
	display: flex;
	align-items: center;
	color: #9aa0b4;
	font-weight: 600;
	font-size: 14px;
}
.steps .step .dot {
	width: 30px; height: 30px;
	border-radius: 50%;
	background: #e3e6f0;
	color: #6b6f82;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	margin-right: 8px;
}
.steps .step.active { color: #200e35; }
.steps .step.active .dot { background: #1befc5; color: #072c26; }
.steps .step.done .dot { background: #16b89b; color: #fff; }
.steps .bar { width: 42px; height: 2px; background: #e3e6f0; margin: 0 12px; }
.steps .bar.done { background: #16b89b; }

/* --- Credit card form --- */
.card_box {
	border: 1px solid #e3e6f0;
	border-radius: 12px;
	padding: 22px;
	background: linear-gradient(135deg,#200e35,#3a1d63);
	color: #fff;
	margin-bottom: 22px;
}
.card_box .card_brands { display:flex; gap:10px; align-items:center; margin-bottom:14px; }
.card_box .brand_chip {
	font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
	background: rgba(255,255,255,.12); color: #cdd3e6; letter-spacing:.5px;
}
.card_box .brand_chip.on { background:#1befc5; color:#072c26; }
.card_num_display { font-size: 20px; letter-spacing: 3px; margin: 10px 0 4px; font-family: monospace; }
.card_meta { display:flex; justify-content:space-between; font-size:12px; color:#b9bfd6; }

/* --- Payment processing overlay --- */
.pay_overlay {
	position: fixed; inset: 0; background: rgba(20,10,35,.75);
	display: none; align-items: center; justify-content: center; z-index: 2000;
}
.pay_overlay.show { display: flex; }
.pay_modal {
	background: #fff; border-radius: 14px; padding: 40px; text-align: center;
	max-width: 360px; width: 90%; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.spinner {
	width: 54px; height: 54px; border-radius: 50%;
	border: 5px solid #e3e6f0; border-top-color: #1befc5;
	margin: 0 auto 20px; animation: hs_spin .9s linear infinite;
}
@keyframes hs_spin { to { transform: rotate(360deg); } }
.pay_modal h3 { color:#200e35; margin-bottom:8px; }
.pay_modal p { color:#6b6f82; font-size:14px; margin:0; }
.pay_tick {
	width: 54px; height: 54px; border-radius: 50%; background:#16b89b; color:#fff;
	display:none; align-items:center; justify-content:center; font-size:28px; margin:0 auto 20px;
}

/* =====================================================================
   Cloud Panel
   ===================================================================== */
.panel_top { margin-bottom: 24px; }
.panel_back {
	display: inline-block; color: #16b89b; font-weight: 600; font-size: 14px;
	margin-bottom: 14px; text-decoration: none;
}
.panel_back:hover { color: #119c84; }
.panel_head {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 16px;
}

.panel_section_title {
	display: flex; align-items: baseline; justify-content: space-between;
	margin: 10px 0 16px;
}
.panel_section_title h3 { color: #200e35; font-size: 20px; font-weight: 700; margin: 0; }
.panel_section_title span { color: #9aa0b4; font-size: 14px; }

/* --- Resource gauges --- */
.gauge_card {
	background: #fff; border-radius: 12px; padding: 20px; text-align: center;
	box-shadow: 0 10px 40px rgba(32,14,53,.07);
}
.gauge {
	width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px;
	background: conic-gradient(var(--c) calc(var(--pct) * 1%), #eef0f6 0);
	display: flex; align-items: center; justify-content: center; position: relative;
}
.gauge::before {
	content: ''; position: absolute; inset: 9px; background: #fff; border-radius: 50%;
}
.gauge span { position: relative; font-weight: 700; color: #200e35; font-size: 18px; }
.gauge_big {
	width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px;
	background: #eef9ff; color: #200e35; font-size: 34px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.gauge_lbl { font-weight: 600; color: #200e35; font-size: 15px; }
.gauge_sub { color: #9aa0b4; font-size: 13px; margin-top: 2px; }

/* --- Application cards --- */
.app_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.app_card {
	background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(32,14,53,.07);
	overflow: hidden; display: flex; flex-direction: column;
}
.app_card_head {
	display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px;
	border-bottom: 1px solid #f0f1f7;
}
.app_icon {
	width: 44px; height: 44px; border-radius: 10px; flex: 0 0 44px;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 16px;
}
.app_card_meta { flex: 1 1 auto; min-width: 0; }
.app_name { font-weight: 700; color: #200e35; font-size: 16px; }
.app_type { color: #9aa0b4; font-size: 13px; }
.app_card_body { padding: 14px 18px; flex: 1 1 auto; }
.app_row {
	display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
	font-size: 13px; color: #4a4f63; padding: 5px 0;
}
.app_row span { color: #9aa0b4; flex: 0 0 auto; }
.app_row a { color: #16b89b; font-weight: 600; word-break: break-all; text-align: right; }
.app_row code { color: #4a4f63; font-size: 12px; word-break: break-all; text-align: right; }
.app_card_actions {
	display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 1px solid #f0f1f7;
	background: #fbfbfe;
}
.app_card_actions .act { margin: 0; }
.app_btn {
	border: 1px solid #dfe3ee; background: #fff; color: #4a4f63;
	font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 7px; cursor: pointer;
	transition: all .15s;
}
.app_btn:hover { border-color: #1befc5; color: #16b89b; }
.app_btn_go { border-color: #1befc5; color: #16b89b; }
.app_btn_danger { }
.app_btn_danger:hover { border-color: #e74c3c; color: #e74c3c; }

/* extra status pills */
.status_running { background: #e5fbf5; color: #16876f; }
.status_stopped { background: #f0f1f7; color: #6b6f82; }
.status_deploying { background: #fff4e0; color: #b7791f; }
.status_failed { background: #fdecec; color: #c0392b; }

/* --- Deploy modal --- */
.deploy_overlay {
	position: fixed; inset: 0; background: rgba(20,10,35,.72); z-index: 2000;
	display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.deploy_overlay.show { display: flex; }
.deploy_modal {
	background: #fff; border-radius: 14px; width: 100%; max-width: 620px;
	box-shadow: 0 30px 80px rgba(0,0,0,.4); padding: 26px;
}
.deploy_modal_head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.deploy_modal_head h3 { color: #200e35; font-size: 20px; font-weight: 700; margin: 0; }
.deploy_close { background: none; border: none; font-size: 28px; line-height: 1; color: #9aa0b4; cursor: pointer; }
.deploy_hint { color: #6b6f82; font-size: 14px; margin-bottom: 16px; }

.type_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type_card {
	border: 2px solid #e3e6f0; border-radius: 10px; background: #fff; cursor: pointer;
	padding: 16px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
	transition: all .15s;
}
.type_card:hover { border-color: #1befc5; transform: translateY(-2px); }
.type_card.sel { border-color: #1befc5; background: #e9fdf8; }
.type_badge {
	width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 15px;
}
.type_name { font-weight: 700; color: #200e35; font-size: 14px; }
.type_tag { color: #9aa0b4; font-size: 11px; }

.chosen_type {
	display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 18px;
	background: #f6f8fd; border-radius: 10px;
}
.deploy_actions { display: flex; gap: 10px; margin-top: 6px; }
.deploy_actions .hs_btn { width: auto; flex: 1; }

.deploy_progress { padding: 10px 0; }
.deploy_log { list-style: none; padding: 0; margin: 16px 0 0; }
.deploy_log li {
	position: relative; padding: 8px 8px 8px 30px; color: #9aa0b4; font-size: 14px;
	border-left: 2px solid #eef0f6; margin-left: 10px;
}
.deploy_log li::before {
	content: '○'; position: absolute; left: -9px; top: 7px; color: #c7cada; background: #fff; font-size: 14px;
}
.deploy_log li.done { color: #4a4f63; }
.deploy_log li.done::before { content: '●'; color: #16b89b; }

@media (max-width: 575px){
	.type_grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   Per-application panel (app.php)
   ===================================================================== */
.app_topbar {
	display: flex; flex-wrap: wrap; gap: 36px;
	background: #fff; border-radius: 12px; padding: 20px 26px; margin: 14px 0 20px;
	box-shadow: 0 10px 40px rgba(32,14,53,.07);
}
.app_topbar_item .k { color: #9aa0b4; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.app_topbar_item .v { color: #200e35; font-weight: 700; font-size: 16px; }
.app_topbar_item .v a { color: #16b89b; }

/* Tab bar */
.app_tabs {
	display: flex; flex-wrap: wrap; gap: 4px;
	background: #fff; border-radius: 10px; padding: 6px; margin-bottom: 20px;
	box-shadow: 0 10px 40px rgba(32,14,53,.07);
}
.app_tab {
	padding: 10px 18px; border-radius: 7px; color: #6b6f82; font-weight: 600; font-size: 14px;
	text-decoration: none; transition: all .15s; border-bottom: 2px solid transparent;
}
.app_tab:hover { color: #16b89b; }
.app_tab.active { background: #e9fdf8; color: #16876f; }

/* Panel boxes */
.panel_box { background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(32,14,53,.07); overflow: hidden; }
.panel_box_head {
	padding: 16px 22px; border-bottom: 1px solid #f0f1f7; font-weight: 700; color: #200e35; font-size: 16px;
}
.panel_box_body { padding: 22px; }

/* Toggle pill */
.toggle_pill {
	border: none; cursor: pointer; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px;
	background: #f0f1f7; color: #6b6f82;
}
.toggle_pill.on { background: #e5fbf5; color: #16876f; }

/* SSH / FTP credentials */
.cred_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cred .k { color: #9aa0b4; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.cred .v { color: #200e35; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cred .v code { background: #f4f6fb; padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.ssh_cmd {
	margin-top: 20px; background: #1a1030; color: #cdd3e6; padding: 14px 16px; border-radius: 8px;
	font-family: monospace; font-size: 13px; overflow-x: auto;
}

/* Log viewer */
.log_viewer {
	background: #140a23; color: #d7dbe8; padding: 18px 20px; font-family: monospace; font-size: 12.5px;
	line-height: 1.9; max-height: 420px; overflow-y: auto;
}
.log_line { white-space: nowrap; }

@media (max-width: 575px){
	.cred_grid { grid-template-columns: 1fr; }
	.app_topbar { gap: 20px; }
}

/* =====================================================================
   Legal pages (terms.php, privacy.php)
   ===================================================================== */
.legal_meta { color: #9aa0b4; font-size: 14px; margin-bottom: 28px; }
.legal_doc { max-width: 860px; }
.legal_doc h2 {
	color: #200e35; font-size: 20px; font-weight: 700;
	margin: 30px 0 10px; padding-top: 6px;
}
.legal_doc h2:first-child { margin-top: 0; }
.legal_doc h3 { color: #2b2340; font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.legal_doc p { color: #4a4f63; font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.legal_doc ul { margin: 0 0 16px; padding-left: 22px; }
.legal_doc li { color: #4a4f63; font-size: 15px; line-height: 1.7; margin-bottom: 7px; }
.legal_doc a { color: #16b89b; font-weight: 600; }
.legal_doc strong { color: #200e35; }
.legal_toc {
	background: #fff; border-radius: 12px; padding: 22px 26px; margin-bottom: 30px;
	box-shadow: 0 10px 40px rgba(32,14,53,.07);
}
.legal_toc .legal_toc_title { font-weight: 700; color: #200e35; margin-bottom: 12px; }
.legal_toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal_toc li { margin-bottom: 6px; }
.legal_toc a { color: #4a4f63; font-weight: 500; font-size: 14px; text-decoration: none; }
.legal_toc a:hover { color: #16b89b; }
@media (max-width: 575px){ .legal_toc ol { columns: 1; } }
