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

body {
    font-family: 'Inter', 'Google Sans', sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    min-height: 100vh;
}

header {
    background: #fff;
    padding: 16px 32px;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo-g {
    color: #4285f4;
}

.logo-text {
    color: #1a1a2e;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #5f6368;
    font-size: 16px;
    margin-bottom: 40px;
}

.plans {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 32px;
    width: 340px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.plan-card:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 24px rgba(66, 133, 244, 0.15);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #4285f4;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.premium {
    background: #1a73e8;
}

.plan-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 4px;
}

.plan-speed {
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 20px;
}

.plan-price {
    margin-bottom: 24px;
}

.price {
    font-size: 40px;
    font-weight: 700;
    color: #1a73e8;
}

.period {
    color: #5f6368;
    font-size: 16px;
}

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

.plan-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #3c4043;
    position: relative;
    padding-left: 24px;
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334a853'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.btn-select {
    width: 100%;
    padding: 14px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-select:hover {
    background: #1557b0;
}

/* Checkout page */
.btn-back {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 24px;
    padding: 4px 0;
}

.btn-back:hover {
    text-decoration: underline;
}

#dropin-container {
    max-width: 500px;
    margin: 0 auto;
}

#payment-result {
    text-align: center;
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    margin: 24px auto;
    font-size: 18px;
    font-weight: 600;
}

#payment-result.success {
    background: #e6f4ea;
    color: #1e8e3e;
}

#payment-result.error {
    background: #fce8e6;
    color: #d93025;
}

/* Confirmation screen */
.confirmation-card {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 32px;
}

.confirmation-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.detail-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-section:last-of-type {
    border-bottom: none;
}

.detail-section h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5f6368;
    margin-bottom: 8px;
}

.detail-row {
    font-size: 15px;
    color: #1a1a2e;
    padding: 4px 0;
    line-height: 1.5;
}

.detail-row.empty {
    color: #9aa0a6;
    font-style: italic;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-confirm {
    flex: 1;
    padding: 14px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-confirm:hover {
    background: #1557b0;
}

.btn-cancel {
    padding: 14px 24px;
    background: none;
    color: #5f6368;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: #f8f9fa;
}

.hidden {
    display: none !important;
}

@media (max-width: 720px) {
    .plans {
        flex-direction: column;
        align-items: center;
    }

    .plan-card {
        width: 100%;
        max-width: 400px;
    }

    h1 {
        font-size: 24px;
    }
}
