body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 0;
}

nav {
    background: #24292e;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.user-info a {
    color: #aaa;
    margin-left: 1rem;
    text-decoration: none;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #24292e;
    color: white;
}

.login-container {
    text-align: center;
}

/* Social Login Buttons */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin: 10px auto;
    border: 1px solid transparent;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-social img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.btn-google {
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}

.btn-microsoft {
    background: #2f2f2f;
    color: white;
    border: 1px solid #2f2f2f;
}

.btn-microsoft:hover {
    background: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Dashboard */
.scan-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.legal-section {
    /* Container for all blocks */
    margin: 20px 0;
}

.legal-block {
    background: #fff;
    padding: 15px;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.legal-block h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #24292e;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.legal-note {
    font-size: 0.85rem;
    color: #586069;
    margin: 5px 0 0 28px;
    /* Indent to align with text */
    line-height: 1.4;
}

.legal-frame {
    height: 150px;
    overflow-y: auto;
    border: 1px solid #e1e4e8;
    background: #fff;
    padding: 10px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #444;
    line-height: 1.5;
}

.legal-block label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.legal-block input[type="checkbox"] {
    width: auto;
    margin: 0 10px 0 0;
    cursor: pointer;
}

.legal-block input:disabled+span {
    color: #999;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    /* Move up slightly */
    padding: 25px;
    border: 1px solid #888;
    width: 500px;
    /* Wider for instructions */
    border-radius: 8px;
    text-align: left;
    /* Better for reading steps */
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.dns-instructions {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 0.9rem;
}

.dns-instructions ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.dns-details {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 10px;
}

.dns-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dns-row:last-child {
    border-bottom: none;
}

.dns-label {
    font-weight: bold;
    color: #555;
}

.token-code {
    background: #f6f8fa;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    color: #0366d6;
    word-break: break-all;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 8px;
    margin: 5px 0;
    width: 100%;
    /* Use full width of container */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /* Include padding in width */
}


/* Pricing Banner */
.pricing-banner {
    background: #e6ffed;
    border: 1px solid #acf2bd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pricing-text {
    color: #24292e;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2ea44f;
}

.payment-note {
    font-size: 0.85rem;
    color: #586069;
    margin-top: 5px;
}

button {
    background: #0366d6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}


button:hover {
    background: #0255b3;
}

/* Scan Info & Warnings */
.scan-info {
    background: #fff;
    padding: 20px;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    margin: 15px 0 20px 0;
}

.scan-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #24292e;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.scan-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 10px;
}

.scan-info ul {
    font-size: 0.9rem;
    color: #444;
    padding-left: 20px;
    margin-bottom: 15px;
}

.scan-info li {
    margin-bottom: 5px;
}

.warning-box {
    background-color: #fff8c5;
    border: 1px solid #dcb67f;
    /* Yellow border */
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #5c410a;
}

.warning-header {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
    color: #7c5c08;
    font-size: 1rem;
}

.warning-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e1e4e8;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #586069;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    /* Overlap border */
}

.tab-btn:hover {
    color: #24292e;
    background: none;
}

.tab-btn.active {
    color: #0366d6;
    border-bottom: 2px solid #0366d6;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}