:root {
    --primary-purple: #7E3F98; /* Public Mobile Purple approx */
    --primary-hover: #5e2b75;
    --secondary-green: #00AA46;
    --dark-bg: #0a0a0a;
    --light-bg: #f4f4f7;
    --white: #ffffff;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border-radius: 12px;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--white);
}

.btn-outline {
    width: 100%;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    margin-top: auto; /* Push to bottom in flex container */
}

.btn-outline:hover {
    background-color: var(--primary-purple);
    color: var(--white);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo span {
    color: var(--primary-purple);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f5ff 0%, #ffffff 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-main);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.referral-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(126, 63, 152, 0.15);
    display: inline-block;
    max-width: 500px;
    width: 100%;
    margin-bottom: 20px;
}

.referral-label {
    font-size: 1rem !important;
    margin-bottom: 15px !important;
    color: var(--text-main) !important;
}

.code-display {
    display: flex;
    background: #f4f4f7;
    border-radius: 8px;
    padding: 5px;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #e5e7eb;
}

#referral-code {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    padding-left: 20px;
    letter-spacing: 2px;
    color: var(--text-main);
}

#copy-message {
    margin-top: 10px;
    font-size: 0.9rem !important;
    color: var(--secondary-green) !important;
    margin-bottom: 0 !important;
    opacity: 0;
    transition: opacity 0.3s;
}

#copy-message.visible {
    opacity: 1;
    visibility: visible;
}

.subtext {
    font-size: 0.9rem !important;
    margin-top: 10px;
}

/* 404 Page */
.not-found {
    min-height: calc(100vh - 230px);
}

.hero .not-found-status {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Match .btn-secondary's 2px border so side-by-side buttons line up */
.not-found-actions .btn-primary {
    border: 2px solid transparent;
}

/* Plans Section */
.plans-section {
    padding: 80px 0;
    background-color: var(--white);
}

.plans-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    color: var(--text-muted);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-purple);
}

.plan-card.featured {
    border: 2px solid var(--secondary-green);
    background: #fafffc;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-green);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.plan-header h3 span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 5px;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 20px 0;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
    position: relative;
    top: 10px;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.plan-features li::before {
    content: "✓";
    color: var(--secondary-green);
    position: absolute;
    left: 0;
    font-weight: 900;
}

.disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 40px;
}

/* Steps Section */
.steps-section {
    padding: 80px 0;
    background-color: #f9f9fb;
}

.steps-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
}

.step h3 {
    margin-bottom: 15px;
}

.step p {
    color: var(--text-muted);
}

.step p a {
    color: var(--primary-purple);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    color: #9ca3af;
    margin-bottom: 15px;
}

footer a {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .plan-price {
        font-size: 3rem;
    }
    
    .navbar {
        padding: 15px 0;
    }
}
