* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Theme: Dopamine (Green Accent Default) */
    --bg-top: #52d2b1;
    --bg-bottom: #123e37;
    --card-bg: rgba(14, 49, 44, 0.4);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --divider: rgba(255, 255, 255, 0.08);
    --btn-bg: rgba(16, 52, 47, 0.7);
    --highlight: #28a984;
    --accent: #52d2b1;
    --accent-glow: rgba(82, 210, 177, 0.35);
    --danger: #cfbb6b;
}

/* Theme Accent Variations */
[data-theme="dopamine"], [data-theme="green"] {
    --bg-top: #52d2b1;
    --bg-bottom: #123e37;
    --card-bg: rgba(14, 49, 44, 0.4);
    --btn-bg: rgba(16, 52, 47, 0.7);
    --accent: #52d2b1;
    --accent-glow: rgba(82, 210, 177, 0.35);
    --highlight: #28a984;
}

[data-theme="blue"], [data-theme="deepbluesky"] {
    --bg-top: #4aa3db;
    --bg-bottom: #112839;
    --card-bg: rgba(17, 40, 57, 0.4);
    --btn-bg: rgba(21, 47, 68, 0.7);
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.35);
    --highlight: #0284c7;
}

[data-theme="purple"], [data-theme="ellekit"] {
    --bg-top: #b87ee8;
    --bg-bottom: #2b1139;
    --card-bg: rgba(43, 17, 57, 0.4);
    --btn-bg: rgba(52, 19, 68, 0.7);
    --accent: #c084fc;
    --accent-glow: rgba(192, 132, 252, 0.35);
    --highlight: #9333ea;
}

[data-theme="cyan"] {
    --bg-top: #2dd4bf;
    --bg-bottom: #0f3832;
    --card-bg: rgba(15, 56, 50, 0.4);
    --btn-bg: rgba(18, 68, 61, 0.7);
    --accent: #2dd4bf;
    --accent-glow: rgba(45, 212, 191, 0.35);
    --highlight: #0d9488;
}

[data-theme="pink"] {
    --bg-top: #f472b6;
    --bg-bottom: #3b1227;
    --card-bg: rgba(59, 18, 39, 0.4);
    --btn-bg: rgba(72, 21, 47, 0.7);
    --accent: #f472b6;
    --accent-glow: rgba(244, 114, 182, 0.35);
    --highlight: #db2777;
}

[data-theme="orange"], [data-theme="desertdusk"] {
    --bg-top: #fb923c;
    --bg-bottom: #3d220f;
    --card-bg: rgba(61, 34, 15, 0.4);
    --btn-bg: rgba(72, 40, 18, 0.7);
    --accent: #fb923c;
    --accent-glow: rgba(251, 146, 60, 0.35);
    --highlight: #ea580c;
}

[data-theme="red"], [data-theme="bloodsky"] {
    --bg-top: #f87171;
    --bg-bottom: #3d0f0f;
    --card-bg: rgba(61, 15, 15, 0.4);
    --btn-bg: rgba(72, 18, 18, 0.7);
    --accent: #f87171;
    --accent-glow: rgba(248, 113, 113, 0.35);
    --highlight: #dc2626;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: radial-gradient(circle at 30% 0%, var(--bg-top) 0%, var(--bg-bottom) 70%, #000000 120%);
    background-color: #000;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.8s ease;
    background-attachment: fixed;
}

html {
    height: -webkit-fill-available;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* Visibility classes */
.view-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
.view-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.view-behind {
    transform: scale(0.95);
    opacity: 0.5;
    pointer-events: none;
    filter: blur(2px);
}

/* Header typography hierarchy matching Dopamine reference */
.main-header {
    margin-top: clamp(0.5rem, 3vh, 1.8rem);
    margin-bottom: clamp(1rem, 2.5vh, 1.5rem);
}
.nav-back-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, background 0.18s ease;
}
.version-badge {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--card-border);
}
.logo-title {
    font-size: clamp(2.2rem, 8vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-top: 4px;
    margin-bottom: 2px;
    line-height: 1.1;
}
.subtitle.main-sub {
    font-size: clamp(1.05rem, 3.8vw, 1.25rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    line-height: 1.25;
}
.subtitle.version-sub {
    font-size: clamp(0.82rem, 3vw, 0.95rem);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
}
.subtitle.compat-sub {
    font-size: clamp(0.72rem, 2.6vw, 0.82rem);
    color: var(--text-secondary);
    opacity: 0.85;
    line-height: 1.2;
}

/* Cards / Glassmorphism */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    overflow: hidden;
}

/* Grouped Main Menu - Native Dopamine Card Layout */
.main-menu {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.menu-list {
    list-style: none;
}
.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    min-height: 52px;
    border-bottom: 1px solid var(--divider);
    cursor: pointer;
    transition: background 0.18s ease;
}
.menu-list li:last-child {
    border-bottom: none;
}
.menu-list li:active {
    background: rgba(255, 255, 255, 0.08);
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.menu-item .icon {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
    flex-shrink: 0;
}
.menu-item .icon.accent-icon {
    color: var(--accent);
}
.row-label-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}
.row-title {
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}
.row-title.accent-title {
    font-weight: 600;
    color: var(--accent);
}
.row-sub {
    font-size: clamp(0.7rem, 2.5vw, 0.78rem);
    color: var(--text-secondary);
    line-height: 1.1;
}
.chevron {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Flexible Breathing Space */
.home-spacer {
    flex: 1;
    min-height: 40px;
}

/* Bottom Actions & Jailbreak Button */
.bottom-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}
.status-ready-text {
    font-size: clamp(0.75rem, 2.8vw, 0.85rem);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
    letter-spacing: 0.2px;
}
.primary-btn {
    width: 100%;
    padding: 15px 20px;
    min-height: 52px;
    background: var(--btn-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    font-size: clamp(1rem, 3.8vw, 1.15rem);
    font-weight: 600;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.primary-btn:hover {
    background: rgba(20, 60, 54, 0.85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.primary-btn:active {
    transform: scale(0.985);
    background: rgba(12, 40, 36, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.primary-btn svg {
    width: 18px;
    height: 18px;
}

/* Secondary Screens (Settings, Themes, Packages, Checkout) */
#settings-screen, #theme-screen, #packages-screen, #certificates-screen, #checkout-screen {
    background: var(--bg-bottom); /* Makes it appear opaque */
    padding-top: 3rem;
    z-index: 10;
}
#theme-screen {
    z-index: 20;
}
.sub-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
}
.sub-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    padding: 0 65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-done {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-back {
    position: absolute;
    left: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-back svg {
    width: 20px;
    height: 20px;
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    scrollbar-width: none; /* Firefox */
}
.settings-content::-webkit-scrollbar {
    display: none; /* Chrome */
}

/* Package Card Styles - No Overflow Clipping */
.pkg-card {
    padding: 24px 18px 20px 18px;
    margin-top: 18px;
    border: 1px solid var(--card-border);
    position: relative;
    background: var(--card-bg);
    border-radius: 18px;
    height: auto;
    min-height: auto;
    overflow: visible !important; /* Never clip badges or features */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pkg-card.pkg-recommended {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    box-shadow: 0 0 24px var(--accent-glow);
}

.pkg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    margin-top: 4px;
}

.pkg-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pkg-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pkg-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pkg-recommended .pkg-price {
    color: var(--accent);
}

.pkg-currency {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pkg-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.6px;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pkg-badge-highlight {
    background: var(--accent);
    color: #000;
    border: none;
}

.pkg-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.pkg-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 8px 0;
}

.pkg-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.pkg-btn {
    padding: 14px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 700;
    border-radius: 14px;
    margin-top: auto;
}

.pkg-btn-rec {
    background: var(--accent);
    color: #000;
}

.section-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.section-footer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.5rem 1rem 1.5rem;
    line-height: 1.4;
}

/* List Groups */
.list-group {
    margin-bottom: 1.5rem;
}
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--divider);
    font-size: 0.95rem;
}
.list-item:last-child {
    border-bottom: none;
}
.item-value {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Actions format */
.actions-group {
    display: flex;
    flex-direction: column;
}
.action-btn {
    width: 100%;
    padding: 1rem 1.2rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--divider);
    color: white;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}
.action-btn:last-child {
    border-bottom: none;
}
.action-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}
.clickable:active {
    background: rgba(255, 255, 255, 0.1);
}

/* iOS Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .3s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider {
    background-color: #34c759;
}
input:checked + .slider:before {
    transform: translateX(20px);
}

/* Theme Items */
.theme-item {
    cursor: pointer;
}
.theme-item .check {
    width: 20px;
    height: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}
.theme-item.active .check {
    opacity: 1;
}

/* Console Screen Customizations */
.log-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 5vh;
}
.jb-status {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    font-weight: 500;
}
.jb-status svg {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.console-output {
    flex: 1;
    overflow-y: auto;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(10, 15, 20, 0.75);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.log-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.log-line .timestamp {
    font-size: 0.72rem;
    color: var(--accent);
    opacity: 0.8;
    letter-spacing: 0.5px;
    min-width: 65px;
}

.log-line .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    flex-shrink: 0;
}

.log-line.success {
    color: var(--text-primary);
}

.log-line.success svg {
    color: var(--accent);
}

.log-line.ready-line {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
    text-shadow: 0 0 10px var(--accent-glow);
}

.term-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0 8px 0;
}

.term-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.3s ease;
}

.nav-back-arrow:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.25) !important;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Backdrop Blur & Modal Overlays for Dopamine Flow */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: fadeIn 0.25s ease forwards;
}

.jb-modal-backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.jb-card-container {
    width: 100%;
    max-width: 400px;
    background: rgba(14, 49, 44, 0.7);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    animation: scaleUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    display: flex;
    flex-direction: column;
}

.jb-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

/* Steps List inside Blurred Overlay */
.jb-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.2rem;
    min-height: 220px;
    justify-content: center;
}

.jb-step-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.25s ease;
}

.jb-step-row.active {
    opacity: 1;
    color: var(--text-primary);
    font-weight: 600;
}

.jb-step-row.completed {
    opacity: 0.85;
    color: var(--text-primary);
}

.jb-step-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jb-step-icon .spinner-svg {
    animation: spin 1s linear infinite;
    color: var(--accent);
}

.jb-step-icon .check-svg {
    color: var(--accent);
}

.jb-cancel-slot {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.jb-cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.jb-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Package Manager Selection Cards (Sileo / Zebra) */
.pm-selector-container {
    text-align: center;
}

.pm-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
    margin-bottom: 14px;
}

.pm-option-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pm-option-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.pm-option-card.selected {
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.pm-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.pm-icon-wrapper.sileo-icon {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
    color: #000;
}

.pm-icon-wrapper.zebra-icon {
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    color: #000;
}

.pm-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pm-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pm-radio {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
}

.pm-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-bottom: 16px;
    line-height: 1.3;
}

.pm-continue-btn {
    padding: 14px;
    font-size: 0.95rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border-radius: 14px;
}

/* Set Password Modal Styling (Native iOS/Dopamine Style) */
.pwd-card-container {
    text-align: center;
    max-width: 340px;
    background: rgba(30, 55, 50, 0.85);
    border-radius: 20px;
    padding: 1.25rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.pwd-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.pwd-card-header p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-bottom: 12px;
}

.pwd-input-group {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
}

.pwd-field {
    width: 100%;
    padding: 11px 14px;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.88rem;
    outline: none;
}

.pwd-field:first-child {
    border-bottom: 1px solid var(--divider);
}

.pwd-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.pwd-set-btn {
    margin-top: 6px;
    padding: 12px;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    color: #38bdf8;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    border-top: 1px solid var(--divider);
    border-radius: 0;
}

.pwd-set-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

