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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #021017;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.card {
    background: #e5e1f4;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a1a2e;
    text-align: center;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d2d44;
}

.subtitle {
    color: #4a4a66;
    margin-bottom: 30px;
    font-size: 1rem;
    text-align: center;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    text-align: center;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    max-width: 241px;
    height: auto;
    border-radius: 8px;
}

.privacy-notice {
    background: #d0cbeb;
    border-left: 4px solid #7c73b8;
    padding: 15px;
    border-radius: 8px;
    margin: 30px 0;
    color: #2d2d44;
    text-align: center;
}

.privacy-notice p {
    margin: 0;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-patreon {
    background: linear-gradient(135deg, #FF424D 0%, #ff6b73 100%);
    color: white;
    max-width: 280px;
    margin: 10px auto 0;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 66, 77, 0.3);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-patreon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-patreon:hover::before {
    left: 100%;
}

.btn-patreon:hover {
    background: linear-gradient(135deg, #e6232f 0%, #ff5560 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 66, 77, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #8a7ec3 0%, #b4a7e8 100%);
    color: white;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    font-size: 16px;
    padding: 14px 28px;
    box-shadow: 0 4px 15px rgba(124, 115, 184, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c73b8 0%, #a399d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 115, 184, 0.5);
}

.btn-secondary {
    background: #4a4a66;
    color: white;
}

.btn-secondary:hover {
    background: #3a3a52;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.logout-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #d0cbeb;
    text-align: center;
}

.login-section {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-section {
    margin: 40px 0;
}

.patreon-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-message {
    background: #fff9e6;
    border: 1px solid #ffe066;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-info {
    background: #d0cbeb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.user-info p {
    margin-bottom: 10px;
    color: #2d2d44;
}

.tier-badge {
    background: #7c73b8;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.owner-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #b8b3d4;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #7c73b8;
    box-shadow: 0 0 0 3px rgba(124, 115, 184, 0.2);
}

.code-result {
    margin-top: 30px;
    padding: 20px;
    background: #d0cbeb;
    border-radius: 8px;
}

.code-display {
    background: white;
    border: 2px dashed #7c73b8;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    word-break: break-all;
    margin: 15px 0;
    color: #1a1a2e;
    letter-spacing: 1px;
}

.code-info {
    margin: 20px 0;
}

.code-info p {
    margin-bottom: 8px;
    color: #2d2d44;
}

.warning-message {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    color: #856404;
}

.verify-result {
    margin-top: 20px;
}

.success-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
}

.success-box h4 {
    margin-bottom: 15px;
}

.success-box p {
    margin-bottom: 8px;
}

.error-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
}

.error-box h4 {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .header {
        text-align: center;
    }

    .code-display {
        font-size: 14px;
    }
}
