:root {
	--primary: #836bff;
	--secondary: #6A82FB;
	--accent: #5c69fc;
	--light: #f5f8ff;
	--dark: #4A4A4A;
	--success: #4CAF50;
	--warning: #FF9800;
	--pro: #FFD700;
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	--radius: 12px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	min-height: 100vh;
	padding: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
	width: 100%;
	max-width: 500px;
	background: white;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	position: relative;
}

/* Loading Screen Styles */
.loading-screen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	transition: opacity 0.3s ease;
}

.loading-screen.hidden {
	opacity: 0;
	pointer-events: none;
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 5px solid #f3f3f3;
	border-top: 5px solid var(--primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading-text {
	font-size: 1.2rem;
	color: var(--dark);
}

/* Main Content - Hidden by default */
.main-content {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.main-content.visible {
	opacity: 1;
}

header {
    background: linear-gradient(to right, #986bff, var(--secondary));
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.logo {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 10px;
}

.tagline {
	font-size: 1rem;
	opacity: 0.9;
}

.pro-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--pro);
	color: #000;
	padding: 4px 8px;
	border-radius: 20px;
	font-size: 0.7rem;
	font-weight: bold;
}

.main-content {
	padding: 20px;
}

.auth-section {
	display: none;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 30px;
}

.auth-section.visible {
	display: flex;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	background: var(--light);
	border-radius: var(--radius);
}

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.btn {
	padding: 12px 20px;
	border: none;
	border-radius: var(--radius);
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.btn-primary {
	background: var(--primary);
	color: white;
}

.btn-primary:hover {
	background: var(--accent);
	transform: translateY(-2px);
}

.btn-secondary {
	background: var(--secondary);
	color: white;
}

.btn-secondary:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.btn-logout {
	background: transparent;
	color: var(--dark);
	border: 1px solid #ddd;
}

.btn-logout:hover {
	background: #f5f5f5;
}

.btn-pro {
	background: var(--pro);
	color: #000;
}

.btn-pro:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.message-form {
	background: var(--light);
	padding: 20px;
	border-radius: var(--radius);
	margin-bottom: 30px;
	display: none;
}

.message-form.visible {
	display: block;
}

.form-title {
    font-size: 1rem;
    font-weight: 400;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: none;
    border-radius: var(--radius);
    resize: vertical;
    font-size: 1rem;
    margin-bottom: 15px;
    outline: none;
    /* font-family: "Indie Flower", cursive; */
    background: #00000015;
}

.custom-url-section {
	background: var(--light);
	padding: 20px;
	border-radius: var(--radius);
	margin-bottom: 20px;
	display: none;
}

.custom-url-section.visible {
	display: block;
}

.url-input-container {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.url-input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: var(--radius);
}

.url-display {
	margin-top: 15px;
	padding: 10px;
	background: white;
	border-radius: var(--radius);
	border: 1px dashed var(--primary);
	text-align: center;
	font-weight: bold;
	display: none;
}

.url-display.visible {
	display: block;
}

.messages-section {
	margin-top: 20px;
	display: none;
}

.messages-section.visible {
	display: block;
}

.section-title {
	font-size: 1.2rem;
	margin-bottom: 15px;
	color: var(--dark);
	display: flex;
	align-items: center;
	gap: 10px;
}

.messages-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.message-card {
	background: white;
	border-radius: var(--radius);
	padding: 15px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	border-left: 4px solid var(--primary);
}

.message-text {
	margin-bottom: 10px;
	line-height: 1.5;
	font-family: "Indie Flower", cursive;
}

.message-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	color: #888;
}

.sender-info {
	margin-top: 10px;
	padding: 10px;
	background: #f9f9f9;
	border-radius: var(--radius);
	font-size: 0.8rem;
	color: #666;
}

.pro-only {
	background: #fff9e6;
	border-left: 4px solid var(--pro);
}

.pro-only .sender-info {
    display: flex;
    flex-direction: column;
}

.free-account .sender-info {
	display: none;
}

.empty-state {
	text-align: center;
	padding: 30px;
	color: #888;
}

.empty-state-icon {
	font-size: 3rem;
	margin-bottom: 10px;
	opacity: 0.5;
}

.notification {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 15px 20px;
	background: var(--success);
	color: white;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transform: translateX(150%);
	transition: transform 0.3s ease;
	z-index: 1000;
}

.notification.show {
	transform: translateX(0);
}

.tabs {
	display: none;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
    overflow-y: auto;
	
	/* word-break: keep-all; */
    /* white-space: break-spaces; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    /* white-space: nowrap; */
}

.tabs.visible {
	display: flex;
}

.tab {
	padding: 10px 20px;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	display: flex;
	align-content: center;
	align-items: center;
}

.tab svg {
	margin-right: 3.6px;
}

.tab.active {
	border-bottom: 3px solid var(--primary);
	font-weight: bold;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

.icon {
	width: 20px;
	height: 20px;
}

@media (max-width: 600px) {
	body {
		padding: 10px;
	}
	
	.container {
		border-radius: 10px;
	}
	
	header {
		padding: 15px;
	}
	
	.main-content {
		padding: 15px;
	}
	
	.url-input-container {
		flex-direction: column;
	}
}


/* Profile Visits Styles */
.visits-section {
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

.visits-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visit-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.visit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 10px; */
    /* padding-bottom: 8px; */
    border-bottom: 1px solid var(--border-light);
}

.visit-time {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.visit-url {
    background: var(--primary-light);
    color: var(--primary-color);
    /* padding: 4px 8px; */
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary);
}

.visit-details {
    font-size: 13px;
    line-height: 1.4;
}

.visit-info {
    color: var(--text-color);
}

.visit-info strong {
    color: var(--text-dark);
	margin-right: 5px;
}

/* Pro badge in header */
.pro-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b6b00;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .visit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .visit-url {
        align-self: flex-start;
    }
}

.mark-userurl {
	color: var(--secondary);
	font-weight: bold;
	cursor: pointer;
}

.mark-link {
	color: var(--secondary);
	text-decoration: underline;
}


.mark-container * {
	font-family: "Indie Flower", cursive;
}

.mark-container {
	word-break: keep-all;
    white-space: break-spaces;
    overflow: hidden;
    text-overflow: ellipsis;
}

a {
	color: var(--accent);
}


/* Customization Tab Styles */
.customize-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group textarea,
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

input[type="color"] {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
}

.preview-section {
    margin: 30px 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.preview-section h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.profile-preview {
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.preview-header {
    text-align: center;
    margin-bottom: 15px;
}

.preview-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.preview-tagline {
    font-size: 14px;
    color: var(--text-light);
}

.preview-bio {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: var(--radius);
    font-style: italic;
}

.preview-message-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 10px;
    resize: none;
    height: 80px;
}

.preview-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
}


/* Profile Bio in Public View */
.profile-bio {
    text-align: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-color);
	margin: 5px;
}