/*
Theme Name:   The Campus Press
Theme URI:    https://www.instagram.com/campus.press/
Author:       The Campus Press
Description:  Instagram-inspired, zero-third-party-API editorial WordPress theme for The Campus Press — featuring IG-style profile header, Story Highlights beats, 4:5 portrait post grid + scrollable Feed view, Hostel Directory, and privacy-first reporting.
Version:      1.5.0
Requires at least: 6.2
Requires PHP: 8.0
License:      GPL-2.0-or-later
Text Domain:  campus-press
*/

:root {
	--cp-navy: #09102b;
	--cp-navy-soft: #121c47;
	--cp-blue: #1733e6;
	--cp-blue-bright: #2447ff;
	--cp-blue-deep: #0e1d7a;
	--cp-ig-blue: #0095f6;
	--cp-ig-blue-hover: #1877f2;
	--cp-ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	--cp-bg: #fafafa;
	--cp-surface: #ffffff;
	--cp-pill-bg: #efefef;
	--cp-text: #0f1419;
	--cp-muted: #737373;
	--cp-border: #dbdbdb;
	--cp-border-soft: #efefef;
	--cp-red: #ff3040;
	--cp-success-bg: #ecfdf5;
	--cp-success-text: #065f46;
	--cp-error-bg: #fef2f2;
	--cp-error-text: #991b1b;
	--cp-radius: 12px;
	--cp-container: 1020px;
	--cp-ig-container: 980px;
	--cp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--cp-font);
	background: var(--cp-bg);
	color: var(--cp-text);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--cp-blue);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

[hidden],
.cp-form[hidden],
.cp-auth-panel[hidden] {
	display: none !important;
}

.cp-container {
	width: 100%;
	max-width: var(--cp-container);
	margin: 0 auto;
	padding: 0 20px;
}

.cp-ig-container {
	max-width: var(--cp-ig-container);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Breaking Banner */
.cp-breaking-bar {
	background: var(--cp-blue);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 20px;
	text-align: center;
}

.cp-breaking-bar a {
	color: #ffffff;
	text-decoration: underline;
}

/* Instagram-Inspired Sticky Top Bar */
.cp-header {
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: var(--cp-text);
	border-bottom: 1px solid var(--cp-border);
	position: sticky;
	top: 0;
	z-index: 50;
}

.cp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
}

.cp-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--cp-text);
	font-weight: 800;
	letter-spacing: -0.01em;
	font-size: 17px;
	white-space: nowrap;
}

.cp-brand:hover {
	text-decoration: none;
	opacity: 0.85;
}

.cp-brand-ring {
	width: 34px;
	height: 34px;
	padding: 2px;
	border-radius: 50%;
	background: var(--cp-ig-gradient);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cp-brand-mark {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--cp-navy);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #ffffff;
}

.cp-brand-text {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.cp-verified-icon {
	flex-shrink: 0;
	vertical-align: middle;
}

/* Top Search Bar (Instagram Pill Style) */
.cp-header-search {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--cp-pill-bg);
	border-radius: 10px;
	padding: 6px 12px;
	width: 215px;
	max-width: 100%;
	color: var(--cp-muted);
	border: 1px solid transparent;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.cp-header-search:focus-within {
	background: #ffffff;
	border-color: var(--cp-border);
	color: var(--cp-text);
}

.cp-header-search input[type="search"] {
	border: 0;
	background: transparent;
	width: 100%;
	font-size: 13.5px;
	color: var(--cp-text);
	font-family: inherit;
	outline: none;
}

.cp-header-search input[type="search"]::placeholder {
	color: var(--cp-muted);
}

.cp-nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cp-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
}

.cp-nav a {
	color: var(--cp-text);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.cp-nav a:hover {
	color: var(--cp-ig-blue);
	text-decoration: none;
}

.cp-nav-cta,
.cp-nav li.cp-nav-cta > a {
	background: var(--cp-ig-blue);
	color: #ffffff !important;
	padding: 7px 14px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 13px;
	white-space: nowrap;
	display: inline-block;
	transition: background 0.15s ease;
}

.cp-nav-cta:hover,
.cp-nav li.cp-nav-cta > a:hover {
	background: var(--cp-ig-blue-hover);
	text-decoration: none;
}

.cp-header-account {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--cp-pill-bg);
	color: var(--cp-text) !important;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.cp-header-account:hover {
	background: #e2e2e2;
	text-decoration: none;
}

.cp-header-account.is-logged-in {
	border: 1px solid var(--cp-border);
	background: #ffffff;
}

.cp-header-controls {
	display: none;
	align-items: center;
	gap: 8px;
}

.cp-search-toggle,
.cp-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--cp-pill-bg);
	border: 1px solid var(--cp-border);
	color: var(--cp-text);
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
}

.cp-search-toggle {
	padding: 6px 8px;
}

.cp-mobile-search {
	padding: 8px 14px 12px;
	border-top: 1px solid var(--cp-border-soft);
	background: #ffffff;
}

.cp-header-search-mobile {
	width: 100%;
}

/* Instagram Profile & Topic Headers */
.cp-ig-profile-wrap {
	background: var(--cp-surface);
	border-bottom: 1px solid var(--cp-border);
	padding: 28px 0 18px;
}

.cp-ig-profile,
.cp-topic-header {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 36px;
	align-items: center;
	margin-bottom: 22px;
}

.cp-topic-header {
	gap: 24px;
	margin-bottom: 18px;
}

.cp-profile-avatar-col,
.cp-topic-avatar-wrap {
	display: flex;
	justify-content: center;
}

.cp-profile-avatar-ring {
	width: 112px;
	height: 112px;
	padding: 3.5px;
	border-radius: 50%;
	background: var(--cp-ig-gradient);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}

.cp-profile-avatar-ring:hover {
	transform: scale(1.02);
	text-decoration: none;
}

.cp-topic-ring {
	width: 78px;
	height: 78px;
	padding: 3px;
}

.cp-profile-avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--cp-navy) 0%, var(--cp-blue) 100%);
	color: #ffffff;
	border: 3px solid #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cp-topic-avatar {
	border-width: 2.5px;
}

.cp-profile-info,
.cp-topic-meta {
	min-width: 0;
}

.cp-profile-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.cp-profile-handle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 21px;
	font-weight: 700;
	color: var(--cp-text);
}

.cp-profile-handle h1 {
	margin: 0;
	font-size: clamp(20px, 2.5vw, 24px);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.cp-profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cp-ig-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 15px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	border: 0;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.12s ease;
}

.cp-ig-btn:hover {
	text-decoration: none;
}

.cp-ig-btn-primary {
	background: var(--cp-ig-blue);
	color: #ffffff;
}

.cp-ig-btn-primary:hover {
	background: var(--cp-ig-blue-hover);
	color: #ffffff;
}

.cp-ig-btn-secondary {
	background: var(--cp-pill-bg);
	color: var(--cp-text);
}

.cp-ig-btn-secondary:hover {
	background: #e2e2e2;
	color: var(--cp-text);
}

.cp-profile-stats {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 14.5px;
	color: var(--cp-text);
}

.cp-profile-stats strong {
	font-weight: 800;
}

.cp-profile-stats span {
	color: var(--cp-muted);
	font-weight: 600;
}

.cp-profile-bio {
	font-size: 14px;
	color: var(--cp-text);
}

.cp-profile-name {
	margin: 0 0 3px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
}

.cp-profile-bio p {
	margin: 0;
	color: #262626;
	max-width: 600px;
}

.cp-profile-trust {
	margin-top: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--cp-muted);
}

/* Instagram Story Highlights Tray */
.cp-stories-tray {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	overflow-x: auto;
	padding: 6px 2px 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.cp-stories-tray::-webkit-scrollbar {
	display: none;
}

.cp-story-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	width: 74px;
	flex: 0 0 auto;
	color: var(--cp-text);
	text-align: center;
}

.cp-story-item:hover {
	text-decoration: none;
	color: var(--cp-text);
}

.cp-story-ring {
	width: 64px;
	height: 64px;
	padding: 2.5px;
	border-radius: 50%;
	background: var(--cp-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}

.cp-story-item:hover .cp-story-ring {
	transform: scale(1.04);
}

.cp-story-item.is-active .cp-story-ring,
.cp-story-item:not(.cp-story-tip) .cp-story-ring {
	background: var(--cp-ig-gradient);
}

.cp-story-item.cp-story-tip .cp-story-ring-subtle {
	background: #d4d4d8;
}

.cp-story-avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #ffffff;
	color: var(--cp-navy);
	border: 2.5px solid #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cp-story-avatar-brand {
	background: linear-gradient(145deg, var(--cp-navy), var(--cp-blue));
	color: #ffffff;
}

.cp-story-avatar-light {
	background: var(--cp-pill-bg);
	color: var(--cp-text);
}

.cp-story-item.is-active .cp-story-avatar {
	background: var(--cp-navy);
	color: #ffffff;
}

.cp-story-label {
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.2;
	max-width: 74px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cp-story-item.is-active .cp-story-label {
	font-weight: 800;
	color: var(--cp-blue);
}

/* Instagram Profile Tabs Bar */
.cp-ig-tabs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	border-top: 1px solid var(--cp-border);
	margin-bottom: 18px;
}

.cp-ig-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 13px 4px;
	margin-top: -1px;
	background: transparent;
	border: 0;
	border-top: 2px solid transparent;
	color: var(--cp-muted);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.cp-ig-tab:hover {
	color: var(--cp-text);
	text-decoration: none;
}

.cp-ig-tab.is-active {
	color: var(--cp-text);
	border-top-color: var(--cp-text);
}

.cp-saved-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--cp-ig-blue);
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0;
}

.cp-feed-subhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.cp-feed-subhead h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: var(--cp-text);
}

.cp-feed-counter {
	font-size: 13px;
	font-weight: 700;
	color: var(--cp-muted);
}

.cp-scroll-sentinel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 44px;
	padding: 24px 0 12px;
}

.cp-scroll-loading {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--cp-muted);
}

.cp-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2.5px solid var(--cp-border);
	border-top-color: var(--cp-ig-blue);
	animation: cp-spin 0.7s linear infinite;
}

@keyframes cp-spin {
	to {
		transform: rotate(360deg);
	}
}

.cp-scroll-done {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cp-muted);
}

.cp-saved-empty,
.cp-empty-card {
	background: var(--cp-surface);
	border: 1px solid var(--cp-border);
	border-radius: 12px;
	padding: 28px 20px;
	text-align: center;
	color: var(--cp-muted);
	font-size: 14px;
}

/* Sections & Buttons */
.cp-section {
	padding: 36px 0;
}

.cp-section-feed {
	padding-top: 12px;
	padding-bottom: 42px;
}

.cp-section-alt {
	background: var(--cp-surface);
	border-top: 1px solid var(--cp-border);
	border-bottom: 1px solid var(--cp-border);
}

.cp-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.cp-section-head h1,
.cp-section-head h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.cp-section-head p {
	margin: 4px 0 0;
	color: var(--cp-muted);
	font-size: 14px;
}

.cp-view-all {
	font-weight: 700;
	font-size: 13.5px;
	color: var(--cp-ig-blue);
}

.cp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.12s ease, background 0.15s ease;
}

.cp-btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.cp-btn-primary {
	background: var(--cp-ig-blue);
	color: #ffffff;
}

.cp-btn-primary:hover {
	background: var(--cp-ig-blue-hover);
	color: #ffffff;
}

.cp-btn-white {
	background: #ffffff;
	color: var(--cp-navy);
}

.cp-btn-outline-light {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.35);
}

.cp-section-cta {
	margin-top: 26px;
	text-align: center;
}

/* Signature @campus.press Royal-Blue 4:5 Instagram Cards + Grid/Feed Dual Layout */
.cp-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.cp-ig-post {
	min-width: 0;
	scroll-margin-top: 74px;
}

.cp-news-grid:not(.is-feed) .cp-ig-post-head,
.cp-news-grid:not(.is-feed) .cp-ig-post-actions,
.cp-news-grid:not(.is-feed) .cp-ig-post-caption {
	display: none;
}

.cp-news-grid.is-saved-filter .cp-ig-post:not(.is-bookmarked) {
	display: none;
}

.cp-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: 4 / 5;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	overflow: hidden;
	background: linear-gradient(180deg, #121c47 0%, var(--cp-blue-deep) 52%, var(--cp-blue-bright) 100%);
	color: #ffffff;
	box-shadow: 0 8px 20px rgba(14, 29, 122, 0.14);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cp-news-grid:not(.is-feed) .cp-news-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(14, 29, 122, 0.22);
}

.cp-news-grid:not(.is-feed) .cp-news-card:active {
	transform: scale(0.985);
}

.cp-news-card-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.34;
	z-index: 0;
}

.cp-news-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(9, 16, 43, 0.56) 0%, rgba(11, 22, 82, 0.82) 48%, rgba(17, 42, 198, 0.97) 100%);
	z-index: 1;
}

.cp-news-card-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	padding: 16px 18px 18px;
}

.cp-news-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.cp-card-logo {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #ffffff;
	white-space: nowrap;
}

.cp-card-source {
	text-align: right;
	color: #e0e7ff;
	font-weight: 700;
	white-space: nowrap;
}

.cp-news-card-body {
	margin-top: auto;
	padding-top: 16px;
}

.cp-news-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 7px;
}

.cp-tag-pill {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
}

.cp-news-card-title {
	margin: 0 0 7px;
	font-size: 18px;
	line-height: 1.24;
	font-weight: 800;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cp-news-card-title a {
	color: #ffffff;
}

.cp-news-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cp-news-card-summary {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.42;
	color: #e0e7ff;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Instagram Feed Mode (when Feed tab is active) */
.cp-news-grid.is-feed {
	grid-template-columns: minmax(0, 500px);
	justify-content: center;
	gap: 24px;
}

.cp-news-grid.is-feed .cp-ig-post {
	background: var(--cp-surface);
	border: 1px solid var(--cp-border);
	border-radius: 12px;
	overflow: hidden;
}

.cp-news-grid.is-feed .cp-news-card {
	aspect-ratio: 1 / 1;
	border-radius: 0;
	border: 0;
	box-shadow: none;
}

.cp-ig-post-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--cp-border-soft);
}

.cp-ig-post-author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--cp-text);
	min-width: 0;
}

.cp-ig-post-author:hover {
	text-decoration: none;
}

.cp-ig-mini-ring {
	width: 34px;
	height: 34px;
	padding: 2px;
	border-radius: 50%;
	background: var(--cp-ig-gradient);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cp-ig-mini-avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--cp-navy);
	color: #ffffff;
	border: 1.5px solid #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cp-ig-post-author-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cp-ig-handle-row {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13.5px;
}

.cp-ig-post-sub {
	font-size: 11.5px;
	color: var(--cp-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cp-ig-post-date {
	font-size: 12px;
	font-weight: 600;
	color: var(--cp-muted);
	white-space: nowrap;
}

.cp-ig-post-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px 4px;
}

.cp-ig-actions-left {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cp-icon-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cp-text);
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.cp-icon-action:hover {
	background: var(--cp-pill-bg);
	color: var(--cp-text);
	text-decoration: none;
}

.cp-icon-action:active {
	transform: scale(0.9);
}

.cp-icon-action.is-liked {
	color: var(--cp-red);
}

.cp-icon-action.is-liked svg path {
	fill: var(--cp-red);
	stroke: var(--cp-red);
}

.cp-icon-action.is-saved {
	color: var(--cp-text);
}

.cp-icon-action.is-saved svg path {
	fill: var(--cp-text);
}

.cp-ig-post-caption {
	padding: 2px 14px 14px;
	font-size: 13.5px;
	line-height: 1.45;
}

.cp-ig-caption-text {
	margin: 0 0 8px;
	color: var(--cp-text);
}

.cp-ig-caption-muted {
	color: #374151;
}

.cp-ig-caption-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.cp-ig-read-more {
	font-weight: 700;
	font-size: 13px;
	color: var(--cp-ig-blue);
}

.cp-ig-cat-tag {
	font-size: 12px;
	font-weight: 600;
	color: var(--cp-muted);
}

/* Hostel Review Cards */
.cp-hostel-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.cp-hostel-card {
	background: var(--cp-surface);
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-radius);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.cp-hostel-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}

.cp-hostel-top h3 {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.3;
}

.cp-score-badge {
	background: var(--cp-navy);
	color: #ffffff;
	font-weight: 800;
	font-size: 13px;
	padding: 4px 10px;
	border-radius: 8px;
	white-space: nowrap;
}

.cp-hostel-sub {
	font-size: 13px;
	color: var(--cp-muted);
}

.cp-hostel-metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	background: var(--cp-bg);
	padding: 10px;
	border-radius: 8px;
	font-size: 12px;
	text-align: center;
}

.cp-hostel-metrics strong {
	display: block;
	font-size: 14px;
	color: var(--cp-text);
}

.cp-hostel-excerpt {
	margin: 0;
	font-size: 13.5px;
	color: #374151;
}

/* Filter Bar */
.cp-filter-bar {
	background: #ffffff;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-radius);
	padding: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 24px;
}

.cp-filter-bar .cp-field {
	flex: 1 1 180px;
	margin: 0;
}

/* Single Article & Page Layout */
.cp-article-crumb {
	max-width: 780px;
	margin: 20px auto 12px;
}

.cp-article-shell {
	max-width: 780px;
	margin: 0 auto 40px;
	background: #ffffff;
	border: 1px solid var(--cp-border);
	border-radius: 14px;
	padding: 24px 28px 30px;
}

.cp-ig-article-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--cp-border-soft);
}

.cp-ig-article-top-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cp-cat-chip {
	background: var(--cp-pill-bg);
	color: var(--cp-text);
	font-size: 12px;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
}

.cp-cat-chip:hover {
	background: #e2e2e2;
	text-decoration: none;
}

.cp-article-header {
	margin-bottom: 20px;
}

.cp-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: var(--cp-muted);
	margin-bottom: 10px;
}

.cp-source-pill {
	background: var(--cp-blue);
	color: #ffffff;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cp-article-header h1 {
	margin: 0 0 8px;
	font-size: clamp(23px, 3vw, 32px);
	line-height: 1.22;
	letter-spacing: -0.015em;
}

.cp-article-thumb {
	margin: 0 0 14px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--cp-border-soft);
}

.cp-ig-article-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0 14px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--cp-border-soft);
}

.cp-article-content {
	font-size: 16.5px;
	line-height: 1.75;
	color: #1f2937;
}

.cp-article-content p {
	margin: 0 0 16px;
}

.cp-share-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--cp-border);
}

.cp-related-section {
	max-width: 780px;
	margin: 0 auto 48px;
}

/* Submission Forms (rendered via plugin shortcodes) */
.cp-form-card {
	background: #ffffff;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-radius);
	padding: 24px;
}

.cp-form {
	display: grid;
	gap: 16px;
}

.cp-field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.cp-field-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.cp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cp-field label {
	font-size: 13px;
	font-weight: 700;
	color: #1f2937;
}

.cp-field input[type="text"],
.cp-field input[type="email"],
.cp-field input[type="password"],
.cp-field input[type="number"],
.cp-field input[type="search"],
.cp-field select,
.cp-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	background: #ffffff;
}

.cp-field input:focus,
.cp-field select:focus,
.cp-field textarea:focus {
	outline: 2px solid rgba(0, 149, 246, 0.25);
	border-color: var(--cp-ig-blue);
}

.cp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cp-privacy-note {
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	color: #1e3a8a;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
}

.cp-alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.cp-alert-success {
	background: var(--cp-success-bg);
	color: var(--cp-success-text);
	border: 1px solid #a7f3d0;
}

.cp-alert-error {
	background: var(--cp-error-bg);
	color: var(--cp-error-text);
	border: 1px solid #fecaca;
}

/* Rating Bars on Single Hostel Review */
.cp-rating-breakdown {
	display: grid;
	gap: 10px;
	background: var(--cp-bg);
	padding: 16px;
	border-radius: 10px;
	margin-bottom: 22px;
}

.cp-rating-row {
	display: grid;
	grid-template-columns: 150px 1fr 44px;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 700;
}

.cp-rating-track {
	height: 8px;
	background: #d1d5db;
	border-radius: 999px;
	overflow: hidden;
}

.cp-rating-fill {
	height: 100%;
	background: var(--cp-blue);
	border-radius: 999px;
}

/* Instagram Spotlight Banner */
.cp-ig-banner {
	background: linear-gradient(135deg, #0f1419 0%, #1733e6 58%, #cc2366 100%);
	color: #ffffff;
	border-radius: 16px;
	padding: 26px 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.cp-ig-banner h3 {
	margin: 0 0 6px;
	font-size: 21px;
}

.cp-ig-banner p {
	margin: 0;
	color: #f3f4f6;
	font-size: 14px;
	max-width: 540px;
}

.cp-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Pagination */
.cp-pagination {
	margin-top: 32px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.cp-pagination .page-numbers {
	padding: 8px 14px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid var(--cp-border);
	color: var(--cp-text);
	font-weight: 700;
	font-size: 13.5px;
}

.cp-pagination .page-numbers.current {
	background: var(--cp-ig-blue);
	color: #ffffff;
	border-color: var(--cp-ig-blue);
}

/* Clean Instagram Light Footer */
.cp-footer {
	background: var(--cp-surface);
	color: var(--cp-muted);
	border-top: 1px solid var(--cp-border);
	padding: 36px 0 28px;
	margin-top: 24px;
	font-size: 13.5px;
}

.cp-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 28px;
	margin-bottom: 22px;
}

.cp-footer h4 {
	color: var(--cp-text);
	margin: 0 0 10px;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.cp-footer p {
	margin: 0;
}

.cp-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}

.cp-footer a {
	color: var(--cp-muted);
	font-weight: 500;
}

.cp-footer a:hover {
	color: var(--cp-text);
}

.cp-footer-bottom {
	border-top: 1px solid var(--cp-border-soft);
	padding-top: 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-size: 12.5px;
	color: var(--cp-muted);
}

/* Mobile Fixed Bottom Instagram Tab Bar */
.cp-bottom-nav {
	display: none;
}

/* Toast Notification */
.cp-toast {
	position: fixed;
	left: 50%;
	bottom: 76px;
	transform: translateX(-50%);
	background: rgba(15, 20, 25, 0.92);
	color: #ffffff;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	z-index: 80;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	pointer-events: none;
}

/* Account, Social Login (Instagram, Facebook, Google, LinkedIn) & Member Profile */
.cp-auth-wrap {
	max-width: 460px;
	margin: 16px auto 24px;
}

.cp-article-shell:has(.cp-auth-wrap) {
	background: transparent;
	border: 0;
	padding: 4px 0 20px;
}

.cp-article-shell:has(.cp-auth-wrap) .cp-article-header {
	display: none;
}

.cp-auth-card {
	background: var(--cp-surface);
	border: 1px solid var(--cp-border);
	border-radius: 14px;
	padding: 26px 24px;
}

.cp-auth-brand {
	text-align: center;
	margin-bottom: 20px;
}

.cp-auth-ring {
	width: 64px;
	height: 64px;
	padding: 2.5px;
	margin: 0 auto 10px;
}

.cp-auth-avatar {
	border-width: 2.5px;
}

.cp-auth-brand h2 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 800;
}

.cp-auth-brand p {
	margin: 0;
	font-size: 13.5px;
	color: var(--cp-muted);
}

.cp-social-stack {
	display: grid;
	gap: 10px;
}

.cp-social-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
	border: 1px solid transparent;
	transition: transform 0.12s ease, opacity 0.15s ease, filter 0.15s ease;
}

.cp-social-btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
	filter: brightness(0.96);
}

.cp-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	flex-shrink: 0;
}

.cp-social-label {
	flex: 1;
	text-align: center;
}

.cp-social-badge {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
}

.cp-social-instagram {
	background: var(--cp-ig-gradient);
	color: #ffffff !important;
}

.cp-social-facebook {
	background: #1877f2;
	color: #ffffff !important;
}

.cp-social-google {
	background: #ffffff;
	color: #1f2937 !important;
	border-color: var(--cp-border);
}

.cp-social-google .cp-social-badge {
	background: var(--cp-pill-bg);
	color: var(--cp-muted);
}

.cp-social-linkedin {
	background: #0a66c2;
	color: #ffffff !important;
}

.cp-auth-divider {
	position: relative;
	text-align: center;
	margin: 20px 0 16px;
}

.cp-auth-divider::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: var(--cp-border);
}

.cp-auth-divider span {
	position: relative;
	background: var(--cp-surface);
	padding: 0 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--cp-muted);
}

.cp-auth-tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background: var(--cp-pill-bg);
	padding: 4px;
	border-radius: 10px;
	margin-bottom: 16px;
}

.cp-auth-tab {
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--cp-muted);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
}

.cp-auth-tab.is-active {
	background: var(--cp-surface);
	color: var(--cp-text);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

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

.cp-check-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--cp-muted);
	cursor: pointer;
}

.cp-auth-footnote {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--cp-border-soft);
	font-size: 12.5px;
	color: var(--cp-muted);
	text-align: center;
}

.cp-member-avatar {
	font-size: 20px;
	font-weight: 800;
}

.cp-member-identity {
	flex: 1;
	min-width: 0;
}

.cp-linked-list {
	display: grid;
	gap: 10px;
}

.cp-linked-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--cp-border);
	border-radius: 10px;
}

.cp-linked-name {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
}

.cp-muted-chip {
	font-size: 12px;
	color: var(--cp-muted);
	background: var(--cp-pill-bg);
	padding: 4px 10px;
	border-radius: 999px;
}

.cp-member-quick-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

/* Instagram Accounts Center Dashboard */
.cp-auth-wrap-wide {
	max-width: 720px;
}

.cp-member-card {
	max-width: 720px;
	margin: 0 auto;
	padding: 28px 26px;
}

.cp-ig-account-hero {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--cp-border-soft);
}

.cp-hero-ring {
	width: 76px;
	height: 76px;
	padding: 3px;
	flex-shrink: 0;
}

.cp-hero-ring .cp-member-avatar {
	width: 100%;
	height: 100%;
	font-size: 24px;
}

.cp-identity-name-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.cp-identity-name-row h3 {
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.cp-verified-wrap {
	display: inline-flex;
	align-items: center;
}

.cp-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.cp-status-badge.is-verified {
	background: #e0f2fe;
	color: #0369a1;
}

.cp-status-badge.is-unverified {
	background: #fef3c7;
	color: #92400e;
}

.cp-identity-handle {
	margin: 4px 0 0;
	font-size: 13.5px;
	color: var(--cp-muted);
	word-break: break-word;
}

.cp-uni-domain-tag {
	color: #0369a1;
	font-weight: 700;
}

.cp-identity-bio {
	margin: 6px 0 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--cp-text);
}

.cp-hero-actions {
	flex-shrink: 0;
}

.cp-account-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cp-border-soft);
}

.cp-account-stat {
	background: #fafafa;
	border: 1px solid var(--cp-border-soft);
	border-radius: 10px;
	padding: 10px 8px;
	text-align: center;
}

.cp-account-stat strong {
	display: block;
	font-size: 15px;
	font-weight: 800;
	color: var(--cp-text);
}

.cp-account-stat span {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 600;
	color: var(--cp-muted);
}

.cp-account-nav {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 6px;
	background: var(--cp-pill-bg);
	padding: 4px;
	border-radius: 12px;
	margin: 18px 0;
}

.cp-account-nav-btn {
	border: 0;
	background: transparent;
	border-radius: 9px;
	padding: 9px 10px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--cp-muted);
	cursor: pointer;
	white-space: nowrap;
}

.cp-account-nav-btn.is-active {
	background: var(--cp-surface);
	color: var(--cp-text);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cp-account-panel[hidden] {
	display: none !important;
}

.cp-account-panel {
	display: grid;
	gap: 16px;
}

.cp-subcard {
	background: #ffffff;
	border: 1px solid var(--cp-border);
	border-radius: 12px;
	padding: 18px;
}

.cp-subcard h4 {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 800;
	color: var(--cp-text);
}

.cp-subcard-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.cp-subcard-head h4 {
	margin: 0 0 3px;
}

.cp-muted-note {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--cp-muted);
}

.cp-audit-pill {
	font-size: 13px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 999px;
	flex-shrink: 0;
}

.cp-audit-pill.is-ok {
	background: #dcfce7;
	color: #166534;
}

.cp-audit-pill.is-warn {
	background: #fef3c7;
	color: #92400e;
}

.cp-audit-bar {
	height: 7px;
	background: var(--cp-pill-bg);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 14px;
}

.cp-audit-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #0095f6, #16a34a);
	border-radius: 999px;
}

.cp-audit-list {
	display: grid;
	gap: 10px;
}

.cp-audit-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--cp-border-soft);
	border-radius: 10px;
	background: #fafafa;
}

.cp-audit-dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	flex-shrink: 0;
}

.cp-audit-dot.is-ok {
	background: #dcfce7;
	color: #15803d;
}

.cp-audit-dot.is-warn {
	background: #fef3c7;
	color: #b45309;
}

.cp-audit-body {
	flex: 1;
	min-width: 0;
}

.cp-audit-body strong {
	display: block;
	font-size: 13.5px;
}

.cp-audit-body span {
	display: block;
	font-size: 12.5px;
	color: var(--cp-muted);
}

.cp-audit-action {
	flex-shrink: 0;
}

.cp-meta-kv-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.cp-meta-kv-grid > div {
	padding: 9px 12px;
	border-radius: 8px;
	background: #fafafa;
	border: 1px solid var(--cp-border-soft);
}

.cp-meta-kv-grid span {
	display: block;
	font-size: 11px;
	color: var(--cp-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cp-meta-kv-grid strong {
	display: block;
	margin-top: 2px;
	font-size: 13px;
}

.cp-audit-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.cp-audit-timeline li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--cp-border-soft);
	font-size: 12.5px;
}

.cp-audit-timeline time {
	color: var(--cp-muted);
	white-space: nowrap;
	font-size: 11.5px;
}

.cp-field-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.cp-field-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.cp-input-inline {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.cp-input-inline input {
	flex: 1;
	min-width: 0;
}

.cp-otp-confirm-form {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--cp-border);
}

.cp-verified-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 10px;
}

.cp-verified-box p {
	margin: 0;
	font-size: 13.5px;
}

.cp-uni-sso-box {
	margin-bottom: 10px;
}

.cp-reset-email-form {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--cp-border-soft);
}

.cp-field-row-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.cp-inline-link {
	font-size: 12.5px;
	font-weight: 700;
}

.cp-back-inline {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
}

.cp-2fa-toggle-bar,
.cp-tfa-backup-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid var(--cp-border-soft);
	border-radius: 10px;
	margin-bottom: 12px;
	font-size: 13px;
}

.cp-tfa-backup-bar {
	margin-top: 12px;
	margin-bottom: 0;
}

.cp-tfa-method-box {
	border: 1px solid var(--cp-border);
	border-radius: 10px;
	padding: 14px;
	margin-top: 12px;
}

.cp-tfa-method-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.cp-tfa-method-head strong {
	display: block;
	font-size: 14px;
	margin-bottom: 3px;
}

.cp-mini-pill {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--cp-pill-bg);
	color: var(--cp-muted);
	white-space: nowrap;
}

.cp-mini-pill.is-ok {
	background: #dcfce7;
	color: #166534;
}

.cp-tfa-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.cp-totp-setup {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	margin-top: 10px;
}

.cp-qr-box {
	padding: 6px;
	border: 1px solid var(--cp-border);
	border-radius: 10px;
	background: #ffffff;
	line-height: 0;
}

.cp-totp-steps {
	flex: 1;
	min-width: 220px;
}

.cp-secret-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.cp-secret-row code {
	background: var(--cp-pill-bg);
	padding: 5px 8px;
	border-radius: 6px;
	font-size: 12px;
	letter-spacing: 0.05em;
	word-break: break-all;
}

.cp-backup-reveal {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 12px;
}

.cp-backup-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 10px 0;
}

.cp-backup-grid code {
	background: #ffffff;
	border: 1px solid #fcd34d;
	border-radius: 6px;
	padding: 5px 6px;
	text-align: center;
	font-weight: 700;
	font-size: 12.5px;
}

.cp-wa-list {
	display: grid;
	gap: 8px;
	margin: 10px 0;
}

.cp-wa-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	border: 1px solid var(--cp-border-soft);
	border-radius: 8px;
	background: #fafafa;
}

.cp-wa-row strong {
	display: block;
	font-size: 13px;
}

.cp-wa-row small {
	display: block;
	font-size: 11.5px;
	color: var(--cp-muted);
}

.cp-wa-add-row {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.cp-wa-add-row input {
	flex: 1;
	min-width: 0;
}

.cp-inline-status {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: var(--cp-ig-blue);
	font-weight: 600;
}

.cp-inline-status.is-error {
	color: #b91c1c;
}

.cp-2fa-chal-tabs {
	display: flex;
	gap: 4px;
	background: var(--cp-pill-bg);
	padding: 4px;
	border-radius: 10px;
	margin-bottom: 16px;
}

.cp-2fa-chal-tabs .cp-auth-tab {
	flex: 1;
}

/* Responsive */
@media (max-width: 960px) {
	.cp-header-search {
		width: 200px;
	}
	.cp-hostel-grid,
	.cp-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cp-field-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	body {
		padding-bottom: 66px;
	}
	[hidden],
.cp-form[hidden],
.cp-auth-panel[hidden] {
	display: none !important;
}

.cp-container {
		padding: 0 12px;
	}
	.cp-header-inner {
		min-height: 54px;
	}
	.cp-brand {
		font-size: 15.5px;
		gap: 8px;
	}
	.cp-brand-ring {
		width: 30px;
		height: 30px;
	}
	.cp-header-search:not(.cp-header-search-mobile) {
		display: none;
	}
	.cp-header-controls {
		display: inline-flex;
	}
	.cp-nav {
		display: none;
		position: absolute;
		top: 54px;
		left: 0;
		right: 0;
		background: var(--cp-surface);
		padding: 14px 16px 18px;
		flex-direction: column;
		align-items: flex-start;
		border-bottom: 1px solid var(--cp-border);
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
	}
	.cp-nav.is-open {
		display: flex;
	}
	.cp-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	/* Mobile Profile / Topic Header */
	.cp-ig-profile-wrap {
		padding: 16px 0 12px;
	}
	.cp-ig-profile,
	.cp-topic-header {
		grid-template-columns: 76px 1fr;
		gap: 14px;
		align-items: start;
		margin-bottom: 14px;
	}
	.cp-profile-avatar-ring,
	.cp-topic-ring {
		width: 74px;
		height: 74px;
		padding: 2.5px;
	}
	.cp-profile-avatar {
		border-width: 2px;
	}
	.cp-profile-avatar svg {
		width: 28px;
		height: 28px;
	}
	.cp-profile-top {
		gap: 8px;
		margin-bottom: 8px;
	}
	.cp-profile-handle {
		font-size: 18px;
	}
	.cp-profile-handle h1 {
		font-size: 18px;
	}
	.cp-profile-actions {
		width: 100%;
	}
	.cp-ig-btn {
		flex: 1 1 auto;
		padding: 6px 10px;
		font-size: 12.5px;
	}
	.cp-profile-stats {
		gap: 14px;
		font-size: 13px;
		margin-bottom: 6px;
	}
	.cp-profile-bio {
		font-size: 13px;
	}
	.cp-profile-name {
		font-size: 13.5px;
	}
	.cp-stories-tray {
		gap: 12px;
		padding: 4px 0 2px;
	}
	.cp-story-item {
		width: 64px;
		gap: 5px;
	}
	.cp-story-ring {
		width: 56px;
		height: 56px;
	}
	.cp-story-label {
		font-size: 11px;
		max-width: 64px;
	}
	.cp-ig-tabs {
		gap: 18px;
		margin-bottom: 12px;
	}
	.cp-ig-tab {
		font-size: 11px;
		padding: 11px 2px;
	}

	/* Keep Instagram-style 3-column grid (3 across) + 1:1 Feed on mobile */
	.cp-news-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 4px;
	}
	.cp-news-grid.is-feed {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
	.cp-news-card {
		aspect-ratio: 4 / 5;
		border-radius: 6px;
	}
	.cp-news-card-inner {
		padding: 7px 7px 8px;
	}
	.cp-news-card-top {
		font-size: 7.5px;
		gap: 3px;
		letter-spacing: 0.03em;
	}
	.cp-card-logo {
		gap: 3px;
	}
	.cp-card-logo svg {
		width: 10px;
		height: 10px;
	}
	.cp-news-grid:not(.is-feed) .cp-card-source {
		display: none;
	}
	.cp-news-card-body {
		padding-top: 6px;
	}
	.cp-news-card-meta {
		margin-bottom: 4px;
		gap: 3px;
	}
	.cp-news-grid:not(.is-feed) .cp-tag-pill:nth-child(n+2) {
		display: none;
	}
	.cp-tag-pill {
		font-size: 8px;
		padding: 1.5px 5px;
	}
	.cp-news-card-title {
		font-size: 10.5px;
		line-height: 1.22;
		margin-bottom: 0;
		-webkit-line-clamp: 4;
	}
	.cp-news-grid:not(.is-feed) .cp-news-card-summary {
		display: none;
	}
	.cp-news-grid.is-feed .cp-news-card {
		aspect-ratio: 1 / 1;
		border-radius: 0;
	}
	.cp-news-grid.is-feed .cp-news-card-inner {
		padding: 16px 18px 18px;
	}
	.cp-news-grid.is-feed .cp-news-card-top {
		font-size: 10.5px;
	}
	.cp-news-grid.is-feed .cp-card-logo svg {
		width: 14px;
		height: 14px;
	}
	.cp-news-grid.is-feed .cp-tag-pill {
		font-size: 10.5px;
		padding: 2px 8px;
	}
	.cp-news-grid.is-feed .cp-news-card-title {
		font-size: 18px;
		line-height: 1.24;
		margin-bottom: 7px;
	}
	.cp-news-grid.is-feed .cp-news-card-summary {
		font-size: 12.5px;
		line-height: 1.42;
		-webkit-line-clamp: 3;
	}

	.cp-hostel-grid,
	.cp-field-row,
	.cp-footer-grid {
		grid-template-columns: 1fr;
	}
	.cp-article-shell {
		padding: 18px 16px 22px;
	}
	.cp-auth-wrap {
		margin: 0 auto;
	}
	.cp-auth-card {
		padding: 18px 14px;
	}
	.cp-social-btn {
		font-size: 13px;
		padding: 10px;
		gap: 6px;
	}
	.cp-member-card {
		padding: 18px 14px;
	}
	.cp-ig-account-hero {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.cp-account-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cp-account-nav {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cp-field-grid-2,
	.cp-field-grid-3,
	.cp-meta-kv-grid {
		grid-template-columns: 1fr;
	}
	.cp-backup-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cp-audit-row,
	.cp-verified-box,
	.cp-2fa-toggle-bar,
	.cp-tfa-backup-bar,
	.cp-wa-add-row,
	.cp-input-inline {
		flex-direction: column;
		align-items: stretch;
	}

	/* Mobile Bottom App Navigation Bar */
	.cp-bottom-nav {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		height: 58px;
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-top: 1px solid var(--cp-border);
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		align-items: center;
		z-index: 60;
	}
	.cp-bottom-tab {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		height: 100%;
		color: var(--cp-muted);
		font-size: 10px;
		font-weight: 600;
	}
	.cp-bottom-tab:hover {
		text-decoration: none;
		color: var(--cp-text);
	}
	.cp-bottom-tab.is-active {
		color: var(--cp-text);
		font-weight: 800;
	}
	.cp-bottom-tab.is-active svg path,
	.cp-bottom-tab.is-active svg rect {
		stroke-width: 2.3;
	}
	.cp-bottom-tab-create svg {
		color: var(--cp-ig-blue);
	}
}
