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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0d1117;
    color: #e6edf3;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

::selection {
    background: #6C5CE740;
    color: #e6edf3;
}

a {
    text-decoration: none;
    color: inherit;
}

.signin-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.signin-card {
    text-align: center;
    padding: 60px 40px;
}

.signin-logo {
    margin-bottom: 24px;
}

.signin-card h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.signin-card p {
    font-size: 15px;
    color: #8b949e;
    margin-bottom: 32px;
}

.signin-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #8b949e;
    font-size: 14px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #30363d;
    border-top-color: #6C5CE7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

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

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

main {
    display: flex;
    min-height: 100vh;
}

aside {
    width: 230px;
    padding: 20px 12px;
    border-right: 1px solid #21262d;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    background: #0d1117;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 700;
}

.sidebar-brand svg {
    flex-shrink: 0;
}

.aside-links {
    list-style: none;
    flex: 1;
}

.aside-links li {
    margin-bottom: 2px;
}

.aside-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #8b949e;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.aside-links a:hover {
    background: #161b22;
    color: #e6edf3;
}

.aside-links a.active {
    background: #1c2128;
    color: #e6edf3;
}

.aside-links a.active svg {
    color: #6C5CE7;
}

.sidebar-footer {
    padding: 12px 14px;
    font-size: 12px;
    color: #484f58;
    border-top: 1px solid #21262d;
    margin-top: 8px;
}

#content {
    flex: 1;
    margin-left: 230px;
    padding: 28px 36px;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.update-time {
    font-size: 13px;
    color: #484f58;
    transition: color 0.3s ease;
}

.update-time.refreshing {
    color: #6C5CE7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    animation: slideUp 0.3s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.stat-card:hover {
    border-color: #30363d;
    transform: translateY(-1px);
}

.stat-label {
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.stat-change {
    font-size: 13px;
    font-weight: 600;
}

.stat-change.positive { color: #3fb950; }
.stat-change.negative { color: #f85149; }
.stat-change.neutral { color: #8b949e; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.view-all {
    font-size: 13px;
    color: #6C5CE7;
    font-weight: 500;
    transition: color 0.15s ease;
}

.view-all:hover {
    color: #8b7ef0;
}

.coin-table-wrapper {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    overflow-x: auto;
}

.coin-table {
    width: 100%;
    border-collapse: collapse;
}

.coin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #21262d;
    cursor: default;
    white-space: nowrap;
}

.coin-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.coin-table th.sortable:hover {
    color: #e6edf3;
}

.coin-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid #21262d;
    white-space: nowrap;
    transition: background 0.1s ease;
}

.coin-table tbody tr:last-child td {
    border-bottom: none;
}

.coin-table tbody tr {
    transition: background 0.1s ease;
}

.coin-table tbody tr:hover {
    background: #1c2128;
}

.coin-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.coin-symbol {
    color: #8b949e;
    font-size: 12px;
    margin-left: 4px;
}

.positive { color: #3fb950; }
.negative { color: #f85149; }

.sparkline {
    width: 100px;
    height: 32px;
}

.quick-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 20px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tool-card:hover {
    background: #1c2128;
    border-color: #30363d;
    transform: translateY(-2px);
}

.tool-card:active {
    transform: translateY(0);
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-card b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tool-card p {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.4;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 8px 14px;
    width: 240px;
    transition: border-color 0.15s ease;
}

.search-box:focus-within {
    border-color: #6C5CE7;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e6edf3;
    font-size: 14px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: #484f58;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tabs button {
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid #21262d;
    background: transparent;
    color: #8b949e;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-tabs button:hover {
    background: #161b22;
    color: #e6edf3;
}

.filter-tabs button.active {
    background: #6C5CE720;
    color: #8b7ef0;
    border-color: #6C5CE740;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.calc-form {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #8b949e;
    margin-bottom: 6px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #6C5CE7;
    box-shadow: 0 0 0 3px #6C5CE715;
}

.form-group select option {
    background: #161b22;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-with-unit {
    position: relative;
}

.input-with-unit input {
    padding-right: 60px;
}

.input-with-unit .unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #484f58;
    font-weight: 600;
    pointer-events: none;
}

.calc-results {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 24px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.result-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.algo-badge {
    background: #6C5CE720;
    color: #8b7ef0;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.result-grid {
    display: grid;
    gap: 12px;
}

.result-card {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 10px;
    padding: 16px;
    transition: border-color 0.15s ease;
}

.result-card:hover {
    border-color: #30363d;
}

.result-period {
    font-size: 12px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.result-revenue {
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0 2px;
    letter-spacing: -0.5px;
}

.result-coins {
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 8px;
}

.result-cost {
    font-size: 13px;
    color: #f85149;
}

.result-profit {
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}

.breakeven-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.result-disclaimer {
    margin-top: 16px;
    font-size: 12px;
    color: #484f58;
    line-height: 1.5;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: #6C5CE7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    background: #5a4bd1;
    box-shadow: 0 4px 12px #6C5CE730;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 8px 16px;
    background: #6C5CE7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-sm:hover {
    background: #5a4bd1;
    box-shadow: 0 4px 12px #6C5CE730;
}

.btn-sm:active {
    transform: scale(0.96);
}

.btn-danger {
    padding: 8px 16px;
    background: #21262d;
    color: #f85149;
    border: 1px solid #30363d;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-danger:hover {
    background: #f8514920;
    border-color: #f85149;
}

.btn-danger:active {
    transform: scale(0.96);
}

.portfolio-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 28px;
    animation: fadeIn 0.3s ease;
}

.portfolio-label {
    font-size: 14px;
    color: #8b949e;
    display: block;
    margin-bottom: 6px;
}

.portfolio-value {
    font-size: 36px;
    font-weight: 700;
    display: block;
    letter-spacing: -1px;
}

.portfolio-change {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #484f58;
    animation: fadeIn 0.4s ease;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: modalFadeIn 0.2s ease;
}

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

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

.modal {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 28px;
    width: 440px;
    max-width: 90vw;
    animation: modalSlideIn 0.25s ease;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.modal-close:hover {
    color: #e6edf3;
    background: #21262d;
}

.settings-section {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 4px 0;
    margin-bottom: 20px;
    animation: slideUp 0.3s ease both;
}

.settings-section:nth-child(1) { animation-delay: 0.05s; }
.settings-section:nth-child(2) { animation-delay: 0.1s; }
.settings-section:nth-child(3) { animation-delay: 0.15s; }
.settings-section:nth-child(4) { animation-delay: 0.2s; }

.settings-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px 8px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #21262d;
    transition: background 0.15s ease;
}

.setting-row:hover {
    background: #1c212840;
}

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

.setting-info b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.setting-info p {
    font-size: 13px;
    color: #8b949e;
}

.setting-row select {
    padding: 6px 12px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
    color: #e6edf3;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
    cursor: pointer;
}

.setting-row select:focus {
    border-color: #6C5CE7;
}

.setting-row select option {
    background: #161b22;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #21262d;
    border-radius: 24px;
    transition: background 0.25s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #8b949e;
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease;
}

.toggle input:checked + .toggle-slider {
    background: #6C5CE7;
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
}

.converter-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 28px;
    max-width: 520px;
    animation: fadeIn 0.3s ease;
}

.converter-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.converter-field {
    flex: 1;
}

.converter-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #8b949e;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.converter-field select {
    width: 100%;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
    cursor: pointer;
}

.converter-field select:focus {
    border-color: #6C5CE7;
}

.converter-field select option {
    background: #161b22;
}

.converter-input {
    flex: 1;
}

.converter-input input {
    width: 100%;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    text-align: right;
    transition: border-color 0.15s ease;
}

.converter-input input:focus {
    border-color: #6C5CE7;
}

.converter-input input[readonly] {
    color: #3fb950;
    cursor: default;
}

.swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 4px auto;
    border-radius: 50%;
    background: #21262d;
    border: 1px solid #30363d;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.2s ease;
}

.swap-btn:hover {
    background: #30363d;
    transform: rotate(180deg);
}

.swap-btn:active {
    transform: rotate(180deg) scale(0.9);
}

.rate-display {
    text-align: center;
    font-size: 13px;
    color: #484f58;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #21262d;
}

.quick-convert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-convert-item {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    text-align: center;
}

.quick-convert-item:hover {
    background: #1c2128;
    border-color: #30363d;
    transform: translateY(-2px);
}

.quick-convert-item:active {
    transform: translateY(0);
}

.qc-pair {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.qc-rate {
    display: block;
    font-size: 12px;
    color: #8b949e;
}

.coin-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.loading-skeleton {
    background: linear-gradient(90deg, #161b22 25%, #1c2128 50%, #161b22 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b949e;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.back-btn:hover {
    color: #e6edf3;
}

.coin-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cdh-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.coin-icon-lg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.cdh-left h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.coin-symbol-lg {
    font-size: 16px;
    color: #8b949e;
    font-weight: 500;
}

.cdh-rank {
    font-size: 13px;
    color: #484f58;
}

.cdh-right {
    text-align: right;
}

.cdh-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 2px;
}

.chart-controls {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.chart-tab {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #21262d;
    background: transparent;
    color: #8b949e;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.chart-tab:hover {
    background: #161b22;
    color: #e6edf3;
}

.chart-tab.active {
    background: #6C5CE720;
    color: #8b7ef0;
    border-color: #6C5CE740;
}

.chart-container {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    min-height: 420px;
}

.coin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.cstat {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 10px;
    padding: 16px;
}

.cstat-label {
    display: block;
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 6px;
}

.cstat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.market-data-grid {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    overflow: hidden;
}

.mdata-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #21262d;
    font-size: 14px;
}

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

.mdata-row span:first-child {
    color: #8b949e;
}

.mdata-row span:last-child {
    font-weight: 600;
}

.coin-table tbody tr {
    cursor: pointer;
}

@media (max-width: 1200px) {
    .quick-convert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .coin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-tools {
        grid-template-columns: 1fr;
    }
    .calc-layout {
        grid-template-columns: 1fr;
    }
}

.mobile-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0d1117;
    border-top: 1px solid #21262d;
    z-index: 200;
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
}

.mobile-tabs ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #484f58;
    padding: 4px 8px;
    text-decoration: none;
    transition: color 0.15s;
}

.mobile-tabs a.active {
    color: #6C5CE7;
}

.mobile-tabs a svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    aside {
        display: none;
    }
    .mobile-tabs {
        display: block;
    }
    #content {
        margin-left: 0;
        padding: 20px 16px 80px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .coin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .converter-row {
        flex-direction: column;
    }
    .page-header h2 {
        font-size: 18px;
    }
}

.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(20px);background:#1c2128;color:#e6edf3;padding:10px 22px;border-radius:8px;font-size:14px;opacity:0;transition:all 0.3s;z-index:9999;border:1px solid #30363d;pointer-events:none}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
