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

:root {
    --primary: #3b82f6;
    --primary-darker: #163ba5;
    --white: #ffffff;
    --gray-text: #888;
    --background: #1a1a1a;
    --secondary-background: #2a2a2a;
    --border: #404040;
    --secondary-border: #3a3a3a;
    --text: #a0a0a0;
    --secondary-text: #666666;

    --success: #4caf50;
    --error:#f44336;
    --warning: #ff9800;
    --info: var(--primary);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast {
    display: none;
    position: absolute;
    top: 12px;
    width: 380px;
    background: var(--secondary-background);
    color: var(--white);
    border-radius: 8px;
    padding: 16px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content {
    flex: 1;
}

.title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.message {
    font-size: 12px;
}

.close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.close:hover {
    transition: color 0.3s ease-in-out;
    color: var(--white);
}

.header {
    position: absolute;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: var(--secondary-background);
    z-index: 10;
}

.header-content {
    margin: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-right: auto;
}

.logo {
    background-color: var(--primary);
    border-radius: 0.2em;
}

.user-profile {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
}

.user-profile svg {
    top: 0.4em;
    position: relative;
    width: 90%;
    height: 90%;
    fill: currentColor;
    display: block;
}


.user-profile:hover {
    cursor: pointer;
    background-color: var(--primary-darker);
}

.visible {
    display: none;
}

.active {
    background-color: var(--primary-darker);
}

.user-menu-popover {
    position: fixed;
    top: 58px;
    right: 20px;
    width: 240px;
    background: var(--secondary-background);
    color: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    padding: 5px 0;
    z-index: 20;
}

.user-menu-popover .menu-header {
    display: flex;
    align-items: flex-start;
    padding: 5px 14px 10px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.user-menu-popover .menu-user .menu-name {
    font-weight: 700;
    font-size: 14px;
}

.user-menu-popover .menu-user .menu-email {
    font-size: 12px;
    color: var(--text);
}

.user-menu-popover .menu-item {
    display: block;
    width: calc(100% - 28px);
    margin: 13px 14px 8px 14px;
    padding: 12px 16px;
    border: 1px solid var(--white);
    color: var(--white);
    border-radius: 8px;
    background-color: var(--secondary-background);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.user-menu-popover .menu-item:hover,
.user-menu-popover .menu-item:focus {
    background-color: var(--white);
    color: var(--secondary-background);
    outline: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    height: 100%;
    max-width: 400px;
    padding: 10px;
}

.pricing-container {
    padding: 60px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pricing-tiles {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    justify-content: center;
}

.price-tile {
    background-color: var(--secondary-background);
    padding: 20px;
    border-radius: 12px;
    height: 400px;
    width: 250px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.subtitle {
    color: #888;
    font-weight: 500;
    margin-top: 8px;
    margin-bottom: 24px;
}

.payment-container h5 {
    margin-top: 4px;
    margin-bottom: 16px;
    color: var(--gray-text);
}

.payment-container .plan-header {
    margin-bottom: 4px
}

.payment-tile {
    background: var(--secondary-background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    align-items: stretch;
}

.plan-header {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.plan-type {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 18px;
}
.plan-price s {
    color: var(--gray-text);
    font-size: 15px;
}
.plan-after {
    color: var(--gray-text);
    font-size: 13px;
    margin-bottom: 16px;
    margin-top: 2px;
}
.payment-form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 15px;
    color: var(--white);
    margin-bottom: 8px;
}
.payment-input {
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--white);
    font-size: 15px;
    padding: 11px;
    width: 100%;
    box-sizing: border-box;
}
.input-row {
    display: flex;
    gap: 15px;
}
.start-btn {
    background-color: #3069e4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    margin-bottom: 9px;
    margin-top: 32px;
    cursor: pointer;
    transition: background .3s ease-in-out;

}
.start-btn:hover {
    background: #2450a9;
}
.legal-note {
    color: var(--gray-text);
    font-size: 12px;
    text-align: left;
    margin-top: 3px;
    line-height: 1.38;
}

.price-tile {
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 250px;
    min-height: 400px;
}

@media (max-width: 768px) {
    .pricing-tiles {
        flex-direction: column;
        align-items: center;
    }

    .price-tile {
        width: 100%;
        max-width: 400px;
    }
}

.price-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 4px 0;
}

.price-heading h1 {
    margin-right: 8px;
}

.cta-tile {
    border: 1px solid var(--primary);
}

.price-button {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--white);
    color: var(--white);
    border-radius: 8px;
    background-color: var(--secondary-background);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-top: auto;
}

.price-button:hover {
    background-color: var(--white);
    color: var(--secondary-background);
}

.cta-button {
    background-color: var(--primary);
    border: 1px solid var(--primary);
}

.cta-button:hover {
    background-color: var(--primary-darker);
    border: 1px solid var(--primary-darker);
    color: var(--white);
}

.features {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features li {
    display: flex;
    gap: 8px;
    color: var(--white);
    line-height: 1.2;
    font-size: 14px;
    align-items: center;
}

.features li::before {
    content: "✓";
    font-weight: bolder;
    color: var(--primary);
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-top: 1px;
}


.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
}

.google-button svg {
    height: 1em;
    width: 1em;
    vertical-align: middle;
}

.logo span {
    font-size: 20px;
}

.login-form {
    background-color: var(--secondary-background);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.login-form h1 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: var(--text);
    margin-bottom: 32px;
    font-size: 14px;
}

.auth-button {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--secondary-background);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.auth-button:hover {
    background-color: var(--secondary-border);
    border-color: var(--secondary-border);
}

.apple-button {
    font-size: 16px;
}

.google-button {
    font-weight: 600;
}

.divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
    color: var(--text);
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border);
    z-index: 1;
}

.divider span {
    background-color: var(--secondary-background);
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--white);
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.password-header span {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

.forgot-password {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    color: var(--white);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--white);
    font-size: 14px;
}

.form-group input::placeholder {
    color: var(--secondary-text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-text);
}

.login-button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background-color: var(--white);
    color: var(--background);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.2s;
}

.login-button:hover {
    background-color: var(--white);
}

.signup-link {
    text-align: center;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 24px;
}

.signup-link a {
    color: var(--white);
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

.terms {
    text-align: center;
    font-size: 12px;
    color: var(--secondary-text);
    line-height: 1.4;
}

.terms a {
    color: var(--text);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}