/* ==================== LINKED ACCOUNTS SECTION ==================== */
.linked-accounts-section {
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.025);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.linked-accounts-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.linked-accounts-title i {
    font-size: 12px;
}

.linked-accounts-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.linked-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
}

.linked-account-row:hover {
    background: rgba(255, 255, 255, 0.07);
}

.linked-account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.linked-account-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.linked-account-icon.google-icon {
    background: rgba(234, 67, 53, 0.15);
    color: #ea4335;
    border: 1px solid rgba(234, 67, 53, 0.25);
}

.linked-account-icon.discord-icon {
    background: rgba(88, 101, 242, 0.15);
    color: #5865f2;
    border: 1px solid rgba(88, 101, 242, 0.25);
}

.linked-account-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.linked-account-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.linked-account-email {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* Link/Unlink Button States */
.linked-account-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.linked-account-btn.btn-link-action {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--gold);
}

.linked-account-btn.btn-link-action:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.linked-account-btn.btn-unlink-action {
    background: rgba(255, 77, 77, 0.1);
    border-color: rgba(255, 77, 77, 0.35);
    color: #ff6b6b;
}

.linked-account-btn.btn-unlink-action:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: #ff6b6b;
    transform: translateY(-1px);
}

.linked-account-btn:disabled,
.linked-account-btn.btn-unlink-disabled {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none !important;
}

/* Linked badge on row when linked */
.linked-account-row.is-linked {
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.04);
}

.linked-account-row.is-linked .linked-account-name::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf50;
    margin-inline-start: 8px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

/* Light theme overrides */
body.light-theme .linked-accounts-section {
    background: var(--surface-2);
    border-color: var(--line);
}

body.light-theme .linked-account-row {
    background: var(--surface);
    border-color: var(--line);
}

body.light-theme .username-modal-content {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: 0 20px 60px rgba(28, 25, 23, 0.1);
}

