/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: transparent; /* Transparent so the fixed matrix shows */
    color: #F1F5F9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* --- Fixed Matrix Background --- */
.matrix-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050505;
    z-index: -1;
    overflow: hidden;
}

.matrix-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cstyle%3Etext %7B font-family: monospace; font-size: 14px; fill: rgba(255, 60, 60, 0.4); letter-spacing: 8px; %7D%3C/style%3E%3Ctext x='0' y='20'%3E0 1 0 1 1 0%3C/text%3E%3Ctext x='0' y='40'%3E1 0 1 0 0 1%3C/text%3E%3Ctext x='0' y='60'%3E0 1 1 0 1 1%3C/text%3E%3Ctext x='0' y='80'%3E1 0 0 1 0 0%3C/text%3E%3Ctext x='0' y='100'%3E0 1 0 1 1 0%3C/text%3E%3Ctext x='0' y='120'%3E1 0 1 0 0 1%3C/text%3E%3C/svg%3E");
    animation: matrix-scroll 15s linear infinite;
    -webkit-mask-image: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%);
    mask-image: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%);
}

@keyframes matrix-scroll {
    0% { background-position: 0px 0px; }
    100% { background-position: 0px 120px; }
}

.matrix-bg-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 0, 0, 0.12) 0%, transparent 100%);
}

/* --- Navigation --- */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background-color: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    height: 80px;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.active {
    background-color: #E63946 !important; /* Theme Red */
    color: #fff !important;
}

/* --- Checkout Container --- */
.checkout-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    width: 100%;
    padding: 120px 20px 60px;
}

.checkout-box {
    background: rgba(17, 20, 29, 0.75); /* Semi-transparent to show matrix */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.checkout-header {
    margin-bottom: 30px;
}

.brand-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.checkout-header h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

/* --- Step Sections --- */
.step-section {
    margin-bottom: 35px;
}

.step-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.step-number {
    background-color: #E63946; /* Theme Red */
    color: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 12px;
}

/* --- Plan Cards (Step 1) --- */
.plan-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plan-card {
    position: relative;
    display: block;
    background: rgba(26, 29, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.plan-card input[type="radio"] {
    display: none;
}

/* Selected Plan styling - Red Theme */
.plan-card input[type="radio"]:checked + .plan-details .radio-custom {
    border-color: #E63946;
    background-color: #11141D;
}
.plan-card input[type="radio"]:checked + .plan-details .radio-custom::after {
    transform: scale(1);
    background: #E63946;
}
.plan-card:has(input[type="radio"]:checked) {
    border-color: #E63946;
    background: rgba(230, 57, 70, 0.05); /* Slight red tint */
}

.plan-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Custom Radio Button */
.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #4B5563;
    position: relative;
    display: inline-block;
    transition: all 0.2s ease;
}

.radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.plan-info h4, .plan-price h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.plan-info p, .plan-price p {
    font-size: 12px;
    color: #9CA3AF;
}

.plan-price {
    text-align: right;
}

/* Best Value Badge - Red Theme */
.plan-card.best-value {
    border-color: #E63946;
}
.badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #E63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* --- Form Details (Step 2) --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.textbox {
    margin-bottom: 18px;
}

.textbox label {
    display: block;
    font-size: 13px;
    color: #D1D5DB;
    margin-bottom: 8px;
}

.textbox input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(22, 26, 35, 0.9);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.textbox input:focus {
    border-color: #E63946; /* Theme Red */
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.field-hint {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-top: 6px;
}

/* --- Summary Box & Button (Step 3) --- */
.summary-box {
    background: rgba(26, 29, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-desc {
    font-size: 13px;
    color: #D1D5DB;
}

.summary-desc strong {
    color: #fff;
    font-weight: 600;
}

.summary-price {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.btn-pay {
    background-color: #E63946; /* Theme Red */
    color: #fff;
    border: none;
    padding: 16px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-pay:hover {
    background-color: #D90429;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.secure-footer {
    text-align: center;
    margin-top: 20px;
}

.secure-footer p {
    font-size: 11px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 10px;
}

.risk-disclaimer {
    color: #4B5563 !important;
}

.login-link {
    text-align: center;
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.login-link a {
    color: #E63946; /* Theme Red */
    font-weight: 600;
}

/* --- Error Handling --- */
.error-banner {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
    color: #FCA5A5;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* --- Email Verification Styles --- */
.input-group {
    display: flex;
    gap: 10px;
}

.get-code-btn {
    padding: 0 15px;
    background-color: rgba(26, 29, 39, 0.8);
    color: #6B7280;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.get-code-btn.shining {
    background-color: #E63946; /* Theme Red */
    color: #ffffff;
    cursor: pointer;
    border-color: #E63946;
    animation: pulse-glow 2s infinite;
}

.get-code-btn.sent {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.3);
    animation: none;
    cursor: not-allowed;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.code-box {
    background: rgba(26, 29, 39, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.code-box input {
    letter-spacing: 5px;
    font-weight: bold;
    text-align: center;
}

.status-msg {
    font-size: 11px;
    color: #10B981;
    margin-top: 8px;
    text-align: center;
}

.hidden {
    display: none;
}

/* --- Login Box Specific Styling for register.css --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 40px;
    overflow-y: auto;
}

.login-box {
    background: rgba(17, 20, 29, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #9CA3AF;
    font-size: 14px;
}

.success-banner {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10B981;
    color: #6EE7B7;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
}