/* Paperboat Website - Simple Professional Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    background-color: #000000;
    border-bottom: 1px solid #000000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.nav-logo h2 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.75rem 0;
    display: inline-block;
    white-space: nowrap;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-link.active {
    text-decoration: underline;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-info {
    color: #ffffff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.profile-btn {
    background: none;
    border: 1px solid #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.profile-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

.profile-name {
    font-weight: 500;
}

.profile-downloads {
    color: #cccccc;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    border: 1px solid #cccccc;
    padding: 0.75rem;
    background-color: #f9f9f9;
}

.reward-section, .redeem-section {
    margin-bottom: 1.5rem;
}

.reward-btn, .redeem-btn {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.reward-btn:hover:not(:disabled), .redeem-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.reward-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.history-box {
    border: 1px solid #cccccc;
    padding: 0.75rem;
    background-color: #f9f9f9;
}

body.dark-theme .stat-box,
body.dark-theme .history-box {
    background-color: #2a2a2a;
    border-color: #444444;
    color: #ffffff;
}

.settings-dropdown {
    position: relative;
}

.settings-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.settings-btn svg {
    width: 18px;
    height: 18px;
}

.settings-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    min-width: 120px;
    z-index: 100;
    margin-top: 4px;
}

.settings-menu.show {
    display: block;
}

.settings-item {
    padding: 0.375rem 0.75rem;
    color: #000000;
    font-size: 0.875rem;
    cursor: pointer;
}

.settings-item:hover {
    background-color: #f5f5f5;
}

/* Dark theme */
body.dark-theme {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .navbar {
    background-color: #000000;
}

body.dark-theme .page-header {
    border-bottom-color: #333333;
}

body.dark-theme .page-header p {
    color: #cccccc;
}

body.dark-theme .content p {
    color: #ffffff;
}

body.dark-theme .content h2 {
    color: #ffffff;
}

body.dark-theme .content li {
    color: #ffffff;
}

body.dark-theme .footer {
    border-top-color: #333333;
}

body.dark-theme .footer p {
    color: #cccccc;
}

body.dark-theme .extension-desc {
    color: #cccccc;
}

body.dark-theme .legal-consent-checkbox {
    color: #ffffff;
}

body.dark-theme .settings-menu {
    background-color: #2a2a2a;
    border-color: #444444;
}

body.dark-theme .settings-item {
    color: #ffffff;
}

body.dark-theme .settings-item:hover {
    background-color: #3a3a3a;
}

.extensions-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.extensions-search-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.extensions-search-bar {
    display: flex;
    align-items: stretch;
    height: 28px;
}

.extensions-search-input {
    border: 1px solid #cccccc;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    width: 200px;
    border-radius: 4px 0 0 4px;
}

.extensions-search-btn {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    border: 1px solid #666666;
    cursor: pointer;
    background: none;
}

.extensions-search-icon {
    background-color: #666666;
    color: #ffffff;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.extensions-search-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* No Results */
.no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.no-results img {
    width: 120px;
    max-width: 100%;
    margin-bottom: 1rem;
}

.no-results-text {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 0.5rem;
}

.continue-search {
    color: #000000;
    text-decoration: underline;
    font-size: 0.9rem;
}

.continue-search:hover {
    color: #0066cc;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.empty-link {
    color: #000000;
    text-decoration: underline;
    font-size: 0.85rem;
}

.empty-link:hover {
    color: #0066cc;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 100px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Page Content */
.page-header {
    padding: 2rem 0 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: #333333;
    font-size: 0.95rem;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.hero-quote {
    font-size: 1.2rem;
    color: #333333;
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border: 1px solid #000000;
}

.hero-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.home-description {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 0 1rem;
}

.home-description p {
    color: #333333;
    margin-bottom: 0.75rem;
}

.home-verified {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: #ff6b00;
    font-size: 0.8rem;
    font-weight: 500;
}

.home-verified-icon {
    width: 16px;
    height: 16px;
    color: #ff6b00;
}

body.dark-theme .hero-quote {
    color: #cccccc;
}

body.dark-theme .home-description p {
    color: #cccccc;
}

body.dark-theme .hero-btn {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

body.dark-theme .hero-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.content {
    padding: 1.5rem 0;
}

.content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 0.75rem;
    color: #000000;
}

.content ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
}

.content li {
    margin-bottom: 0.25rem;
}

/* Footer */
.footer {
    border-top: 1px solid #e0e0e0;
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer p {
    font-size: 0.85rem;
    color: #333333;
}

/* Extensions Page */
.extension-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.extension-dropdown {
    margin-bottom: 1rem;
    border: 1px solid #cccccc;
}

.extension-dropdown-header {
    width: 100%;
    text-align: left;
    background-color: #f9f9f9;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.extension-dropdown-header:hover {
    background-color: #f0f0f0;
}

.extension-dropdown-content {
    display: none;
    padding: 0.5rem;
}

.extension-dropdown-content.show {
    display: block;
}

body.dark-theme .extension-dropdown {
    border-color: #444444;
}

body.dark-theme .extension-dropdown-header {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.dark-theme .extension-dropdown-header:hover {
    background-color: #3a3a3a;
}

.extension-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.extension-image img {
    width: 64px;
    height: 64px;
    display: block;
    border: 1px solid #e0e0e0;
}

.extension-info {
    flex: 1;
}

.extension-title-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.release-info {
    font-size: 0.7rem;
    color: #666666;
    margin-left: auto;
}

body.dark-theme .release-info {
    color: #aaaaaa;
}

.extension-title-link {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    text-decoration: underline;
}

.extension-title-link:hover {
    color: #0066cc;
}

.extension-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.extension-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.tag-btn {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #666666;
    height: 22px;
}

.tag-hash {
    background-color: #666666;
    color: #ffffff;
    padding: 0 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.875rem;
    font-weight: bold;
}

.tag-text {
    background-color: #888888;
    color: #ffffff;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

.extension-desc {
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 0;
}

.version-dropdown {
    position: relative;
    display: inline-block;
}

.version-btn {
    background-color: #ffc107;
    color: #000000;
    border: 1px solid #b8860b;
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.version-btn:hover {
    background-color: #ffca28;
}

.dropdown-arrow {
    font-size: 0.625rem;
}

.version-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    min-width: 140px;
    z-index: 10;
    top: 100%;
    left: 0;
    margin-top: 2px;
}

.version-option {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.version-option:hover {
    background-color: #f5f5f5;
}

.extension-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.install-wrapper {
    position: relative;
}

.add-btn {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #1e7e34;
    height: 28px;
}

.add-btn.locked {
    pointer-events: none;
    filter: blur(2px);
    opacity: 0.5;
}

.add-icon {
    background-color: #1e7e34;
    color: #ffffff;
    padding: 0 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.add-text {
    background-color: #28a745;
    color: #ffffff;
    padding: 0 0.75rem 0 0.5rem;
    display: flex;
    align-items: center;
}

.add-btn:not(.locked):hover .add-icon {
    background-color: #155724;
}

.add-btn:not(.locked):hover .add-text {
    background-color: #218838;
}

.legal-consent-checkbox {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.legal-consent-checkbox input {
    margin: 0;
}

.verified-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ff6b00;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: underline;
}

.verified-link:hover {
    color: #e55a00;
}

.verified-icon {
    width: 14px;
    height: 14px;
    color: #ff6b00;
}

.legal-link {
    color: #000000;
    text-decoration: underline;
    font-size: 0.75rem;
}

.legal-link:hover {
    color: #0066cc;
}

.extension-separator {
    border: none;
    border-top: 1px solid #000000;
    margin: 0;
}

/* Docs Page */
.install-steps {
    margin: 1rem 0 1.5rem 1.5rem;
}

.install-steps li {
    margin-bottom: 0.5rem;
}

.download-section {
    margin: 1.5rem 0;
}

.download-btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border: 1px solid #000000;
    pointer-events: none;
    opacity: 0.5;
}

.download-btn.unlocked {
    pointer-events: auto;
    opacity: 1;
}

.download-btn.unlocked:hover {
    background-color: #ffffff;
    color: #000000;
}

.legal-container {
    max-height: 200px;
    overflow-y: scroll;
    border: 1px solid #cccccc;
    padding: 1rem;
    background-color: #f9f9f9;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.legal-container p {
    margin-bottom: 0.75rem;
}

.consent-section {
    margin: 1rem 0 2rem 0;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.consent-checkbox input {
    margin-top: 0.25rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    color: #ffffff;
    padding: 0.75rem 1rem;
    z-index: 1000;
}

.cookie-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 0.875rem;
    margin: 0;
}

.cookie-btn {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    padding: 0.375rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.cookie-btn:hover {
    background-color: #f0f0f0;
}

/* Consent Overlay */
.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.consent-modal {
    background-color: #ffffff;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    border: 2px solid #000000;
}

.consent-modal h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.consent-legal-box {
    max-height: 200px;
    overflow-y: scroll;
    border: 1px solid #cccccc;
    padding: 0.75rem;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.consent-legal-box p {
    margin-bottom: 0.5rem;
}

.consent-modal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.consent-modal-checkbox input {
    margin-top: 0.2rem;
}

.consent-accept-btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.consent-accept-btn:hover:not(:disabled) {
    background-color: #ffffff;
    color: #000000;
}

.consent-accept-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.site-content {
    min-height: 100vh;
}

/* Docs Page Enhanced */
.step-box {
    border: 1px solid #cccccc;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: #f9f9f9;
}

.advanced-dropdown {
    margin: 0.75rem 0 1.5rem 0;
}

.advanced-btn {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0;
}

.advanced-btn:hover {
    color: #004499;
}

.advanced-content {
    display: none;
    border: 1px solid #cccccc;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background-color: #f9f9f9;
    font-size: 0.875rem;
}

.advanced-content p {
    margin-bottom: 0.5rem;
}

.api-offline-box {
    border: 1px solid #cccccc;
    padding: 0.75rem;
    background-color: #f9f9f9;
    margin-bottom: 0.5rem;
}

.api-question {
    margin-top: 0.5rem;
}

.api-question-btn {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    padding: 0;
}

.api-question-btn:hover {
    color: #004499;
}

.api-message {
    display: none;
    border: 1px solid #cccccc;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background-color: #f9f9f9;
    font-size: 0.875rem;
}

.api-message p {
    margin-bottom: 0.5rem;
}

body.dark-theme .step-box,
body.dark-theme .advanced-content,
body.dark-theme .api-offline-box,
body.dark-theme .api-message {
    background-color: #2a2a2a;
    border-color: #444444;
    color: #ffffff;
}

body.dark-theme .advanced-btn,
body.dark-theme .api-question-btn {
    color: #66b3ff;
}

body.dark-theme .advanced-btn:hover,
body.dark-theme .api-question-btn:hover {
    color: #99ccff;
}

/* Scripts Page */
.script-item {
    border: 1px solid #cccccc;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background-color: #f9f9f9;
}

.copy-btn {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.copy-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.legal-consent-checkbox a {
    color: inherit;
}

.home-verified-greasy {
    color: #333333;
}

.home-verified-greasy img {
    background-color: #ffffff;
    border-radius: 3px;
    padding: 1px;
}

/* Dark theme (default) */
body.dark-theme {
    color-scheme: dark;
}

body.dark-theme .extensions-search-input {
    background-color: #2a2a2a;
    border-color: #444444;
    color: #ffffff;
}

body.dark-theme .extensions-search-input::placeholder {
    color: #999999;
}

body.dark-theme .extensions-search-btn {
    border-color: #555555;
}

body.dark-theme .extensions-search-icon {
    background-color: #555555;
}

body.dark-theme .extension-title-link {
    color: #ffffff;
}

body.dark-theme .extension-title-link:hover {
    color: #66b3ff;
}

body.dark-theme .extension-image img {
    border-color: #444444;
}

body.dark-theme .extension-separator {
    border-top-color: #333333;
}

body.dark-theme .version-menu {
    background-color: #2a2a2a;
    border-color: #444444;
}

body.dark-theme .version-option {
    color: #ffffff;
}

body.dark-theme .version-option:hover {
    background-color: #3a3a3a;
}

body.dark-theme .legal-link,
body.dark-theme .legal-consent-checkbox a {
    color: #ffffff;
}

body.dark-theme .legal-link:hover,
body.dark-theme .legal-consent-checkbox a:hover {
    color: #66b3ff;
}

body.dark-theme .legal-container,
body.dark-theme .consent-legal-box {
    background-color: #2a2a2a;
    border-color: #444444;
}

body.dark-theme .consent-modal {
    background-color: #1a1a1a;
    border-color: #ffffff;
}

body.dark-theme .consent-accept-btn {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

body.dark-theme .consent-accept-btn:hover:not(:disabled) {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .cookie-banner {
    border-top: 1px solid #444444;
}

body.dark-theme .download-btn {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

body.dark-theme .download-btn.unlocked:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .no-results-text {
    color: #dddddd;
}

body.dark-theme .continue-search,
body.dark-theme .empty-link {
    color: #ffffff;
}

body.dark-theme .continue-search:hover,
body.dark-theme .empty-link:hover {
    color: #66b3ff;
}

body.dark-theme .script-item {
    background-color: #2a2a2a;
    border-color: #444444;
}

body.dark-theme .copy-btn {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

body.dark-theme .copy-btn:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .home-verified-greasy {
    color: #e0e0e0;
}

/* Responsive */
@media (max-width: 640px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-left {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-quote {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .extensions-search {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .extensions-search-input {
        width: 150px;
    }
    
    .extension-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .extension-action {
        align-self: flex-start;
        align-items: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .consent-modal {
        padding: 1rem;
        max-height: 95vh;
    }
}

/* Rounded corners across the UI */
button,
input,
select,
textarea {
    border-radius: 8px;
}

.hero-btn,
.download-btn,
.copy-btn,
.consent-accept-btn,
.cookie-btn {
    border-radius: 8px;
}

.add-btn,
.tag-btn,
.version-btn {
    border-radius: 6px;
}

.extensions-search-input {
    border-radius: 7px 0 0 7px;
}

.extensions-search-btn {
    border-radius: 0 7px 7px 0;
}

.settings-menu,
.version-menu,
.extension-dropdown {
    border-radius: 8px;
    overflow: hidden;
}

.extension-image img {
    border-radius: 8px;
}

.step-box,
.advanced-content,
.api-offline-box,
.api-message,
.legal-container,
.consent-legal-box,
.stat-box,
.history-box,
.script-item {
    border-radius: 8px;
}

.consent-modal {
    border-radius: 12px;
}

/* Toast */
.pb-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%) translateY(0.75rem);
    max-width: min(92vw, 460px);
    padding: 0.6rem 1rem;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 4000;
}

.pb-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body.dark-theme .pb-toast {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
}

/* Cookie gate */
.pb-gate {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.78);
}

.pb-gate[hidden] {
    display: none;
}

.pb-gate-modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 12px;
    text-align: center;
}

.pb-gate-modal h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.pb-gate-modal p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.pb-gate-modal a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.pb-gate-modal a:hover {
    color: #0066cc;
}

.pb-gate-accept {
    width: 100%;
    padding: 0.55rem;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.pb-gate-accept:hover:not(:disabled) {
    background-color: #ffffff;
    color: #000000;
}

.pb-gate-accept:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pb-legal-modal {
    max-width: 560px;
    text-align: left;
}

.pb-legal-modal h2 {
    text-align: center;
}

.pb-legal-scroll {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #cccccc;
    border-radius: 8px;
    padding: 0.75rem;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
}

.pb-legal-scroll p {
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
}

.pb-gate-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.pb-gate-check input {
    margin-top: 0.2rem;
}

.pb-gate-small {
    font-size: 0.75rem;
    margin: 0.75rem 0 0 0;
    text-align: center;
    color: #666666;
}

body.dark-theme .pb-gate-modal {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #ffffff;
}

body.dark-theme .pb-gate-accept {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

body.dark-theme .pb-gate-accept:hover:not(:disabled) {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .pb-legal-scroll {
    background-color: #2a2a2a;
    border-color: #444444;
}

body.dark-theme .pb-gate-small {
    color: #aaaaaa;
}

body.dark-theme .pb-gate-modal a:hover {
    color: #66b3ff;
}

input[type="checkbox"] {
    border-radius: 3px;
}

input[type="radio"] {
    border-radius: 50%;
}
