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

body.alm-redirect-page {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f2f2f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.alm-redirect-container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e5e5ea;
}

.alm-redirect-header {
    background: #fafafa;
    color: #1c1c1e;
    padding: 28px 32px 20px;
    text-align: center;
    border-bottom: 1px solid #ededed;
}

.alm-redirect-header h1 {
    font-size: 22px;
    margin-bottom: 6px;
    font-weight: 700;
}

.alm-redirect-header p {
    opacity: 0.7;
    font-size: 13px;
}

.alm-redirect-body {
    padding: 26px 28px 22px;
}

.alm-site-info {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.alm-site-icon {
    width: 48px;
    height: 48px;
    background: #e5e5ea;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c1c1e;
    font-size: 22px;
    font-weight: 700;
    margin-right: 14px;
}

.alm-site-details h2 {
    font-size: 17px;
    color: #1c1c1e;
    margin-bottom: 4px;
    font-weight: 700;
}

.alm-site-details span {
    font-size: 13px;
    color: #6b7280;
}

.alm-notice {
    background: #f7f7f7;
    border: 1px solid #ededed;
    padding: 12px 14px;
    margin-bottom: 22px;
    border-radius: 10px;
    font-size: 13px;
    color: #3a3a3c;
}

.alm-url-section {
    margin-bottom: 18px;
}

.alm-url-section h3 {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.alm-url-box {
    background: #f8f8f8;
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 13px;
    color: #1c1c1e;
    word-break: break-all;
    font-family: monospace;
}

.alm-url-box-nocopy {
    user-select: none;
    pointer-events: none;
}

.alm-affiliate-notice {
    background: #f2f5f9;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #3a3a3c;
    border: 1px solid #e5e5ea;
}

.alm-affiliate-notice strong {
    display: block;
    margin-bottom: 4px;
}

.alm-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.alm-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s ease;
}

.alm-btn-primary {
    background: #007aff;
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12);
}

.alm-btn-primary:hover {
    background: #006fe0;
}

.alm-btn-secondary {
    background: #f5f5f7;
    color: #1c1c1e;
    border: 1px solid #e5e5ea;
}

.alm-btn-secondary:hover {
    background: #ebebef;
}

.alm-footer {
    padding: 18px 24px;
    background: #fbfbfd;
    border-top: 1px solid #eee;
}

.alm-security-notice {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    color: #6b7280;
}

.alm-security-notice .alm-icon {
    margin-right: 8px;
    color: #34c759;
}

.alm-countdown {
    text-align: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b7280;
}

.alm-countdown span {
    font-weight: bold;
    color: #007aff;
}

@media (max-width: 540px) {
    .alm-redirect-header {
        padding: 24px 20px;
    }
    
    .alm-redirect-body {
        padding: 24px 20px;
    }
    
    .alm-actions {
        flex-direction: column;
    }
}
