:root {
    --color-bg: #050505;
     --color-bg-tracked: rgba(255, 255, 255, 0.05);
    --color-surface: #111111;
    --color-text: #FFFFFF;
    --color-details: #222222;
    --color-border: #333333;
    --color-border-blank: #FFFFFF;
    --color-green: #00ff00;
    --color-red: #ff5252;
    --color-blue: #00bcd4;
    --color-orange: #ff9800;
    --color-yellow: #FFFF00;
    --font-main: 'hellix', 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --color-arrow-expand: rgba(255, 255, 255, 0.5);
}


* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body {
    background-color: var(--color-bg);
    background-image: var(--background-image);
    background-size: 200% 369%;
    animation: gradientFlow 60s ease-in-out infinite;
    background-attachment: scroll;
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100%;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    24% { background-position: 40% 0%; }
    52% { background-position: 100% 50%; }
    66% { background-position: 83% 83%; }
    81% { background-position: 43% 77%; }
    95% { background-position: 14% 55%; }
    100% { background-position: 0% 50%; }
}
   
#custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.custom-alert-modal {
    background-color: var(--color-surface);
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    text-align: center;
    border: 1px solid var(--color-border);
}
#custom-alert-message {
    margin-bottom: 20px;
    line-height: 1.7;
    word-wrap: break-word;
}
#custom-alert-message a {
    color: var(--color-blue);
    text-decoration: none;
}
#custom-alert-message a:hover {
    text-decoration: underline;
}
#disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; 
}
.disclaimer-modal {
    background-color: var(--color-red);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: left;
    border: 1px solid var(--color-red);
}
.disclaimer-modal h2 {
    color: var(--color-text);
    margin-top: 0;
    border-bottom: none;
}
.disclaimer-modal a {
    color: var(--color-text);
    text-decoration: underline;
}
#reminder-banner {
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--color-orange);
    color: var(--color-orange);
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
#reminder-banner p { margin: 0; opacity: 1; }
#close-reminder-btn {
    background: none; border: none; color: var(--color-orange);
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    opacity: 0.7; padding: 0 5px;
}
#close-reminder-btn:hover { opacity: 1; }
.container { max-width: 70%; margin: 40px auto 120px auto; padding: 0 20px; padding-bottom: 120px; }
@media (max-width: 768px) {
  .container { max-width: 98%; margin: 8px auto 80px auto; padding: 0 16px; padding-bottom: 60px; }
}

.icon-button {
  background: none;
  border: none;
  padding: 6px;
  margin: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.icon-button:hover {
  transform: scale(1.3);
}


.notice-close-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-orange);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 5px;
}
.notice-close-btn:hover {
    opacity: 1;
}


h1, h2, h3 { font-weight: 700; margin-bottom: 1rem; }
h4 { font-weight: 500; margin-bottom: 1rem; }
h1 { font-size: 3rem; }
h2 { font-size: 2rem; border-bottom: 1px solid var(--color-border-stroke); padding-bottom: 0.5rem; margin-top: 3rem; }
details > summary > h2 { border-bottom: none; margin-bottom: 0; }
h4 { font-size: 1.4rem;  padding-bottom: 0.5rem; margin-top: 0rem; }
p { margin-bottom: 1rem; opacity: 0.9; }
.header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-bottom: 20px; gap: 1rem; }
.btn {
    background: var(--btn-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 10px 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-right: 10px;
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.btn:hover:not(:disabled) { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn2 {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 10px 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-right: 10px;
    border-radius: 4px;
}
.btn2:hover:not(:disabled) { 
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: var(--color-text);
}
.btn2:disabled { opacity: 0.5; cursor: not-allowed; }
.label-line { display: flex; justify-content: space-between; align-items: baseline;  }

.btn3 {
  font-size: 0.8rem;
  padding: 6px 10px;
  border: 0px;
  color: var(--color-details);
  background: var(--color-text);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.btn3:hover {
  opacity: 1;
  background: var(--color-border);
  color: #fff;
}


.header-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; align-items: center; }
.wallet-widget, .currency-widget { position: relative; }

.wallet-dropdown {
    display: none; position: absolute; top: 100%; right: 0;
    background-color: var(--wallet-dropdown-bg); /* Theme-aware */
    border: 1px solid var(--color-border);
    z-index: 10; margin-top: 10px; padding: 5px; border-radius: 4px;
    max-height: 500px; overflow-y: auto;
}
.wallet-dropdown .dropdown-item {
    background: none; border: none; color: var(--color-text);
    padding: 10px 15px; text-align: left; width: 100%;
    font-family: var(--font-main); font-size: 0.9rem; cursor: pointer;
    display: block; text-decoration: none;   white-space: nowrap; 
}
.wallet-dropdown .dropdown-item:hover { background-color: var(--color-surface); }
.wallet-dropdown.show { display: block; }

.ui-section { background: rgba(0,0,0,0.3); backdrop-filter: var(--ui-section-blur); border: 0px solid var(--color-border); padding: 25px; margin-top: 30px; border-radius: 8px; }
.dimmed-section { opacity: 0.4; pointer-events: none; }
.eligibility-notice { 
    color: var(--color-orange); font-size: 0.9rem; margin-top: 20px; padding: 10px 20px;
    border: 1px solid var(--color-orange); background-color: rgba(255, 152, 0, 0.1); 
    display: none; line-height: 1.5; text-align: center; border-radius: 4px;
}
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 0px; }
.info-item h3 { font-size: 1rem; opacity: 0.7; margin: 0; font-weight: 400; }
.info-item .value { font-family: var(--font-mono); font-size: 0.9rem;  display: block; }
.info-row .info-item .value a {
    color: var(--color-text) !important;
    text-decoration: none !important;
}
.info-row .info-item .value a:hover {
    text-decoration: underline !important;
}

.value.guardian { color: var(--color-green); }
.value.the-many { color: var(--color-green); }
.address-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); }
.address-link a { color: var(--color-blue); text-decoration: none; }
.address-link a:hover { text-decoration: underline; }
.copy-icon { cursor: pointer; opacity: 0.6; transition: opacity 0.2s; display: inline-block; width: 14px; height: 14px; vertical-align: -0.055rem }
.copy-icon:hover { opacity: 1; }
.form-group { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { opacity: 0.7; display: block; margin-bottom: 8px; }
.available-balance { font-size: 0.8rem; opacity: 0.6; font-family: var(--font-mono); }
.input-with-button { display: flex; gap: 10px; }
.form-group input, .form-group textarea {
    flex-grow: 1; padding: 12px; background: var(--color-surface); border: 1px solid var(--color-border);
    color: var(--color-text); font-family: var(--font-mono); font-size: 1rem; width: 100%; border-radius: 4px;
}
#p-shortDescription { min-height: 200px !important; }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-max {
    padding: 0 15px; border-left: 1px solid var(--color-border); background-color: var(--color-surface);
    border: 1px solid var(--color-border); color: var(--color-text); cursor: pointer; border-radius: 4px;
}
.button-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.button-group2 { display: flex; gap: 0px; align-items: center; flex-wrap: wrap; }
.proposal-list .proposal {
    border: 0px solid var(--color-border);
    padding: 20px;
    margin-bottom: 20px;
    background-color: var(--color-bg-tracked);
    border-radius: 8px;
}
.proposal-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;}
.proposal-status { font-family: var(--font-mono); font-size: 0.9rem; padding: 4px 8px; border: 1px solid; border-radius: 4px; }
.status-active, .status-succeeded { border-color: var(--color-blue); color: var(--color-blue); }
.status-executed, .status-queued { border-color: var(--color-green); color: var(--color-green); }
.status-defeated, .status-canceled, .status-expired { border-color: var(--color-red); color: var(--color-red); }
.dapp-content { display: none; }
#delegate-section { margin-top: 20px; }
.tracked-wallet-card {
    position: relative;
}
.tracked-wallet-card .remove-btn-container {
    position: absolute;
    top: 15px;
    right: 15px;
}


.minibar { width: 80px; height: 4px; background-color: rgba(255, 255, 255, 0.1); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.minibar .fill { height: 100%; width: 0; transition: width 1s ease-in-out; background-color: transparent; }
#bar-burned { background-color: var(--color-red); }
#bar-circulating { background-color: limegreen; }
#bar-lp-percent-total { background-color: var(--color-border-blank); }
#bar-lp-percent-circ { background-color: var(--color-border-blank); }
#bar-staked { background-color: orange; } 
#bar-staked-vs-circ { background-color: orange; }
.value.active-highlight { color: var(--color-green); font-weight: 600; }
.details-section { margin-bottom: 20px; }
.details-section h4 { font-family: var(--font-main); margin-bottom: 10px; opacity: 0.9; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.details-item { word-break: break-all; }
.details-item strong { color: var(--color-text); opacity: 0.7; font-family: var(--font-main); }
.action-item, .description-item { border: 0px solid #333; padding: 15px; margin-bottom: 10px; background-color: var(--color-bg-tracked); border-radius: 4px; }
.description-item { white-space: pre-wrap; font-family: var(--font-main); }
.description-item strong { display: block; margin-bottom: 5px; font-family: var(--font-main); color: var(--color-text); opacity: 0.7; }
mark {
    background-color: var(--color-yellow);
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
} 
.btn-expand { background: none; border: none; color: var(--color-blue); cursor: pointer; padding: 5px; font-size: 0.9rem; text-decoration: none; margin-left: -5px; font-family: var(--font-main); }
.btn-expand:hover { text-decoration: underline; }
.filter-group { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 20px; }
.filter-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 0; cursor: pointer; }
details > summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 25px;
}
details > summary::-webkit-details-marker { display: none; }
details > summary:hover { opacity: 0.8; }
details > summary::after {
    content: '▼';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease-in-out;
    color: var(--color-arrow-expand);
}
details[open] > summary::after {
    transform: translateY(-50%) rotate(180deg);
}
.advanced-options-summary {
    cursor: pointer;
    color: var(--color-blue);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    opacity: 0.7;
    font-size: 1rem;
}
.advanced-options-summary:hover { text-decoration: underline; opacity: 1; }
.info-box { background: var(--color-surface); border: 1px solid var(--color-border); padding: 12px; font-family: var(--font-mono); font-size: 1.0rem; display: inline-block; min-width: 200px; border-radius: 4px; text-align: center; }
.info-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.info-row.justify-start {
    justify-content: start;
}
.info-item { left: 1 1 200px; }
:root { --theme-name: publish; --btn-bg: var(--color-border); --wallet-dropdown-bg: var(--color-bg); --ui-section-blur: blur(10px); }
.btn { background: var(--btn-bg); }
.wallet-dropdown { background-color: var(--wallet-dropdown-bg); }
.ui-section { backdrop-filter: var(--ui-section-blur); }