@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* ═══════════════════════════════
   DESIGN SYSTEM — CSS VARIABLES
═══════════════════════════════ */
:root {
    --bg:          #F5F0E8;
    --bg-paper:    #F0EBE1;
    --bg-card:     #FFFFFF;
    --green-deep:  #1E4A2E;
    --green-mid:   #2D6A42;
    --green-soft:  #4A8B60;
    --green-pale:  #D4E8DA;
    --green-tint:  #EBF4EE;
    --ink:         #1A1C18;
    --ink-mid:     #3D4038;
    --ink-muted:   #7A7D72;
    --ink-light:   #B0B3A8;
    --accent:      #C8773A;
    --border:      #D8D3C5;
    --shadow:      rgba(30,74,46,0.10);
    --font-head:   'Lora', Georgia, serif;
    --font-body:   'DM Sans', sans-serif;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
}

/* ═══════════════════════════════
   BASE
═══════════════════════════════ */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════
   NAVBAR
═══════════════════════════════ */
.navbar {
    background: var(--green-deep) !important;
    border-bottom: none;
    padding: 14px 16px;
    transition: top 0.3s;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
}

.navbar .logo-mark {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar .logo-mark svg {
    width: 18px;
    height: 18px;
}

.navbar .nav-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    padding: 8px 20px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    margin-left: 8px;
}

.navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.navbar .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px var(--shadow);
    background: var(--bg-card);
}

.navbar .dropdown-item {
    font-size: 14px;
    color: var(--ink-mid);
    padding: 10px 20px;
}

.navbar .dropdown-item:active,
.navbar .dropdown-item:hover {
    background-color: var(--green-tint) !important;
    color: var(--green-deep);
}

.navbar-plus-badge {
    display: inline-block;
    background: rgba(200,144,10,.88);
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: .04em;
    margin-left: 6px;
    vertical-align: middle;
}

.navbar-toggler {
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: var(--radius-sm);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

#sticky-navbar {
    top: -60px;
    transition: top 0.3s;
}

/* ═══════════════════════════════
   HOME INTRO / HERO
═══════════════════════════════ */
.home-intro {
    position: relative;
    width: 100%;
    display: block;
    z-index: 0;
    overflow: hidden;
}

.home-intro::after {
    background: url(/img/header.jpg);
    background-size: cover;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
    content: "";
    background-repeat: no-repeat;
    width: 100%;
    background-position: bottom center;
    filter: blur(2px);
    opacity: 0.9;
}

.home-overlay {
    background: rgba(30, 74, 46, 0.40);
}

.hero-section {
    padding: 72px 24px 64px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}

.hero-section h1 {
    font-family: var(--font-head);
    font-size: 48px;
    line-height: 1.15;
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 36px;
    }

    .hero-section {
        padding: 48px 16px 48px;
    }
}

/* ═══════════════════════════════
   FEATURES GRID
═══════════════════════════════ */
.features-section {
    padding: 56px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.features-section .section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 28px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--green-tint);
    border: 1px solid var(--green-pale);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.feature-title {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    color: var(--green-deep);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Dark variant */
.features-section-dark {
    background: var(--green-deep);
    max-width: none;
    padding: 56px 24px;
}

.features-section-dark .section-label {
    color: rgba(255, 255, 255, 0.4);
}

.features-section-dark .features-grid {
    max-width: 900px;
    margin: 0 auto;
}

.features-section-dark .feature-card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.features-section-dark .feature-card:hover {
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.features-section-dark .feature-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.features-section-dark .feature-title {
    color: #fff;
}

.features-section-dark .feature-desc {
    color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════
   NOTE EDITOR
═══════════════════════════════ */
.note-editor textarea {
    overflow: hidden;
    resize: none;
}

.note-editor-section {
    background: var(--bg);
    padding-bottom: 8px;
}

.note-editor .form-group {
    position: relative;
}

.note-editor .form-control {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.note-editor .form-control:focus {
    border-color: var(--green-soft);
    box-shadow: 0 0 0 3px rgba(74, 139, 96, 0.12);
    z-index: 2;
}

.note-editor .form-control::placeholder {
    color: var(--ink-light);
}

.save-label {
    font-size: 13px;
    color: var(--green-mid);
    font-weight: 500;
}

.save-label i {
    margin-left: 5px;
}

.expand-icon {
    font-size: 13px;
    float: left;
    color: var(--ink-muted);
    width: 20px;
    height: 30px;
    padding-top: 10px;
    transition: color 0.2s;
}

.expand-icon:hover {
    cursor: pointer;
    color: var(--green-deep);
}

.hide-note {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.hide-note:hover {
    background: var(--green-tint);
    border-color: var(--green-pale);
    color: var(--green-deep);
}

.hide-note span {
    position: relative;
    top: 0;
}

.note-meta-area {
    text-align: center;
}

.editor-container {
    padding: 0;
}

.large-editor {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm);
}

.large-editor .ql-editor {
    min-height: 250px !important;
}

/* Quill editor styling */
.ql-editor {
    font-size: 1rem;
    font-weight: 400;
    overflow: hidden;
    min-height: 130px;
    font-family: var(--font-body);
    color: var(--ink-mid);
    line-height: 1.75;
}

.ql-editor p,
.ql-editor span,
.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor h5,
.ql-editor h6 {
    background-color: transparent !important;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3 {
    font-family: var(--font-head);
    color: var(--ink);
}

.ql-editor ul,
.ql-editor ol {
    padding-left: 0 !important;
}

.ql-editor::before {
    font-style: normal !important;
    color: var(--ink-light) !important;
}

.ql-tooltip {
    z-index: 999;
}

.ql-editor a::before,
.ql-editor a::after {
    display: none !important;
}

.ql-editor a {
    white-space: pre-wrap !important;
    color: var(--green-mid) !important;
}

.ql-toolbar.ql-snow {
    padding: 8px !important;
    border: none !important;
    background-color: var(--bg-paper) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.ql-container.ql-snow {
    border: none !important;
}

.ql-snow .ql-stroke {
    stroke: var(--ink-muted) !important;
}

.ql-snow .ql-fill {
    fill: var(--ink-muted) !important;
}

.ql-snow .ql-picker-label {
    color: var(--ink-muted) !important;
}

.ql-snow button:hover .ql-stroke,
.ql-snow .ql-picker-label:hover .ql-stroke {
    stroke: var(--green-deep) !important;
}

.ql-snow button:hover .ql-fill,
.ql-snow .ql-picker-label:hover .ql-fill {
    fill: var(--green-deep) !important;
}

.ql-snow button.ql-active .ql-stroke {
    stroke: var(--green-deep) !important;
}

.ql-snow button.ql-active .ql-fill {
    fill: var(--green-deep) !important;
}

/* Share link button */
.btn-share-link {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink-mid);
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share-link:hover:not(.btn-share-link-disabled) {
    border-color: var(--green-mid);
    color: var(--green-deep);
    background: var(--green-tint);
}

.btn-share-link-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* ═══════════════════════════════
   NOTE LIST
═══════════════════════════════ */
.note-list-container {
    background: var(--bg) !important;
    padding-bottom: 24px;
}

@media only screen and (min-width: 992px) {
    .note-list-container {
        min-height: 320px;
    }
}

@media only screen and (min-width: 1080px) {
    .links-panel {
        min-height: 488px;
    }
}

@media only screen and (min-width: 1080px) {
    .shared-links-container {
        min-height: 613px !important;
    }
}

.note-list-header {
    text-align: center;
    padding-top: 8px;
}

.note-list-header .device-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--green-tint);
    border: 1px solid var(--green-pale);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.note-list-header .device-icon-wrap .oi {
    font-size: 22px;
    color: var(--green-deep);
}

.note-list-header h2 {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--green-deep);
    margin-bottom: 6px;
}

.note-list-header p {
    font-size: 16px;
    color: var(--ink-muted);
}

.note-list-header a {
    color: var(--green-mid);
    font-weight: 500;
    text-decoration: none;
}

.note-list-header a:hover {
    color: var(--green-deep);
    text-decoration: underline;
}

/* Search input */

/* Note list items */
.note-list {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.note-list-item {
    cursor: pointer;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    background: var(--bg-card);
}

.note-list-item:last-child {
    border-bottom: none;
}

.note-list-item:hover {
    background: var(--green-tint);
}

.note-list-item h4 {
    font-family: var(--font-head);
    font-size: 16px;
    color: var(--green-deep);
    margin-bottom: 4px;
}

.note-list-item p {
    font-size: 16px;
    color: var(--ink-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.note-list-item small {
    font-size: 12px;
    color: var(--ink-light) !important;
}

.delete-note {
    font-size: 13px;
    color: var(--ink-light);
    width: 25px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s;
}

.delete-note:hover {
    color: #c0392b;
}

.note-list-item:hover .delete-note {
    visibility: visible;
    opacity: 1;
}

.selected-note-list-item {
    background-color: var(--green-tint) !important;
    border-left: 3px solid var(--green-deep);
}

.selected-note-list-item:hover {
    background-color: var(--green-tint) !important;
}

.search-highlight {
    background-color: rgba(200, 119, 58, 0.2);
    color: var(--accent);
    padding: 1px 3px;
    border-radius: 3px;
}

/* Empty state */
.empty-notes-message {
    padding: 24px;
    text-align: center;
    color: var(--ink-muted);
    font-style: italic;
    font-size: 14px;
}

/* ═══════════════════════════════
   CONVERSION / CTA SECTIONS
═══════════════════════════════ */
.conversion-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    text-align: center;
}

.conversion-section h2 {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 600;
    color: var(--green-deep);
    margin-bottom: 24px;
}

.conversion-section h2 span {
    color: var(--green-mid);
    font-style: italic;
}

.btn-redesign-primary {
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--green-deep);
    color: #fff;
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-redesign-primary:hover {
    background: var(--green-mid);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-redesign-secondary {
    padding: 12px 28px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-mid);
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-redesign-secondary:hover {
    border-color: var(--green-mid);
    color: var(--green-deep);
    text-decoration: none;
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.footer {
    background-color: var(--green-deep) !important;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s;
}

.footer a:hover {
    color: #fff;
}

/* ═══════════════════════════════
   SNACKBARS
═══════════════════════════════ */
#snackbar {
    visibility: visible;
    min-width: 250px;
    margin-left: -125px;
    background-color: var(--green-deep);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    position: fixed;
    z-index: 10;
    left: 50%;
    bottom: 30px;
    font-size: 14px;
    box-shadow: 0 8px 30px var(--shadow);
}

.snackbar-hidden {
    visibility: hidden !important;
    -webkit-animation: fadeout 2.5s 2.5s;
    animation: fadeout 2.5s 2.5s;
}

#share-snackbar {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
    min-width: 250px;
    margin-left: -125px;
    background-color: var(--green-deep);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    position: fixed;
    z-index: 1051;
    left: 50%;
    bottom: 30px;
    font-size: 14px;
    box-shadow: 0 8px 30px var(--shadow);
}

@keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

@-webkit-keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
    from { bottom: 30px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}

@-webkit-keyframes fadeout {
    from { bottom: 30px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}

.undo-button {
    background-color: transparent;
    color: var(--green-pale);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-left: 12px;
    padding: 4px 14px;
    transition: all 0.2s;
}

.undo-button:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════
   SHARE MODAL
═══════════════════════════════ */
.modal-content {
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px var(--shadow);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
    color: var(--green-deep);
}

.modal-body {
    padding: 24px;
}

.modal-body h4 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.modal-body .form-control {
    background: var(--bg-paper);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--green-deep);
}

.modal-body .btn-secondary {
    background: var(--green-deep);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 500;
}

.modal-body .btn-secondary:hover {
    background: var(--green-mid);
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
}

.custom-control-label {
    cursor: pointer;
    font-size: 14px;
    color: var(--ink-mid);
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--green-mid);
    border-color: var(--green-mid);
}

/* ═══════════════════════════════
   AUTH PAGES (Login, Register)
═══════════════════════════════ */
.signin-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: var(--bg);
    height: 100%;
}

.form-signin {
    width: 100%;
    max-width: 380px;
    padding: 15px;
    margin: 0 auto;
}

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 12px 14px;
    font-size: 15px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    color: var(--ink);
}

.form-signin .form-control:focus {
    z-index: 2;
    border-color: var(--green-soft);
    box-shadow: 0 0 0 3px rgba(74, 139, 96, 0.12);
}

.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.form-signin .checkbox {
    font-weight: 400;
}

/* ═══════════════════════════════
   BUTTONS (overriding bootstrap)
═══════════════════════════════ */
.btn-primary {
    background-color: var(--green-deep) !important;
    border-color: var(--green-deep) !important;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.btn-primary:hover {
    background-color: var(--green-mid) !important;
    border-color: var(--green-mid) !important;
}

.btn-secondary {
    background-color: transparent !important;
    border: 1.5px solid var(--border) !important;
    color: var(--ink-mid) !important;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.btn-secondary:hover {
    background-color: var(--green-tint) !important;
    border-color: var(--green-pale) !important;
    color: var(--green-deep) !important;
}

.btn-light {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink-mid);
    font-family: var(--font-body);
    font-weight: 500;
}

.btn-light:hover {
    background: var(--green-tint);
    border-color: var(--green-pale);
    color: var(--green-deep);
}

/* ═══════════════════════════════
   SOCIAL LOGIN
═══════════════════════════════ */
.btn-social i {
    font-size: 18px !important;
}

.btn-social:hover {
    cursor: pointer;
}

/* ═══════════════════════════════
   MISC
═══════════════════════════════ */
.cursor-pointer {
    cursor: pointer;
}


.zero-margin {
    margin: 0 !important;
}

.height-auto {
    height: auto !important;
}

/* ═══════════════════════════════
   ADS
═══════════════════════════════ */
.big-ad {
    display: none;
}

.mobile-ad {
    display: none;
}

.right-side-ad {
    right: 0;
    margin-top: -3px;
}

.left-side-ad {
    left: 0;
    margin-top: -3px;
}

@media screen and (min-width: 1080px) {
    .big-ad {
        display: block;
    }
}

@media screen and (max-width: 1080px) {
    .mobile-ad {
        display: flex;
        justify-content: center;
    }
}

/* ═══════════════════════════════
   SUBSCRIPTION PROMO
═══════════════════════════════ */
/* ─── SUBSCRIPTION BANNER ─── */
.sub-banner {
    background: linear-gradient(90deg, #2e4d2e 0%, #3d6b3d 40%, #2a5028 100%);
    height: 40px;
    position: relative;
    overflow: hidden;
    animation: subBannerSlideDown .4s cubic-bezier(.34,1.2,.64,1);
}

.sub-banner-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@keyframes subBannerSlideDown {
    from { opacity: 0; height: 0; }
    to   { opacity: 1; height: 40px; }
}

.sub-banner-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245,224,160,.08), transparent);
    animation: subBannerShimmer 4s ease-in-out infinite 1s;
    pointer-events: none;
}
@keyframes subBannerShimmer {
    0%   { left: -60%; }
    50%  { left: 130%; }
    100% { left: 130%; }
}

.sub-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sub-banner-star {
    font-size: 14px;
    color: #f5e0a0;
    flex-shrink: 0;
    animation: subBannerStarPop .6s cubic-bezier(.34,1.5,.64,1) .3s both;
}
@keyframes subBannerStarPop {
    from { transform: scale(0) rotate(-30deg); }
    to   { transform: scale(1) rotate(0); }
}

.sub-banner-text {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sub-banner-text strong {
    color: #fff;
    font-weight: 500;
}
.sub-banner-highlight {
    color: #f5e0a0;
    font-weight: 500;
}

.sub-banner-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sub-banner-btn {
    background: linear-gradient(135deg, #c8900a, #e8a820);
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(200,144,10,.3);
    transition: all .2s;
    letter-spacing: .02em;
    text-decoration: none;
}
.sub-banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200,144,10,.4);
    color: #fff;
    text-decoration: none;
}

.sub-banner-dismiss {
    background: none;
    border: none;
    color: rgba(255,255,255,.35);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    transition: color .15s;
}
.sub-banner-dismiss:hover {
    color: rgba(255,255,255,.7);
}
@media (max-width: 576px) {
    .sub-banner-subtitle { display: none; }
}

/* ═══════════════════════════════
   TYPE SWITCHER (Notes / Links)
═══════════════════════════════ */
.type-switcher {
    display: flex;
    gap: 2px;
    background: var(--green-pale);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.type-switcher button {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.type-switcher button.active {
    background: var(--bg-card);
    color: var(--green-deep);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.type-switcher button:hover:not(.active) {
    color: var(--green-mid);
}

/* ═══════════════════════════════
   LINKS PANEL
═══════════════════════════════ */
.links-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.search-bar:focus-within {
    border-color: var(--green-soft);
    box-shadow: 0 4px 16px rgba(30, 74, 46, 0.1);
}

.search-bar .oi {
    color: var(--ink-muted);
    font-size: 16px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--ink-light);
}

.links-collections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--ink-muted);
    font-size: 14px;
}

/* ═══════════════════════════════
   LINK COLLECTION CARD
═══════════════════════════════ */
.link-collection {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.link-collection:hover {
    box-shadow: 0 2px 8px var(--shadow);
}

.link-collection-head {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    gap: 10px;
    background: var(--green-tint);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.link-collection-head:hover {
    background: var(--green-pale);
}

.link-collection-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.link-collection-title {
    flex: 1;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    color: var(--green-deep);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-collection-edit-input {
    width: 100%;
    border: 1.5px solid var(--green-soft);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--green-deep);
    background: var(--bg-card);
    outline: none;
}

.link-collection-tag {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green-mid);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid var(--green-pale);
    white-space: nowrap;
}

.link-collection-btn-edit,
.link-collection-btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-muted);
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.15s;
    display: none;
}

.link-collection-head:hover .link-collection-btn-edit,
.link-collection-head:hover .link-collection-btn-delete,
.link-collection-editing .link-collection-btn-edit,
.link-collection-editing .link-collection-btn-delete {
    display: block;
}

.link-collection-btn-edit:hover {
    color: var(--green-deep);
}

.link-collection-btn-delete:hover {
    color: #c0392b;
}

.link-collection-chevron {
    color: var(--ink-muted);
    font-size: 14px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.link-collection-open .link-collection-chevron {
    transform: rotate(90deg);
}

.link-collection-body {
    padding: 6px 0;
}

/* ═══════════════════════════════
   LINK ROW
═══════════════════════════════ */
.link-row {
    display: flex;
    align-items: center;
    padding: 8px 14px 8px 46px;
    gap: 10px;
    transition: background 0.15s;
}

.link-row:hover {
    background: var(--green-tint);
}

.link-favicon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.link-favicon img {
    width: 16px;
    height: 16px;
    object-fit: cover;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-info a {
    display: block;
    font-size: 13px;
    color: var(--green-deep);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    line-height: 1.4;
}

.link-info a:hover {
    text-decoration: underline;
    color: var(--green-mid);
}

.link-url {
    font-size: 11px;
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-note {
    font-size: 12px;
    color: var(--ink-muted);
    font-style: italic;
    margin-top: 1px;
}

.link-actions {
    display: none;
    gap: 4px;
}

.link-row:hover .link-actions {
    display: flex;
}

.link-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-muted);
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.15s;
}

.link-actions button:hover {
    color: var(--green-deep);
}

.link-actions .del:hover {
    color: #c0392b;
}

/* ═══════════════════════════════
   ADD LINK FORM
═══════════════════════════════ */
.add-link-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 8px 46px;
    color: var(--ink-muted);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s;
}

.add-link-trigger:hover {
    color: var(--green-mid);
}

.add-link-trigger span {
    font-size: 16px;
    line-height: 1;
}

.add-link-form {
    padding: 8px 14px 8px 46px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.add-link-form-row {
    display: flex;
    gap: 6px;
}

.add-link-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
}

.add-link-input:focus {
    border-color: var(--green-soft);
}

.add-link-input::placeholder {
    color: var(--ink-light);
}

.add-link-input-title {
    max-width: 180px;
}

.btn-link-save {
    background: var(--green-deep);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-link-save:hover {
    background: var(--green-mid);
}

.btn-link-save:disabled {
    opacity: 0.5;
    cursor: default;
}

.btn-link-cancel {
    background: none;
    color: var(--ink-muted);
    border: 1.5px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-link-cancel:hover {
    border-color: var(--green-mid);
    color: var(--green-deep);
}

/* ═══════════════════════════════
   NEW COLLECTION FORM
═══════════════════════════════ */
.new-collection-form {
    background: var(--bg-card);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.new-collection-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-collection-form-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.new-collection-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--ink);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
}

.new-collection-input:focus {
    border-color: var(--green-soft);
}

/* ─── Emoji Trigger Button ─── */
.emoji-trigger {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--green-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, transform 0.1s;
    user-select: none;
}

.emoji-trigger:hover {
    border-color: var(--green-mid);
    transform: scale(1.05);
}

.emoji-trigger.open {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 2px var(--green-pale);
}

/* ─── Emoji Picker ─── */
.emoji-picker {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px var(--shadow);
    padding: 14px;
    animation: emojiPickerFadeIn 0.15s ease;
}

@keyframes emojiPickerFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.emoji-picker-search {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink);
    background: var(--bg);
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.emoji-picker-search:focus {
    border-color: var(--green-soft);
}

.emoji-picker-search::placeholder {
    color: var(--ink-light);
}

.emoji-picker-content {
    max-height: 260px;
    overflow-y: auto;
}

.emoji-picker-section {
    margin-bottom: 12px;
}

.emoji-picker-section:last-child {
    margin-bottom: 0;
}

.emoji-picker-section-title {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
    padding-left: 2px;
}

.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.emoji-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.12s, transform 0.1s;
}

.emoji-item:hover {
    background: var(--green-tint);
    transform: scale(1.15);
}

.emoji-item.selected {
    background: var(--green-pale);
    outline: 2px solid var(--green-mid);
    outline-offset: -1px;
}

.emoji-picker-empty {
    font-size: 12px;
    color: var(--ink-muted);
    padding: 8px 2px;
}

.btn-new-collection {
    width: 100%;
    padding: 10px;
    background: none;
    color: var(--ink-muted);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-new-collection:hover {
    border-color: var(--green-mid);
    color: var(--green-deep);
    background: var(--green-tint);
}

.btn-new-collection span {
    font-size: 16px;
    line-height: 1;
}

/* ═══════════════════════════════
   LINK SHARE
═══════════════════════════════ */
.link-collection-btn-share {
    background: var(--green-tint);
    border: 1px solid var(--green-pale);
    cursor: pointer;
    font-size: 11px;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--green-mid);
    padding: 2px 8px;
    border-radius: 99px;
    transition: all 0.15s;
    display: none;
    white-space: nowrap;
}

.link-collection-head:hover .link-collection-btn-share,
.link-collection-editing .link-collection-btn-share {
    display: block;
}

.link-collection-btn-share:hover {
    background: var(--green-pale);
    color: var(--green-deep);
}

.link-share-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
}

.link-share-popup {
    position: relative;
    z-index: 10;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin: 0 14px 8px 14px;
    box-shadow: 0 4px 16px var(--shadow);
}


.link-share-section {
    margin-bottom: 12px;
}

.link-share-section:last-child {
    margin-bottom: 0;
}

.link-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.link-share-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.link-share-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.link-share-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.link-share-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 22px;
    transition: background 0.2s;
}

.link-share-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.link-share-toggle input:checked + .link-share-slider {
    background: var(--green-mid);
}

.link-share-toggle input:checked + .link-share-slider::before {
    transform: translateX(18px);
}

.link-share-url-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.link-share-url-input {
    flex: 1;
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink-muted);
    font-family: var(--font-body);
    min-width: 0;
}

.link-share-copy-btn {
    font-size: 12px;
    padding: 5px 10px;
    background: var(--green-deep);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
    transition: background 0.15s;
}

.link-share-copy-btn:hover {
    background: var(--green-mid);
}

.shared-links-container {
    padding: 32px 0;
    min-height: 60vh;
}

.shared-links-error {
    text-align: center;
    padding: 48px 16px;
    color: var(--ink-muted);
    font-size: 15px;
}

/* ═══════════════════════════════
   LINKS RESPONSIVE
═══════════════════════════════ */
@media (max-width: 576px) {
    .link-row {
        padding-left: 14px;
    }

    .add-link-form {
        padding-left: 14px;
    }

    .add-link-trigger {
        padding-left: 14px;
    }

    .add-link-form-row {
        flex-wrap: wrap;
    }

    .add-link-form-row .btn-link-save,
    .add-link-form-row .btn-link-cancel {
        flex: 1;
    }

    .add-link-input-title {
        max-width: none;
    }
}

/* ═══════════════════════════════
   UPGRADE MODAL
═══════════════════════════════ */
/* ─── UPGRADE MODAL ─── */
.upgrade-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20,36,20,.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: upgradeFadeIn 0.3s ease;
}

@keyframes upgradeFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes upgradeSlideUp {
    from { opacity: 0; transform: scale(.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.upgrade-modal {
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px var(--green-pale),
        0 24px 60px rgba(20,36,20,.22),
        0 4px 12px rgba(20,36,20,.08);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    animation: upgradeSlideUp 0.35s cubic-bezier(.34,1.3,.64,1);
}
.upgrade-modal::-webkit-scrollbar {
    display: none;
}

/* ─── HERO ─── */
.upgrade-hero {
    width: 100%;
    height: 200px;
    background: linear-gradient(145deg, #1e3a1e 0%, #2e5a30 40%, #3d7040 70%, #2a5028 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px 18px 0 0;
}

.upgrade-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
    opacity: .4;
    pointer-events: none;
}

.upgrade-hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: .12;
}
.upgrade-hc1 { width: 220px; height: 220px; background: #a8d8a8; top: -60px; right: -40px; }
.upgrade-hc2 { width: 120px; height: 120px; background: #f5e0a0; bottom: -30px; left: 30px; opacity: .1; }
.upgrade-hc3 { width: 60px; height: 60px; background: #ffffff; top: 30px; left: 60px; opacity: .08; }

.upgrade-hero-svg {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 160px;
    animation: upgradeFloat 4s ease-in-out infinite;
}
@keyframes upgradeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ─── LIMIT BADGE ─── */
.upgrade-limit-badge {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(200,144,10,.9);
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: .06em;
    animation: upgradeBadgePulse 2.5s ease-in-out infinite;
    z-index: 3;
}
@keyframes upgradeBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,144,10,.5); }
    50%      { box-shadow: 0 0 0 6px rgba(200,144,10,0); }
}

.upgrade-plus-badge {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(200,144,10,.88);
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 99px;
    letter-spacing: .06em;
    z-index: 3;
}

/* ─── CLOSE BUTTON ─── */
.upgrade-btn-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: background .15s;
    line-height: 1;
    padding: 0;
}
.upgrade-btn-close:hover {
    background: rgba(255,255,255,.25);
}

/* ─── BODY ─── */
.upgrade-modal-body {
    padding: 26px 28px 28px;
    text-align: left;
}

.upgrade-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: #c8900a;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.upgrade-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 8px;
}
.upgrade-title em {
    font-style: italic;
    color: var(--green-mid);
}

.upgrade-desc {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

/* ─── USAGE BARS ─── */
.upgrade-usage-row {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}
.upgrade-usage-item {
    flex: 1;
    background: var(--green-tint);
    border: 1px solid var(--green-pale);
    border-radius: 10px;
    padding: 10px 12px;
}
.upgrade-usage-item.over {
    background: #fff4e0;
    border-color: #e8c870;
}
.upgrade-usage-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    color: var(--ink-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.upgrade-usage-numbers {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
}
.upgrade-usage-limit {
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-muted);
}
.upgrade-bar-bg {
    height: 5px;
    background: #b8d0b8;
    border-radius: 99px;
    overflow: hidden;
}
.upgrade-usage-item.over .upgrade-bar-bg {
    background: #e8c870;
}
.upgrade-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--green-mid);
    transition: width .6s cubic-bezier(.4,0,.2,1);
}
.upgrade-usage-item.over .upgrade-bar-fill {
    background: #c8900a;
}

/* ─── FEATURES ─── */
.upgrade-features-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    color: var(--ink-muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.upgrade-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
}

.upgrade-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: var(--green-tint);
    border: 1px solid var(--green-pale);
    border-radius: 9px;
    padding: 10px 11px;
}
.upgrade-feature-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
.upgrade-f-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-deep);
    line-height: 1.3;
    margin-bottom: 2px;
}
.upgrade-f-desc {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.4;
    font-family: 'DM Mono', monospace;
}

/* ─── PRICE BLOCK ─── */
.upgrade-price-block {
    background: linear-gradient(135deg, #1e3a1e 0%, #2e5a30 100%);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}
.upgrade-price-block::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(200,144,10,.15);
    border-radius: 50%;
}
.upgrade-price-left {
    flex: 1;
}
.upgrade-price-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,.55);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.upgrade-price-amount {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 2px;
}
.upgrade-price-amount sup {
    font-size: 14px;
    font-weight: 400;
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
    margin-left: 2px;
}
.upgrade-price-period {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: rgba(255,255,255,.5);
}
.upgrade-price-monthly {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: #f5e0a0;
    margin-top: 4px;
}

.btn-upgrade {
    background: linear-gradient(135deg, #c8900a, #e8a820);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 9px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(200,144,10,.35);
    transition: all .2s;
    position: relative;
    z-index: 1;
    text-decoration: none;
    text-align: center;
}
.btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200,144,10,.45);
    color: #fff;
    text-decoration: none;
}
.btn-upgrade:active {
    transform: translateY(0);
}

/* ─── SECONDARY CTA ─── */
.upgrade-secondary-cta {
    text-align: center;
    font-size: 12px;
    color: var(--ink-muted);
}
.upgrade-secondary-cta a {
    color: var(--green-mid);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #b8d0b8;
    padding-bottom: 1px;
    transition: border-color .15s;
    cursor: pointer;
}
.upgrade-secondary-cta a:hover {
    border-color: var(--green-mid);
}
