:root{
	--primary: #8347a5;
	--success: #1fbf75;
	--bg: #f4f6fb;
	--card: #ffffff;
	--muted: #6b7280;
	--border: #e5e7eb;
	--soft: #f9fafb
}

*{
	box-sizing:border-box
}

body{
	margin: 0;
	font-family: 'Inter',sans-serif;
	background: radial-gradient(600px 300px at 80% -10%, rgba(131,71,165,.25), transparent), linear-gradient(180deg,#f7f8fd,#eef1f8);
	color: #1f2937;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center
}

.link-page{
	width: 100%;
	max-width: 560px;
	padding: 24px
}

.link-card{
	background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), var(--card);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 28px 26px 26px;
	box-shadow: 0 20px 60px rgba(0,0,0,.18);
	background: radial-gradient(circle, transparent 20%, #fff 20%, #fff 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, #fff 20%, #fff 80%, transparent 80%, transparent) 25px 25px, linear-gradient(#f3ecf6 2px, transparent 2px) 0 -1px, linear-gradient(90deg, #f3ecf6 2px, #fff 2px) -1px 0;
	background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px
}

.link-card-badge{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	background: rgba(31,191,117,.15);
	color: var(--success);
	margin-bottom: 14px
}

.link-card-title{
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 10px
}

.link-card-description{
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 22px;
}

.link-card-button{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 54px;
	border-radius: 14px;
	background: linear-gradient(135deg, #9b5ec4, var(--primary));
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	border: none
}
.link-card-button:hover{
	opacity: .9
}

.link-card-note{
	background: var(--soft);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 13px;
	color: #374151;
	text-align: center;
	margin: 18px 0 16px;
	margin-bottom: 0
}

.link-card-footer{
	margin-top: 16px;
	display: flex;
	justify-content: center;
	gap: 10px;
	font-size: 13px
}

.link-card-footer a{
	font-size: 13px;
	color: var(--muted)
}
.link-card-footer a:hover{
	text-decoration: underline
}

.user-menu{
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 50
}

.user-menu-toggle{
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0,0,0,.12)
}

.user-menu-toggle:hover{
	background: var(--soft)
}

.user-avatar{
    color: #874baa
}

.user-menu-dropdown{
	position: absolute;
	top: 52px;
	right: 0;
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0,0,0,.18);
	padding: 8px;
	display: none;
	animation: fadeUp .18s ease
}

.user-menu-dropdown a{
	display: block;
	padding: 10px 14px;
	font-size: 14px;
	color: #1f2937;
	border-radius: 10px;
	text-decoration: none
}

.user-menu-dropdown a:hover{
	background: var(--soft)
}

.user-menu-dropdown .highlight{
	color: var(--primary);
	font-weight: 600
}

.user-menu-dropdown .danger{
	color: #dc2626;
	font-weight: 600
}

.menu-divider{
	height: 1px;
	background: var(--border);
	margin: 6px 0
}

@keyframes fadeUp{
	from{opacity: 0;transform: translateY(6px)}
	to{opacity: 1;transform: translateY(0)}
}

.premium-cta{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 16px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(255,255,165,.10), rgba(31,191,117,.08));
	border: 1px solid #fff;
	box-shadow: 0 6px 20px rgba(0,0,0,.08)
}

.premium-cta-left{
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap
}

.premium-cta-badge{
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(131,71,165,.15);
	color: var(--primary);
	letter-spacing: .2px
}

.premium-cta-text{
	font-size: 13px;
	color: #1f2937
}

.premium-cta-actions{
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap
}

.premium-cta-link{
	font-size: 13px;
	color: var(--muted);
	text-decoration: none;
	font-weight: 500
}

.premium-cta-link:hover{
	text-decoration: underline
}

.premium-cta-btn{
	height: 34px;
	line-height: 34px;
	padding: 0 14px;
	border-radius: 10px;
	background: linear-gradient(135deg,#9b5ec4,var(--primary));
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none
}

.premium-cta-btn:hover{
	opacity: .9
}

@media(max-width:520px){
	.premium-cta{
		flex-direction: column;
		align-items: flex-start
	}
	.premium-cta-actions{
		width: 100%;
		justify-content: flex-end
	}
}

.premium-hero{
    text-align: center;
}

.premium-hero-title{
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin: 14px 0 10px;
}

.premium-hero-text{
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 22px;
}

.premium-hero-actions{
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary{
    height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    background: linear-gradient(135deg,#9b5ec4,var(--primary));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
	border: 1px solid var(--primary);
	cursor: pointer
}

.btn-primary:hover{
    opacity: .92;
}

.btn-outline{
    height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
	cursor: pointer
}

.btn-outline:hover{
    background: var(--soft);
}

.premium-section-title{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.premium-feature-list{
    padding-left: 18px;
    font-size: 14px;
    color: #374151;
}

.premium-feature-list li{
    margin-bottom: 8px;
}

@media(max-width:520px){
    .premium-hero-title{
        font-size: 22px;
    }
}

.auth-title{
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 22px;
}

.form-group{
    margin-bottom: 16px;
}

.form-group label{
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input{
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
}

.form-group input:focus{
    outline: none;
    border-color: var(--primary);
}

.btn-full{
    width: 100%;
    margin-top: 6px;
}

.auth-links{
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 15px;
}

.auth-links a{
    text-decoration: none;
	height: 32px;
	line-height: 32px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
	cursor: pointer
}

.auth-links a:hover{
	color: var(--primary);
	background: var(--soft)
}

.alert{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid transparent
}

.alert-success{
    background: rgba(31,191,117,.12);
    color: #065f46;
    border-color: rgba(31,191,117,.35)
}

.alert-error{
    background: rgba(220,38,38,.10);
    color: #7f1d1d;
    border-color: rgba(220,38,38,.35)
}

.alert-info{
    background: rgba(59,130,246,.10);
    color: #1e3a8a;
    border-color: rgba(59,130,246,.35)
}

.alert-warning{
    background: rgba(234,179,8,.14);
    color: #78350f;
    border-color: rgba(234,179,8,.35)
}

.split-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px
}

@media(max-width:640px){
    .split-layout{grid-template-columns:1fr}
}

.subscription-box{
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: #fff
}

.subscription-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px
}

.subscription-footer{
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted)
}

.status-badge{
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700
}
.status-badge.success{
    background: rgba(31,191,117,.15);
    color: var(--success)
}
.status-badge.muted{
    background: var(--soft);
    color: var(--muted)
}

.data-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 15px
}
.data-table th{
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    padding: 6px 0
}
.data-table td{
    padding:6px 0
}
.price{
    font-size: 20px;
    font-weight: 800;
    color: var(--success)
}
.price-box{
    font-size: 26px;
    font-weight: 800;
    color: var(--success);
    text-align: center;
    margin: 16px 0
}
.price-box.highlight{
    background: var(--soft);
    border-radius: 12px;
    padding: 14px
}
.text-success{
    color: var(--success)
}

.loader-box{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px;
    border-radius:14px;
    background:linear-gradient(
        135deg,
        rgba(131,71,165,.08),
        rgba(31,191,117,.08)
    );
    border:1px solid var(--border);
    justify-content:center;
}

.loader-spinner{
    width:28px;
    height:28px;
    border-radius:50%;
    border:3px solid rgba(131,71,165,.25);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

.loader-text{
    font-size:14px;
    font-weight:600;
    color:#1f2937;
    line-height:1.2;
}

.loader-text span{
    font-size:12px;
    color:var(--muted);
    font-weight:500;
}

@keyframes spin{
    from{transform:rotate(0deg)}
    to{transform:rotate(360deg)}
}

.link-card hr{
	margin: 15px 0;
	border: 0 none;
	width: 100%;
	height: 1px;
	background: rgba(0,0,0,.1)
}