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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    background: #f8f9fa;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: #2e7d32; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-nav a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.header-nav a:hover {
    background: #e8f5e9;
    text-decoration: none;
}

.header-nav .btn-primary {
    background: #2e7d32;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
}

.header-nav .btn-primary:hover {
    background: #1b5e20;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Plans Grid */
.plans-section {
    padding: 3rem 2rem;
}

.plans-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2e7d32;
}

.plans-section .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #2e7d32;
}

.plan-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e7d32;
    margin: 1rem 0;
}

.plan-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}

.plan-card .description {
    color: #666;
    margin-bottom: 1.5rem;
    min-height: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: #2e7d32;
    color: #fff;
}
.btn-primary:hover { background: #1b5e20; }

.btn-secondary {
    background: #e8f5e9;
    color: #2e7d32;
}
.btn-secondary:hover { background: #c8e6c9; }

.btn-danger {
    background: #c62828;
    color: #fff;
}
.btn-danger:hover { background: #b71c1c; }

.btn-outline {
    background: transparent;
    border: 2px solid #2e7d32;
    color: #2e7d32;
}
.btn-outline:hover {
    background: #2e7d32;
    color: #fff;
}

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

/* Forms */
.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-width: 450px;
    margin: 2rem auto;
}

.form-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2e7d32;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2e7d32;
}

/* Alerts */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Profile */
.profile-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.profile-section h3 {
    margin-bottom: 1rem;
    color: #2e7d32;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 0.5rem;
}

.subscription-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-canceled {
    background: #fff3e0;
    color: #e65100;
}

.badge-none {
    background: #f5f5f5;
    color: #999;
}

/* Success / Cancel pages */
.result-page {
    text-align: center;
    padding: 4rem 2rem;
}

.result-page .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.result-page p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: #333;
    color: #ccc;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .header { padding: 0 1rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .plans-grid { grid-template-columns: 1fr; }
    .form-card { margin: 1rem; padding: 1.5rem; }
    .container { padding: 1rem; }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
