.gip-portal {
	--gip-primary: #8FD299;
	--gip-primary-dark: #4f9a5f;
	--gip-dark: #14261a;
	--gip-text: #1f2a24;
	--gip-muted: #6b7b72;
	--gip-border: #e2ece2;
	--gip-bg: #f7faf7;
	--gip-bg-alt: #eef6ef;
	--gip-danger: #c0392b;
	--gip-positive: #1e8a4c;

	max-width: 1080px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--gip-text);
}

.gip-card {
	background: #ffffff;
	border: 1px solid var(--gip-border);
	border-radius: 14px;
	padding: 32px;
	box-shadow: 0 10px 30px rgba(20, 38, 26, 0.06);
}

#gip-login-view.gip-card {
	max-width: 520px;
	margin: 0 auto;
}

.gip-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--gip-border);
}

.gip-tab {
	background: none;
	border: none;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--gip-muted);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}

.gip-tab:hover {
	color: var(--gip-dark);
}

.gip-tab.is-active {
	color: var(--gip-dark);
	border-bottom-color: var(--gip-primary);
}

.gip-tab-panel {
	display: none;
}

.gip-tab-panel.is-active {
	display: block;
}

.gip-portal h3 {
	margin: 0 0 4px;
	font-size: 22px;
	color: var(--gip-dark);
}

.gip-sub {
	color: var(--gip-muted);
	font-size: 14px;
	margin: 0 0 20px;
}

.gip-login-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--gip-dark);
	margin-bottom: 14px;
}

.gip-login-form input {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 11px 14px;
	border: 1px solid var(--gip-border);
	border-radius: 8px;
	font-size: 15px;
	box-sizing: border-box;
	background: var(--gip-bg);
}

.gip-login-form input:focus {
	outline: none;
	border-color: var(--gip-primary-dark);
	background: #fff;
}

.gip-btn {
	background: var(--gip-primary);
	color: var(--gip-dark);
	border: none;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: background .15s ease, transform .05s ease;
}

.gip-btn:hover {
	background: var(--gip-primary-dark);
	color: #fff;
}

.gip-btn:active {
	transform: translateY(1px);
}

.gip-btn-link {
	display: inline-block;
	text-decoration: none;
	text-align: center;
}

.gip-btn-outline {
	background: #fff;
	border: 1px solid var(--gip-border);
	color: var(--gip-dark);
	padding: 9px 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.gip-btn-outline:hover {
	border-color: var(--gip-primary-dark);
	background: var(--gip-bg);
}

.gip-error {
	color: var(--gip-danger);
	font-size: 13px;
	min-height: 18px;
	margin-bottom: 10px;
}

/* ---------------------------------------------
   Dashboard — light, minimal, easy to read
--------------------------------------------- */
.gip-dash-card {
	padding: 36px 40px 40px;
}

.gip-dash-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--gip-border);
}

.gip-dash-identity {
	display: flex;
	align-items: center;
	gap: 14px;
}

.gip-dash-emblem {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 50%;
	font-size: 18px;
	font-weight: 700;
	color: var(--gip-dark);
	background: var(--gip-primary);
}

.gip-dash-header h3 {
	font-size: 22px;
	margin: 0 0 2px;
}

.gip-dash-header .gip-sub {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
}

.gip-dash-actions {
	display: flex;
	gap: 10px;
}

.gip-notice {
	background: #fff7e6;
	border: 1px solid #f1d9a0;
	color: #8a6100;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 18px;
}

.gip-summary-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.gip-summary-box {
	background: var(--gip-bg);
	border: 1px solid var(--gip-border);
	border-radius: 10px;
	padding: 18px 22px;
	flex: 1;
	min-width: 200px;
}

.gip-summary-box .gip-summary-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--gip-muted);
	font-weight: 600;
}

.gip-summary-box .gip-summary-value {
	font-size: 26px;
	font-weight: 700;
	color: var(--gip-dark);
	margin-top: 6px;
}

.gip-summary-box .gip-summary-value.gip-positive {
	color: var(--gip-positive);
}

.gip-summary-box .gip-summary-value.gip-negative {
	color: var(--gip-danger);
}

.gip-table-wrap {
	overflow-x: auto;
	margin-bottom: 16px;
	border: 1px solid var(--gip-border);
	border-radius: 10px;
}

.gip-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.gip-table th {
	text-align: left;
	background: var(--gip-bg);
	color: var(--gip-dark);
	font-weight: 700;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 14px 18px;
	border-bottom: 1px solid var(--gip-border);
	white-space: nowrap;
}

.gip-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--gip-border);
	white-space: nowrap;
}

.gip-table tbody tr:hover {
	background: var(--gip-bg-alt);
}

.gip-table tr:last-child td {
	border-bottom: none;
}

.gip-positive {
	color: var(--gip-positive);
	font-weight: 700;
}

.gip-negative {
	color: var(--gip-danger);
	font-weight: 700;
}

.gip-investor-block {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px dashed var(--gip-border);
}

.gip-investor-block:last-child {
	border-bottom: none;
}

.gip-investor-block h4 {
	margin: 0 0 2px;
	color: var(--gip-dark);
	font-size: 17px;
}

.gip-loading {
	color: var(--gip-muted);
	font-size: 14px;
	padding: 20px 0;
}

/* ---------------------------------------------
   Contact Intermediary / Contact AMC
--------------------------------------------- */
.gip-contact-section {
	margin-top: 4px;
}

.gip-contact-heading {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 700;
	color: var(--gip-muted);
	margin-bottom: 12px;
}

.gip-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
}

.gip-contact-card {
	border: 1px solid var(--gip-border);
	border-radius: 10px;
	background: var(--gip-bg);
	overflow: hidden;
}

.gip-contact-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	background: none;
	border: none;
	color: var(--gip-dark);
	padding: 15px 18px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
}

.gip-contact-icon {
	font-size: 17px;
}

.gip-contact-label {
	flex: 1;
}

.gip-contact-chevron {
	color: var(--gip-primary-dark);
	transition: transform .15s ease;
	font-size: 12px;
}

.gip-contact-toggle.is-open .gip-contact-chevron {
	transform: rotate(180deg);
}

.gip-contact-toggle:hover {
	background: var(--gip-bg-alt);
}

.gip-contact-details {
	padding: 2px 18px 16px;
	border-top: 1px solid var(--gip-border);
	background: #fff;
}

.gip-contact-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	font-size: 14px;
	border-bottom: 1px dashed var(--gip-border);
}

.gip-contact-row:last-child {
	border-bottom: none;
}

.gip-contact-key {
	color: var(--gip-muted);
	font-weight: 600;
}

.gip-contact-val,
.gip-contact-val a {
	color: var(--gip-dark);
	font-weight: 600;
	text-decoration: none;
}

.gip-contact-val a:hover {
	color: var(--gip-primary-dark);
	text-decoration: underline;
}

@media (max-width: 900px) {
	.gip-dash-card {
		padding: 26px 22px 30px;
	}
}

@media (max-width: 600px) {
	.gip-card {
		padding: 22px;
	}
	.gip-tabs {
		flex-wrap: wrap;
	}
	.gip-dash-header {
		align-items: flex-start;
	}
	.gip-summary-box {
		min-width: 100%;
	}
}
