/* Reset & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: #f5f5f5;
}

/* Colors */
:root {
	--primary-red: #E31E24;
	--primary-red-dark: #c41a1f;
	--primary-red-light: #ff4c52;
	--text-dark: #1f2937;
	--text-gray: #6b7280;
	--text-light: #9ca3af;
	--bg-light: #f9fafb;
	--border-color: #e5e7eb;
}

/* Login Page Styles */
.login-page {
	background: linear-gradient(to bottom, var(--primary-red), var(--primary-red-light));
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.login-container {
	width: 100%;
	max-width: 420px;
}

.login-header {
	text-align: center;
	margin-bottom: 32px;
}

.logo-box {
	width: 80px;
	height: 80px;
	background: white;
	border-radius: 24px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.logo-text {
	font-size: 28px;
	font-weight: bold;
	color: var(--primary-red);
}

.app-title {
	font-size: 32px;
	font-weight: bold;
	color: white;
	margin-bottom: 8px;
}

.app-title .italic {
	font-style: italic;
}

.app-subtitle {
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
}

.login-card {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 24px;
	padding: 32px 24px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-title {
	font-size: 24px;
	font-weight: bold;
	color: var(--text-dark);
	text-align: center;
	margin-bottom: 8px;
}

.card-subtitle {
	font-size: 14px;
	color: var(--text-gray);
	text-align: center;
	margin-bottom: 24px;
}

.login-form {
	margin-bottom: 24px;
}

.form-group {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-dark);
	margin-bottom: 8px;
}

.input-wrapper {
	position: relative;
}

.input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-light);
}

.form-input {
	width: 100%;
	height: 48px;
	padding: 0 44px;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	font-size: 15px;
	transition: all 0.3s;
	outline: none;
}

.form-input:focus {
	border-color: var(--primary-red);
	box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--text-light);
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
}

.toggle-password:hover {
	color: var(--text-gray);
}

.forgot-password {
	text-align: right;
	margin-bottom: 24px;
}

.forgot-password a {
	font-size: 14px;
	color: var(--primary-red);
	text-decoration: none;
	font-weight: 500;
}

.forgot-password a:hover {
	color: var(--primary-red-dark);
}

.btn-primary {
	width: 100%;
	height: 48px;
	background: var(--primary-red);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

.btn-primary:hover {
	background: var(--primary-red-dark);
	box-shadow: 0 6px 16px rgba(227, 30, 36, 0.4);
	transform: translateY(-1px);
}

.btn-primary:active {
	transform: translateY(0);
}

.divider {
	position: relative;
	text-align: center;
	margin: 24px 0;
}

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

.divider span {
	position: relative;
	padding: 0 16px;
	background: white;
	color: var(--text-gray);
	font-size: 14px;
}

.register-link {
	text-align: center;
	font-size: 14px;
	color: var(--text-gray);
}

.register-link a {
	color: var(--primary-red);
	font-weight: 600;
	text-decoration: none;
}

.register-link a:hover {
	color: var(--primary-red-dark);
}

.login-footer {
	text-align: center;
	margin-top: 24px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 12px;
}

/* Home Page Styles */
.home-page {
	background: #f5f5f5;
	min-height: 91vh;
	padding-bottom: 80px;
}

.home-container {
	max-width: 480px;
	margin: 0 auto;
	background: white;
	min-height: 91vh;
}

.header-curved {
	background: linear-gradient(to bottom, var(--primary-red), var(--primary-red-light));
	padding: 24px 16px 40px;
	border-radius: 0 0 48px 48px;
	position: relative;
	color: white;

}

.header-form {
	background: linear-gradient(to bottom, var(--primary-red), var(--primary-red-light));
	padding: 24px 16px 1px;
	border-radius: 0 0 15px 15px;
	position: relative;
	color: white;
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.logo-text-header {
	font-size: 24px;
	font-weight: bold;
}

.logo-text-header .italic {
	font-style: italic;
}

.logo-text-header .express {
	font-size: 12px;
	font-weight: normal;
}

.menu-btn {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	padding: 8px;
	display: flex;
	align-items: center;
}

.deposit-card {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border-radius: 16px;
	padding: 16px;
	margin-bottom: 16px;
}

.deposit-label {
	font-size: 14px;
	opacity: 0.9;
	margin-bottom: 4px;
}

.deposit-amount {
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 8px;
}

.powered-by {
	font-size: 12px;
	opacity: 0.8;
}

.powered-by .rupi {
	font-weight: 600;
}

.tracking-card {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border-radius: 16px;
	padding: 16px;
}

.tracking-label {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 12px;
}

.tracking-input-group {
	display: flex;
	gap: 8px;
}

.tracking-input {
	flex: 1;
	height: 44px;
	padding: 0 16px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.95);
	outline: none;
}

.btn-cek-resi {
	height: 44px;
	padding: 0 24px;
	background: white;
	color: var(--primary-red);
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s;
}

.btn-cek-resi:hover {
	background: #f5f5f5;
}

.action-buttons {
	position: absolute;
	bottom: -24px;
	right: 16px;
	display: flex;
	gap: 12px;
}

.action-btn {
	background: white;
	color: var(--primary-red);
	border: none;
	border-radius: 16px;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.3s;
}

.action-btn:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	transform: translateY(-2px);
}

.main-content {
	padding: 48px 16px 16px;
}

.menu-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 32px;
}

.menu-item {
	background: white;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 16px 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	transition: all 0.3s;
}

.menu-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.menu-item:active {
	transform: scale(0.95);
}

.menu-icon {
	width: 64px;
	height: 64px;
	background: rgba(227, 30, 36, 0.08);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-red);
}

.menu-label {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-dark);
	text-align: center;
	line-height: 1.3;
}

.section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.section-icon {
	width: 32px;
	height: 32px;
	background: var(--primary-red);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.grid-dots {
	display: grid;
	grid-template-columns: repeat(3, 4px);
	gap: 2px;
}

.grid-dots span {
	width: 4px;
	height: 4px;
	background: white;
	border-radius: 1px;
}

.section-label {
	font-size: 16px;
	font-weight: 500;
	color: var(--text-gray);
}

.ask-joni-card {
	background: linear-gradient(to right, rgba(227, 30, 36, 0.08), rgba(255, 76, 82, 0.08));
	border: 1px solid rgba(227, 30, 36, 0.15);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	transition: all 0.3s;
	margin-bottom: 20px;
}

.req-joni-card {
	background: linear-gradient(to right, rgba(249, 249, 249, 0.08), rgba(255, 255, 255, 0.563));
	border: 1px solid rgba(52, 52, 244, 0.315);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	transition: all 0.3s;
	margin-bottom: 20px;
}

.ask-joni-card:hover {
	box-shadow: 0 4px 12px rgba(227, 30, 36, 0.15);
	transform: translateY(-2px);
}

.req-joni-card:hover {
	box-shadow: 0 4px 12px rgba(227, 30, 36, 0.15);
	transform: translateY(-2px);
}

.joni-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12vh;
}

.joni-avatar {
	width: 56px;
	height: 56px;
	background: var(--primary-red);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
}

.joni-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.joni-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-dark);
}

.joni-subtitle {
	font-size: 14px;
	color: var(--text-gray);
}

.btn-ask-joni {
	background: var(--primary-red);
	color: white;
	border: none;
	border-radius: 12px;
	padding: 14px 28px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(227, 30, 36, 0.25);
	transition: all 0.3s;
}

.btn-ask-joni:hover {
	background: var(--primary-red-dark);
	box-shadow: 0 6px 16px rgba(227, 30, 36, 0.35);
}

.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	border-top: 1px solid var(--border-color);
	padding: 12px 16px;
	display: flex;
	justify-content: space-around;
	align-items: center;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
	max-width: 480px;
	margin: 0 auto;
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	color: var(--text-light);
	cursor: pointer;
	transition: all 0.3s;
	padding: 8px 16px;
}

.nav-item.active {
	color: var(--primary-red);
}

.nav-item.submit {
	color: hsl(215, 82%, 34%);
}

.nav-item span {
	font-size: 12px;
	font-weight: 500;
}

/* Chat Page Styles */
.chat-page {
	background: #f5f5f5;
}

.chat-container {
	max-width: 480px;
	margin: 0 auto;
	background: white;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.chat-header {
	background: linear-gradient(to right, var(--primary-red), var(--primary-red-light));
	color: white;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-btn {
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: white;
	padding: 8px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: all 0.3s;
}

.back-btn:hover {
	background: rgba(255, 255, 255, 0.25);
}

.chat-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.chat-avatar {
	width: 40px;
	height: 40px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-red);
}

.chat-user-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.chat-user-name {
	font-size: 16px;
	font-weight: 600;
}

.chat-user-status {
	font-size: 12px;
	opacity: 0.85;
}

.online-indicator {
	width: 10px;
	height: 10px;
	background: #10b981;
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}

.chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: #f9fafb;
}

.message {
	display: flex;
	gap: 8px;
	max-width: 85%;
	animation: fadeIn 0.3s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.message.user {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.message-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.message.joni .message-avatar {
	background: rgba(227, 30, 36, 0.1);
	color: var(--primary-red);
}

.message.user .message-avatar {
	background: #e5e7eb;
	color: var(--text-gray);
}

.message-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.message-bubble {
	padding: 12px 16px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.5;
}

.message.joni .message-bubble {
	background: white;
	color: var(--text-dark);
	border-radius: 16px 16px 16px 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message.user .message-bubble {
	background: var(--primary-red);
	color: white;
	border-radius: 16px 16px 4px 16px;
}

.message-time {
	font-size: 11px;
	color: var(--text-light);
	padding: 0 4px;
}

.message.user .message-time {
	text-align: right;
	color: rgba(255, 255, 255, 0.7);
}

.quick-replies {
	padding: 8px 16px;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	background: white;
	border-top: 1px solid var(--border-color);
}

.quick-replies::-webkit-scrollbar {
	height: 4px;
}

.quick-replies::-webkit-scrollbar-thumb {
	background: var(--border-color);
	border-radius: 2px;
}

.quick-reply-btn {
	padding: 8px 16px;
	background: white;
	border: 1px solid var(--border-color);
	border-radius: 20px;
	font-size: 13px;
	color: var(--text-dark);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s;
}

.quick-reply-btn:hover {
	background: var(--bg-light);
	border-color: var(--primary-red);
	color: var(--primary-red);
}

.chat-input-container {
	padding: 12px 16px;
	background: white;
	border-top: 1px solid var(--border-color);
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.chat-input-form {
	display: flex;
	gap: 8px;
	align-items: center;
}

.chat-input {
	flex: 1;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--border-color);
	border-radius: 22px;
	font-size: 14px;
	outline: none;
	transition: all 0.3s;
}

.chat-input:focus {
	border-color: var(--primary-red);
	box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.send-btn {
	width: 44px;
	height: 44px;
	background: var(--primary-red);
	color: white;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 2px 8px rgba(227, 30, 36, 0.25);
}

.send-btn:hover:not(:disabled) {
	background: var(--primary-red-dark);
	box-shadow: 0 4px 12px rgba(227, 30, 36, 0.35);
	transform: scale(1.05);
}

.send-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Responsive */
@media (min-width: 480px) {

	.home-container,
	.chat-container {
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	}
}

/* Scrollbar Styles */
::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: var(--primary-red);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--primary-red-dark);
}


/* choices jancuuuk */
.choices {
	width: 100%;
	position: relative !important;
	overflow: visible !important;
	z-index: 10;
}

.choices__inner {
	min-height: 48px !important;
	padding: 10px 14px 10px 44px !important;
	border-radius: 12px !important;
	border: 1px solid #dcdcdc !important;
	display: flex !important;
	align-items: center !important;
	background: #fff !important;
	font-size: 15px !important;
}

.choices__placeholder {
	color: #8e8e8e !important;
	opacity: 1 !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	width: 100% !important;
	margin-top: 4px !important;
	border-radius: 12px !important;
	border: 1px solid #dcdcdc !important;
	background: #fff !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;

	z-index: 999999 !important;
}

.choices__list--dropdown .choices__item {
	padding: 12px 16px !important;
	font-size: 15px;
	color: #444;
}

.choices__list--dropdown .choices__item--selectable:hover {
	background: #f2f2f2 !important;
	cursor: pointer;
}

.choices.is-open .choices__inner {
	border-color: #e21d2a !important;
	box-shadow: 0 0 0 3px rgba(226, 29, 42, 0.1) !important;
}

/* =========================================
   INPUT ICON POSITION FIX
   ========================================= */

.input-wrapper {
	position: relative;
}

.input-wrapper .input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	z-index: 20;
}


.ios-alert {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(4px);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 999999;
	animation: iosFadeIn 0.25s ease;
}

@keyframes iosFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.ios-alert-box {
	width: 260px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(20px);
	border-radius: 18px;
	padding: 20px;
	text-align: center;
	animation: iosPopup 0.25s ease;
	box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15);
}

.ios-alert-box-loading {
	width: 260px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(20px);
	border-radius: 18px;
	padding: 20px;
	text-align: center;
	animation: iosPopup 0.25s ease;
	box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15);
}

@keyframes iosPopup {
	from {
		transform: scale(0.7);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.ios-alert-title {
	font-size: 18px;
	font-weight: 600;
	color: #111;
	margin-bottom: 10px;
}

.ios-alert-message {
	font-size: 14px;
	color: #333;
	margin-bottom: 18px;
	line-height: 1.4;
}

.ios-alert-btn {
	width: 100%;
	padding: 10px 0;
	border: none;
	border-radius: 12px;
	/* background: #007aff;  */
	background: linear-gradient(to bottom, var(--primary-red), var(--primary-red-light));
	color: white;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s;
}

.ios-alert-btn:active {
	/* background: #006be6; */
	background: linear-gradient(to bottom, var(--primary-red), var(--primary-red-light));
}

.ios-btn-group {
	display: flex;
	gap: 10px;
}

.ios-btn {
	flex: 1;
	padding: 10px 0;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: 0.2s;
}

.ios-cancel {
	background: #e5e5ea;
	color: #111;
}

.ios-ok {
	/* background: #007aff; */
	background: linear-gradient(to bottom, var(--primary-red), var(--primary-red-light));
	color: white;
}

.ios-cancel:active {
	background: #d1d1d6;
}

.ios-ok:active {
	background: #0062d6;
}
