* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Azuki Inspired Palette */
    --azuki-accent: #b3da26; /* Main Accent Color */
    --azuki-bg: #111111;  /* Dark background */
    --azuki-panel: #1a1a1a;
    --azuki-border: #333333;
    
    --bg-main: var(--azuki-bg);
    --bg-panel: var(--azuki-panel);
    --bg-panel-soft: #222222;
    --bg-muted: #2a2a2a;
    --accent: var(--azuki-accent);
    --accent-soft: rgba(179, 218, 38, 0.15);
    --accent-strong: #cbe54e;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border-subtle: var(--azuki-border);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.5); /* Flatter shadow */
    --radius-md: 4px; /* Sharper corners */
    --radius-lg: 8px;
    --radius-pill: 4px; /* Button style */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.2s ease-out;
}

.hidden {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .logo, .nav-link, .sidebar-link, .panel h2, .category-title, .link-item a, .wallet button, .lm-head, .sidebar-header, .sidebar-text, .link-category-label, .link-category-btn, .lm-btn-edit, .lm-btn-delete {
    font-family: "Oswald", sans-serif;
}


/* 顶部栏 */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(17, 17, 17, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    text-decoration: none;
}

.logo::before {
    content: "";
    width: 28px;
    height: 28px;
    background-image: url('logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo.custom-logo::before {
    display: none;
}

.logo.custom-logo {
    gap: 0;
}

.logo.custom-logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
    background: #111;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 48px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.wallet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
    font-size: 13px;
    font-family: "Oswald", sans-serif;
    color: var(--text-muted);
}

.lang-switch a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.lang-switch a:hover, .lang-switch a.active {
    color: var(--accent);
}

.lang-switch .sep {
    opacity: 0.5;
}

.wallet button {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--accent);
    color: var(--azuki-bg);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.wallet button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 218, 38, 0.4);
}

.wallet button:active {
    transform: translateY(0);
}

.wallet-address-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wallet-address-pill:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.wallet-address-pill.wallet-empty {
    opacity: 0.5;
    cursor: default;
}

.wallet-address-pill-copied {
    border-color: var(--accent);
    color: var(--accent);
}

#walletStatusText {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

#currentAddress {
    font-size: 13px;
    color: var(--text-main);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 布局 */

.layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 32px;
    width: 100%;
    max-width: none;
    margin: 0;
}

.content-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.search-panel .link-toolbar {
    margin-bottom: 0;
}

.sidebar {
    width: 200px;
    flex-shrink: 0;
    background: transparent;
    padding: 10px 0;
    position: sticky;
    top: 72px;
    transition: width var(--transition-normal);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 92px);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 8px;
    padding: 0 10px;
}

.sidebar-title {
    display: none;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

.sidebar-toggle:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    width: 100%;
    text-align: left;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all var(--transition-fast);
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-link:hover .sidebar-icon {
    background: var(--text-main);
    color: var(--bg-main);
}

.sidebar-link.active {
    background: rgba(179, 218, 38, 0.08);
    color: var(--accent);
    border-color: rgba(179, 218, 38, 0.2);
    border-left: 3px solid var(--accent);
    padding-left: 14px; /* Adjust padding to compensate for border width change (original 16px - 2px extra border) */
}

.sidebar-link.active .sidebar-icon {
    background: var(--accent);
    color: var(--azuki-bg);
    box-shadow: 0 4px 10px rgba(179, 218, 38, 0.3);
}

.sidebar-link.active .sidebar-text {
    font-weight: 700;
}

.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
    background: transparent;
    position: relative;
}

.sidebar-profile.hidden {
    display: none !important;
}

.sidebar-avatar-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border-subtle);
    margin-bottom: 20px;
    background: var(--bg-main);
    transition: all var(--transition-fast);
    box-shadow: 0 12px 24px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebar-avatar-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.7), 0 0 0 2px var(--accent);
    border-color: var(--accent);
}

.sidebar-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.sidebar-avatar-wrap:hover img {
    transform: scale(1.1);
}

.sidebar-username {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 4px 8px;
    opacity: 1;
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    margin-top: 8px;
}

.sidebar-username:hover {
    color: var(--accent);
    background: rgba(179, 218, 38, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(179, 218, 38, 0.2);
}

.sidebar.collapsed {
    width: 64px;
    align-items: center;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
    width: 100%;
}

.sidebar.collapsed .sidebar-toggle {
    /* Optional: style adjustment when collapsed if needed */
}

.sidebar.collapsed .sidebar-link {
    padding: 8px 0;
    justify-content: center;
    width: 40px; /* Center the square-ish button */
    margin: 0 auto;
}

.sidebar.collapsed .sidebar-text {
    display: none;
}

.sidebar.collapsed .sidebar-icon {
    margin: 0;
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.sidebar.collapsed .sidebar-title {
    display: none;
}

.sidebar.collapsed .sidebar-body {
    display: flex;
}

.sidebar.collapsed .sidebar-profile {
    padding: 16px 0;
    border-bottom: none;
    align-items: center;
    background: transparent;
    position: relative;
}

.sidebar.collapsed .sidebar-avatar-wrap {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    border-width: 3px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.sidebar.collapsed .sidebar-avatar-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.6), 0 0 0 2px var(--accent);
    border-color: var(--accent);
}

.sidebar.collapsed .sidebar-avatar-wrap:hover img {
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-username {
    display: none;
}

/* 隐藏完整文字，只显示首字（通过JS处理或者CSS截断） */

.panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 720px) {
    .sidebar-profile {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        padding: 8px 16px 8px 8px;
        margin-bottom: 0;
        border-bottom: none;
        border-right: 1px solid var(--border-subtle);
        margin-right: 12px;
        height: auto;
        background: transparent;
        position: relative;
    }

    .sidebar-avatar-wrap {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        border-width: 2.5px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.5);
    }

    .sidebar-avatar-wrap:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.6), 0 0 0 2px var(--accent);
        border-color: var(--accent);
    }

    .sidebar-avatar-wrap:hover img {
        transform: scale(1.1);
    }

    .sidebar-username {
        display: none;
    }

    .layout {
        flex-direction: column;
        max-width: 100%;
    }

    .sidebar {
        position: static;
        width: 100%;
        order: -1;
        padding: 0;
        margin-bottom: 16px;
        flex-direction: row;
        align-items: center;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-body {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 8px;
        flex: 1;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    }
    
    .sidebar-link {
        width: auto;
        flex-shrink: 0;
        background: var(--bg-panel);
        border: 1px solid var(--border-subtle);
    }
    
    .sidebar-link.active {
        background: var(--text-main);
        color: var(--bg-main);
        border-color: var(--text-main);
    }
    
    .sidebar-link.active .sidebar-icon {
        background: rgba(0,0,0,0.2);
        color: inherit;
    }
    
    .top-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .wallet {
        margin-left: auto;
    }
}

.panel h2 {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-main);
}

.panel-subtitle {
    margin-top: -4px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

/* 链接列表 */

.link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.link-manage-table {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.link-manage-header,
.link-manage-row {
    display: grid;
    grid-template-columns: 60px 1.5fr 2fr 1fr 100px; /* Fixed logo width, adjusted others */
    align-items: center;
    padding: 12px 16px;
    column-gap: 16px;
}

.link-manage-header {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-panel-soft);
    font-weight: 600;
}

.link-manage-body {
    display: flex;
    flex-direction: column;
}

.link-manage-row {
    font-size: 14px;
    color: var(--text-main);
    border-top: 1px solid var(--border-subtle); /* Keep top border for separation */
    background: var(--bg-panel);
    transition: all var(--transition-fast);
}

/* Remove border-top from first row to avoid double border with header */
.link-manage-row:first-child {
    border-top: none;
}

.link-manage-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.link-manage-row:hover {
    background: var(--bg-panel-soft);
    /* border-color: var(--accent); Remove border color change on hover to avoid layout shift or weird look inside table */
}

.link-manage-row:hover .lm-cell {
    color: var(--text-main);
}

.link-manage-row-updated {
    background: rgba(179, 218, 38, 0.1) !important; /* Green tint */
}

.lm-head {
    white-space: nowrap;
}

.lm-cell {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lm-col-title {
    font-weight: 500;
    color: var(--text-main);
}

.lm-col-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.lm-col-category {
    display: flex;
    align-items: center;
}

.lm-col-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.lm-col-logo {
    display: flex;
    align-items: center;
}

.lm-logo-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px; /* Softer square */
    overflow: hidden;
    background: var(--bg-panel-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
}

.lm-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lm-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--azuki-bg);
    background: var(--accent); /* Green background */
}

.lm-input {
    width: 100%;
    border: 1px solid transparent;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.lm-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.lm-input:focus {
    background: var(--bg-panel-soft);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.lm-input-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.lm-category-select {
    width: 100%;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel-soft);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.lm-category-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.lm-btn-delete {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.lm-btn-delete:hover {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* 拖拽功能样式 */
.category-drop-zone {
    margin-bottom: 20px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
}

.category-drop-header {
    background: var(--bg-muted);
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
}

.category-drop-body {
    padding: 8px;
    min-height: 60px;
}

.link-manage-row {
    transition: all var(--transition-fast);
}

.link-manage-row.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.category-drop-zone.drag-over {
    background: rgba(179, 218, 38, 0.1);
    border-color: var(--accent);
}

.lm-btn-edit {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.lm-btn-edit:hover {
    background: var(--accent);
    color: var(--azuki-bg); /* Dark text on green bg */
}

.link-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px; /* Increased spacing */
}

.link-toolbar input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.link-toolbar input::placeholder {
    color: var(--text-muted);
}

.link-toolbar input:focus {
    border-color: var(--accent);
    background: var(--bg-panel-soft);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.btn-danger {
    background-color: #ff4d4f;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-danger:hover {
    background-color: #ff7875;
}

.btn-danger:active {
    background-color: #ff1a1a;
}

/* NFT 相关样式 */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.nft-item {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nft-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.nft-item.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.nft-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.nft-name {
    padding: 8px;
    background: var(--bg-panel);
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-loading {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.nft-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.nft-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.nft-tab:hover {
    color: var(--text-main);
}

.nft-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nft-view {
    margin-bottom: 20px;
}

.url-preview {
    margin: 15px 0;
    padding: 10px;
    background: var(--bg-panel);
    border-radius: 4px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.url-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* 链接卡片 Azuki 风格化 */
.link-item {
    position: relative;
    padding: 12px 16px;
    background: var(--bg-panel-soft);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.link-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.link-item:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-strong);
}

.link-item:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.link-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.link-item:hover::before {
    transform: scaleX(1);
}

/* 收藏按钮 */
.link-fav-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    flex-shrink: 0;
}

.link-fav-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(179, 218, 38, 0.1);
}

.link-fav-btn.faved {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(179, 218, 38, 0.1);
    cursor: default;
}

.link-fav-btn svg {
    width: 14px;
    height: 14px;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0px;
}

.link-logo-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px; /* Square with slight radius */
    overflow: hidden;
   
    flex-shrink: 0;
 
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-text a {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

.link-text a:hover {
    color: var(--accent);
}

/* Delete button style update */
.link-delete-btn {
    opacity: 0;
    background: var(--accent);
    color: var(--azuki-bg);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.link-item:hover .link-delete-btn {
    opacity: 1;
}

/* 链接卡片细节优化 */
.link-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.link-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffefef;
    background: #111;
}

.link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-item a {
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.02em;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.link-item a:hover {
    color: var(--accent);
    text-decoration: none;
}

.link-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    line-height: 1.5;
}

.link-tags {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.7;
}

.link-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
}

.link-category-label {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.link-category-btn {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.link-category-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(179, 218, 38, 0.1);
    transform: translateY(-1px);
    box-shadow: none;
}

/* Category Panel Style Update */
.link-category-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    border-radius: var(--radius-lg);
    border: none;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px;
    display: none;
    z-index: 5;
    flex-direction: column;
    justify-content: center;
}

.link-category-panel.visible {
    display: flex;
}

.link-category-title {
    font-size: 12px;
    color: var(--text-main);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 700;
    text-align: center;
}

.link-category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.link-category-option {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    font-weight: 600;
}

.link-category-option:hover {
    background: var(--bg-panel);
    border-color: var(--text-main);
    color: var(--text-main);
    transform: translateY(-1px);
}

.link-category-option.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--azuki-bg);
}

.category-section {
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    margin-bottom: 32px;
}

/* Category Header */
.category-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative; /* For positioning context */
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.01em;
    flex-grow: 1; /* Push other items to right if needed, or just take space */
}

/* Category Bulk Copy Button */
.category-copy-btn {
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    transform: translateX(10px); /* Slight slide in effect from left */
}

.category-header:hover .category-copy-btn {
    opacity: 1;
    transform: translateX(0);
}

.category-copy-btn:hover {
    color: var(--accent);
    /* background: transparent; - Removed ugly background */
}

.category-copy-btn:active {
    transform: scale(0.95);
}

.category-copy-btn.spinning {
    animation: spin 1s linear infinite;
    cursor: wait;
}

/* Category Grid */
.category-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-row .link-item {
    flex: 1;
}

/* Form Area Update */
.form-block {
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
}

.form-block h3 {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 600px;
    line-height: 1.6;
}

#addLinkForm {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
    max-width: 600px;
    position: relative;
}

#addLinkForm input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

/* Input Validation States */
.input-group input.valid,
.profile-fields input.valid,
#addLinkForm input.valid {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.input-group input.invalid,
.profile-fields input.invalid,
#addLinkForm input.invalid {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 1px rgba(255, 77, 79, 0.2);
}

/* NFT Grid States */
.nft-loading-state,
.nft-error-state,
.nft-empty-state {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nft-loading-state {
    color: var(--text-muted);
}

.nft-error-state {
    color: var(--accent);
}

.nft-empty-state {
    color: var(--text-muted);
}

.nft-state-desc {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
}

.nft-retry-btn {
    margin-top: 12px;
    padding: 6px 16px;
    font-size: 12px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-loading-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-muted);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.input-loading-spinner.visible {
    opacity: 1;
}

@keyframes spin {
    to { transform: rotate(360deg) translateY(-50%); } /* translateY needs to be kept if transform is overwritten, but here rotate is enough if we use wrapper */
}

/* Fix animation keyframe to not conflict with centering */
@keyframes spin-center {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.input-loading-spinner {
    animation: spin-center 0.8s linear infinite;
}

#addLinkForm input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

#addLinkForm input:focus {
    border-color: var(--accent);
    background: var(--bg-panel-soft);
    box-shadow: 0 0 0 1px var(--accent-soft);
    transform: translateY(0);
}

#addLinkForm button {
    grid-column: 1 / -1;
    justify-self: flex-start;
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--accent);
    color: var(--azuki-bg);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    margin-top: 8px;
}

#addLinkForm button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 218, 38, 0.4);
}

#addLinkForm button:active {
    transform: translateY(0);
}

/* 空状态文字 */

.link-list > div:first-child {
    font-size: 13px;
    color: var(--text-muted);
}

/* Meta Preview Area */
.meta-preview {
    margin-top: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 24px;
}

.meta-preview.hidden {
    display: none;
}

.meta-header {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

.meta-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.meta-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.meta-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.meta-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: #111;
}

.meta-fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.meta-fields input,
.meta-fields textarea,
.meta-fields select {
    width: 100%;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel-soft);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.meta-fields input:focus,
.meta-fields textarea:focus,
.meta-fields select:focus {
    border-color: var(--accent);
    background: var(--bg-panel);
}

.meta-fields input::placeholder,
.meta-fields textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.meta-fields textarea {
    min-height: 80px;
    resize: vertical;
}

.category-block {
    margin-top: 14px;
    border-top: 1px dashed rgba(90, 90, 90, 0.9);
    padding-top: 10px;
}

.category-block h3 {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 6px;
}

.view-others-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.view-others-bar input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    color: var(--text-main);
    outline: none;
    transition: all var(--transition-fast);
}

.view-others-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.view-others-bar button {
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--accent);
    color: var(--azuki-bg);
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.view-others-bar button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

/* Import Page Styles */
.import-tip {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border-left: 3px solid var(--accent);
}

.import-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.import-controls input[type="file"] {
    font-size: 14px;
    color: var(--text-muted);
}

.import-controls input[type="file"]::file-selector-button {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    color: var(--text-main);
    cursor: pointer;
    margin-right: 12px;
    transition: all var(--transition-fast);
}

.import-controls input[type="file"]::file-selector-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.import-controls button {
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--accent);
    color: var(--azuki-bg);
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.import-controls button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 218, 38, 0.4);
}

.import-progress {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-main);
}


#addCategoryForm {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

#addCategoryForm input {
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

#addCategoryForm input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

#addCategoryForm button {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--accent);
    color: var(--azuki-bg);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

#addCategoryForm button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 218, 38, 0.4);
}

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

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 4px;
    background: var(--bg-panel-soft);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
    cursor: move;
}

.category-item:hover {
    border-color: var(--accent-soft);
    background: var(--bg-panel);
}

.category-item.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    background: rgba(179, 218, 38, 0.1);
}

.category-item.drag-over {
    border: 2px dashed var(--accent);
    background: rgba(179, 218, 38, 0.05);
}

.category-item[data-is-default="true"] {
    background: rgba(179, 218, 38, 0.1);
    border-left: 4px solid var(--accent);
}

.category-placeholder {
    height: 48px;
    margin: 8px 0;
    border: 2px dashed var(--accent);
    border-radius: 4px;
    background: rgba(179, 218, 38, 0.05);
    transition: all var(--transition-fast);
}

.category-chip {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 500;
}

.category-item-actions {
    display: flex;
    gap: 4px;
}

.category-item-actions button {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.category-item-actions button:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: var(--bg-panel);
}

.category-delete-btn {
    padding: 6px 14px;
    background: transparent;
    color: #ff4d4f;
    border: 1px solid #ff4d4f;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.category-delete-btn:hover {
    background: #ff4d4f;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.meta-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.meta-actions button {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.meta-actions #metaCancel:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.meta-actions #metaConfirm {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--azuki-bg);
}

.meta-actions #metaConfirm:hover {
    background: var(--accent-strong);
    box-shadow: 0 4px 12px rgba(179, 218, 38, 0.4);
    transform: translateY(-1px);
}

.profile-block {
    margin-top: 40px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
}

.profile-block h3 {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

.profile-row {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-fields input {
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.profile-fields input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.profile-fields input:focus {
    border-color: var(--accent);
    background: var(--bg-panel-soft);
}

.profile-url-preview {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-url-preview span:last-child {
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.profile-fields button {
    align-self: flex-start;
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--accent);
    color: var(--azuki-bg);
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    transition: all var(--transition-fast);
    margin-top: 8px;
}

.profile-fields button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 218, 38, 0.4);
}

.profile-status {
    font-size: 12px;
    color: var(--text-muted);
    min-height: 16px;
}

.manage-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 32px;
}

.manage-subnav-item {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.manage-subnav-item:hover {
    transform: translateY(-1px);
    border-color: var(--text-main);
    color: var(--text-main);
    background: var(--bg-panel);
}

.manage-subnav-item.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--azuki-bg);
    box-shadow: 0 4px 12px rgba(179, 218, 38, 0.4);
}

.link-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    border: none;
    background: var(--accent);
    color: var(--azuki-bg);
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.link-item:hover .link-delete {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* 响应式 */

@media (max-width: 960px) {
    .layout {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .layout {
        padding: 16px 14px;
        gap: 16px;
    }

    .panel {
        padding: 14px 12px 16px;
    }

    #addLinkForm {
        grid-template-columns: 1fr;
    }

    .view-others-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Welcome Hero */
.welcome-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(179, 218, 38, 0.05) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-subtle);
    margin-top: 0;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

.welcome-hero-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--accent);
    opacity: 0.8;
}

.welcome-hero h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.welcome-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.demo-section {
    margin-top: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.demo-section:hover {
    opacity: 1;
}

.demo-header {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.welcome-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.welcome-btn {
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.welcome-btn.primary {
    background: var(--accent);
    color: var(--azuki-bg);
    border: 1px solid var(--accent);
    box-shadow: 0 4px 12px rgba(179, 218, 38, 0.3);
}

.welcome-btn.primary:hover {
    background: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(179, 218, 38, 0.4);
}

.welcome-btn.secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.welcome-btn.secondary:hover {
    border-color: var(--text-main);
    background: var(--bg-panel);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Customize Page Styles */
.customize-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.customize-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--bg-panel-soft);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.customize-item label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customize-item label::before {
    content: "";
    width: 4px;
    height: 14px;
    background: var(--accent);
    border-radius: 2px;
    display: block;
}

.field-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -8px;
    line-height: 1.5;
}

.avatar-preview-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    background: #000;
    border: 2px solid var(--border-subtle);
    border-radius: 12px; /* Soft square */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 24px;
}

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

.input-group {
    width: 100%;
    max-width: 400px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(179, 218, 38, 0.05);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    padding: 0;
    transition: color var(--transition-fast);
}

.btn-text:hover {
    color: #ff4d4f;
    text-decoration: underline;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.btn-primary {
    background: var(--accent);
    color: var(--azuki-bg);
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: "Oswald", sans-serif;
}

.btn-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 218, 38, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.full-width {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    text-align: center;
    margin-top: 8px;
}

.status-msg {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none; /* Fallback */
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(179, 218, 38, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    transform: translateY(0);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel-soft);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.close-modal:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.modal-body {
    padding: 32px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel-soft);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
    background: var(--bg-panel);
}

.url-preview {
    padding: 24px;
    background: var(--bg-panel-soft);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.url-preview::before {
    content: "预览区域";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    pointer-events: none;
    opacity: 0.5;
}

.url-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast);
}

.url-preview img:hover {
    transform: scale(1.02);
}

.url-preview.has-image::before {
    display: none;
}

.nft-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.nft-tab {
    background: transparent;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.nft-tab.active {
    color: var(--accent);
    font-weight: 600;
}

.nft-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}

.nft-card {
    aspect-ratio: 1;
    background: #111;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.nft-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-card:hover {
    border-color: var(--text-muted);
}

.nft-card.selected {
    border-color: var(--accent);
}

.nft-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 13px;
}
@media (max-width: 720px) {
    .view-others-bar button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 720px) {
    #addLinkForm {
        grid-template-columns: 1fr;
    }
    
    .link-manage-table {
        overflow-x: auto;
    }
    
    .link-manage-header,
    .link-manage-row {
        min-width: 700px;
    }

    /* Mobile: Always show delete button on link items */
    .link-item .link-delete {
        opacity: 1;
        pointer-events: auto;
        padding: 6px 12px;
        top: 8px;
        right: 8px;
        background: rgba(179, 218, 38, 0.9); /* Slight transparency */
    }

    /* Improve modal padding on mobile */
    .modal-body {
        padding: 16px;
    }
    
    .nft-grid {
        gap: 12px;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    /* Responsive Meta Preview */
    .meta-body {
        flex-direction: column;
        align-items: stretch;
    }
    
    .meta-logo-wrap {
        margin: 0 auto 16px;
    }
    
    /* Mobile Header Adjustments */
    .main-nav {
        margin-left: 0;
        width: 100%;
        margin-top: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .wallet {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
}

/* Explore Page Profiles Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.profiles-grid.hidden {
    display: none;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-panel-soft);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.profile-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
    border: 1px solid var(--border-subtle);
}

.profile-card-info {
    flex: 1;
    min-width: 0;
}

.profile-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* View specific styles overrides */
.view-page .sidebar {
    top: 20px;
    max-height: calc(100vh - 40px);
}

/* User Menu & Avatar Styles - Appended */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.user-menu-container.hidden {
    display: none;
}

.user-avatar-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-subtle);
    transition: border-color var(--transition-fast);
    background-color: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.user-avatar-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.user-avatar-trigger .avatar-text {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保所有头像容器都有相同的默认样式 */
.avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    background-color: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.avatar-wrap .avatar-text {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-trigger:hover {
    border-color: var(--accent);
}

/* Explore page avatar styles */
.card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    background-color: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.card-avatar .avatar-text {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 8px 0;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.user-menu-container:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-container::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.user-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
}

.user-dropdown-menu a:hover {
    background: var(--bg-panel-soft);
    color: var(--text-main);
    border-left-color: var(--accent);
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: var(--bg-panel);
    border-left: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
    transform: rotate(45deg);
}

/* Share Page */
.share-container {
    background: var(--bg-panel-soft);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 20px auto;
}

.share-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-input-group input {
    flex: 1;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 14px;
    min-width: 0;
    transition: border-color var(--transition-fast);
}
.share-input-group input:focus {
    border-color: var(--accent);
}

.share-input-group .btn-text {
    color: var(--text-muted);
    font-size: 14px;
    padding: 0 10px;
    white-space: nowrap;
    transition: color var(--transition-fast);
}
.share-input-group .btn-text:hover {
    color: var(--text-main);
}

.share-tip {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.share-tip a {
    color: var(--text-main);
    border-bottom: 1px dashed var(--text-muted);
    transition: all var(--transition-fast);
}
.share-tip a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.social-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-fast);
}
.btn-social:hover {
    border-color: var(--accent);
    color: var(--text-main);
    background: rgba(179, 218, 38, 0.05);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .share-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .share-info {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .share-input-group {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .share-input-group input {
        width: 100%;
        text-align: center;
    }
    
    .share-input-group button, 
    .share-input-group .btn-text {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .social-share-buttons {
        justify-content: center;
    }
}

/* Web3 网址超市样式 */
.web3-market-panel {
    margin-top: 24px;
}

.web3-market-header {
    margin-bottom: 20px;
}

.web3-market-header h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.web3-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.web3-category-card {
    background: var(--bg-panel-soft);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all var(--transition-fast);
}

.web3-category-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.web3-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.web3-category-icon {
    font-size: 24px;
}

.web3-category-name {
    font-size: 15px;
    font-weight: 700;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.web3-category-actions {
    margin-left: auto;
}

.web3-add-all-btn {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    font-family: "Oswald", sans-serif;
}

.web3-add-all-btn:hover {
    background: var(--accent);
    color: var(--azuki-bg);
}

.web3-add-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.web3-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.web3-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-md);
    background: var(--bg-panel);
    transition: all var(--transition-fast);
}

.web3-link-item:hover {
    background: var(--bg-panel-soft);
}

.web3-link-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
}

.web3-link-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.web3-link-logo-placeholder {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-muted);
}

.web3-link-info {
    flex: 1;
    min-width: 0;
}

.web3-link-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.web3-link-desc {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.web3-link-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.web3-link-add-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(179, 218, 38, 0.1);
}

.web3-link-add-btn.added {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--azuki-bg);
    cursor: default;
}

.web3-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--azuki-bg);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(179, 218, 38, 0.4);
    z-index: 1000;
    animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.web3-toast.hiding {
    animation: toastOut 0.3s ease-out forwards;
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}
