/* Root Variables */
:root {
    /* Primary Colors - MODRÁ DOMINUJE */
    --primary-navy: #1e3a8a;
    --primary-blue: #3b82f6;
    --primary-sky: #0ea5e9;

    /* Accent - ORANŽOVÁ JEN AKCENT */
    --accent-bitcoin: #f7931a;
    --accent-bitcoin-dark: #e27b0d;

    /* Semantic Colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;

    /* Neutral Colors */
    --gray-900: #1e293b;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;

    /* Text Colors */
    --text-primary: #1e3a8a;
    --text-secondary: #64748b;
    --text-inverse: #ffffff;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --bg-navy: #1e3a8a;

    /* Legacy compatibility */
    --primary: #f7931a;
    --primary-dark: #e27b0d;
    --secondary: #12395a;
    --dark: #0f2b43;
    --text: #333333;
    --light: #f9f9f9;
    --white: #ffffff;
    --border: #e2e2e2;
    --gradient: linear-gradient( 135deg, #1e3a8a 0%, #3b82f6 100% );
    --box-shadow: 0 10px 30px rgba( 30, 58, 138, 0.15 );
}

/* Font Declarations */
@font-face {
    font-family: 'icons-font';
    src: url('../fonts/icons-font.eot');
    src: url('../fonts/icons-font.eot?#iefix') format('embedded-opentype'),
         url('../fonts/icons-font.woff') format('woff'),
         url('../fonts/icons-font.ttf') format('truetype'),
         url('../fonts/icons-font.svg#icons-font') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Alive Confirmation Page */
.alive-confirmation-page {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

.alive-confirmation-page .message-container {
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.alive-confirmation-page .message-container.success {
    background-color: #f0f9ff;
    border: 2px solid var(--primary);
    color: var(--dark);
}

.alive-confirmation-page .message-container.error {
    background-color: #fef2f2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.alive-confirmation-page .icon {
    margin: 0 auto 20px;
}

.alive-confirmation-page .message-container.success .icon {
    color: var(--primary);
}

.alive-confirmation-page .message-container.error .icon {
    color: #ef4444;
}

.alive-confirmation-page .message-container h1 {
    margin: 0 0 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: inherit;
}

.alive-confirmation-page .main-message {
    font-size: 1.1rem;
    margin: 0 0 30px;
    line-height: 1.5;
}

.alive-confirmation-page .next-check-info {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.alive-confirmation-page .actions {
    margin-top: 30px;
}

.alive-confirmation-page .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.alive-confirmation-page .btn-primary {
    background-color: var(--primary);
    color: white;
}

.alive-confirmation-page .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.alive-confirmation-page .message-container.error .btn-primary {
    background-color: #ef4444;
}

.alive-confirmation-page .message-container.error .btn-primary:hover {
    background-color: #dc2626;
}

/* Utility Classes for Show/Hide */
.element-hidden {
    display: none !important;
}

.element-visible {
    display: block !important;
}

.element-inline {
    display: inline !important;
}

.element-relative {
    position: relative !important;
}

/* Heritage - Secrets Section */
.secrets-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.secrets-section p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.secrets-section fieldset {
    margin-bottom: 20px;
}

.secrets-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
}

.info-icon:hover {
    background-color: #0056b3;
}

/* Heritage - Explanation Text */
.explanation-text {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.secrets-section select,
.secrets-section textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.secrets-section textarea {
    resize: vertical;
    min-height: 100px;
}

.hidden {
    display: none;
}

/* Chart legend colors */
.chart-legend-teal { color: rgb(75, 192, 192); }    /* Modrozelená - portfolio hodnota */
.chart-legend-red { color: rgb(255, 99, 132); }     /* Červená - BTC množství */
.chart-legend-orange { color: rgb(255, 165, 0); }   /* Oranžová - zisk/ztráta */

/* Heritage - Form Help */
.form-help {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.form-help .help-icon {
    font-size: 16px;
    margin-top: 2px;
}

.form-help small {
    color: #666;
    font-style: italic;
    line-height: 1.4;
    margin: 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
    background-attachment: fixed;
}

body.dashboard {
    background: var(--light);
    font-size: 14px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    line-height: 1.3;
    font-size: 21px;
    font-weight: 400;
    margin-top: 11px;
    margin-bottom: 11px;
}

/* Main heading that persists across tabs */
h1.main-heading {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 0;
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 500;
}

h1.main-heading.clickable-title {
    cursor: pointer;
    transition: color 0.2s ease;
}

h1.main-heading.clickable-title:hover {
    color: var(--accent);
}

/* Section divider - border that appears after description paragraphs */
.section-divider {
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

h2 {
    font-size: 18px;
    font-weight: 400;
    margin-top: 11px;
    margin-bottom: 11px;
}

p {
    display: block;
    width: 100%;
}

.small {
    font-size: 16px;
}

a, a:hover, a:active, a:visited {
    color: black;
}

a.button, a.button:hover, a.button:active, a.button:visited {
    text-decoration: none;
}

ul {
    padding-inline-start: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

img {
    max-width: 100%;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 5px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    width: 300px;
    text-align: center;
    float: left;
    padding: 14px;
    font-size: 24px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header div.logo a {
    text-decoration: none;
}

header ul li {
    list-style-type: none;
    display: inline;
}

header ul li .symbol {
    color: #4a4a4a;
    margin-right: 5px;
    font-size: 24px;
    font-weight: bold;
}

header ul li.active {
    font-weight: 700;
}

header li.symbol {
    font-size: 24px;
    margin-right: 10px;
    padding: .4rem 1.072rem;
}

header > ul, footer > ul {
    padding: 14px;
    display: flex;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
}

.logo .symbol {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    width: 36px;
    height: 36px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    position: relative;
    text-align: center;
    line-height: 36px;
    font-size: 22px;
}

/* Bitcoin symbol s dvěma vertikálními čarami */
.logo .symbol::before {
    content: "₿";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Menu and Navigation */
/* Desktop menu items */
.menu-items {
    display: flex;
    list-style: none;
    gap: 1rem;
}

/* Hide hamburger and menu-toggle on desktop */
.hamburger, .menu-toggle {
    display: none;
}

.menu-close {
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    z-index: 10001;
    padding: 5px;
    line-height: 1;
    display: none;
}

.menu-close:hover {
    color: #000;
}

/* Buttons and Interactive Elements */
.button, .dialog-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 90px;
}

.button:hover, .dialog-button:hover, .dialog-button:active {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.1);
}

.button.logout, .primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--box-shadow);
    font-weight: 600;
}

.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #ff7e1e 100%);
}

.button.delete {
    color: white;
    background-color: #dc2626;
}

.button.delete:hover {
    color: white;
    background-color: #b91c1c;
}

.button.primary.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100px;
}

/* Icons and Symbols */
.symbol {
    font-family: 'icons-font';
    font-style: normal;
    cursor: pointer;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.symbol.toggle {
    margin-right: 8px;
    font-size: 1.1em;
    user-select: none;
}

.symbol.toggle:hover {
    opacity: 0.7;
}

[class*='icon-']:before {
    display: inline-block;
    font-family: 'icons-font';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Color Classes */
.brown, header ul li:hover .brown, header ul li.active .brown { color: brown; }
.green, header ul li:hover .green, header ul li.active .green { color: green; }
.purple, header ul li:hover .purple, header ul li.active .purple { color: purple; }
.blue, header ul li:hover .blue, header ul li.active .blue { color: blue; }
.yellow, header ul li:hover .yellow, header ul li.active .yellow { color: orange; }
.orange, header ul li:hover .orange, header ul li.active .orange { color: var(--primary); }
.red, header ul li:hover .red, header ul li.active .red { color: red; }
.info { color: blue; cursor: pointer; }

.profit-positive { color: green; }
.profit-negative { color: red; }

/* Forms and Input Elements */
input, textarea {
    font-family: "Work Sans", sans-serif;
    padding: .75rem 1rem;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Override width for checkboxes and radio buttons */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
}

/* Override for wallet and account type radio buttons */
.wallet-types input[type="radio"], 
.account-types input[type="radio"],
.file-types input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    box-shadow: none;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Remove focus styles for wallet and account type radio buttons */
.wallet-types input[type="radio"]:focus, 
.account-types input[type="radio"]:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

select {
    font-family: "Work Sans", sans-serif;
    padding: .75rem 1rem;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label:has(> input[type="radio"]) {
    font-weight: 400;
}

label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}

fieldset {
    clear: both;
    border-top: 1px solid rgba(97, 106, 120, 0.07);
    padding-top: 30px;
    margin-bottom: 1rem;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

fieldset:first-child {
    border-top: none;
    padding-top: 0;
}

input:focus:invalid,
input:invalid:user-invalid {
    border-color: #f1646c;
    box-shadow: none;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    /* Enable browser spinners */
    -webkit-appearance: auto;
    -moz-appearance: number-input;
    appearance: auto;
}

/* Ensure spinner buttons are visible */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: auto;
    opacity: 1;
}

.input-explanation {
    font-size: 0.8rem;
    color: #4a5568;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Heir List Container */
#heir-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.heir-item .heir-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.heir-item .heir-icon {
    font-size: 2rem;
    color: #6c757d;
}

.heir-item .heir-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: #212529;
    flex-grow: 1;
}
.heir-item .heir-asset-count {
    background: #0066cc;
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
}

.sharing-symbol {
    position: absolute; 
    top: 3px; 
    left: 3px; 
}


.heritage-symbol {
    position: absolute; 
    top: 3px; 
    right: 3px; 
}

/* Sharing and Inheritance layout styles */
.sharing-inheritance-layout {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.sharing-inheritance-box {
    flex: 1;
    min-width: 280px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: none;
}

/* V editačním kontextu vždy zobrazit sharing-inheritance boxy */
.wallet-edit-info .sharing-inheritance-box {
    display: block;
}

.sharing-inheritance-box h3 {
    margin-top: 0;
    color: #555;
}

.shared-person-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.sharing-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

/* Heir status positioned between name and email */
.heir-detail .heir-status {
    margin: 10px 0;
    padding: 8px 0;
}

.sharing-action-link {
    margin-left: 10px;
    color: #007cba;
}

.heir-person-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.instructions-level {
    font-size: 14px;
    color: #666;
}

/* Form section layout */
.sharing-heir-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.sharing-section, .heir-section {
    flex: 1;
    min-width: 280px;
}

/* Section separators */
.section-separator {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

/* Hidden elements */


/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    background: linear-gradient( 135deg, #1e3a8a 0%, #3b82f6 100% );
    color: var(--white);
    position: relative;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 4rem;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    transform: skewY( -2deg );
    transform-origin: bottom left;
}

.hero-content {
    max-width: 550px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hp .hero h2 {
    font-size: 1.5rem;
    color: #e0e7ff;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #e0e7ff;
}

.hero-image {
    flex: 0 0 45%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Homepage Sections */
body.hp section {
    padding: 5rem 5%;
}

.hp section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.hp .hero-content h2 {
    text-align: left;
}

.benefits {
    background-color: var(--white);
}

.vision {
    background-color: var(--secondary);
    color: var(--white);
}

.how-it-works {
    background-color: var(--light);
}

.hp .vision h2 {
    color: var(--white);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.1 );
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
    color: var(--gray-900);
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* BitPlatby Homepage Feature Cards */
.feature-card.transparent {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.feature-card.transparent h3 {
    color: var(--primary);
}

/* BitPlatby Homepage Utilities */
.centered-margin {
    text-align: center; 
    margin-top: 2rem;
}

.fee-note {
    font-size: 0.8em; 
    color: #666; 
    margin-top: 0.5rem;
}

.button.inverse {
    background: var(--accent-bitcoin);
    color: white;
    border-color: var(--accent-bitcoin);
}

/* Steps Section */
.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.step {
    flex: 0 0 30%;
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.step-number {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX( -50% );
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: var(--primary-navy);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.75rem;
    font-family: 'Inter', sans-serif;
}

/* Pricing Section */
.pricing {
    background: var(--white);
    text-align: center;
}

.pricing-boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    gap: 2rem;
}

.pricing-box {
    flex: 0 0 30%;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--gray-100);
    box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.1 );
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-highlight {
    font-size: 2.625rem;
    font-weight: 800;
    color: var(--success);
    margin: 1.25rem 0;
}

/* FAQ Section */
.faq {
    background: var(--light);
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--primary-navy);
    font-size: 1.125rem;
}

/* CTA Section */
.cta {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 4rem 5%;
}

.hp .cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

/* Footer Styles */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 16px;
}

footer ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

footer ul li a, footer ul li a:hover, footer ul li a:visited, footer ul li a:active {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer ul li a:hover {
    opacity: 1;
}

/* Main Content Section */
section.main {
    min-height: 75vh;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

section.main.textblock {
    max-width: 800px;
    padding: 3rem 5%;
    background: var(--white);
    border-radius: 10px;
    margin-top: 20px;
}
.textblock p, .textblock ul {
    margin-bottom: 1.5rem;
}
.textblock p, .textblock li {
    margin-bottom: 0.5rem;
}

/* Nested Numbered List (obchodni podminky apod.) */
ol.nested {
    counter-reset: section;
    list-style-type: none;
    padding-left: 0;
}

ol.nested > li {
    counter-increment: section;
    margin-bottom: 1.5rem;
}

ol.nested > li::before {
    content: counter(section) ".";
    display: inline-block;
    width: 2em; /* Adjust width as needed */
}

ol.nested ol {
    counter-reset: subsection;
    list-style-type: none;
    padding-left: 1.5em; /* Odsazení pro vnořené seznamy */
    margin-top: 1.5rem;
}

ol.nested ol > li {
    counter-increment: subsection;
}

ol.nested ol > li::before {
    content: counter(section) "." counter(subsection);
    display: inline-block;
    width: 2.5em; /* Adjust width as needed */
}

ol.nested ul {
    padding-left: 20px;
}

/* Sidebar and Layout */
aside {
    background-color: #f9f9f9;
    position: absolute;
    left: 0;
    top: 0;
    min-height: 100%;
    z-index: 10;
    width: 230px;
    border-right: 1px solid rgba(23, 25, 28, 0.06);
}

aside div.logo {
    width: 100%;
    text-align: center;
    height: 100px;
    font-weight: bold;
    font-style: normal;
    font-size: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

aside div.logo .symbol {
    font-size: 48px;
}

/* Utility Classes */
.right {
    float: right;
}

.pull-right {
    float: right;
}

.text-center {
    text-align: center;
    padding: 10px 0;
}

.disabled, .hidden {
    display: none !important;
}

/* Tab Navigation */
section.tab {
    display: none;
    padding: 15px 30px 0px;
}

section.tab.active {
    display: block;
}

.tab > .section > .button.right {
    margin-right: 10px;
}

/* Table Styles */
:is(tbody, table) > tr:nth-child(odd) {
    background: #0001;
}

table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    font-weight: bold;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
}

th, td {
    border: 0;
    padding: 0;
    margin: 0;
    padding-right: 10px;
    word-break: break-all;
}

td.align-right, th.align-right { text-align: right; }
td.align-center, th.align-center { text-align: center; }
tr.sum { font-weight: bold; }
td .symbol { margin-right: 10px; }
#conversion-plan td .symbol { margin-right: 0; }

/* Two-level fiat payments table */
#fiat-payment-list .date-group-row {
    background-color: #f5f5f5;
    font-weight: bold;
}

#fiat-payment-list .date-group-row[data-expanded="false"] {
    opacity: 0.3;
    color: #666;
}

#fiat-payment-list .payment-detail-row td.indent {
    padding-left: 30px;
}

#fiat-payment-list .payment-detail-row {
    background-color: #ffffff;
}

#fiat-payment-list .total-row {
    border-top: 2px solid #333;
    font-weight: bold;
}

#fiat-payment-list td .symbol {
    margin-right: 0;
}

.wallet-name .symbol {
    margin-right: 10px;
}

/* Tabs and Cards */
.tab .account, .tab .wallet-edit, .tab .wallet-edit-info, .tab .wallet-edit-addresses, .tab .heir-edit, #account-edit,
.tab .wallet-detail, .tab .heir-detail, #account-detail,.tab > section,
.tab .payment-detail, .tab .btc-transactions,
.tab .transactions, .tab .inheritance-settings-edit {
    border: 1px solid #f7f7f7;
    padding: 20px;
    background-color: white;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.tab .account .symbol {
    margin-right: 16px;
    color: #4a5568;
    font-size: 32px;
}

.tab .symbol.delete {
    color: red;
}

.tab .symbol.create {
    color: green;
}

.tab .account .symbol:hover, 
.tab .wallet:hover .symbol {
    color: black;
}

.tab .symbol.right {
    margin-right: 16px;
    cursor: pointer;
    font-size: 18px;
}

/* Unified Item Grid System */
.item-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.grid-item {
    display: inline-block;
    height: 170px;
    min-width: 170px;
    max-width: 250px;
    margin: 10px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all .25s ease-in-out;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.grid-item:hover {
    background-color: #ebf3f5;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.grid-item .symbol {
    font-size: 64px;
    margin-right: 0;
    display: block;
    margin-bottom: 10px;
}

.grid-item.add .symbol {
    font-weight: 700;
    color: #28a745;
}

.grid-item .wallet-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 0 10px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Wallet alert icons */
.wallet-alert-icons {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.wallet-alert-icons .alert-icon {
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-alert-icons .clock-icon {
    /* Clock icon positioned on the left */
}

.wallet-alert-icons .bell-icon {
    /* Bell icon positioned on the right */
}


/* Account type symbol (top-left corner) */
.account-symbol {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.7rem;
    background: rgba(255,255,255,0.9);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Account name styling */
.account-name {
    font-size: 18px;
    font-weight: 600;
    margin: 5px 0;
    text-align: center;
    color: #333;
}

/* Profit colors */
#account-list .account .profit-positive {
    color: #28a745;
}

#account-list .account .profit-negative {
    color: #dc3545;
}

/* Legacy selectors for backward compatibility */
.wallets, #heir-list, #account-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.wallets .wallet, 
.wallets .asset-item,
#account-list .account,
#heir-list .heir-item,
.account.add {
    display: inline-block;
    width: 150px;
    height: 150px;
    margin: 10px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all .25s ease-in-out;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wallets .wallet:hover, 
.wallets .asset-item:hover,
#account-list .account:hover,
#heir-list .heir-item:hover {
    background-color: #ebf3f5;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wallets .wallet .symbol,
.wallets .asset-item .symbol,
#heir-list .heir-item .symbol,
#account-list .account .symbol,
.account.add .symbol {
    margin-right: 0;
    display: block;
    margin-bottom: 10px;
}

.wallet.add .symbol, .account.add .symbol {
    font-weight: 700;
    color: #28a745;
}

.wallets .wallet .wallet-name,
.wallets .asset-item .wallet-name,
.wallets .asset .asset-name,
#heir-list .heir-item .wallet-name,
#account-list .account .wallet-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 0 10px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}



/* Asset count badge for heirs */
.asset-count-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
}

/* Composite Wallet Symbol */
.composite-wallet-symbol {
    position: relative;
    display: inline-block;
    font-family: 'icons-font';
    font-size: 64px;
    margin-right: 0;
    margin-bottom: 10px;
    margin-top: -10px;
}

.main-wallet-symbol {
    display: block;
    font-size: 64px;
    color: #4a5568;
    font-family: 'icons-font';
}

.wallet-type-index {
    position: absolute;
    top: 60%;
    left: 60%;
    display: block;
    font-size: 28px;
    color: #f7931a;
    font-family: 'icons-font';
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
}

.composite-wallet-symbol.breadcrumb {
    font-size: 20px;
}

.composite-wallet-symbol.breadcrumb .main-wallet-symbol {
    font-size: 20px;
}

.composite-wallet-symbol.breadcrumb .wallet-type-index {
    font-size: 12px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    top: 2px;
    right: 2px;
    left: auto;
}

/* Asset icons - social media */
.asset-item .social-icon {
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.asset-item .social-icon.facebook {
    background-image: url('/i/facebook.svg');
}

.asset-item .social-icon.x-com {
    background-image: url('/i/x.svg');
}

.asset-item .social-icon.linkedin {
    background-image: url('/i/linkedin.svg');
}

.asset-item .social-icon.youtube {
    background-image: url('/i/youtube.svg');
}

/* Sharing indicator for shared assets */
.sharing-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    color: #007bff;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.shared-item {
    border: 2px solid #007bff !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%) !important;
}

.shared-item:hover {
    border-color: #0056b3 !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f0ff 100%) !important;
}

.wallet-addresses-section .addresses-container {
    display: flex;
    justify-content: space-between;
    word-break: break-all;
    gap: 2rem;
    align-items: flex-start;
}

.wallet-addresses-section .addresses-list {
    flex: 1;
}

.wallet-addresses-section .wallet-addresses {
    width: 100%;
}

.wallet-addresses-section .address-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.wallet-addresses-section .address-item:hover {
    background-color: #f5f5f5;
}

.wallet-addresses-section .address-item.active {
    background-color: #e3f2fd;
    border-left: 3px solid var(--primary);
    padding-left: calc(0.5rem - 3px);
}

.wallet-addresses-section .qr-container {
    flex: 1;
    text-align: center;
}

.wallet-addresses-section .qr-container img {
    height: auto;
}

#account-detail .account-type.symbol {
    font-size: 32px;
}

#account-list {
    display: flex;
    justify-content: space-around;
}

#account-list .account h2.balance, 
#account-detail .wallets h2.balance {
    font-weight: bold;
}

#account-list .account .profit-total {
    text-align: center;
    font-size: 1.1rem;
}

#account-list .account .profits {
    display: flex;
}

#account-list .account .profits div {
    flex-basis: 33%;
    font-size: 0.9rem;
    padding: 0;
    margin: 0;
}

#totalBalance {
    font-weight: bold;
}

/* Wallet Types and Account Types */
.wallet-types, .account-types, .file-types, .provider-types {
    font-family: 'icons-font';
    color: #4a5568;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.wallet-types input[type="radio"], 
.account-types input[type="radio"],
.file-types input[type="radio"],
.provider-types input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: none;
}

.wallet-types div:has(input[type="radio"]:checked), 
.account-types div:has(input[type="radio"]:checked),
.file-types div:has(input[type="radio"]:checked),
.provider-types div:has(input[type="radio"]:checked) {
    background-color: #ebf3f5;
    color: black;
}

.wallet-types input[type="radio"] + label, 
.wallet-types input[type="radio"]:checked + label,
.account-types input[type="radio"] + label, 
.account-types input[type="radio"]:checked + label,
.file-types input[type="radio"] + label, 
.file-types input[type="radio"]:checked + label,
.provider-types input[type="radio"] + label, 
.provider-types input[type="radio"]:checked + label {
    font-size: 64px;
    cursor: pointer;
    text-align: center;
}

/* Social media icons in provider selection */
.provider-types .social-icon {
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.provider-types .social-icon.facebook {
    background-image: url( '/i/facebook.svg' );
}

.provider-types .social-icon.x-com {
    background-image: url( '/i/x.svg' );
}

.provider-types .social-icon.linkedin {
    background-image: url( '/i/linkedin.svg' );
}

.provider-types .social-icon.youtube {
    background-image: url( '/i/youtube.svg' );
}

.wallet-types input[type="radio"]:checked + label, 
.account-types input[type="radio"]:checked + label,
.file-types input[type="radio"]:checked + label,
.provider-types input[type="radio"]:checked + label {
    color: navy;
}

#wallet-edit .wallet-type, 
#account-edit .account-type,
.file-type,
.provider-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    flex: 1;
    min-width: 0;
}

#wallet-edit .wallet-type:hover, 
#account-edit .account-type:hover,
.file-type:hover,
.provider-type:hover {
    color: black;
}

.wallet-type .wallet-type-name, 
.wallet-types .wallet-type-description,
.account-type .account-type-name, 
.account-types .account-type-description,
.file-type .file-type-name, 
.file-types .file-type-description,
.provider-type .provider-type-name, 
.provider-types .provider-type-description {
    font-family: 'Work Sans';
    margin-top: 10px;
    text-align: center;
}

.wallet-type .wallet-type-name,
.account-type .account-type-name,
.file-type .file-type-name,
.provider-type .provider-type-name {
    font-weight: bold;
}

.wallet-type .wallet-type-description,
.account-type .account-type-description,
.file-type .file-type-description,
.provider-type .provider-type-description {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Payments and Transactions */
#tab-payments .payments {
    display: flex;
}

#tab-payments .payments .regular-transactions {
    flex-basis: 60%;
}

#tab-payments .payments .transaction-balance {
    flex-basis: 40%;
    text-align: center;
}

#tab-payments .payments .transaction-balance .qr, 
.hot-wallet-qr {
    background-color: white;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    margin-bottom: 10px;
}

#tab-payments .payments .transaction-balance .qr img, 
.hot-wallet-qr img {
    width: 200px;
    height: 200px;
}

.tab .payment-detail {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.payment-detail .explanation {
    background-color: #1ecab8;
    color: white;
    padding: 10px 20px;
}

#tab-payments-setup {
    text-align: center;
}

.btc-transactions {
    margin-top: 10px;
}

/* Inactive payment styling */
.inactive-payment {
    opacity: 0.6;
}

.inactive-payment td {
    color: #666;
}

/* Fee payment styling */
.fee-payment {
    background-color: #fff8e7;
    border-left: 4px solid var(--primary);
}
.fee-payment td {
    font-style: italic;
    color: var(--secondary);
}
.fee-payment:hover {
    background-color: #fff3d4;
}

/* Unfunded Fee Warning Box */
.warning-box {
    background-color: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #dc2626;
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
}

.warning-content strong {
    color: #dc2626;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.warning-content p {
    margin: 0;
    line-height: 1.5;
}

/* Info Box (for onetime payment eligibility) */
.info-box {
    background-color: #f0f7ff;
    border: 1px solid #b3d4fc;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.info-box ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.info-box li {
    margin: 5px 0;
}

.btc-transactions .symbol {
    margin-left: 10px;
}

/* Settings and Admin */
#tab-settings section.payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#tab-settings section.payments section {
    flex-basis: 430px;
}

#tab-settings section.payments section > label {
    margin-top: 20px;
}

.radiogroup {
    margin-left: 20px;
}

#tab-settings section.payments section .explanation {
    font-size: 0.8rem;
    color: #4a5568;
}

input[name="mailing-low-balance"]:not(:checked) + .radiogroup {
    pointer-events: none;
    opacity: 0.5;
}

input[name="mailing-low-balance"]:not(:checked) + .radiogroup input[type="radio"] {
    cursor: not-allowed;
}

#tab-admin .conversion-plan {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#tab-admin .conversion-plan .conversion-plan-table {
    flex-basis: 50%;
}

.box-hot-wallet {
    padding: 0 40px;
    background-color: #f9f9f9;
    border-bottom: 1px solid rgba(23, 25, 28, 0.06);
    height: fit-content;
}

.box-hot-wallet h1 {
    text-align: center;
}

.box-hot-wallet .center {
    text-align: center;
    padding: 20px 0;
}

.from-to {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 40px;
    width: 100%;
}

.balance {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

#hot-wallet-amount {
    width: 130px;
}

#user-list .symbol {
    font-size: 1.2rem;
}

/* Unfunded users highlighting in admin */
#user-list .unfunded-user,
#user-list-short .unfunded-user {
    background-color: #fef2f2 !important;
    border-left: 4px solid #ef4444;
}

#user-list .unfunded-user td,
#user-list-short .unfunded-user td {
    color: #dc2626;
}

/* Keep balance green even for unfunded users */
#user-list .unfunded-user td.green,
#user-list-short .unfunded-user td.green {
    color: #16a34a !important;
}

/* Unsubscribed users styling - gray text */
#user-list .unsubscribed,
#user-list-short .unsubscribed {
    color: #6b7280;
}

#user-list .unsubscribed td,
#user-list-short .unsubscribed td {
    color: #6b7280;
}

#user-list .unsubscribed td a,
#user-list-short .unsubscribed td a {
    color: #6b7280 !important;
}

/* Keep balance green even for unsubscribed users */
#user-list .unsubscribed td.green,
#user-list-short .unsubscribed td.green {
    color: #16a34a !important;
}

/* Paused users styling - muted gray with strikethrough */
#user-list .paused-user,
#user-list-short .paused-user {
    opacity: 0.5;
}

#user-list .paused-user td,
#user-list-short .paused-user td {
    color: #9ca3af;
    text-decoration: line-through;
}

#user-list .paused-user td a,
#user-list-short .paused-user td a {
    color: #9ca3af !important;
    text-decoration: line-through;
}

/* Keep balance green even for paused users */
#user-list .paused-user td.green,
#user-list-short .paused-user td.green {
    color: #16a34a !important;
}

/* Hide paused users when filter active */
#user-list.hide-paused .paused-user {
    display: none;
}

/* Hide no-balance users when filter active */
#user-list.hide-no-balance .no-balance {
    display: none;
}

/* Show only paying users when filter active */
#user-list.paying-only .non-paying {
    display: none;
}

/* Show only users with payments when filter active */
#user-list.with-payments-only .no-active-payments {
    display: none;
}

/* Admin filter toggle */
.admin-filter {
    margin: 0.5rem 0;
}

.admin-filter span {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.admin-filter span.active {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

.balance-needed p {
    text-align: center;
}

.balance-needed ul {
    list-style-type: none;
    padding-left: 0;
    justify-content: space-around;
    width: 100%;
    display: flex;
}

/* Dialog and Notifications */
.custom-dialog {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.dialog-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 360px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.dialog-input {
    width: 100%;
    padding: 10px;
    margin: 0 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: color 0.3s;
}

.dialog-close:hover {
    color: #2563eb;
}

.dialog-button-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.notification {
    display: block;
    position: relative;
    top: 100px;
    left: 100px;
    min-height: 50px;
    background: #1ecab8;
    max-width: 600px;
    color: white;
    border-radius: 4px;
    font-size: 12px;
}

.notification .dialog-close, 
.notification .dialog-close:hover {
    color: white;
    font-size: 14px;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e2e3e5;
    border-radius: 5px;
    padding: 5px 20px;
    font-size: 14px;
    color: #383d41;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
    pointer-events: none;
    white-space: pre-wrap;
    z-index: 10;
    width: 300px;
    visibility: hidden;
}

.tooltip-content.show {
    opacity: 1;
    visibility: visible;
}

/* Messages */
.msg.error {
    color: red;
}

.msg.success {
    color: green;
}

/* Info Icon */
.info-icon {
    cursor: pointer;
    margin-left: 8px;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.info-icon:hover {
    opacity: 1;
}

/* Calendar Info Screen */
.calendar-info-screen {
    max-width: 400px;
    margin: 0 auto;
}

/* Main Timeline Visualization */
.calendar-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient( 135deg, #f0f9ff 0%, #e0f2fe 100% );
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba( 30, 58, 138, 0.1 );
}

.timeline-step {
    flex: 1;
    text-align: center;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow( 0 2px 4px rgba( 0, 0, 0, 0.1 ) );
}

.step-icon.freeze {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale( 1 ); }
    50% { transform: scale( 1.1 ); }
}

.step-day {
    font-weight: 700;
    color: var( --primary-navy );
    font-size: 16px;
    margin-bottom: 8px;
}

.step-label {
    font-size: 13px;
    color: var( --text-secondary );
    font-weight: 500;
}

.timeline-arrow {
    font-size: 32px;
    color: var( --primary-blue );
    margin: 0 8px;
    font-weight: bold;
}

/* Calendar Text */
.calendar-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var( --text-primary );
}

/* Mobile Responsive */
@media ( max-width: 768px ) {
    .calendar-timeline {
        flex-direction: column;
        gap: 16px;
        padding: 20px 16px;
    }

    .timeline-arrow {
        transform: rotate( 90deg );
        margin: 0;
    }

    .timeline-step {
        width: 100%;
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 5% 4rem;
        min-height: auto;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-image {
        flex: 0 0 100%;
        max-width: 600px;
    }
    
    .step {
        flex: 0 0 100%;
    }
    
    header {
        z-index: 999;
    }
    
    section .tab {
        padding: 0;
    }
    
    #account-list, .wallets {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    
    header .logo {
        font-size: 24px;
        width: 60px;
        margin-top: 5px;
    }
    
    .tab section div.right {
        float: right;
        width: 100%;
        text-align: right;
    }
    
    aside {
        display: none !important;
    }
    
    section.main {
        margin-left: 0 !important;
        position: relative;
        z-index: 99;
    }
    
    .wallet-addresses-section .addresses-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hamburger-menu {
        display: block;
        position: relative;
    }

    .menu-toggle {
        display: none;
    }

    .hamburger {
        cursor: pointer;
        font-size: 30px;
        user-select: none;
        width: 30px;
        padding: 10px;
        display: inline-block;
        float: right;
        z-index: 9999;
        position: relative;
    }
    
    .menu-items {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
        z-index: 10000;
        left: 10px;
    }
    
    .menu-items li {
        padding: 16px 20px;
        text-align: left;
        display: block;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .menu-items li:hover {
        background-color: #f1f5f9;
        color: #1e3a8a;
    }
    
    .menu-toggle:checked + .hamburger + .menu-items {
        display: block;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        z-index: 10000;
        padding-top: 60px;
    }

    .menu-close {
        display: block !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 3%;
    }


    section {
        padding: 3rem 3%;
    }

    .pricing-boxes {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .pricing-box {
        flex: none;
        width: 100%;
        max-width: 350px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .hamburger {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .menu-close {
        display: block !important;
    }
    
    .menu-items {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        flex-direction: column;
        padding: 1rem;
        min-width: 200px;
        display: none;
        z-index: 10000;
    }

    .menu-items li {
        padding: 16px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .menu-toggle:checked + .hamburger + .menu-items {
        display: flex;
    }
    
    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    footer .pull-right {
        order: -1;
    }
    
    header ul li.button {
        padding: 0 5px;
    }
    
    #tab-payments .payments {
        display: block;
    }
    
    .desktop {
        display: none;
    }

    /* Responsive Graph Height */
    #transactions-graph {
        height: 180px !important;
    }

    /* Layout Adjustments */
    #tab-payments .payments .regular-transactions,
    #tab-payments .payments .transaction-balance {
        flex-basis: 100%;
        margin-bottom: 2rem;
    }
}

/* Additional Wallet Detail Styles */
.wallet-addresses-section section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-addresses-section section h3 .edit {
    cursor: pointer;
    color: var(--primary);
    font-size: 1rem;
    padding: 0.3rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.wallet-addresses-section section h3 .edit:hover {
    background-color: var(--light);
}

/* Wallet Information Section */
.wallet-basic {
    margin-bottom: 1rem;
}

.wallet-basic .wallet-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.wallet-basic .wallet-title .symbol {
    font-family: 'icons-font';
    font-size: 1.5rem;
    color: var(--primary);
}

.wallet-basic .wallet-title .wallet-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.wallet-type-symbol {
    font-family: 'icons-font';
    font-size: 32px;
    margin-right: 16px;
    color: #4a5568;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wallet-info-label {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.wallet-basic .wallet-type-name {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-left: 2rem;
}

.wallet-heir-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.wallet-heir-info > div {
    margin-bottom: 0.5rem;
}

.account-heir-info, .account-sharing-info, .file-share-info, .file-heir-info, .item-sharing-info, .item-heir-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    max-width: 50%;
}

.account-heir-info > div {
    margin-bottom: 0.5rem;
}

/* Clickable names in heir info, sharing info and shared-from sections */
.heir-name.clickable,
.shared-person-name.clickable,
.shared-from-person-name.clickable {
    cursor: pointer;
    color: var(--primary);
    text-decoration: underline;
}

.heir-name.clickable:hover,
.shared-person-name.clickable:hover,
.shared-from-person-name.clickable:hover {
    color: var(--primary-dark);
}

/* Addresses Section Enhancements */
.addresses-list {
    flex: 1;
    min-width: 0;
}

.address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}

.address-item:hover {
    border-color: var(--primary);
    background: var(--light);
}

.address-item.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1) 0%, rgba(255, 126, 30, 0.1) 100%);
    box-shadow: var(--box-shadow);
}

.address-item .address-text {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    margin-right: 1rem;
    flex: 1;
}

.address-item .address-balance {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    white-space: nowrap;
}

.address-item .address-balance.loaded {
    color: var(--text);
}

.address-item .address-balance.error {
    color: #e74c3c;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.qr-container img {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    background: var(--white);
}

.qr-container #wallet-qr-text {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
    color: var(--secondary);
    word-break: break-all;
    text-align: center;
    max-width: 200px;
}

/* Currency toggle in Bitcoin header */
.currency-toggle {
    float: right;
    font-size: 0.7em;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    margin-top: 0.2rem;
    margin-bottom: 1rem; /* Add more bottom spacing to separate from gray line */
    background: rgba(0, 0, 0, 0.05); /* Light gray background like regular buttons */
    color: #4a4a4a; /* Same color as header symbols */
    min-width: auto;
}

.currency-toggle:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.1);
}

.currency-toggle .symbol {
    margin-right: 0.3rem;
}

.currency-switch-text {
    font-weight: 600;
}

/* Asset Detail Icons */
.file-type-icon,
.account-provider-icon, 
.item-type-icon {
    font-size: 48px !important;
    margin-right: 16px;
}

/* Online account icons from SVG need special styling */
.account-provider-icon div {
    width: 48px;
    height: 48px;
    display: inline-block;
    vertical-align: middle;
}

/* Social media icons in account detail */
.account-provider-icon .social-icon {
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.account-provider-icon .social-icon.facebook {
    background-image: url( '/i/facebook.svg' );
}

.account-provider-icon .social-icon.x-com {
    background-image: url( '/i/x.svg' );
}

.account-provider-icon .social-icon.linkedin {
    background-image: url( '/i/linkedin.svg' );
}

.account-provider-icon .social-icon.youtube {
    background-image: url( '/i/youtube.svg' );
}

/* Additional responsive styles for wallet addresses */
@media (max-width: 768px) {
    .qr-container {
        min-width: auto;
        width: 100%;
    }
    
    .address-item .address-text {
        font-size: 0.75rem;
    }
    
    .currency-toggle {
        float: none;
        display: inline-block;
        margin-left: 1rem;
        font-size: 0.6em;
    }
    
    /* Smaller asset detail icons on mobile */
    .file-type-icon,
    .account-provider-icon, 
    .item-type-icon {
        font-size: 36px !important;
    }
    
    .account-provider-icon div {
        width: 36px;
        height: 36px;
    }
    
    .account-provider-icon .social-icon {
        width: 36px;
        height: 36px;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 0;
}

.breadcrumb h2.button {
    margin: 0;
}

.breadcrumb h2.breadcrumb-current {
    margin: 0;
    color: var(--text);
    cursor: default;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    font-size: inherit;
    font-weight: 600;
    padding: 10px 15px;
}

.breadcrumb h2.breadcrumb-current:hover {
    background: transparent;
    cursor: default;
}

.breadcrumb .wallet-type-symbol {
    margin-right: 8px;
    display: inline-block;
}

/* Cancel Edit Tab */
.cancel-edit-tab {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.cancel-edit-tab:hover {
    opacity: 1;
}

.cancel-edit-tab .symbol {
    font-size: 48px;
    font-weight: bold;
}

/* Edit containers need relative positioning for absolute cancel button */
.wallet-edit, .wallet-edit-info, .wallet-edit-addresses, #account-edit, .heir-edit, .inheritance-settings-edit {
    position: relative;
}

/* ==========================================
   INHERITANCE SETTINGS STYLES
   ========================================== */

/* Inheritance Settings Box */
.inheritance-settings-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 30px;
}

.settings-main-column {
    min-width: 0;
}

.settings-section.process-parameters-section {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
}

.settings-status-column {
    min-width: 280px;
}

.inheritance-status-wrapper {
    padding: 1.5rem;
}

.inheritance-status-wrapper h3 {
    margin: 0 0 1rem 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

.inheritance-status-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
}

.inheritance-timeline-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.inheritance-status-box h3,
.inheritance-timeline-box h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.status-text {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.status-chronology {
    margin-bottom: 0;
}

.status-chronology h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.status-chronology ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.status-chronology li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text);
    padding: 0.25rem 0;
}

.status-chronology li.completed {
    color: #28a745;
}

.status-chronology li.failed {
    color: #dc3545;
}

.status-chronology li.current {
    color: var(--text);
    font-weight: 600;
    background: rgba(255, 193, 7, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.status-chronology li.current.death-confirmed {
    background: rgba(108, 117, 125, 0.1);
    border-left-color: #6c757d;
}

.status-chronology li.pending {
    color: var(--text-secondary);
}

.status-chronology li.section-header {
    color: var(--text);
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--border);
    background: none;
    border-left: none;
    font-size: 1.1em;
}

.status-chronology li.section-header:first-child {
    margin-top: 0;
}

/* Header color coding */
.status-header.status-active .status-text {
    color: #28a745;
}

.status-header.status-inactivity .status-text {
    color: #ffc107;
}

.status-header.status-death-verification .status-text {
    color: #dc3545;
}

.status-header.status-death-confirmed .status-text {
    color: #6c757d;
}

.status-header.status-inheritance-notifying .status-text {
    color: #007bff;
}

.status-header.status-inheritance-active .status-text {
    color: #6f42c1;
}

.loading-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--text-secondary);
}

.status-item {
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.status-value {
    color: var(--text);
    font-size: 0.95rem;
}

.status-value.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-value.status-inactivity_detected {
    color: #ffc107;
    font-weight: 600;
}

.status-value.status-death_verification {
    color: #fd7e14;
    font-weight: 600;
}

.status-value.status-inheritance_notifying {
    color: #007bff;
    font-weight: 600;
}

.status-value.status-inheritance_active {
    color: #dc3545;
    font-weight: 600;
}

/* Responzivní breakpoint */
@media (max-width: 768px) {
    .inheritance-settings-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .settings-status-column {
        min-width: auto;
    }
    
    .inheritance-status-box {
        padding: 1rem;
    }
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    margin: 0 0 15px 0;
    color: var(--secondary);
    font-size: 16px;
    font-weight: 600;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* Field Layout */
.field-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.field-label {
    font-weight: 500;
    color: var(--text);
    min-width: 180px;
    margin-right: 15px;
}

.field-value {
    color: var(--text);
}

.no-data {
    color: #999;
    font-style: italic;
}

/* Trustee Management */
.trustee-selection {
    margin-top: 15px;
}

#trustee-select {
    width: 45%;
}

.add-trustee-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.add-trustee-row select {
    flex: 1;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}

.button-small {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-small:hover {
    background: var(--primary-dark);
}

#selected-trustees {
    min-height: 40px;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 10px;
}

.no-trustees {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 10px 0;
}

.trustee-item {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 2px 4px;
    font-size: 14px;
}

.trustee-name {
    margin-right: 8px;
}

.remove-trustee {
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
    padding: 4px 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    margin-left: 8px;
}

.remove-trustee:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #a02834;
    transform: scale(1.1);
}

/* Process Parameters - Two Column Layout */
.parameters-two-columns {
    display: flex;
    gap: 30px;
}

.parameters-column {
    flex: 1;
}

.parameters-column .form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.parameters-column .form-row label {
    font-weight: 500;
    color: #333;
}

.parameters-column .form-row input[type="number"] {
    width: 50px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
}

/* Memory test input width in wallet edit dialog */
.wallet-memory-edit input[type="number"] {
    width: 50px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
}

.parameters-column .form-row span {
    color: #666;
    font-size: 14px;
}

@media ( max-width: 768px ) {
    .parameters-two-columns {
        flex-direction: column;
        gap: 0;
    }
}

.trustee-tag:not(.heir-name.clickable) {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 4px;
}

.coordinator-name:not(.heir-name.clickable) {
    font-weight: 500;
    color: var(--secondary);
}

/* Parameters Grid */
.parameter-grid, .parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.parameter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.parameter-row:last-child {
    border-bottom: none;
}

.param-label {
    font-weight: 500;
    color: var(--text);
    flex: 1;
}

.param-value {
    color: var(--secondary);
    font-weight: 600;
}

/* Parameter Form Fields */
.param-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.param-field label {
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.param-field input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    width: 80px;
}

.param-field.info-field .info-text {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

/* Coordinator Field */
.coordinator-field {
    margin-top: 15px;
}

.coordinator-field label {
    display: block;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.field-description {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.coordinator-field select {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.button {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: var(--text);
}

.button.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.button:hover {
    background: #f5f5f5;
}

.button.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.button:disabled,
.button.disabled {
    background: #cccccc !important;
    color: #666666 !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.button:disabled:hover,
.button.disabled:hover {
    background: #cccccc !important;
    border-color: #cccccc !important;
}

/* Sync Warning */
.sync-warning {
    color: #dc3545;
    padding: 8px 0;
    margin: 10px 0;
    font-weight: 500;
    text-align: left;
    display: none;
}

/* Action Badge - not clickable */
.action-badge .symbol {
    cursor: default;
}

.action-badge:hover {
    background: inherit;
}

/* Info Icon with Text */
.info-icon-with-text {
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.info-icon-with-text:hover {
    color: var(--primary-dark);
}

.info-icon-center {
    flex: 1;
    text-align: center;
    display: flex;
    flex-flow: column;
    gap: 5px;
}

.info-icon-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #007bff;
    color: white !important;
    font-size: 12px;
    font-weight: bold;
    font-family: Georgia, "Times New Roman", serif;
    flex-shrink: 0;
    z-index: 1;
}

.info-icon-with-text:hover .info-icon-symbol {
    background-color: #0056b3;
}

/* Heritage Info Links Container */
.heritage-info-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 15px;
}

/* Section Header with Actions */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
}

.section-actions {
    display: flex;
    gap: 10px;
}

/* Large Dialog Styles for Reading Content */
.dialog-large {
    max-width: 800px !important;
    width: 90% !important;
    padding: 30px !important;
    text-align: left;
}

.dialog-large h3 {
    margin-top: 15px;
    font-size: 18px;
    color: var(--secondary);
    font-weight: 600;
}

.dialog-large h2 {
    text-align: left;
    margin-top: 25px;
    font-size: 20px;
    color: var(--secondary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.dialog-large #inheritanceProcessContent {
    text-align: left;
    line-height: 1.6;
    font-size: 14px;
    color: var(--text);
}

.dialog-large ol {
    padding-left: 20px;
    margin: 0;
}

.dialog-large ol li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.dialog-large ol li strong {
    color: var(--secondary);
    font-weight: 600;
}

.dialog-large .dialog-button-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.dialog-large .dialog-button {
    padding: 12px 30px;
    font-size: 14px;
    min-width: 100px;
}

/* Contextual help dialogs */
#contextualHelpDialog {
    max-width: 600px;
    padding: 30px;
    text-align: left;
}
#contextualHelpDialog p {
    margin: 0 0 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .parameter-grid, .parameters-grid {
        grid-template-columns: 1fr;
    }
    
    .field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .field-label {
        min-width: auto;
        margin-right: 0;
        font-weight: 600;
    }
    
    .add-trustee-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-trustee-row select {
        max-width: none;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .coordinator-field select {
        max-width: none;
    }
    
    .dialog-large {
        width: 95% !important;
        padding: 20px !important;
        max-width: none !important;
    }
    
    .dialog-large h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .dialog-large ol li {
        margin-bottom: 12px;
    }

    #trustee-select {
        width: unset;
    }
}

.tab .form-section,
.dialog-content .form-section {
    margin-bottom: 40px;
}

/* Security Questions Section - Full Width */
.security-questions-section {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
}

.security-questions-section h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
}

.security-questions-section .security-questions-info {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Trustees Section - Vertical Layout */
.trustees-section {
    margin-top: 15px;
}

.trustees-section .trustees-label {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
}

.trustees-section .trustees-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trustees-section .trustees-list .trustee-tag {
    align-self: flex-start;
}

/* Dialog Tabs Styling */
.dialog-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 25px;
    margin-top: -10px;
}

.dialog-tab-header {
    flex: 1;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-bottom: none;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    margin-right: 2px;
}

.dialog-tab-header:last-child {
    margin-right: 0;
}

.dialog-tab-header:hover {
    background: #e9ecef;
    color: var(--text);
}

.dialog-tab-header.active {
    background: var(--white);
    color: var(--secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--white);
    margin-bottom: -2px;
    position: relative;
    z-index: 1;
}

.dialog-tab-content {
    display: none;
}

.dialog-tab-content.active {
    display: block;
}

/* Description toggle button */
.description-toggle {
    cursor: pointer;
    margin-left: 10px;
    font-size: 2rem;
    color: var(--primary-dark);
}

/* Responsive tabs for mobile */
@media (max-width: 768px) {
    .dialog-tab-header {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ==========================================
   ADMIN SUBSCRIPTION JOBS INTERFACE
   ========================================== */

/* Admin page header */
.admin-stats-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-stats-section h2 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--light);
    border-radius: 6px;
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item.pending {
    border-left-color: #ffc107;
}

.stat-item.processing {
    border-left-color: #007bff;
}

.stat-item.completed {
    border-left-color: #28a745;
}

.stat-item.failed {
    border-left-color: #dc3545;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Admin actions section */
.admin-actions-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.bulk-actions {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bulk-label {
    font-weight: 600;
    color: var(--secondary);
}

/* Admin filters section */
.admin-filters-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.1);
}

/* Admin jobs table */
.admin-jobs-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-jobs-section h2 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.admin-jobs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.9rem;
}

.admin-jobs-table th {
    background: var(--light);
    color: var(--secondary);
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid var(--border);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-jobs-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.admin-jobs-table tbody tr:hover {
    background: #fafafa;
}

.job-id {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #666;
    cursor: help;
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-name {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.85rem;
}

.wallet-name {
    color: #666;
    font-size: 0.8rem;
}

.action-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
}

.status-badge.status-pending {
    background: #ffc107;
    color: #333;
}

.status-badge.status-processing {
    background: #007bff;
    animation: pulse 2s infinite;
}

.status-badge.status-completed {
    background: #28a745;
}

.status-badge.status-failed {
    background: #dc3545;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.timestamp {
    color: #666;
    font-size: 0.8rem;
    cursor: help;
}

.retry-count {
    background: #dc3545;
    color: var(--white);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.button.small {
    padding: 4px 8px;
    font-size: 0.8rem;
    min-width: auto;
}

.loading-row td {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-data-row td {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Pagination */
.table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.page-info {
    color: #666;
    font-size: 0.9rem;
}

/* Sync flags section */
.admin-sync-flags-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-sync-flags-section h2 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.section-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.sync-flags-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sync-flag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
}

.flag-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flag-email {
    font-weight: 600;
    color: var(--secondary);
}

.flag-path {
    color: #666;
    font-size: 0.9rem;
}

.flag-job {
    color: #999;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.no-sync-flags {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

.sync-flags-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* Auto-refresh indicator */
.auto-refresh-indicator {
    position: fixed;
    top: 70px;
    right: 20px;
    background: var(--white);
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.auto-refresh-indicator .symbol {
    color: var(--primary);
    animation: rotate 2s linear infinite;
}

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

/* Job detail modal */
.job-detail-content {
    max-height: 70vh;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.detail-item span {
    color: var(--text);
}

.addresses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.address-item {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #666;
    padding: 5px 8px;
    background: var(--white);
    border-radius: 3px;
    word-break: break-all;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-word;
}

/* Loading spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #666;
}

/* Checkbox styling */
.job-checkbox {
    transform: scale(1.1);
    cursor: pointer;
}

#select-all {
    transform: scale(1.2);
    cursor: pointer;
}

/* Responsive design for admin interface */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filters-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .bulk-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-container {
        font-size: 0.8rem;
    }
    
    .admin-jobs-table th,
    .admin-jobs-table td {
        padding: 8px 4px;
    }
    
    .sync-flag-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .auto-refresh-indicator {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .addresses-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons .button {
        width: 100%;
        text-align: center;
    }
}

/* Invitation Registration Form */
.form-container {
    max-width: 400px;
    margin: 30px auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

/* Utility classes for visibility control */
.initially-hidden {
    display: none !important;
}

.visible-block {
    display: block !important;
}

.visible-inline {
    display: inline !important;
}

/* User Activity Log Styles */
.logs-section {
    margin-top: 20px;
}

#user-logs-container {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    max-height: 400px;
    overflow-y: auto;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.log-entry {
    padding: 4px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.log-entry:first-child {
    padding-top: 12px;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry:hover {
    background-color: var(--bg-secondary);
}

.log-timestamp {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    min-width: 140px;
}

.log-event {
    color: var(--text);
    font-weight: 400;
    flex: 1;
}

.load-more-container {
    text-align: center;
    padding: 16px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

/* Inline parameter inputs in inheritance dialog */
.inline-parameter {
    width: 50px !important;
    padding: 2px 4px !important;
    border: 1px solid var(--border) !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    text-align: center !important;
    display: inline !important;
    vertical-align: baseline !important;
    margin: 0 2px !important;
    background: #fff !important;
}

.inline-parameter-text {
    width: 120px !important;
    padding: 2px 4px !important;
    border: 1px solid var(--border) !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    display: inline !important;
    vertical-align: baseline !important;
    margin: 0 2px !important;
    background: #fff !important;
}

.inline-parameter-select {
    padding: 2px 4px !important;
    border: 1px solid var(--border) !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    display: inline !important;
    vertical-align: baseline !important;
    margin: 0 2px !important;
    background: #fff !important;
    max-width: 200px !important;
}

/* System Message Box */
.system-message {
    padding: 15px 20px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Work Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.system-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.system-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.system-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}


/* ========================================================================
   BITPLATBY MOBILE OPTIMIZATIONS
   Kompletní mobile-friendly úpravy pro všechny breakpointy
   ======================================================================== */

/* ========================================================================
   BREAKPOINT: 992px - Logo scaling update
   ======================================================================== */
@media (max-width: 992px) {
    header .logo {
        width: 80px;  /* Změna z 60px */
    }
}

/* ========================================================================
   BREAKPOINT: 768px - Tablet/Phone
   ======================================================================== */
@media (max-width: 768px) {
    /* Header - Progressive Logo Scaling */
    header .logo {
        width: 60px;
    }

    /* Zobrazit celý text loga na mobilech (když NENÍ přihlášený) */
    header .logo span.desktop {
        display: inline;
    }

    /* Když JE přihlášený, skrýt text na mobilech */
    body.dashboard header .logo {
        width: 60px;
    }

    body.dashboard header .logo span.desktop {
        display: none;
    }

    header {
        padding: 1rem 3%;  /* Užší padding */
    }

    /* Remove box-shadows on mobile */
    header,
    section,
    footer {
        box-shadow: none;
    }

    /* Add vertical separators between sections */
    section {
        border-bottom: 1px solid #e0e0e0;
    }

    section:last-child {
        border-bottom: none;
    }

    /* Narrower Margins - All Sections */
    section,
    .tab-section {
        padding: 0;
    }

    /* Hamburger Menu Improvements */
    .menu-toggle:checked + .hamburger + .menu-items {
        width: 80%;
        max-width: 300px;
        left: 50%;
        transform: translateX(-50%);
        padding: 2rem 1.5rem;
        border-radius: 8px;
    }
    
    /* Universal Table Mobile CSS */
    table {
        font-size: 0.85rem;
        width: 100%;
    }
    
    th, td {
        padding: 8px 4px;
    }
    
    /* Horizontal Scroll Container */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Touch Targets - Symbol Icons */
    .symbol {
        font-size: 1.3rem;
        padding: 6px;  /* Zmenšeno z 12px */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;  /* Odstranit marginy */
    }

    .symbol.edit,
    .symbol.delete {
        font-size: 1.4rem;  /* Zmenšeno z 1.6rem */
        padding: 4px;
    }

    /* Touch Targets - Buttons */
    .button,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 40px;  /* Zmenšeno z 44px */
        padding: 10px 16px;  /* Zmenšeno z 12px 20px */
        font-size: 0.95rem;
    }
    
    /* Form Optimizations - Input Fields */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    textarea,
    select {
        min-height: 44px;
        font-size: 16px;  /* Prevent iOS zoom */
        padding: 10px 12px;
        width: 100%;
    }
    
    /* Form Optimizations - Radio/Checkbox */
    input[type="radio"],
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    label {
        padding: 10px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Admin Form Fix - .from-to */
    .from-to {
        flex-wrap: wrap;
        column-gap: 20px;
        row-gap: 15px;
    }
    
    .from-to > div {
        flex: 1 1 100%;
    }
    
    /* Footer Improvements */
    footer {
        flex-direction: column;
        padding: 2rem 3%;
        gap: 1.5rem;
        text-align: center;
    }

    footer ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Settings Tab - Vertical Layout for Radio Groups */
    .radiogroup {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
        padding-left: 1rem !important;
    }

    .radiogroup label {
        display: flex !important;
        align-items: flex-start !important;
        padding: 0.3rem 0 !important;
        gap: 0.5rem !important;
    }

    .radiogroup input[type="radio"] {
        margin-top: 0.2rem !important;
        flex-shrink: 0 !important;
    }

    /* Settings tab specific styles */
    #tab-settings section.payments > section {
        padding: 1rem 0 !important;
    }

    #tab-settings section.payments > section > label {
        display: block !important;
        margin-bottom: 1.2rem !important;
    }

    #tab-settings section.payments > section > label > input[type="checkbox"] {
        margin-right: 0.5rem !important;
        vertical-align: top !important;
    }

    #tab-settings h2 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }


    #tab-admin .conversion-plan {
        display: block;
    }

}

/* ========================================================================
   BREAKPOINT: 576px - Large Phone
   ======================================================================== */
@media (max-width: 576px) {
    /* Header */
    header .logo {
        width: 50px;
    }
    
    header {
        padding: 0.75rem 2%;
    }
    
    /* Narrower Margins */
    section,
    .tab-section {
        padding: 1.5rem 2%;
    }
}

/* ========================================================================
   BREAKPOINT: 480px - Standard Phone
   ======================================================================== */
@media (max-width: 480px) {
    body.dashboard header .logo {
        display: none !important;
    }

    header {
        padding: 0.5rem 1.5%;
    }
    
    /* Narrower Margins */
    section,
    .tab-section {
        padding: 1rem 0;
    }
    
    /* Tables - Smaller Font & Padding */
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 6px 3px;
    }
    
    /* Touch Targets - Larger on Small Phones */
    .symbol {
        font-size: 1.6rem;
        padding: 14px;
    }
    
    /* Buttons */
    .button,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1.05rem;
    }
    
    /* Input Fields */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    textarea,
    select {
        min-height: 48px;
        padding: 12px 14px;
    }
    
    /* Radio/Checkbox */
    input[type="radio"],
    input[type="checkbox"] {
        width: 22px;
        height: 22px;
        margin-right: 14px;
    }
    
    label {
        padding: 12px;
        min-height: 48px;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 2%;
    }
}

/* ========================================================================
   BREAKPOINT: 375px - Small Phone (iPhone SE)
   ======================================================================== */
@media (max-width: 375px) {
    body.dashboard header .logo * {
        display: none !important;
    }

    /* When NOT logged in, keep logo visible */
    body:not(.dashboard) header .logo {
        display: block !important;
    }

    body:not(.dashboard) header .logo * {
        display: inline !important;
    }

    header {
        padding: 0.5rem 1%;
    }

    section,
    .tab-section {
        padding: 1rem 0;
    }
}

.msg.success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* ========================================================================
   Lnpay - Jednorázové platby (visual distinction)
   ======================================================================== */
.payment-detail-row.payment-onetime {
    background-color: #fff3cd;  /* Světle žlutá */
}

.payment-detail-row.payment-onetime td:first-child {
    border-left: 3px solid #f7931a;  /* Bitcoin oranžová */
}

.badge.lnpay-badge {
    display: inline-block;
    padding: 2px 6px;
    background-color: #f7931a;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    margin-right: 5px;
    vertical-align: middle;
}
