/*
Theme Name: Cloudsgo Portal Theme
Theme URI: https://cloudsgo.org/
Author: Startgo & DeepMind Team
Author URI: https://cloudsgo.org/
Description: Modern WHMCS-style Client Portal Theme for Cloudsgo Partner Technology Hosting.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: cloudsgo-portal
*/

:root {
	--cg-bg: #e0f7f6;
	--cg-header-bg: #ffffff;
	--cg-nav-bg: #ffffff;
	--cg-footer-bg: #334155;
	--cg-text-dark: #1e293b;
	--cg-text-muted: #64748b;
	--cg-primary: #0284c7;
	--cg-border: #cbd5e1;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background-color: var(--cg-bg);
	color: var(--cg-text-dark);
	line-height: 1.6;
}

a {
	color: var(--cg-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Container */
.cg-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header Top */
.cg-header-top {
	background: var(--cg-header-bg);
	padding: 15px 0;
	border-bottom: 1px solid #e2e8f0;
}

.cg-header-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.cg-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.cg-logo-icon {
	font-size: 28px;
}

.cg-logo-text {
	font-size: 20px;
	font-weight: 800;
	color: #0284c7;
	letter-spacing: -0.5px;
}

.cg-header-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.cg-search-box {
	position: relative;
}

.cg-search-input {
	padding: 8px 14px 8px 36px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13px;
	width: 240px;
	outline: none;
}

.cg-search-input:focus {
	border-color: #0284c7;
}

.cg-search-icon {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 14px;
}

.cg-cart-btn {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	padding: 6px 14px;
	border-radius: 6px;
	font-weight: 700;
	color: #475569;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	text-decoration: none;
}

.cg-cart-btn:hover {
	background: #e2e8f0;
	text-decoration: none;
}

.cg-cart-count {
	background: #0284c7;
	color: #ffffff;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
}

/* Navbar */
.cg-navbar {
	background: var(--cg-nav-bg);
	border-bottom: 1px solid #e2e8f0;
}

.cg-nav-list {
	display: flex;
	list-style: none;
	gap: 20px;
	align-items: center;
	overflow-x: auto;
	padding: 12px 0;
}

.cg-nav-item a {
	color: #334155;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	padding: 4px 8px;
	border-radius: 4px;
	transition: all 0.2s;
}

.cg-nav-item a:hover {
	color: #0284c7;
	background: #f0f9ff;
	text-decoration: none;
}

/* Sub-header Breadcrumb */
.cg-breadcrumb-bar {
	background: #e2e8f0;
	padding: 10px 0;
	font-size: 13px;
	color: #64748b;
}

/* Main Section Layout */
.cg-main-body {
	padding: 40px 0 60px 0;
}

.cg-section-title {
	text-align: center;
	font-size: 26px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 30px;
}

/* Products Grid */
.cg-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 25px;
	margin-bottom: 50px;
}

.cg-product-card {
	background: #ffffff;
	border-radius: 8px;
	padding: 30px 20px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.03);
	border: 1px solid #e2e8f0;
	transition: transform 0.2s, box-shadow 0.2s;
}

.cg-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.cg-product-title {
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 20px;
}

.cg-btn-outline {
	display: inline-block;
	border: 1.5px solid #0284c7;
	color: #0284c7;
	padding: 8px 30px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	transition: all 0.2s;
}

.cg-btn-outline:hover {
	background: #0284c7;
	color: #ffffff;
	text-decoration: none;
}

/* Help Grid */
.cg-help-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 15px;
	margin-bottom: 50px;
}

.cg-help-card {
	background: #ffffff;
	border-radius: 8px;
	padding: 25px 15px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.03);
	border-top: 4px solid #cbd5e1;
	transition: transform 0.2s;
	text-decoration: none !important;
	display: block;
}

.cg-help-card:hover {
	transform: translateY(-3px);
}

.cg-help-card.cyan { border-top-color: #06b6d4; }
.cg-help-card.red { border-top-color: #ef4444; }
.cg-help-card.yellow { border-top-color: #eab308; }
.cg-help-card.blue { border-top-color: #3b82f6; }
.cg-help-card.green { border-top-color: #22c55e; }

.cg-help-icon {
	font-size: 32px;
	margin-bottom: 10px;
}

.cg-help-label {
	font-size: 14px;
	font-weight: 700;
	color: #334155;
}

/* Account Grid */
.cg-account-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.cg-account-card {
	background: #ffffff;
	border-radius: 8px;
	padding: 25px 20px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.03);
	border: 1px solid #e2e8f0;
	text-decoration: none !important;
	display: block;
	transition: transform 0.2s;
}

.cg-account-card:hover {
	transform: translateY(-3px);
}

.cg-account-icon {
	font-size: 30px;
	margin-bottom: 8px;
	color: #94a3b8;
}

.cg-account-label {
	font-size: 15px;
	font-weight: 700;
	color: #334155;
}

/* Footer */
.cg-footer {
	background: var(--cg-footer-bg);
	color: #94a3b8;
	padding: 30px 0;
	font-size: 13px;
}

.cg-footer-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
}

.cg-footer-links a {
	color: #cbd5e1;
	font-weight: 600;
}

.cg-footer-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cg-fb-btn {
	background: #475569;
	color: #ffffff;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 14px;
}

.cg-lang-btn {
	background: #475569;
	color: #ffffff;
	padding: 4px 10px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 12px;
}

.cg-copyright {
	text-align: center;
	color: #64748b;
	font-size: 12px;
	border-top: 1px solid #475569;
	padding-top: 15px;
}
